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
717 am__fastdepCC_FOR_BUILD_TRUE
718 am__fastdepCC_FOR_BUILD_FALSE
737 am__fastdepOBJC_FALSE
756 GLIB_FOR_BUILD_CFLAGS
831 ac_precious_vars='build_alias
856 GLIB_FOR_BUILD_CFLAGS
872 # Initialize some variables set by options.
874 ac_init_version=false
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
884 program_transform_name=s,x,x,
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE}'
909 infodir='${datarootdir}/info'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\$ac_option
930 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 # Accept the important Cygnus configure options, so we can diagnose typos.
936 case $ac_dashdash$ac_option in
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
958 cache_file=config.cache ;;
960 -datadir | --datadir | --datadi | --datad)
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
972 -disable-* | --disable-*)
973 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
976 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
977 { (exit 1); exit 1; }; }
978 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
979 eval enable_$ac_feature=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 -enable-* | --enable-*)
992 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996 { (exit 1); exit 1; }; }
997 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
998 eval enable_$ac_feature=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1162 -site=* | --site=* | --sit=*)
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1189 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid package name: $ac_package" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1195 eval with_$ac_package=\$ac_optarg ;;
1197 -without-* | --without-*)
1198 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 { echo "$as_me: error: invalid package name: $ac_package" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1204 eval with_$ac_package=no ;;
1207 # Obsolete; use --with-x.
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) { echo "$as_me: error: unrecognized option: $ac_option
1225 Try \`$0 --help' for more information." >&2
1226 { (exit 1); exit 1; }; }
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1234 { (exit 1); exit 1; }; }
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 { echo "$as_me: error: missing argument to $ac_option" >&2
1252 { (exit 1); exit 1; }; }
1255 # Be sure to have absolute directory names.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1261 eval ac_val=\$$ac_var
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1267 { (exit 1); exit 1; }; }
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1275 target=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291 test "$silent" = yes && exec 6>/dev/null
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 { echo "$as_me: error: Working directory cannot be determined" >&2
1298 { (exit 1); exit 1; }; }
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 { echo "$as_me: error: pwd does not report name of working directory" >&2
1301 { (exit 1); exit 1; }; }
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$0" ||
1309 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$0" : 'X\(//\)[^/]' \| \
1311 X"$0" : 'X\(//\)$' \| \
1312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1336 ac_srcdir_defaulted=no
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1341 { (exit 1); exit 1; }; }
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1346 { (exit 1); exit 1; }; }
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 # Report the --help message.
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1372 \`configure' configures this package to adapt to many kinds of systems.
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1379 Defaults for the options are specified in brackets.
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1403 For better control, use the options below.
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 if test -n "$ac_init_help"; then
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-maintainer-mode enable make rules and dependencies not useful
1448 (and sometimes confusing) to the casual installer
1449 --disable-dependency-tracking speeds up one-time build
1450 --enable-dependency-tracking do not reject slow dependency extractors
1451 --enable-strict-warn Enable strict compilation warnings
1452 --disable-translator Disable the SH4 translator (Enabled by default)
1453 --disable-optimized Disable compile-time optimizations (Enabled by
1455 --enable-shared Build drivers as shared libraries (Enabled if
1457 --enable-profiled Enable profiling build
1458 --enable-trace Enable generation of IO traces (warning: hurts
1460 --enable-watch Enable watchpoints in the debugger (warning: hurts
1462 --enable-sh4stats Enable statistics on executed sh4 instructions
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-android=SDK Specify the location of the Android SDK
1468 --with-android-ndk=NDK Specify the location of the Android NDK
1469 --with-android-version Specify target Android SDK version
1470 --with-android-version Specify target Android NDK version
1471 --with-android-abi Specify target Android ABI
1472 --with-osmesa Build with the osmesa GL library (software
1474 --with-gtk Build with the GTK UI. Default on X11 systems
1475 --with-esd Build with support for the ESounD audio system
1476 --with-pulse Build with support for the PulseAudio audio system
1477 --with-sdl Build with support for SDL audio
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 LIBS libraries to pass to the linker, e.g. -l<library>
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1488 OBJC Objective C compiler command
1489 OBJCFLAGS Objective C compiler flags
1490 CCAS assembler compiler command (defaults to CC)
1491 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1492 PKG_CONFIG path to pkg-config utility
1494 C compiler flags for LIBPNG, overriding pkg-config
1495 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1496 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1497 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1498 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1499 GTK_LIBS linker flags for GTK, overriding pkg-config
1500 GLIB_FOR_BUILD_CFLAGS
1501 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1503 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1505 C compiler flags for LIBISOFS, overriding pkg-config
1507 linker flags for LIBISOFS, overriding pkg-config
1509 C compiler flags for LIBGL, overriding pkg-config
1510 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1511 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1512 SDL_LIBS linker flags for SDL, overriding pkg-config
1514 C compiler flags for PULSE, overriding pkg-config
1515 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1517 C compiler flags for ESOUND, overriding pkg-config
1518 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1519 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1520 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532 test -d "$ac_dir" || continue
1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1539 # A ".." for each directory in $ac_dir_suffix.
1540 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1541 case $ac_top_builddir_sub in
1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 ac_abs_top_builddir=$ac_pwd
1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548 # for backward compatibility:
1549 ac_top_builddir=$ac_top_build_prefix
1552 .) # We are building in place.
1554 ac_top_srcdir=$ac_top_builddir_sub
1555 ac_abs_top_srcdir=$ac_pwd ;;
1556 [\\/]* | ?:[\\/]* ) # Absolute name.
1557 ac_srcdir=$srcdir$ac_dir_suffix;
1558 ac_top_srcdir=$srcdir
1559 ac_abs_top_srcdir=$srcdir ;;
1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562 ac_top_srcdir=$ac_top_build_prefix$srcdir
1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567 cd "$ac_dir" || { ac_status=$?; continue; }
1568 # Check for guested configure.
1569 if test -f "$ac_srcdir/configure.gnu"; then
1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572 elif test -f "$ac_srcdir/configure"; then
1574 $SHELL "$ac_srcdir/configure" --help=recursive
1576 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578 cd "$ac_pwd" || { ac_status=$?; break; }
1582 test -n "$ac_init_help" && exit $ac_status
1583 if $ac_init_version; then
1586 generated by GNU Autoconf 2.61
1588 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1589 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1595 cat >config.log <<_ACEOF
1596 This file contains any messages produced by compilers while
1597 running configure, to aid debugging if configure makes a mistake.
1599 It was created by $as_me, which was
1600 generated by GNU Autoconf 2.61. Invocation command line was
1612 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1613 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1614 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1615 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1616 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1618 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1619 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1621 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1622 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1623 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1624 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1625 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1626 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1627 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 test -z "$as_dir" && as_dir=.
1636 echo "PATH: $as_dir"
1652 # Keep a trace of the command line.
1653 # Strip out --no-create and --no-recursion so they do not pile up.
1654 # Strip out --silent because we don't want to record it for future runs.
1655 # Also quote any args containing shell meta-characters.
1656 # Make two passes to allow for proper duplicate-argument suppression.
1660 ac_must_keep_next=false
1666 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1668 | -silent | --silent | --silen | --sile | --sil)
1671 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1674 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1676 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1677 if test $ac_must_keep_next = true; then
1678 ac_must_keep_next=false # Got value, back to normal.
1681 *=* | --config-cache | -C | -disable-* | --disable-* \
1682 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1683 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1684 | -with-* | --with-* | -without-* | --without-* | --x)
1685 case "$ac_configure_args0 " in
1686 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1689 -* ) ac_must_keep_next=true ;;
1692 ac_configure_args="$ac_configure_args '$ac_arg'"
1697 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1698 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1700 # When interrupted or exit'd, cleanup temporary files, and complete
1701 # config.log. We remove comments because anyway the quotes in there
1702 # would cause problems or look ugly.
1703 # WARNING: Use '\'' to represent an apostrophe within the trap.
1704 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1705 trap 'exit_status=$?
1706 # Save into config.log some information that might help in debugging.
1711 ## ---------------- ##
1712 ## Cache variables. ##
1713 ## ---------------- ##
1716 # The following way of writing the cache mishandles newlines in values,
1718 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1719 eval ac_val=\$$ac_var
1723 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1724 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1727 _ | IFS | as_nl) ;; #(
1728 *) $as_unset $ac_var ;;
1733 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1734 *${as_nl}ac_space=\ *)
1736 "s/'\''/'\''\\\\'\'''\''/g;
1737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1748 ## ----------------- ##
1749 ## Output variables. ##
1750 ## ----------------- ##
1753 for ac_var in $ac_subst_vars
1755 eval ac_val=\$$ac_var
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 echo "$ac_var='\''$ac_val'\''"
1763 if test -n "$ac_subst_files"; then
1765 ## ------------------- ##
1766 ## File substitutions. ##
1767 ## ------------------- ##
1770 for ac_var in $ac_subst_files
1772 eval ac_val=\$$ac_var
1774 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776 echo "$ac_var='\''$ac_val'\''"
1781 if test -s confdefs.h; then
1791 test "$ac_signal" != 0 &&
1792 echo "$as_me: caught signal $ac_signal"
1793 echo "$as_me: exit $exit_status"
1795 rm -f core *.core core.conftest.* &&
1796 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1799 for ac_signal in 1 2 13 15; do
1800 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1804 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1805 rm -f -r conftest* confdefs.h
1807 # Predefined preprocessor variables.
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_NAME "$PACKAGE_NAME"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_STRING "$PACKAGE_STRING"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1834 # Let the site file select an alternate cache file if it wants to.
1835 # Prefer explicitly selected file to automatically selected ones.
1836 if test -n "$CONFIG_SITE"; then
1837 set x "$CONFIG_SITE"
1838 elif test "x$prefix" != xNONE; then
1839 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1841 set x "$ac_default_prefix/share/config.site" \
1842 "$ac_default_prefix/etc/config.site"
1847 if test -r "$ac_site_file"; then
1848 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1849 echo "$as_me: loading site script $ac_site_file" >&6;}
1850 sed 's/^/| /' "$ac_site_file" >&5
1855 if test -r "$cache_file"; then
1856 # Some versions of bash will fail to source /dev/null (special
1857 # files actually), so we avoid doing that.
1858 if test -f "$cache_file"; then
1859 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1860 echo "$as_me: loading cache $cache_file" >&6;}
1862 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1863 *) . "./$cache_file";;
1867 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1868 echo "$as_me: creating cache $cache_file" >&6;}
1872 # Check that the precious variables saved in the cache have kept the same
1874 ac_cache_corrupted=false
1875 for ac_var in $ac_precious_vars; do
1876 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1877 eval ac_new_set=\$ac_env_${ac_var}_set
1878 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1879 eval ac_new_val=\$ac_env_${ac_var}_value
1880 case $ac_old_set,$ac_new_set in
1882 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1886 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1887 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1891 if test "x$ac_old_val" != "x$ac_new_val"; then
1892 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1893 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1894 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1895 echo "$as_me: former value: $ac_old_val" >&2;}
1896 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1897 echo "$as_me: current value: $ac_new_val" >&2;}
1898 ac_cache_corrupted=:
1901 # Pass precious variables to config.status.
1902 if test "$ac_new_set" = set; then
1904 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1905 *) ac_arg=$ac_var=$ac_new_val ;;
1907 case " $ac_configure_args " in
1908 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1909 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1913 if $ac_cache_corrupted; then
1914 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1915 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1916 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1917 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1918 { (exit 1); exit 1; }; }
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944 am__api_version="1.9"
1946 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1947 if test -f "$ac_dir/install-sh"; then
1949 ac_install_sh="$ac_aux_dir/install-sh -c"
1951 elif test -f "$ac_dir/install.sh"; then
1953 ac_install_sh="$ac_aux_dir/install.sh -c"
1955 elif test -f "$ac_dir/shtool"; then
1957 ac_install_sh="$ac_aux_dir/shtool install -c"
1961 if test -z "$ac_aux_dir"; then
1962 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1963 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1964 { (exit 1); exit 1; }; }
1967 # These three variables are undocumented and unsupported,
1968 # and are intended to be withdrawn in a future Autoconf release.
1969 # They can cause serious problems if a builder's source tree is in a directory
1970 # whose full name contains unusual characters.
1971 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1972 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1973 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1976 # Find a good install program. We prefer a C program (faster),
1977 # so one script is as good as another. But avoid the broken or
1978 # incompatible versions:
1979 # SysV /etc/install, /usr/sbin/install
1980 # SunOS /usr/etc/install
1981 # IRIX /sbin/install
1983 # AmigaOS /C/install, which installs bootblocks on floppy discs
1984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1987 # OS/2's system install, which has a completely different semantic
1988 # ./install, which can be erroneously created by make from ./install.sh.
1989 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1991 if test -z "$INSTALL"; then
1992 if test "${ac_cv_path_install+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir=.
2000 # Account for people who put trailing slashes in PATH elements.
2002 ./ | .// | /cC/* | \
2003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2007 # OSF1 and SCO ODT 3.0 have their own names for install.
2008 # Don't use installbsd from OSF since it installs stuff as root
2010 for ac_prog in ginstall scoinst install; do
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2013 if test $ac_prog = install &&
2014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # AIX install. It has an incompatible calling convention.
2017 elif test $ac_prog = install &&
2018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # program-specific install script used by HP pwplus--don't use.
2022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2035 if test "${ac_cv_path_install+set}" = set; then
2036 INSTALL=$ac_cv_path_install
2038 # As a last resort, use the slow shell script. Don't cache a
2039 # value for INSTALL within a source directory, because that will
2040 # break other packages using the cache if that directory is
2041 # removed, or if the value is a relative name.
2042 INSTALL=$ac_install_sh
2045 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2046 echo "${ECHO_T}$INSTALL" >&6; }
2048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2049 # It thinks the first close brace ends the variable substitution.
2050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2056 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2057 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2060 echo timestamp > conftest.file
2061 # Do `set' in a subshell so we don't clobber the current shell's
2062 # arguments. Must try -L first in case configure is actually a
2063 # symlink; some systems play weird games with the mod time of symlinks
2064 # (eg FreeBSD returns the mod time of the symlink's containing
2067 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2068 if test "$*" = "X"; then
2070 set X `ls -t $srcdir/configure conftest.file`
2073 if test "$*" != "X $srcdir/configure conftest.file" \
2074 && test "$*" != "X conftest.file $srcdir/configure"; then
2076 # If neither matched, then we have a broken ls. This can happen
2077 # if, for instance, CONFIG_SHELL is bash and it inherits a
2078 # broken ls alias from the environment. This has actually
2079 # happened. Such a system could not be considered "sane".
2080 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2081 alias in your environment" >&5
2082 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2083 alias in your environment" >&2;}
2084 { (exit 1); exit 1; }; }
2087 test "$2" = conftest.file
2093 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2094 Check your system clock" >&5
2095 echo "$as_me: error: newly created file is older than distributed files!
2096 Check your system clock" >&2;}
2097 { (exit 1); exit 1; }; }
2099 { echo "$as_me:$LINENO: result: yes" >&5
2100 echo "${ECHO_T}yes" >&6; }
2101 test "$program_prefix" != NONE &&
2102 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2103 # Use a double $ so make ignores it.
2104 test "$program_suffix" != NONE &&
2105 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2106 # Double any \ or $. echo might interpret backslashes.
2107 # By default was `s,x,x', remove it if useless.
2108 cat <<\_ACEOF >conftest.sed
2109 s/[\\$]/&&/g;s/;s,x,x,$//
2111 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2114 # expand $ac_aux_dir to an absolute path
2115 am_aux_dir=`cd $ac_aux_dir && pwd`
2117 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2118 # Use eval to expand $SHELL
2119 if eval "$MISSING --run true"; then
2120 am_missing_run="$MISSING --run "
2123 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2124 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2127 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2128 # We used to keeping the `.' as first argument, in order to
2129 # allow $(mkdir_p) to be used without argument. As in
2130 # $(mkdir_p) $(somedir)
2131 # where $(somedir) is conditionally defined. However this is wrong
2133 # 1. if the package is installed by a user who cannot write `.'
2134 # make install will fail,
2135 # 2. the above comment should most certainly read
2136 # $(mkdir_p) $(DESTDIR)$(somedir)
2137 # so it does not work when $(somedir) is undefined and
2138 # $(DESTDIR) is not.
2139 # To support the latter case, we have to write
2140 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2141 # so the `.' trick is pointless.
2142 mkdir_p='mkdir -p --'
2144 # On NextStep and OpenStep, the `mkdir' command does not
2145 # recognize any option. It will interpret all options as
2146 # directories to create, and then abort because `.' already
2148 for d in ./-p ./--version;
2150 test -d $d && rmdir $d
2152 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2153 if test -f "$ac_aux_dir/mkinstalldirs"; then
2154 mkdir_p='$(mkinstalldirs)'
2156 mkdir_p='$(install_sh) -d'
2160 for ac_prog in gawk mawk nawk awk
2162 # Extract the first word of "$ac_prog", so it can be a program name with args.
2163 set dummy $ac_prog; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_prog_AWK+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 if test -n "$AWK"; then
2170 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 test -z "$as_dir" && as_dir=.
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179 ac_cv_prog_AWK="$ac_prog"
2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 if test -n "$AWK"; then
2191 { echo "$as_me:$LINENO: result: $AWK" >&5
2192 echo "${ECHO_T}$AWK" >&6; }
2194 { echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6; }
2199 test -n "$AWK" && break
2202 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2203 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2204 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2205 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 cat >conftest.make <<\_ACEOF
2211 @echo '@@@%%%=$(MAKE)=@@@%%%'
2213 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2214 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2216 eval ac_cv_prog_make_${ac_make}_set=yes;;
2218 eval ac_cv_prog_make_${ac_make}_set=no;;
2222 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2223 { echo "$as_me:$LINENO: result: yes" >&5
2224 echo "${ECHO_T}yes" >&6; }
2227 { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2229 SET_MAKE="MAKE=${MAKE-make}"
2232 rm -rf .tst 2>/dev/null
2233 mkdir .tst 2>/dev/null
2234 if test -d .tst; then
2239 rmdir .tst 2>/dev/null
2241 # test to see if srcdir already configured
2242 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2243 test -f $srcdir/config.status; then
2244 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2245 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2246 { (exit 1); exit 1; }; }
2249 # test whether we have cygpath
2250 if test -z "$CYGPATH_W"; then
2251 if (cygpath --version) >/dev/null 2>/dev/null; then
2252 CYGPATH_W='cygpath -w'
2259 # Define the identity of the package.
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE "$PACKAGE"
2269 cat >>confdefs.h <<_ACEOF
2270 #define VERSION "$VERSION"
2273 # Some tools Automake needs.
2275 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2278 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2281 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2284 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2287 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2289 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2291 # Installed binaries are usually stripped using `strip' when the user
2292 # run `make install-strip'. However `strip' might not be the right
2293 # tool to use in cross-compilation environments, therefore Automake
2294 # will honor the `STRIP' environment variable to overrule this program.
2295 if test "$cross_compiling" != no; then
2296 if test -n "$ac_tool_prefix"; then
2297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2298 set dummy ${ac_tool_prefix}strip; ac_word=$2
2299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301 if test "${ac_cv_prog_STRIP+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 if test -n "$STRIP"; then
2305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 STRIP=$ac_cv_prog_STRIP
2325 if test -n "$STRIP"; then
2326 { echo "$as_me:$LINENO: result: $STRIP" >&5
2327 echo "${ECHO_T}$STRIP" >&6; }
2329 { echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6; }
2335 if test -z "$ac_cv_prog_STRIP"; then
2337 # Extract the first word of "strip", so it can be a program name with args.
2338 set dummy strip; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$ac_ct_STRIP"; then
2345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_ac_ct_STRIP="strip"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2365 if test -n "$ac_ct_STRIP"; then
2366 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2367 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2373 if test "x$ac_ct_STRIP" = x; then
2376 case $cross_compiling:$ac_tool_warned in
2378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2379 whose name does not start with the host triplet. If you think this
2380 configuration is useful to you, please write to autoconf@gnu.org." >&5
2381 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2382 whose name does not start with the host triplet. If you think this
2383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2384 ac_tool_warned=yes ;;
2389 STRIP="$ac_cv_prog_STRIP"
2393 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2395 # We need awk for the "check" target. The system "awk" is bad on
2397 # Always define AMTAR for backward compatibility.
2399 AMTAR=${AMTAR-"${am_missing_run}tar"}
2401 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2407 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2408 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2409 # Check whether --enable-maintainer-mode was given.
2410 if test "${enable_maintainer_mode+set}" = set; then
2411 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2413 USE_MAINTAINER_MODE=no
2416 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2417 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2420 if test $USE_MAINTAINER_MODE = yes; then
2421 MAINTAINER_MODE_TRUE=
2422 MAINTAINER_MODE_FALSE='#'
2424 MAINTAINER_MODE_TRUE='#'
2425 MAINTAINER_MODE_FALSE=
2428 MAINT=$MAINTAINER_MODE_TRUE
2431 ac_config_headers="$ac_config_headers config.h"
2434 # Make sure we can run config.sub.
2435 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2436 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2437 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2438 { (exit 1); exit 1; }; }
2440 { echo "$as_me:$LINENO: checking build system type" >&5
2441 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2442 if test "${ac_cv_build+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 ac_build_alias=$build_alias
2446 test "x$ac_build_alias" = x &&
2447 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2448 test "x$ac_build_alias" = x &&
2449 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2450 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2451 { (exit 1); exit 1; }; }
2452 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2453 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2454 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2455 { (exit 1); exit 1; }; }
2458 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2459 echo "${ECHO_T}$ac_cv_build" >&6; }
2460 case $ac_cv_build in
2462 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2463 echo "$as_me: error: invalid value of canonical build" >&2;}
2464 { (exit 1); exit 1; }; };;
2467 ac_save_IFS=$IFS; IFS='-'
2473 # Remember, the first character of IFS is used to create $*,
2474 # except with old shells:
2477 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2480 { echo "$as_me:$LINENO: checking host system type" >&5
2481 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2482 if test "${ac_cv_host+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test "x$host_alias" = x; then
2486 ac_cv_host=$ac_cv_build
2488 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2489 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2490 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2491 { (exit 1); exit 1; }; }
2495 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2496 echo "${ECHO_T}$ac_cv_host" >&6; }
2499 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2500 echo "$as_me: error: invalid value of canonical host" >&2;}
2501 { (exit 1); exit 1; }; };;
2504 ac_save_IFS=$IFS; IFS='-'
2510 # Remember, the first character of IFS is used to create $*,
2511 # except with old shells:
2514 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2526 # Defines --with-android, --with-android-ndk, and --with-android-version
2527 # If specified, checks for a working install, and sets build parameters
2528 # appropriately for an Android host.
2534 # Check whether --with-android was given.
2535 if test "${with_android+set}" = set; then
2536 withval=$with_android;
2540 # Check whether --with-android-ndk was given.
2541 if test "${with_android_ndk+set}" = set; then
2542 withval=$with_android_ndk;
2546 # Check whether --with-android-version was given.
2547 if test "${with_android_version+set}" = set; then
2548 withval=$with_android_version;
2550 with_android_version="android-11"
2554 # Check whether --with-android-ndk-version was given.
2555 if test "${with_android_ndk_version+set}" = set; then
2556 withval=$with_android_ndk_version;
2558 with_ndk_version="android-9"
2562 # Check whether --with-android-abi was given.
2563 if test "${with_android_abi+set}" = set; then
2564 withval=$with_android_abi;
2566 ANDROID_ABI="armeabi-v7a"
2570 if test "x$with_android" != "x"; then
2571 if test "$with_android" = "yes"; then
2572 { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
2573 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
2574 { (exit 1); exit 1; }; }
2576 if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
2577 { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
2578 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
2579 { (exit 1); exit 1; }; }
2582 ANDROID_SDK_HOME="$with_android"
2583 ANDROID_NDK_HOME="$with_android_ndk"
2584 ANDROID_SDK_VERSION="$with_android_version"
2585 ANDROID_NDK_VERSION="$with_ndk_version"
2587 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
2588 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
2589 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
2590 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 test "$cross_compiling" = yes &&
2594 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2595 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2596 { (exit 1); exit 1; }; }
2597 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
2598 eval "$as_ac_File=yes"
2600 eval "$as_ac_File=no"
2603 ac_res=`eval echo '${'$as_ac_File'}'`
2604 { echo "$as_me:$LINENO: result: $ac_res" >&5
2605 echo "${ECHO_T}$ac_res" >&6; }
2606 if test `eval echo '${'$as_ac_File'}'` = yes; then
2609 { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
2610 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
2611 { (exit 1); exit 1; }; }
2614 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
2615 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
2616 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
2617 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 test "$cross_compiling" = yes &&
2621 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2622 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2623 { (exit 1); exit 1; }; }
2624 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
2625 eval "$as_ac_File=yes"
2627 eval "$as_ac_File=no"
2630 ac_res=`eval echo '${'$as_ac_File'}'`
2631 { echo "$as_me:$LINENO: result: $ac_res" >&5
2632 echo "${ECHO_T}$ac_res" >&6; }
2633 if test `eval echo '${'$as_ac_File'}'` = yes; then
2636 { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
2637 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
2638 { (exit 1); exit 1; }; }
2641 as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
2642 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
2643 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
2644 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 test "$cross_compiling" = yes &&
2648 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2649 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2650 { (exit 1); exit 1; }; }
2651 if test -r "$ANDROID_NDK_HOME/toolchains"; then
2652 eval "$as_ac_File=yes"
2654 eval "$as_ac_File=no"
2657 ac_res=`eval echo '${'$as_ac_File'}'`
2658 { echo "$as_me:$LINENO: result: $ac_res" >&5
2659 echo "${ECHO_T}$ac_res" >&6; }
2660 if test `eval echo '${'$as_ac_File'}'` = yes; then
2663 { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
2664 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
2665 { (exit 1); exit 1; }; }
2669 TARGETFLAGS="-ffunction-sections -funwind-tables -fomit-frame-pointer -DANDROID -Wa,--noexecstack"
2671 case $ANDROID_ABI in
2672 armeabi | armeabi-v7a)
2673 host_alias="arm-linux-androideabi"
2675 host_vendor="unknown";
2676 host_os="linux-androideabi"
2677 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
2678 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
2679 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-arm"
2680 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__"
2681 if test "x$with_abi" = "armeabi"; then
2682 TARGETFLAGS="$TARGETFLAGS -march=armv5te -mtune=xscale -msoft-float"
2684 TARGETFLAGS="$TARGETFLAGS -march=armv7-a -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=vfp"
2688 host_alias="i686-android-linux"
2690 host_vendor="android"
2692 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
2693 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
2694 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-x86"
2695 TARGETFLAGS="$TARGETFLAGS -finline-limit=300 -fno-rtti -funswitch-loops -fstrict-aliasing"
2698 { { echo "$as_me:$LINENO: error: Unsupported android ABI $ANDROID_ABI" >&5
2699 echo "$as_me: error: Unsupported android ABI $ANDROID_ABI" >&2;}
2700 { (exit 1); exit 1; }; }
2704 # Extract the first word of "ant ", so it can be a program name with args.
2705 set dummy ant ; 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_path_ANT+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
2724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 if test -n "$ANT"; then
2736 { echo "$as_me:$LINENO: result: $ANT" >&5
2737 echo "${ECHO_T}$ANT" >&6; }
2739 { echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6; }
2745 CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
2746 CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
2747 CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
2748 LD="$ANDROID_NDK_BIN/${host_alias}-ld"
2749 AR="$ANDROID_NDK_BIN/${host_alias}-ar"
2750 RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
2751 STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
2752 OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
2753 CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
2754 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"
2755 LIBS="$LIBS -liconv -landroid -llog -lgcc -lc -lm"
2770 if test "$ANDROID_BUILD" = "yes"; then
2772 GUI_ANDROID_FALSE='#'
2774 GUI_ANDROID_TRUE='#'
2781 DEPDIR="${am__leading_dot}deps"
2783 ac_config_commands="$ac_config_commands depfiles"
2786 am_make=${MAKE-make}
2787 cat > confinc << 'END'
2792 # If we don't find an include directive, just comment out the code.
2793 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2794 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2798 # First try GNU make style include.
2799 echo "include confinc" > confmf
2800 # We grep out `Entering directory' and `Leaving directory'
2801 # messages which can occur if `w' ends up in MAKEFLAGS.
2802 # In particular we don't look at `^make:' because GNU make might
2803 # be invoked under some other name (usually "gmake"), in which
2804 # case it prints its new name instead of `make'.
2805 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2810 # Now try BSD make style include.
2811 if test "$am__include" = "#"; then
2812 echo '.include "confinc"' > confmf
2813 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2814 am__include=.include
2821 { echo "$as_me:$LINENO: result: $_am_result" >&5
2822 echo "${ECHO_T}$_am_result" >&6; }
2823 rm -f confinc confmf
2825 # Check whether --enable-dependency-tracking was given.
2826 if test "${enable_dependency_tracking+set}" = set; then
2827 enableval=$enable_dependency_tracking;
2830 if test "x$enable_dependency_tracking" != xno; then
2831 am_depcomp="$ac_aux_dir/depcomp"
2836 if test "x$enable_dependency_tracking" != xno; then
2847 ac_cpp='$CPP $CPPFLAGS'
2848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851 if test -n "$ac_tool_prefix"; then
2852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2856 if test "${ac_cv_prog_CC+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test -n "$CC"; then
2881 { echo "$as_me:$LINENO: result: $CC" >&5
2882 echo "${ECHO_T}$CC" >&6; }
2884 { echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6; }
2890 if test -z "$ac_cv_prog_CC"; then
2892 # Extract the first word of "gcc", so it can be a program name with args.
2893 set dummy gcc; ac_word=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 if test -n "$ac_ct_CC"; then
2900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_ac_ct_CC="gcc"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920 if test -n "$ac_ct_CC"; then
2921 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2922 echo "${ECHO_T}$ac_ct_CC" >&6; }
2924 { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2928 if test "x$ac_ct_CC" = x; then
2931 case $cross_compiling:$ac_tool_warned in
2933 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2934 whose name does not start with the host triplet. If you think this
2935 configuration is useful to you, please write to autoconf@gnu.org." >&5
2936 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2937 whose name does not start with the host triplet. If you think this
2938 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2939 ac_tool_warned=yes ;;
2947 if test -z "$CC"; then
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}cc; ac_word=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC="${ac_tool_prefix}cc"
2967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 if test -n "$CC"; then
2978 { echo "$as_me:$LINENO: result: $CC" >&5
2979 echo "${ECHO_T}$CC" >&6; }
2981 { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2988 if test -z "$CC"; then
2989 # Extract the first word of "cc", so it can be a program name with args.
2990 set dummy cc; ac_word=$2
2991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2993 if test "${ac_cv_prog_CC+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3008 ac_prog_rejected=yes
3012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 if test $ac_prog_rejected = yes; then
3020 # We found a bogon in the path, so make sure we never use it.
3021 set dummy $ac_cv_prog_CC
3023 if test $# != 0; then
3024 # We chose a different compiler from the bogus one.
3025 # However, it has the same basename, so the bogon will be chosen
3026 # first if we set CC to just the basename; use the full file name.
3028 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3034 if test -n "$CC"; then
3035 { echo "$as_me:$LINENO: result: $CC" >&5
3036 echo "${ECHO_T}$CC" >&6; }
3038 { echo "$as_me:$LINENO: result: no" >&5
3039 echo "${ECHO_T}no" >&6; }
3044 if test -z "$CC"; then
3045 if test -n "$ac_tool_prefix"; then
3046 for ac_prog in cl.exe
3048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3052 if test "${ac_cv_prog_CC+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 if test -n "$CC"; then
3077 { echo "$as_me:$LINENO: result: $CC" >&5
3078 echo "${ECHO_T}$CC" >&6; }
3080 { echo "$as_me:$LINENO: result: no" >&5
3081 echo "${ECHO_T}no" >&6; }
3085 test -n "$CC" && break
3088 if test -z "$CC"; then
3090 for ac_prog in cl.exe
3092 # Extract the first word of "$ac_prog", so it can be a program name with args.
3093 set dummy $ac_prog; ac_word=$2
3094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 if test -n "$ac_ct_CC"; then
3100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 ac_cv_prog_ac_ct_CC="$ac_prog"
3110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3120 if test -n "$ac_ct_CC"; then
3121 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3122 echo "${ECHO_T}$ac_ct_CC" >&6; }
3124 { echo "$as_me:$LINENO: result: no" >&5
3125 echo "${ECHO_T}no" >&6; }
3129 test -n "$ac_ct_CC" && break
3132 if test "x$ac_ct_CC" = x; then
3135 case $cross_compiling:$ac_tool_warned in
3137 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3138 whose name does not start with the host triplet. If you think this
3139 configuration is useful to you, please write to autoconf@gnu.org." >&5
3140 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3141 whose name does not start with the host triplet. If you think this
3142 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3143 ac_tool_warned=yes ;;
3152 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: no acceptable C compiler found in \$PATH
3155 See \`config.log' for more details." >&2;}
3156 { (exit 1); exit 1; }; }
3158 # Provide some information about the compiler.
3159 echo "$as_me:$LINENO: checking for C compiler version" >&5
3160 ac_compiler=`set X $ac_compile; echo $2`
3161 { (ac_try="$ac_compiler --version >&5"
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compiler --version >&5") 2>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }
3171 { (ac_try="$ac_compiler -v >&5"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compiler -v >&5") 2>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }
3181 { (ac_try="$ac_compiler -V >&5"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compiler -V >&5") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3207 ac_clean_files_save=$ac_clean_files
3208 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3209 # Try to create an executable without -o first, disregard a.out.
3210 # It will help us diagnose broken compilers, and finding out an intuition
3212 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3213 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3214 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3216 # List of possible output files, starting from the most likely.
3217 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3218 # only as a last resort. b.out is created by i960 compilers.
3219 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3221 # The IRIX 6 linker writes into existing files which may not be
3222 # executable, retaining their permissions. Remove them first so a
3223 # subsequent execution test works.
3225 for ac_file in $ac_files
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3229 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3234 if { (ac_try="$ac_link_default"
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_link_default") 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; then
3244 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3245 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3246 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3247 # so that the user can short-circuit this test for compilers unknown to
3249 for ac_file in $ac_files ''
3251 test -f "$ac_file" || continue
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3256 # We found the default executable, but exeext='' is most
3260 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3262 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3264 # We set ac_cv_exeext here because the later test for it is not
3265 # safe: cross compilers may not add the suffix if given an `-o'
3266 # argument, so we may need to know it at that point already.
3267 # Even if this section looks crufty: it has the advantage of
3274 test "$ac_cv_exeext" = no && ac_cv_exeext=
3280 { echo "$as_me:$LINENO: result: $ac_file" >&5
3281 echo "${ECHO_T}$ac_file" >&6; }
3282 if test -z "$ac_file"; then
3283 echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3286 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3287 See \`config.log' for more details." >&5
3288 echo "$as_me: error: C compiler cannot create executables
3289 See \`config.log' for more details." >&2;}
3290 { (exit 77); exit 77; }; }
3293 ac_exeext=$ac_cv_exeext
3295 # Check that the compiler produces executables we can run. If not, either
3296 # the compiler is broken, or we cross compile.
3297 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3298 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3299 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3300 # If not cross compiling, check that we can run a simple program.
3301 if test "$cross_compiling" != yes; then
3302 if { ac_try='./$ac_file'
3303 { (case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_try") 2>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3314 if test "$cross_compiling" = maybe; then
3317 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3318 If you meant to cross compile, use \`--host'.
3319 See \`config.log' for more details." >&5
3320 echo "$as_me: error: cannot run C compiled programs.
3321 If you meant to cross compile, use \`--host'.
3322 See \`config.log' for more details." >&2;}
3323 { (exit 1); exit 1; }; }
3327 { echo "$as_me:$LINENO: result: yes" >&5
3328 echo "${ECHO_T}yes" >&6; }
3330 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3331 ac_clean_files=$ac_clean_files_save
3332 # Check that the compiler produces executables we can run. If not, either
3333 # the compiler is broken, or we cross compile.
3334 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3335 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3336 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3337 echo "${ECHO_T}$cross_compiling" >&6; }
3339 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3340 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3341 if { (ac_try="$ac_link"
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_link") 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; then
3351 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3352 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3353 # work properly (i.e., refer to `conftest.exe'), while it won't with
3355 for ac_file in conftest.exe conftest conftest.*; do
3356 test -f "$ac_file" || continue
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3359 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3366 See \`config.log' for more details." >&5
3367 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3368 See \`config.log' for more details." >&2;}
3369 { (exit 1); exit 1; }; }
3372 rm -f conftest$ac_cv_exeext
3373 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3374 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3376 rm -f conftest.$ac_ext
3377 EXEEXT=$ac_cv_exeext
3379 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3380 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3381 if test "${ac_cv_objext+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3399 rm -f conftest.o conftest.obj
3400 if { (ac_try="$ac_compile"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_compile") 2>&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; then
3410 for ac_file in conftest.o conftest.obj conftest.*; do
3411 test -f "$ac_file" || continue;
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3423 See \`config.log' for more details." >&5
3424 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3425 See \`config.log' for more details." >&2;}
3426 { (exit 1); exit 1; }; }
3429 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3431 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3432 echo "${ECHO_T}$ac_cv_objext" >&6; }
3433 OBJEXT=$ac_cv_objext
3435 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3436 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3437 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 cat >conftest.$ac_ext <<_ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3458 rm -f conftest.$ac_objext
3459 if { (ac_try="$ac_compile"
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_compile") 2>conftest.er1
3467 grep -v '^ *+' conftest.er1 >conftest.err
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } && {
3472 test -z "$ac_c_werror_flag" ||
3473 test ! -s conftest.err
3474 } && test -s conftest.$ac_objext; then
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3487 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3488 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3489 GCC=`test $ac_compiler_gnu = yes && echo yes`
3490 ac_test_CFLAGS=${CFLAGS+set}
3491 ac_save_CFLAGS=$CFLAGS
3492 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3493 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3494 if test "${ac_cv_prog_cc_g+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 ac_save_c_werror_flag=$ac_c_werror_flag
3498 ac_c_werror_flag=yes
3501 cat >conftest.$ac_ext <<_ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3516 rm -f conftest.$ac_objext
3517 if { (ac_try="$ac_compile"
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3525 grep -v '^ *+' conftest.er1 >conftest.err
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3563 grep -v '^ *+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && {
3568 test -z "$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3570 } && test -s conftest.$ac_objext; then
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 ac_c_werror_flag=$ac_save_c_werror_flag
3578 cat >conftest.$ac_ext <<_ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3593 rm -f conftest.$ac_objext
3594 if { (ac_try="$ac_compile"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_compile") 2>conftest.er1
3602 grep -v '^ *+' conftest.er1 >conftest.err
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } && {
3607 test -z "$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 } && test -s conftest.$ac_objext; then
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 ac_c_werror_flag=$ac_save_c_werror_flag
3627 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3628 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3629 if test "$ac_test_CFLAGS" = set; then
3630 CFLAGS=$ac_save_CFLAGS
3631 elif test $ac_cv_prog_cc_g = yes; then
3632 if test "$GCC" = yes; then
3638 if test "$GCC" = yes; then
3644 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3645 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3646 if test "${ac_cv_prog_cc_c89+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 ac_cv_prog_cc_c89=no
3651 cat >conftest.$ac_ext <<_ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3659 #include <sys/types.h>
3660 #include <sys/stat.h>
3661 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3662 struct buf { int x; };
3663 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3664 static char *e (p, i)
3670 static char *f (char * (*g) (char **, int), char **p, ...)
3675 s = g (p, va_arg (v,int));
3680 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3681 function prototypes and stuff, but not '\xHH' hex character constants.
3682 These don't provoke an error unfortunately, instead are silently treated
3683 as 'x'. The following induces an error, until -std is added to get
3684 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3685 array size at least. It's necessary to write '\x00'==0 to get something
3686 that's true only with -std. */
3687 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3689 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3690 inside strings and character constants. */
3692 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3694 int test (int i, double x);
3695 struct s1 {int (*f) (int a);};
3696 struct s2 {int (*f) (double a);};
3697 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3703 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3708 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3709 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711 CC="$ac_save_CC $ac_arg"
3712 rm -f conftest.$ac_objext
3713 if { (ac_try="$ac_compile"
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719 (eval "$ac_compile") 2>conftest.er1
3721 grep -v '^ *+' conftest.er1 >conftest.err
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } && {
3726 test -z "$ac_c_werror_flag" ||
3727 test ! -s conftest.err
3728 } && test -s conftest.$ac_objext; then
3729 ac_cv_prog_cc_c89=$ac_arg
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3737 rm -f core conftest.err conftest.$ac_objext
3738 test "x$ac_cv_prog_cc_c89" != "xno" && break
3740 rm -f conftest.$ac_ext
3745 case "x$ac_cv_prog_cc_c89" in
3747 { echo "$as_me:$LINENO: result: none needed" >&5
3748 echo "${ECHO_T}none needed" >&6; } ;;
3750 { echo "$as_me:$LINENO: result: unsupported" >&5
3751 echo "${ECHO_T}unsupported" >&6; } ;;
3753 CC="$CC $ac_cv_prog_cc_c89"
3754 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3755 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765 depcc="$CC" am_compiler_list=
3767 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3768 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3769 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3773 # We make a subdir and do the tests there. Otherwise we can end up
3774 # making bogus files that we don't know about and never remove. For
3775 # instance it was reported that on HP-UX the gcc test will end up
3776 # making a dummy file named `D' -- because `-MD' means `put the output
3779 # Copy depcomp to subdir because otherwise we won't find it if we're
3780 # using a relative directory.
3781 cp "$am_depcomp" conftest.dir
3783 # We will build objects and dependencies in a subdirectory because
3784 # it helps to detect inapplicable dependency modes. For instance
3785 # both Tru64's cc and ICC support -MD to output dependencies as a
3786 # side effect of compilation, but ICC will put the dependencies in
3787 # the current directory while Tru64 will put them in the object
3791 am_cv_CC_dependencies_compiler_type=none
3792 if test "$am_compiler_list" = ""; then
3793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3795 for depmode in $am_compiler_list; do
3796 # Setup a source with many dependencies, because some compilers
3797 # like to wrap large dependency lists on column 80 (with \), and
3798 # we should not choose a depcomp mode which is confused by this.
3800 # We need to recreate these files for each test, as the compiler may
3801 # overwrite some of them when testing with obscure command lines.
3802 # This happens at least with the AIX C compiler.
3804 for i in 1 2 3 4 5 6; do
3805 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3806 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3807 # Solaris 8's {/usr,}/bin/sh.
3808 touch sub/conftst$i.h
3810 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3814 # after this tag, mechanisms are not by side-effect, so they'll
3815 # only be used when explicitly requested
3816 if test "x$enable_dependency_tracking" = xyes; then
3824 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3825 # mode. It turns out that the SunPro C++ compiler does not properly
3826 # handle `-M -o', and we need to detect this.
3827 if depmode=$depmode \
3828 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3830 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3831 >/dev/null 2>conftest.err &&
3832 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3833 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3834 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3835 # icc doesn't choke on unknown options, it will just issue warnings
3836 # or remarks (even with -Werror). So we grep stderr for any message
3837 # that says an option was ignored or not supported.
3838 # When given -MP, icc 7.0 and 7.1 complain thusly:
3839 # icc: Command line warning: ignoring option '-M'; no argument required
3840 # The diagnosis changed in icc 8.0:
3841 # icc: Command line remark: option '-MP' not supported
3842 if (grep 'ignoring option' conftest.err ||
3843 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3844 am_cv_CC_dependencies_compiler_type=$depmode
3853 am_cv_CC_dependencies_compiler_type=none
3857 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3858 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3859 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3864 test "x$enable_dependency_tracking" != xno \
3865 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3867 am__fastdepCC_FALSE='#'
3869 am__fastdepCC_TRUE='#'
3870 am__fastdepCC_FALSE=
3876 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3877 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3878 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 ac_check_lib_save_LIBS=$LIBS
3882 LIBS="-lcposix $LIBS"
3883 cat >conftest.$ac_ext <<_ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3890 /* Override any GCC internal prototype to avoid an error.
3891 Use char because int might match the return type of a GCC
3892 builtin and then its argument prototype would still apply. */
3905 rm -f conftest.$ac_objext conftest$ac_exeext
3906 if { (ac_try="$ac_link"
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_link") 2>conftest.er1
3914 grep -v '^ *+' conftest.er1 >conftest.err
3916 cat conftest.err >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } && {
3919 test -z "$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3921 } && test -s conftest$ac_exeext &&
3922 $as_test_x conftest$ac_exeext; then
3923 ac_cv_lib_cposix_strerror=yes
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 ac_cv_lib_cposix_strerror=no
3931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3932 conftest$ac_exeext conftest.$ac_ext
3933 LIBS=$ac_check_lib_save_LIBS
3935 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3936 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3937 if test $ac_cv_lib_cposix_strerror = yes; then
3938 LIBS="$LIBS -lcposix"
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948 if test -n "$ac_tool_prefix"; then
3949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3953 if test "${ac_cv_prog_CC+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 if test -n "$CC"; then
3957 ac_cv_prog_CC="$CC" # Let the user override the test.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 if test -n "$CC"; then
3978 { echo "$as_me:$LINENO: result: $CC" >&5
3979 echo "${ECHO_T}$CC" >&6; }
3981 { echo "$as_me:$LINENO: result: no" >&5
3982 echo "${ECHO_T}no" >&6; }
3987 if test -z "$ac_cv_prog_CC"; then
3989 # Extract the first word of "gcc", so it can be a program name with args.
3990 set dummy gcc; ac_word=$2
3991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 if test -n "$ac_ct_CC"; then
3997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_ac_ct_CC="gcc"
4007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4017 if test -n "$ac_ct_CC"; then
4018 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4019 echo "${ECHO_T}$ac_ct_CC" >&6; }
4021 { echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6; }
4025 if test "x$ac_ct_CC" = x; then
4028 case $cross_compiling:$ac_tool_warned in
4030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4031 whose name does not start with the host triplet. If you think this
4032 configuration is useful to you, please write to autoconf@gnu.org." >&5
4033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4034 whose name does not start with the host triplet. If you think this
4035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4036 ac_tool_warned=yes ;;
4044 if test -z "$CC"; then
4045 if test -n "$ac_tool_prefix"; then
4046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4047 set dummy ${ac_tool_prefix}cc; ac_word=$2
4048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4050 if test "${ac_cv_prog_CC+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063 ac_cv_prog_CC="${ac_tool_prefix}cc"
4064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 if test -n "$CC"; then
4075 { echo "$as_me:$LINENO: result: $CC" >&5
4076 echo "${ECHO_T}$CC" >&6; }
4078 { echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6; }
4085 if test -z "$CC"; then
4086 # Extract the first word of "cc", so it can be a program name with args.
4087 set dummy cc; ac_word=$2
4088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4090 if test "${ac_cv_prog_CC+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 if test -n "$CC"; then
4094 ac_cv_prog_CC="$CC" # Let the user override the test.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4105 ac_prog_rejected=yes
4109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 if test $ac_prog_rejected = yes; then
4117 # We found a bogon in the path, so make sure we never use it.
4118 set dummy $ac_cv_prog_CC
4120 if test $# != 0; then
4121 # We chose a different compiler from the bogus one.
4122 # However, it has the same basename, so the bogon will be chosen
4123 # first if we set CC to just the basename; use the full file name.
4125 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4131 if test -n "$CC"; then
4132 { echo "$as_me:$LINENO: result: $CC" >&5
4133 echo "${ECHO_T}$CC" >&6; }
4135 { echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6; }
4141 if test -z "$CC"; then
4142 if test -n "$ac_tool_prefix"; then
4143 for ac_prog in cl.exe
4145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4149 if test "${ac_cv_prog_CC+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 if test -n "$CC"; then
4153 ac_cv_prog_CC="$CC" # Let the user override the test.
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 if test -n "$CC"; then
4174 { echo "$as_me:$LINENO: result: $CC" >&5
4175 echo "${ECHO_T}$CC" >&6; }
4177 { echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6; }
4182 test -n "$CC" && break
4185 if test -z "$CC"; then
4187 for ac_prog in cl.exe
4189 # Extract the first word of "$ac_prog", so it can be a program name with args.
4190 set dummy $ac_prog; ac_word=$2
4191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 if test -n "$ac_ct_CC"; then
4197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206 ac_cv_prog_ac_ct_CC="$ac_prog"
4207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4217 if test -n "$ac_ct_CC"; then
4218 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4219 echo "${ECHO_T}$ac_ct_CC" >&6; }
4221 { echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6; }
4226 test -n "$ac_ct_CC" && break
4229 if test "x$ac_ct_CC" = x; then
4232 case $cross_compiling:$ac_tool_warned in
4234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4235 whose name does not start with the host triplet. If you think this
4236 configuration is useful to you, please write to autoconf@gnu.org." >&5
4237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4238 whose name does not start with the host triplet. If you think this
4239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4240 ac_tool_warned=yes ;;
4249 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4250 See \`config.log' for more details." >&5
4251 echo "$as_me: error: no acceptable C compiler found in \$PATH
4252 See \`config.log' for more details." >&2;}
4253 { (exit 1); exit 1; }; }
4255 # Provide some information about the compiler.
4256 echo "$as_me:$LINENO: checking for C compiler version" >&5
4257 ac_compiler=`set X $ac_compile; echo $2`
4258 { (ac_try="$ac_compiler --version >&5"
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compiler --version >&5") 2>&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }
4268 { (ac_try="$ac_compiler -v >&5"
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_compiler -v >&5") 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }
4278 { (ac_try="$ac_compiler -V >&5"
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_compiler -V >&5") 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }
4289 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4290 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4291 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 cat >conftest.$ac_ext <<_ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4312 rm -f conftest.$ac_objext
4313 if { (ac_try="$ac_compile"
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_compile") 2>conftest.er1
4321 grep -v '^ *+' conftest.er1 >conftest.err
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && {
4326 test -z "$ac_c_werror_flag" ||
4327 test ! -s conftest.err
4328 } && test -s conftest.$ac_objext; then
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4341 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4342 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4343 GCC=`test $ac_compiler_gnu = yes && echo yes`
4344 ac_test_CFLAGS=${CFLAGS+set}
4345 ac_save_CFLAGS=$CFLAGS
4346 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4347 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4348 if test "${ac_cv_prog_cc_g+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 ac_save_c_werror_flag=$ac_c_werror_flag
4352 ac_c_werror_flag=yes
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4370 rm -f conftest.$ac_objext
4371 if { (ac_try="$ac_compile"
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_compile") 2>conftest.er1
4379 grep -v '^ *+' conftest.er1 >conftest.err
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } && {
4384 test -z "$ac_c_werror_flag" ||
4385 test ! -s conftest.err
4386 } && test -s conftest.$ac_objext; then
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4393 cat >conftest.$ac_ext <<_ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4408 rm -f conftest.$ac_objext
4409 if { (ac_try="$ac_compile"
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4415 (eval "$ac_compile") 2>conftest.er1
4417 grep -v '^ *+' conftest.er1 >conftest.err
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } && {
4422 test -z "$ac_c_werror_flag" ||
4423 test ! -s conftest.err
4424 } && test -s conftest.$ac_objext; then
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4430 ac_c_werror_flag=$ac_save_c_werror_flag
4432 cat >conftest.$ac_ext <<_ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4447 rm -f conftest.$ac_objext
4448 if { (ac_try="$ac_compile"
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4456 grep -v '^ *+' conftest.er1 >conftest.err
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 ac_c_werror_flag=$ac_save_c_werror_flag
4481 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4482 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4483 if test "$ac_test_CFLAGS" = set; then
4484 CFLAGS=$ac_save_CFLAGS
4485 elif test $ac_cv_prog_cc_g = yes; then
4486 if test "$GCC" = yes; then
4492 if test "$GCC" = yes; then
4498 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4499 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4500 if test "${ac_cv_prog_cc_c89+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 ac_cv_prog_cc_c89=no
4505 cat >conftest.$ac_ext <<_ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4513 #include <sys/types.h>
4514 #include <sys/stat.h>
4515 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4516 struct buf { int x; };
4517 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4518 static char *e (p, i)
4524 static char *f (char * (*g) (char **, int), char **p, ...)
4529 s = g (p, va_arg (v,int));
4534 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4535 function prototypes and stuff, but not '\xHH' hex character constants.
4536 These don't provoke an error unfortunately, instead are silently treated
4537 as 'x'. The following induces an error, until -std is added to get
4538 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4539 array size at least. It's necessary to write '\x00'==0 to get something
4540 that's true only with -std. */
4541 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4543 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4544 inside strings and character constants. */
4546 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4548 int test (int i, double x);
4549 struct s1 {int (*f) (int a);};
4550 struct s2 {int (*f) (double a);};
4551 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4557 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4562 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4563 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4565 CC="$ac_save_CC $ac_arg"
4566 rm -f conftest.$ac_objext
4567 if { (ac_try="$ac_compile"
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_compile") 2>conftest.er1
4575 grep -v '^ *+' conftest.er1 >conftest.err
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } && {
4580 test -z "$ac_c_werror_flag" ||
4581 test ! -s conftest.err
4582 } && test -s conftest.$ac_objext; then
4583 ac_cv_prog_cc_c89=$ac_arg
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4591 rm -f core conftest.err conftest.$ac_objext
4592 test "x$ac_cv_prog_cc_c89" != "xno" && break
4594 rm -f conftest.$ac_ext
4599 case "x$ac_cv_prog_cc_c89" in
4601 { echo "$as_me:$LINENO: result: none needed" >&5
4602 echo "${ECHO_T}none needed" >&6; } ;;
4604 { echo "$as_me:$LINENO: result: unsupported" >&5
4605 echo "${ECHO_T}unsupported" >&6; } ;;
4607 CC="$CC $ac_cv_prog_cc_c89"
4608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4609 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4614 ac_cpp='$CPP $CPPFLAGS'
4615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619 depcc="$CC" am_compiler_list=
4621 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4622 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4623 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4627 # We make a subdir and do the tests there. Otherwise we can end up
4628 # making bogus files that we don't know about and never remove. For
4629 # instance it was reported that on HP-UX the gcc test will end up
4630 # making a dummy file named `D' -- because `-MD' means `put the output
4633 # Copy depcomp to subdir because otherwise we won't find it if we're
4634 # using a relative directory.
4635 cp "$am_depcomp" conftest.dir
4637 # We will build objects and dependencies in a subdirectory because
4638 # it helps to detect inapplicable dependency modes. For instance
4639 # both Tru64's cc and ICC support -MD to output dependencies as a
4640 # side effect of compilation, but ICC will put the dependencies in
4641 # the current directory while Tru64 will put them in the object
4645 am_cv_CC_dependencies_compiler_type=none
4646 if test "$am_compiler_list" = ""; then
4647 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4649 for depmode in $am_compiler_list; do
4650 # Setup a source with many dependencies, because some compilers
4651 # like to wrap large dependency lists on column 80 (with \), and
4652 # we should not choose a depcomp mode which is confused by this.
4654 # We need to recreate these files for each test, as the compiler may
4655 # overwrite some of them when testing with obscure command lines.
4656 # This happens at least with the AIX C compiler.
4658 for i in 1 2 3 4 5 6; do
4659 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4660 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4661 # Solaris 8's {/usr,}/bin/sh.
4662 touch sub/conftst$i.h
4664 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4668 # after this tag, mechanisms are not by side-effect, so they'll
4669 # only be used when explicitly requested
4670 if test "x$enable_dependency_tracking" = xyes; then
4678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4679 # mode. It turns out that the SunPro C++ compiler does not properly
4680 # handle `-M -o', and we need to detect this.
4681 if depmode=$depmode \
4682 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4683 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4684 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4685 >/dev/null 2>conftest.err &&
4686 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4687 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4688 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4689 # icc doesn't choke on unknown options, it will just issue warnings
4690 # or remarks (even with -Werror). So we grep stderr for any message
4691 # that says an option was ignored or not supported.
4692 # When given -MP, icc 7.0 and 7.1 complain thusly:
4693 # icc: Command line warning: ignoring option '-M'; no argument required
4694 # The diagnosis changed in icc 8.0:
4695 # icc: Command line remark: option '-MP' not supported
4696 if (grep 'ignoring option' conftest.err ||
4697 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4698 am_cv_CC_dependencies_compiler_type=$depmode
4707 am_cv_CC_dependencies_compiler_type=none
4711 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4712 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4713 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4718 test "x$enable_dependency_tracking" != xno \
4719 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4721 am__fastdepCC_FALSE='#'
4723 am__fastdepCC_TRUE='#'
4724 am__fastdepCC_FALSE=
4729 ac_cpp='$CPP $CPPFLAGS'
4730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_prog_CC+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 if test -n "$CC"; then
4742 ac_cv_prog_CC="$CC" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 if test -n "$CC"; then
4763 { echo "$as_me:$LINENO: result: $CC" >&5
4764 echo "${ECHO_T}$CC" >&6; }
4766 { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4772 if test -z "$ac_cv_prog_CC"; then
4774 # Extract the first word of "gcc", so it can be a program name with args.
4775 set dummy gcc; ac_word=$2
4776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4778 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 if test -n "$ac_ct_CC"; then
4782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_ac_ct_CC="gcc"
4792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4802 if test -n "$ac_ct_CC"; then
4803 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4804 echo "${ECHO_T}$ac_ct_CC" >&6; }
4806 { echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6; }
4810 if test "x$ac_ct_CC" = x; then
4813 case $cross_compiling:$ac_tool_warned in
4815 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4816 whose name does not start with the host triplet. If you think this
4817 configuration is useful to you, please write to autoconf@gnu.org." >&5
4818 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4819 whose name does not start with the host triplet. If you think this
4820 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4821 ac_tool_warned=yes ;;
4829 if test -z "$CC"; then
4830 if test -n "$ac_tool_prefix"; then
4831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4832 set dummy ${ac_tool_prefix}cc; ac_word=$2
4833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4835 if test "${ac_cv_prog_CC+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 if test -n "$CC"; then
4839 ac_cv_prog_CC="$CC" # Let the user override the test.
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 test -z "$as_dir" && as_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848 ac_cv_prog_CC="${ac_tool_prefix}cc"
4849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 if test -n "$CC"; then
4860 { echo "$as_me:$LINENO: result: $CC" >&5
4861 echo "${ECHO_T}$CC" >&6; }
4863 { echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6; }
4870 if test -z "$CC"; then
4871 # Extract the first word of "cc", so it can be a program name with args.
4872 set dummy cc; ac_word=$2
4873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4875 if test "${ac_cv_prog_CC+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 if test -n "$CC"; then
4879 ac_cv_prog_CC="$CC" # Let the user override the test.
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4890 ac_prog_rejected=yes
4894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 if test $ac_prog_rejected = yes; then
4902 # We found a bogon in the path, so make sure we never use it.
4903 set dummy $ac_cv_prog_CC
4905 if test $# != 0; then
4906 # We chose a different compiler from the bogus one.
4907 # However, it has the same basename, so the bogon will be chosen
4908 # first if we set CC to just the basename; use the full file name.
4910 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4916 if test -n "$CC"; then
4917 { echo "$as_me:$LINENO: result: $CC" >&5
4918 echo "${ECHO_T}$CC" >&6; }
4920 { echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6; }
4926 if test -z "$CC"; then
4927 if test -n "$ac_tool_prefix"; then
4928 for ac_prog in cl.exe
4930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4934 if test "${ac_cv_prog_CC+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 if test -n "$CC"; then
4938 ac_cv_prog_CC="$CC" # Let the user override the test.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4947 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 if test -n "$CC"; then
4959 { echo "$as_me:$LINENO: result: $CC" >&5
4960 echo "${ECHO_T}$CC" >&6; }
4962 { echo "$as_me:$LINENO: result: no" >&5
4963 echo "${ECHO_T}no" >&6; }
4967 test -n "$CC" && break
4970 if test -z "$CC"; then
4972 for ac_prog in cl.exe
4974 # Extract the first word of "$ac_prog", so it can be a program name with args.
4975 set dummy $ac_prog; ac_word=$2
4976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 if test -n "$ac_ct_CC"; then
4982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 ac_cv_prog_ac_ct_CC="$ac_prog"
4992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5002 if test -n "$ac_ct_CC"; then
5003 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5004 echo "${ECHO_T}$ac_ct_CC" >&6; }
5006 { echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6; }
5011 test -n "$ac_ct_CC" && break
5014 if test "x$ac_ct_CC" = x; then
5017 case $cross_compiling:$ac_tool_warned in
5019 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5020 whose name does not start with the host triplet. If you think this
5021 configuration is useful to you, please write to autoconf@gnu.org." >&5
5022 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5023 whose name does not start with the host triplet. If you think this
5024 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5025 ac_tool_warned=yes ;;
5034 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5035 See \`config.log' for more details." >&5
5036 echo "$as_me: error: no acceptable C compiler found in \$PATH
5037 See \`config.log' for more details." >&2;}
5038 { (exit 1); exit 1; }; }
5040 # Provide some information about the compiler.
5041 echo "$as_me:$LINENO: checking for C compiler version" >&5
5042 ac_compiler=`set X $ac_compile; echo $2`
5043 { (ac_try="$ac_compiler --version >&5"
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_compiler --version >&5") 2>&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }
5053 { (ac_try="$ac_compiler -v >&5"
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059 (eval "$ac_compiler -v >&5") 2>&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }
5063 { (ac_try="$ac_compiler -V >&5"
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069 (eval "$ac_compiler -V >&5") 2>&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }
5074 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5075 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5076 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 cat >conftest.$ac_ext <<_ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5097 rm -f conftest.$ac_objext
5098 if { (ac_try="$ac_compile"
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_compile") 2>conftest.er1
5106 grep -v '^ *+' conftest.er1 >conftest.err
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } && {
5111 test -z "$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5113 } && test -s conftest.$ac_objext; then
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5126 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5128 GCC=`test $ac_compiler_gnu = yes && echo yes`
5129 ac_test_CFLAGS=${CFLAGS+set}
5130 ac_save_CFLAGS=$CFLAGS
5131 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5132 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5133 if test "${ac_cv_prog_cc_g+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 ac_save_c_werror_flag=$ac_c_werror_flag
5137 ac_c_werror_flag=yes
5140 cat >conftest.$ac_ext <<_ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5155 rm -f conftest.$ac_objext
5156 if { (ac_try="$ac_compile"
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162 (eval "$ac_compile") 2>conftest.er1
5164 grep -v '^ *+' conftest.er1 >conftest.err
5166 cat conftest.err >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } && {
5169 test -z "$ac_c_werror_flag" ||
5170 test ! -s conftest.err
5171 } && test -s conftest.$ac_objext; then
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5178 cat >conftest.$ac_ext <<_ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5193 rm -f conftest.$ac_objext
5194 if { (ac_try="$ac_compile"
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compile") 2>conftest.er1
5202 grep -v '^ *+' conftest.er1 >conftest.err
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest.$ac_objext; then
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 ac_c_werror_flag=$ac_save_c_werror_flag
5217 cat >conftest.$ac_ext <<_ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5232 rm -f conftest.$ac_objext
5233 if { (ac_try="$ac_compile"
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239 (eval "$ac_compile") 2>conftest.er1
5241 grep -v '^ *+' conftest.er1 >conftest.err
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } && {
5246 test -z "$ac_c_werror_flag" ||
5247 test ! -s conftest.err
5248 } && test -s conftest.$ac_objext; then
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 ac_c_werror_flag=$ac_save_c_werror_flag
5266 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5267 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5268 if test "$ac_test_CFLAGS" = set; then
5269 CFLAGS=$ac_save_CFLAGS
5270 elif test $ac_cv_prog_cc_g = yes; then
5271 if test "$GCC" = yes; then
5277 if test "$GCC" = yes; then
5283 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5284 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5285 if test "${ac_cv_prog_cc_c89+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 ac_cv_prog_cc_c89=no
5290 cat >conftest.$ac_ext <<_ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5298 #include <sys/types.h>
5299 #include <sys/stat.h>
5300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5301 struct buf { int x; };
5302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5303 static char *e (p, i)
5309 static char *f (char * (*g) (char **, int), char **p, ...)
5314 s = g (p, va_arg (v,int));
5319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5320 function prototypes and stuff, but not '\xHH' hex character constants.
5321 These don't provoke an error unfortunately, instead are silently treated
5322 as 'x'. The following induces an error, until -std is added to get
5323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5324 array size at least. It's necessary to write '\x00'==0 to get something
5325 that's true only with -std. */
5326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5329 inside strings and character constants. */
5331 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5333 int test (int i, double x);
5334 struct s1 {int (*f) (int a);};
5335 struct s2 {int (*f) (double a);};
5336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5342 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5347 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5348 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5350 CC="$ac_save_CC $ac_arg"
5351 rm -f conftest.$ac_objext
5352 if { (ac_try="$ac_compile"
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5360 grep -v '^ *+' conftest.er1 >conftest.err
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && {
5365 test -z "$ac_c_werror_flag" ||
5366 test ! -s conftest.err
5367 } && test -s conftest.$ac_objext; then
5368 ac_cv_prog_cc_c89=$ac_arg
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5376 rm -f core conftest.err conftest.$ac_objext
5377 test "x$ac_cv_prog_cc_c89" != "xno" && break
5379 rm -f conftest.$ac_ext
5384 case "x$ac_cv_prog_cc_c89" in
5386 { echo "$as_me:$LINENO: result: none needed" >&5
5387 echo "${ECHO_T}none needed" >&6; } ;;
5389 { echo "$as_me:$LINENO: result: unsupported" >&5
5390 echo "${ECHO_T}unsupported" >&6; } ;;
5392 CC="$CC $ac_cv_prog_cc_c89"
5393 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5394 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5399 ac_cpp='$CPP $CPPFLAGS'
5400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404 depcc="$CC" am_compiler_list=
5406 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5408 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5412 # We make a subdir and do the tests there. Otherwise we can end up
5413 # making bogus files that we don't know about and never remove. For
5414 # instance it was reported that on HP-UX the gcc test will end up
5415 # making a dummy file named `D' -- because `-MD' means `put the output
5418 # Copy depcomp to subdir because otherwise we won't find it if we're
5419 # using a relative directory.
5420 cp "$am_depcomp" conftest.dir
5422 # We will build objects and dependencies in a subdirectory because
5423 # it helps to detect inapplicable dependency modes. For instance
5424 # both Tru64's cc and ICC support -MD to output dependencies as a
5425 # side effect of compilation, but ICC will put the dependencies in
5426 # the current directory while Tru64 will put them in the object
5430 am_cv_CC_dependencies_compiler_type=none
5431 if test "$am_compiler_list" = ""; then
5432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5434 for depmode in $am_compiler_list; do
5435 # Setup a source with many dependencies, because some compilers
5436 # like to wrap large dependency lists on column 80 (with \), and
5437 # we should not choose a depcomp mode which is confused by this.
5439 # We need to recreate these files for each test, as the compiler may
5440 # overwrite some of them when testing with obscure command lines.
5441 # This happens at least with the AIX C compiler.
5443 for i in 1 2 3 4 5 6; do
5444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5446 # Solaris 8's {/usr,}/bin/sh.
5447 touch sub/conftst$i.h
5449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5453 # after this tag, mechanisms are not by side-effect, so they'll
5454 # only be used when explicitly requested
5455 if test "x$enable_dependency_tracking" = xyes; then
5463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5464 # mode. It turns out that the SunPro C++ compiler does not properly
5465 # handle `-M -o', and we need to detect this.
5466 if depmode=$depmode \
5467 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5469 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5470 >/dev/null 2>conftest.err &&
5471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5472 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5474 # icc doesn't choke on unknown options, it will just issue warnings
5475 # or remarks (even with -Werror). So we grep stderr for any message
5476 # that says an option was ignored or not supported.
5477 # When given -MP, icc 7.0 and 7.1 complain thusly:
5478 # icc: Command line warning: ignoring option '-M'; no argument required
5479 # The diagnosis changed in icc 8.0:
5480 # icc: Command line remark: option '-MP' not supported
5481 if (grep 'ignoring option' conftest.err ||
5482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5483 am_cv_CC_dependencies_compiler_type=$depmode
5492 am_cv_CC_dependencies_compiler_type=none
5496 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5497 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5498 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5503 test "x$enable_dependency_tracking" != xno \
5504 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5506 am__fastdepCC_FALSE='#'
5508 am__fastdepCC_TRUE='#'
5509 am__fastdepCC_FALSE=
5514 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5517 ac_cpp='$CPP $CPPFLAGS'
5518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5521 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5522 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5523 # On Suns, sometimes $CPP names a directory.
5524 if test -n "$CPP" && test -d "$CPP"; then
5527 if test -z "$CPP"; then
5528 if test "${ac_cv_prog_CPP+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 # Double quotes because CPP needs to be expanded
5532 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5535 for ac_c_preproc_warn_flag in '' yes
5537 # Use a header file that comes with gcc, so configuring glibc
5538 # with a fresh cross-compiler works.
5539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5540 # <limits.h> exists even on freestanding compilers.
5541 # On the NeXT, cc -E runs the code through the compiler's parser,
5542 # not just through cpp. "Syntax error" is here to catch this case.
5543 cat >conftest.$ac_ext <<_ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5550 # include <limits.h>
5552 # include <assert.h>
5556 if { (ac_try="$ac_cpp conftest.$ac_ext"
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5564 grep -v '^ *+' conftest.er1 >conftest.err
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } >/dev/null && {
5569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 # Broken: fails on valid input.
5581 rm -f conftest.err conftest.$ac_ext
5583 # OK, works on sane cases. Now check whether nonexistent headers
5584 # can be detected and how.
5585 cat >conftest.$ac_ext <<_ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 #include <ac_nonexistent.h>
5593 if { (ac_try="$ac_cpp conftest.$ac_ext"
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5601 grep -v '^ *+' conftest.er1 >conftest.err
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } >/dev/null && {
5606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5609 # Broken: success on invalid input.
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5615 # Passes both tests.
5620 rm -f conftest.err conftest.$ac_ext
5623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5624 rm -f conftest.err conftest.$ac_ext
5625 if $ac_preproc_ok; then
5637 { echo "$as_me:$LINENO: result: $CPP" >&5
5638 echo "${ECHO_T}$CPP" >&6; }
5640 for ac_c_preproc_warn_flag in '' yes
5642 # Use a header file that comes with gcc, so configuring glibc
5643 # with a fresh cross-compiler works.
5644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 # <limits.h> exists even on freestanding compilers.
5646 # On the NeXT, cc -E runs the code through the compiler's parser,
5647 # not just through cpp. "Syntax error" is here to catch this case.
5648 cat >conftest.$ac_ext <<_ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5655 # include <limits.h>
5657 # include <assert.h>
5661 if { (ac_try="$ac_cpp conftest.$ac_ext"
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } >/dev/null && {
5674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5682 # Broken: fails on valid input.
5686 rm -f conftest.err conftest.$ac_ext
5688 # OK, works on sane cases. Now check whether nonexistent headers
5689 # can be detected and how.
5690 cat >conftest.$ac_ext <<_ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #include <ac_nonexistent.h>
5698 if { (ac_try="$ac_cpp conftest.$ac_ext"
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5706 grep -v '^ *+' conftest.er1 >conftest.err
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } >/dev/null && {
5711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5714 # Broken: success on invalid input.
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 # Passes both tests.
5725 rm -f conftest.err conftest.$ac_ext
5728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5729 rm -f conftest.err conftest.$ac_ext
5730 if $ac_preproc_ok; then
5733 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5734 See \`config.log' for more details." >&5
5735 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5736 See \`config.log' for more details." >&2;}
5737 { (exit 1); exit 1; }; }
5741 ac_cpp='$CPP $CPPFLAGS'
5742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5748 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5750 if test -z "$CC_FOR_BUILD"; then
5751 if test "$#" = yes; then
5752 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5753 See \`config.log' for more details." >&5
5754 echo "$as_me: error: cannot run test program while cross compiling
5755 See \`config.log' for more details." >&2;}
5756 { (exit 1); exit 1; }; }
5758 cat >conftest.$ac_ext <<_ACEOF
5759 int main(){return 0;}
5761 rm -f conftest$ac_exeext
5762 if { (ac_try="$ac_link"
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_link") 2>&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5772 { (case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_try") 2>&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5783 echo "$as_me: program exited with status $ac_status" >&5
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5796 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5797 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5798 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5800 if test -n "$ac_build_tool_prefix"; then
5801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5802 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5805 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 if test -n "$CC_FOR_BUILD"; then
5809 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5829 if test -n "$CC_FOR_BUILD"; then
5830 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5831 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5833 { echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6; }
5839 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5840 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5841 # Extract the first word of "gcc", so it can be a program name with args.
5842 set dummy gcc; ac_word=$2
5843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5845 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 if test -n "$ac_ct_CC_FOR_BUILD"; then
5849 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5869 if test -n "$ac_ct_CC_FOR_BUILD"; then
5870 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5871 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5873 { echo "$as_me:$LINENO: result: no" >&5
5874 echo "${ECHO_T}no" >&6; }
5877 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5880 case $#:$ac_tool_warned in
5882 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5883 whose name does not start with the build triplet. If you think this
5884 configuration is useful to you, please write to autoconf@gnu.org." >&5
5885 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5886 whose name does not start with the build triplet. If you think this
5887 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5888 ac_tool_warned=yes ;;
5890 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5893 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5896 if test -z "$CC_FOR_BUILD"; then
5897 if test -n "$ac_build_tool_prefix"; then
5898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5899 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5902 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 if test -n "$CC_FOR_BUILD"; then
5906 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5926 if test -n "$CC_FOR_BUILD"; then
5927 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5928 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5930 { echo "$as_me:$LINENO: result: no" >&5
5931 echo "${ECHO_T}no" >&6; }
5937 if test -z "$CC_FOR_BUILD"; then
5938 # Extract the first word of "cc", so it can be a program name with args.
5939 set dummy cc; ac_word=$2
5940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5942 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 if test -n "$CC_FOR_BUILD"; then
5946 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5957 ac_prog_rejected=yes
5960 ac_cv_prog_CC_FOR_BUILD="cc"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 if test $ac_prog_rejected = yes; then
5969 # We found a bogon in the path, so make sure we never use it.
5970 set dummy $ac_cv_prog_CC_FOR_BUILD
5972 if test $# != 0; then
5973 # We chose a different compiler from the bogus one.
5974 # However, it has the same basename, so the bogon will be chosen
5975 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5977 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5982 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5983 if test -n "$CC_FOR_BUILD"; then
5984 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5985 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5987 { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5993 if test -z "$CC_FOR_BUILD"; then
5994 if test -n "$ac_build_tool_prefix"; then
5995 for ac_prog in cl.exe
5997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5998 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 if test -n "$CC_FOR_BUILD"; then
6005 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
6015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6025 if test -n "$CC_FOR_BUILD"; then
6026 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
6027 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
6029 { echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6; }
6034 test -n "$CC_FOR_BUILD" && break
6037 if test -z "$CC_FOR_BUILD"; then
6038 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6039 for ac_prog in cl.exe
6041 # Extract the first word of "$ac_prog", so it can be a program name with args.
6042 set dummy $ac_prog; ac_word=$2
6043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 if test -n "$ac_ct_CC_FOR_BUILD"; then
6049 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
6059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6069 if test -n "$ac_ct_CC_FOR_BUILD"; then
6070 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
6071 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
6073 { echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6; }
6078 test -n "$ac_ct_CC_FOR_BUILD" && break
6081 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6084 case $#:$ac_tool_warned in
6086 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6087 whose name does not start with the build triplet. If you think this
6088 configuration is useful to you, please write to autoconf@gnu.org." >&5
6089 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6090 whose name does not start with the build triplet. If you think this
6091 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6092 ac_tool_warned=yes ;;
6094 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6101 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6102 See \`config.log' for more details." >&5
6103 echo "$as_me: error: no acceptable C compiler found in \$PATH
6104 See \`config.log' for more details." >&2;}
6105 { (exit 1); exit 1; }; }
6107 # Provide some information about the compiler.
6108 echo "$as_me:$LINENO: checking for C compiler version" >&5
6109 ac_compiler=`set X $ac_build_compile; echo $2`
6110 { (ac_try="$ac_compiler --version >&5"
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compiler --version >&5") 2>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }
6120 { (ac_try="$ac_compiler -v >&5"
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_compiler -v >&5") 2>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }
6130 { (ac_try="$ac_compiler -V >&5"
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compiler -V >&5") 2>&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }
6141 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6142 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
6143 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 cat >conftest.$ac_ext <<_ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6164 rm -f conftest.$ac_build_objext
6165 if { (ac_try="$ac_build_compile"
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_build_compile") 2>conftest.er1
6173 grep -v '^ *+' conftest.er1 >conftest.err
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && {
6178 test -z "$ac_c_werror_flag" ||
6179 test ! -s conftest.err
6180 } && test -s conftest.$ac_build_objext; then
6181 ac_build_compiler_gnu=yes
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 ac_build_compiler_gnu=no
6189 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6190 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
6193 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6194 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6195 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
6196 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
6197 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
6198 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
6199 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
6200 if test "${ac_cv_build_prog_cc_g+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 ac_save_c_werror_flag=$ac_c_werror_flag
6204 ac_c_werror_flag=yes
6205 ac_cv_build_prog_cc_g=no
6206 CFLAGS_FOR_BUILD="-g"
6207 cat >conftest.$ac_ext <<_ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6222 rm -f conftest.$ac_build_objext
6223 if { (ac_try="$ac_build_compile"
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229 (eval "$ac_build_compile") 2>conftest.er1
6231 grep -v '^ *+' conftest.er1 >conftest.err
6233 cat conftest.err >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } && {
6236 test -z "$ac_c_werror_flag" ||
6237 test ! -s conftest.err
6238 } && test -s conftest.$ac_build_objext; then
6239 ac_cv_build_prog_cc_g=yes
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6245 cat >conftest.$ac_ext <<_ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6260 rm -f conftest.$ac_build_objext
6261 if { (ac_try="$ac_build_compile"
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_build_compile") 2>conftest.er1
6269 grep -v '^ *+' conftest.er1 >conftest.err
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } && {
6274 test -z "$ac_c_werror_flag" ||
6275 test ! -s conftest.err
6276 } && test -s conftest.$ac_build_objext; then
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6282 ac_c_werror_flag=$ac_save_c_werror_flag
6283 CFLAGS_FOR_BUILD="-g"
6284 cat >conftest.$ac_ext <<_ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6299 rm -f conftest.$ac_build_objext
6300 if { (ac_try="$ac_build_compile"
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_build_compile") 2>conftest.er1
6308 grep -v '^ *+' conftest.er1 >conftest.err
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } && {
6313 test -z "$ac_c_werror_flag" ||
6314 test ! -s conftest.err
6315 } && test -s conftest.$ac_build_objext; then
6316 ac_cv_build_prog_cc_g=yes
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6324 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6327 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6330 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6331 ac_c_werror_flag=$ac_save_c_werror_flag
6333 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6334 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6335 if test "$ac_test_CFLAGS" = set; then
6336 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6337 elif test $ac_cv_build_prog_cc_g = yes; then
6338 if test "$GCC" = yes; then
6339 CFLAGS_FOR_BUILD="-g -O2"
6341 CFLAGS_FOR_BUILD="-g"
6344 if test "$GCC" = yes; then
6345 CFLAGS_FOR_BUILD="-O2"
6350 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6351 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6352 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 ac_cv_build_prog_cc_stdc=no
6356 ac_save_CC=$CC_FOR_BUILD
6357 cat >conftest.$ac_ext <<_ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6365 #include <sys/types.h>
6366 #include <sys/stat.h>
6367 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6368 struct buf { int x; };
6369 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6370 static char *e (p, i)
6376 static char *f (char * (*g) (char **, int), char **p, ...)
6381 s = g (p, va_arg (v,int));
6386 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6387 function prototypes and stuff, but not '\xHH' hex character constants.
6388 These don't provoke an error unfortunately, instead are silently treated
6389 as 'x'. The following induces an error, until -std is added to get
6390 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6391 array size at least. It's necessary to write '\x00'==0 to get something
6392 that's true only with -std. */
6393 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6395 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6396 inside strings and character constants. */
6398 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6400 int test (int i, double x);
6401 struct s1 {int (*f) (int a);};
6402 struct s2 {int (*f) (double a);};
6403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6414 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6415 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6417 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6418 rm -f conftest.$ac_build_objext
6419 if { (ac_try="$ac_build_compile"
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_build_compile") 2>conftest.er1
6427 grep -v '^ *+' conftest.er1 >conftest.err
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } && {
6432 test -z "$ac_c_werror_flag" ||
6433 test ! -s conftest.err
6434 } && test -s conftest.$ac_build_objext; then
6435 ac_cv_build_prog_cc_stdc=$ac_arg
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6443 rm -f core conftest.err conftest.$ac_build_objext
6444 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6446 rm -f conftest.$ac_ext
6447 CC_FOR_BUILD=$ac_save_CC
6451 case "x$ac_cv_build_prog_cc_stdc" in
6453 { echo "$as_me:$LINENO: result: none needed" >&5
6454 echo "${ECHO_T}none needed" >&6; } ;;
6456 { echo "$as_me:$LINENO: result: unsupported" >&5
6457 echo "${ECHO_T}unsupported" >&6; } ;;
6459 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6460 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6461 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6466 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6467 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6468 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6471 depcc="$CC_FOR_BUILD" am_compiler_list=
6473 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6474 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6475 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6479 # We make a subdir and do the tests there. Otherwise we can end up
6480 # making bogus files that we don't know about and never remove. For
6481 # instance it was reported that on HP-UX the gcc test will end up
6482 # making a dummy file named `D' -- because `-MD' means `put the output
6485 # Copy depcomp to subdir because otherwise we won't find it if we're
6486 # using a relative directory.
6487 cp "$am_depcomp" conftest.dir
6489 # We will build objects and dependencies in a subdirectory because
6490 # it helps to detect inapplicable dependency modes. For instance
6491 # both Tru64's cc and ICC support -MD to output dependencies as a
6492 # side effect of compilation, but ICC will put the dependencies in
6493 # the current directory while Tru64 will put them in the object
6497 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6498 if test "$am_compiler_list" = ""; then
6499 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6501 for depmode in $am_compiler_list; do
6502 # Setup a source with many dependencies, because some compilers
6503 # like to wrap large dependency lists on column 80 (with \), and
6504 # we should not choose a depcomp mode which is confused by this.
6506 # We need to recreate these files for each test, as the compiler may
6507 # overwrite some of them when testing with obscure command lines.
6508 # This happens at least with the AIX C compiler.
6510 for i in 1 2 3 4 5 6; do
6511 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6512 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6513 # Solaris 8's {/usr,}/bin/sh.
6514 touch sub/conftst$i.h
6516 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6520 # after this tag, mechanisms are not by side-effect, so they'll
6521 # only be used when explicitly requested
6522 if test "x$enable_dependency_tracking" = xyes; then
6530 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6531 # mode. It turns out that the SunPro C++ compiler does not properly
6532 # handle `-M -o', and we need to detect this.
6533 if depmode=$depmode \
6534 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6535 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6536 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6537 >/dev/null 2>conftest.err &&
6538 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6539 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6541 # icc doesn't choke on unknown options, it will just issue warnings
6542 # or remarks (even with -Werror). So we grep stderr for any message
6543 # that says an option was ignored or not supported.
6544 # When given -MP, icc 7.0 and 7.1 complain thusly:
6545 # icc: Command line warning: ignoring option '-M'; no argument required
6546 # The diagnosis changed in icc 8.0:
6547 # icc: Command line remark: option '-MP' not supported
6548 if (grep 'ignoring option' conftest.err ||
6549 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6550 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6559 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6563 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6564 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6565 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6570 test "x$enable_dependency_tracking" != xno \
6571 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6572 am__fastdepCC_FOR_BUILD_TRUE=
6573 am__fastdepCC_FOR_BUILD_FALSE='#'
6575 am__fastdepCC_FOR_BUILD_TRUE='#'
6576 am__fastdepCC_FOR_BUILD_FALSE=
6580 case $ac_cv_build_prog_cc_stdc in
6581 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6582 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6583 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6584 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 ac_cv_build_prog_cc_stdc=no
6588 ac_save_CC=$CC_FOR_BUILD
6589 cat >conftest.$ac_ext <<_ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6596 #include <stdbool.h>
6601 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6602 #define debug(...) fprintf (stderr, __VA_ARGS__)
6603 #define showlist(...) puts (#__VA_ARGS__)
6604 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6606 test_varargs_macros (void)
6611 debug ("X = %d\n", x);
6612 showlist (The first, second, and third items.);
6613 report (x>y, "x is %d but y is %d", x, y);
6616 // Check long long types.
6617 #define BIG64 18446744073709551615ull
6618 #define BIG32 4294967295ul
6619 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6621 your preprocessor is broken;
6625 your preprocessor is broken;
6627 static long long int bignum = -9223372036854775807LL;
6628 static unsigned long long int ubignum = BIG64;
6630 struct incomplete_array
6638 const wchar_t *name;
6642 typedef const char *ccp;
6645 test_restrict (ccp restrict text)
6647 // See if C++-style comments work.
6648 // Iterate through items via the restricted pointer.
6649 // Also check for declarations in for loops.
6650 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6655 // Check varargs and va_copy.
6657 test_varargs (const char *format, ...)
6660 va_start (args, format);
6662 va_copy (args_copy, args);
6673 str = va_arg (args_copy, const char *);
6676 number = va_arg (args_copy, int);
6679 fnumber = va_arg (args_copy, double);
6694 _Bool success = false;
6697 if (test_restrict ("String literal") == 0)
6699 char *restrict newvar = "Another string";
6702 test_varargs ("s, d' f .", "string", 65, 34.234);
6703 test_varargs_macros ();
6705 // Check flexible array members.
6706 struct incomplete_array *ia =
6707 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6709 for (int i = 0; i < ia->datasize; ++i)
6710 ia->data[i] = i * 1.234;
6712 // Check named initializers.
6713 struct named_init ni = {
6715 .name = L"Test wide string",
6716 .average = 543.34343,
6721 int dynamic_array[ni.number];
6722 dynamic_array[ni.number - 1] = 543;
6724 // work around unused variable warnings
6725 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6726 || dynamic_array[ni.number - 1] != 543);
6732 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6734 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6735 rm -f conftest.$ac_build_objext
6736 if { (ac_try="$ac_build_compile"
6738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6742 (eval "$ac_build_compile") 2>conftest.er1
6744 grep -v '^ *+' conftest.er1 >conftest.err
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } && {
6749 test -z "$ac_c_werror_flag" ||
6750 test ! -s conftest.err
6751 } && test -s conftest.$ac_build_objext; then
6752 ac_cv_build_prog_cc_stdc=$ac_arg
6754 echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6760 rm -f core conftest.err conftest.$ac_build_objext
6761 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6763 rm -f conftest.$ac_ext
6764 CC_FOR_BUILD=$ac_save_CC
6768 case "x$ac_cv_build_prog_cc_stdc" in
6770 { echo "$as_me:$LINENO: result: none needed" >&5
6771 echo "${ECHO_T}none needed" >&6; } ;;
6773 { echo "$as_me:$LINENO: result: unsupported" >&5
6774 echo "${ECHO_T}unsupported" >&6; } ;;
6776 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6777 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6778 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6780 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6781 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6783 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6784 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6785 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 ac_cv_build_prog_cc_stdc=no
6789 ac_save_CC=$CC_FOR_BUILD
6790 cat >conftest.$ac_ext <<_ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6798 #include <sys/types.h>
6799 #include <sys/stat.h>
6800 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6801 struct buf { int x; };
6802 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6803 static char *e (p, i)
6809 static char *f (char * (*g) (char **, int), char **p, ...)
6814 s = g (p, va_arg (v,int));
6819 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6820 function prototypes and stuff, but not '\xHH' hex character constants.
6821 These don't provoke an error unfortunately, instead are silently treated
6822 as 'x'. The following induces an error, until -std is added to get
6823 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6824 array size at least. It's necessary to write '\x00'==0 to get something
6825 that's true only with -std. */
6826 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6828 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6829 inside strings and character constants. */
6831 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6833 int test (int i, double x);
6834 struct s1 {int (*f) (int a);};
6835 struct s2 {int (*f) (double a);};
6836 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6842 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6847 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6848 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6850 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6851 rm -f conftest.$ac_build_objext
6852 if { (ac_try="$ac_build_compile"
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_build_compile") 2>conftest.er1
6860 grep -v '^ *+' conftest.er1 >conftest.err
6862 cat conftest.err >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } && {
6865 test -z "$ac_c_werror_flag" ||
6866 test ! -s conftest.err
6867 } && test -s conftest.$ac_build_objext; then
6868 ac_cv_build_prog_cc_stdc=$ac_arg
6870 echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6876 rm -f core conftest.err conftest.$ac_build_objext
6877 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6879 rm -f conftest.$ac_ext
6880 CC_FOR_BUILD=$ac_save_CC
6884 case "x$ac_cv_build_prog_cc_stdc" in
6886 { echo "$as_me:$LINENO: result: none needed" >&5
6887 echo "${ECHO_T}none needed" >&6; } ;;
6889 { echo "$as_me:$LINENO: result: unsupported" >&5
6890 echo "${ECHO_T}unsupported" >&6; } ;;
6892 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6893 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6894 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6896 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6897 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6899 ac_cv_build_prog_cc_stdc=no
6907 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
6908 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
6909 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 case $ac_cv_build_prog_cc_stdc in
6914 no) { echo "$as_me:$LINENO: result: unsupported" >&5
6915 echo "${ECHO_T}unsupported" >&6; } ;;
6916 '') { echo "$as_me:$LINENO: result: none needed" >&5
6917 echo "${ECHO_T}none needed" >&6; } ;;
6918 *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6919 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6924 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6925 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6926 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6928 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6929 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6930 # On Suns, sometimes $CPP names a directory.
6931 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6934 if test -z "$CPP_FOR_BUILD"; then
6935 if test "${ac_cv_build_prog_CPP+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 # Double quotes because CPP needs to be expanded
6939 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6942 for ac_c_preproc_warn_flag in '' yes
6944 # Use a header file that comes with gcc, so configuring glibc
6945 # with a fresh cross-compiler works.
6946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6947 # <limits.h> exists even on freestanding compilers.
6948 # On the NeXT, cc -E runs the code through the compiler's parser,
6949 # not just through cpp. "Syntax error" is here to catch this case.
6950 cat >conftest.$ac_ext <<_ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6957 # include <limits.h>
6959 # include <assert.h>
6963 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966 *) ac_try_echo=$ac_try;;
6968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6969 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6971 grep -v '^ *+' conftest.er1 >conftest.err
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } >/dev/null && {
6976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6977 test ! -s conftest.err
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6984 # Broken: fails on valid input.
6988 rm -f conftest.err conftest.$ac_ext
6990 # OK, works on sane cases. Now check whether nonexistent headers
6991 # can be detected and how.
6992 cat >conftest.$ac_ext <<_ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 #include <ac_nonexistent.h>
7000 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
7002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003 *) ac_try_echo=$ac_try;;
7005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7006 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
7008 grep -v '^ *+' conftest.er1 >conftest.err
7010 cat conftest.err >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } >/dev/null && {
7013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7014 test ! -s conftest.err
7016 # Broken: success on invalid input.
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 # Passes both tests.
7027 rm -f conftest.err conftest.$ac_ext
7030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7031 rm -f conftest.err conftest.$ac_ext
7032 if $ac_preproc_ok; then
7037 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7040 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
7042 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7044 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
7045 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
7047 for ac_c_preproc_warn_flag in '' yes
7049 # Use a header file that comes with gcc, so configuring glibc
7050 # with a fresh cross-compiler works.
7051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7052 # <limits.h> exists even on freestanding compilers.
7053 # On the NeXT, cc -E runs the code through the compiler's parser,
7054 # not just through cpp. "Syntax error" is here to catch this case.
7055 cat >conftest.$ac_ext <<_ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7062 # include <limits.h>
7064 # include <assert.h>
7068 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
7076 grep -v '^ *+' conftest.er1 >conftest.err
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } >/dev/null && {
7081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 # Broken: fails on valid input.
7093 rm -f conftest.err conftest.$ac_ext
7095 # OK, works on sane cases. Now check whether nonexistent headers
7096 # can be detected and how.
7097 cat >conftest.$ac_ext <<_ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103 #include <ac_nonexistent.h>
7105 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
7113 grep -v '^ *+' conftest.er1 >conftest.err
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } >/dev/null && {
7118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7121 # Broken: success on invalid input.
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7127 # Passes both tests.
7132 rm -f conftest.err conftest.$ac_ext
7135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7136 rm -f conftest.err conftest.$ac_ext
7137 if $ac_preproc_ok; then
7140 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7141 See \`config.log' for more details." >&5
7142 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7143 See \`config.log' for more details." >&2;}
7144 { (exit 1); exit 1; }; }
7148 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7149 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7150 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7151 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
7156 BUILD_EXEEXT=$ac_build_exeext
7157 BUILD_OBJEXT=$ac_build_objext
7160 ac_cpp='$OBJCPP $CPPFLAGS'
7161 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7164 if test -n "$ac_tool_prefix"; then
7165 for ac_prog in gcc objcc objc cc CC
7167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171 if test "${ac_cv_prog_OBJC+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 if test -n "$OBJC"; then
7175 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 OBJC=$ac_cv_prog_OBJC
7195 if test -n "$OBJC"; then
7196 { echo "$as_me:$LINENO: result: $OBJC" >&5
7197 echo "${ECHO_T}$OBJC" >&6; }
7199 { echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6; }
7204 test -n "$OBJC" && break
7207 if test -z "$OBJC"; then
7209 for ac_prog in gcc objcc objc cc CC
7211 # Extract the first word of "$ac_prog", so it can be a program name with args.
7212 set dummy $ac_prog; ac_word=$2
7213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 if test -n "$ac_ct_OBJC"; then
7219 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7228 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7239 if test -n "$ac_ct_OBJC"; then
7240 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7241 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
7243 { echo "$as_me:$LINENO: result: no" >&5
7244 echo "${ECHO_T}no" >&6; }
7248 test -n "$ac_ct_OBJC" && break
7251 if test "x$ac_ct_OBJC" = x; then
7254 case $cross_compiling:$ac_tool_warned in
7256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7257 whose name does not start with the host triplet. If you think this
7258 configuration is useful to you, please write to autoconf@gnu.org." >&5
7259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7260 whose name does not start with the host triplet. If you think this
7261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7262 ac_tool_warned=yes ;;
7268 # Provide some information about the compiler.
7269 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7270 ac_compiler=`set X $ac_compile; echo $2`
7271 { (ac_try="$ac_compiler --version >&5"
7273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_compiler --version >&5") 2>&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); }
7281 { (ac_try="$ac_compiler -v >&5"
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_compiler -v >&5") 2>&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }
7291 { (ac_try="$ac_compiler -V >&5"
7293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_compiler -V >&5") 2>&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }
7302 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7303 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
7304 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 cat >conftest.$ac_ext <<_ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7325 rm -f conftest.$ac_objext
7326 if { (ac_try="$ac_compile"
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332 (eval "$ac_compile") 2>conftest.er1
7334 grep -v '^ *+' conftest.er1 >conftest.err
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && {
7339 test -z "$ac_objc_werror_flag" ||
7340 test ! -s conftest.err
7341 } && test -s conftest.$ac_objext; then
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7354 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7355 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
7356 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
7357 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7358 ac_save_OBJCFLAGS=$OBJCFLAGS
7359 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7360 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
7361 if test "${ac_cv_prog_objc_g+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 ac_save_objc_werror_flag=$ac_objc_werror_flag
7365 ac_objc_werror_flag=yes
7366 ac_cv_prog_objc_g=no
7368 cat >conftest.$ac_ext <<_ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7383 rm -f conftest.$ac_objext
7384 if { (ac_try="$ac_compile"
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_compile") 2>conftest.er1
7392 grep -v '^ *+' conftest.er1 >conftest.err
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_objc_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest.$ac_objext; then
7400 ac_cv_prog_objc_g=yes
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7406 cat >conftest.$ac_ext <<_ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7421 rm -f conftest.$ac_objext
7422 if { (ac_try="$ac_compile"
7424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425 *) ac_try_echo=$ac_try;;
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428 (eval "$ac_compile") 2>conftest.er1
7430 grep -v '^ *+' conftest.er1 >conftest.err
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } && {
7435 test -z "$ac_objc_werror_flag" ||
7436 test ! -s conftest.err
7437 } && test -s conftest.$ac_objext; then
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 ac_objc_werror_flag=$ac_save_objc_werror_flag
7445 cat >conftest.$ac_ext <<_ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7460 rm -f conftest.$ac_objext
7461 if { (ac_try="$ac_compile"
7463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464 *) ac_try_echo=$ac_try;;
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467 (eval "$ac_compile") 2>conftest.er1
7469 grep -v '^ *+' conftest.er1 >conftest.err
7471 cat conftest.err >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && {
7474 test -z "$ac_objc_werror_flag" ||
7475 test ! -s conftest.err
7476 } && test -s conftest.$ac_objext; then
7477 ac_cv_prog_objc_g=yes
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492 ac_objc_werror_flag=$ac_save_objc_werror_flag
7494 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7495 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
7496 if test "$ac_test_OBJCFLAGS" = set; then
7497 OBJCFLAGS=$ac_save_OBJCFLAGS
7498 elif test $ac_cv_prog_objc_g = yes; then
7499 if test "$GOBJC" = yes; then
7505 if test "$GOBJC" = yes; then
7512 ac_cpp='$CPP $CPPFLAGS'
7513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7517 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7518 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7519 if test "${ac_cv_path_SED+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7523 for ac_i in 1 2 3 4 5 6 7; do
7524 ac_script="$ac_script$as_nl$ac_script"
7526 echo "$ac_script" | sed 99q >conftest.sed
7527 $as_unset ac_script || ac_script=
7528 # Extract the first word of "sed gsed" to use in msg output
7529 if test -z "$SED"; then
7530 set dummy sed gsed; ac_prog_name=$2
7531 if test "${ac_cv_path_SED+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 ac_path_SED_found=false
7535 # Loop through the user's path and test for each of PROGNAME-LIST
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 test -z "$as_dir" && as_dir=.
7541 for ac_prog in sed gsed; do
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7544 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7545 # Check for GNU ac_path_SED and select it if it is found.
7546 # Check for GNU $ac_path_SED
7547 case `"$ac_path_SED" --version 2>&1` in
7549 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7552 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7555 cat "conftest.in" "conftest.in" >"conftest.tmp"
7556 mv "conftest.tmp" "conftest.in"
7557 cp "conftest.in" "conftest.nl"
7558 echo '' >> "conftest.nl"
7559 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7561 ac_count=`expr $ac_count + 1`
7562 if test $ac_count -gt ${ac_path_SED_max-0}; then
7563 # Best one so far, save it but keep looking for a better one
7564 ac_cv_path_SED="$ac_path_SED"
7565 ac_path_SED_max=$ac_count
7567 # 10*(2^10) chars as input seems more than enough
7568 test $ac_count -gt 10 && break
7570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7574 $ac_path_SED_found && break 3
7584 SED="$ac_cv_path_SED"
7585 if test -z "$SED"; then
7586 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
7587 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
7588 { (exit 1); exit 1; }; }
7596 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7597 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
7598 SED="$ac_cv_path_SED"
7601 # By default we simply use the C compiler to build assembly code.
7603 test "${CCAS+set}" = set || CCAS=$CC
7604 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7608 if test -n "$ac_tool_prefix"; then
7609 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7610 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_prog_RANLIB+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 if test -n "$RANLIB"; then
7617 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7626 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 RANLIB=$ac_cv_prog_RANLIB
7637 if test -n "$RANLIB"; then
7638 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7639 echo "${ECHO_T}$RANLIB" >&6; }
7641 { echo "$as_me:$LINENO: result: no" >&5
7642 echo "${ECHO_T}no" >&6; }
7647 if test -z "$ac_cv_prog_RANLIB"; then
7648 ac_ct_RANLIB=$RANLIB
7649 # Extract the first word of "ranlib", so it can be a program name with args.
7650 set dummy ranlib; ac_word=$2
7651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7653 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 if test -n "$ac_ct_RANLIB"; then
7657 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7666 ac_cv_prog_ac_ct_RANLIB="ranlib"
7667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7677 if test -n "$ac_ct_RANLIB"; then
7678 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7679 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7681 { echo "$as_me:$LINENO: result: no" >&5
7682 echo "${ECHO_T}no" >&6; }
7685 if test "x$ac_ct_RANLIB" = x; then
7688 case $cross_compiling:$ac_tool_warned in
7690 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7691 whose name does not start with the host triplet. If you think this
7692 configuration is useful to you, please write to autoconf@gnu.org." >&5
7693 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7694 whose name does not start with the host triplet. If you think this
7695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7696 ac_tool_warned=yes ;;
7698 RANLIB=$ac_ct_RANLIB
7701 RANLIB="$ac_cv_prog_RANLIB"
7705 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7706 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7707 if test "${ac_cv_path_GREP+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 # Extract the first word of "grep ggrep" to use in msg output
7711 if test -z "$GREP"; then
7712 set dummy grep ggrep; ac_prog_name=$2
7713 if test "${ac_cv_path_GREP+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 ac_path_GREP_found=false
7717 # Loop through the user's path and test for each of PROGNAME-LIST
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7722 test -z "$as_dir" && as_dir=.
7723 for ac_prog in grep ggrep; do
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7726 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7727 # Check for GNU ac_path_GREP and select it if it is found.
7728 # Check for GNU $ac_path_GREP
7729 case `"$ac_path_GREP" --version 2>&1` in
7731 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7734 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7737 cat "conftest.in" "conftest.in" >"conftest.tmp"
7738 mv "conftest.tmp" "conftest.in"
7739 cp "conftest.in" "conftest.nl"
7740 echo 'GREP' >> "conftest.nl"
7741 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7743 ac_count=`expr $ac_count + 1`
7744 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7745 # Best one so far, save it but keep looking for a better one
7746 ac_cv_path_GREP="$ac_path_GREP"
7747 ac_path_GREP_max=$ac_count
7749 # 10*(2^10) chars as input seems more than enough
7750 test $ac_count -gt 10 && break
7752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7756 $ac_path_GREP_found && break 3
7766 GREP="$ac_cv_path_GREP"
7767 if test -z "$GREP"; then
7768 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7769 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7770 { (exit 1); exit 1; }; }
7774 ac_cv_path_GREP=$GREP
7779 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7780 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7781 GREP="$ac_cv_path_GREP"
7784 { echo "$as_me:$LINENO: checking for egrep" >&5
7785 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7786 if test "${ac_cv_path_EGREP+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7790 then ac_cv_path_EGREP="$GREP -E"
7792 # Extract the first word of "egrep" to use in msg output
7793 if test -z "$EGREP"; then
7794 set dummy egrep; ac_prog_name=$2
7795 if test "${ac_cv_path_EGREP+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 ac_path_EGREP_found=false
7799 # Loop through the user's path and test for each of PROGNAME-LIST
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7804 test -z "$as_dir" && as_dir=.
7805 for ac_prog in egrep; do
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7808 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7809 # Check for GNU ac_path_EGREP and select it if it is found.
7810 # Check for GNU $ac_path_EGREP
7811 case `"$ac_path_EGREP" --version 2>&1` in
7813 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7816 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7819 cat "conftest.in" "conftest.in" >"conftest.tmp"
7820 mv "conftest.tmp" "conftest.in"
7821 cp "conftest.in" "conftest.nl"
7822 echo 'EGREP' >> "conftest.nl"
7823 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7825 ac_count=`expr $ac_count + 1`
7826 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7827 # Best one so far, save it but keep looking for a better one
7828 ac_cv_path_EGREP="$ac_path_EGREP"
7829 ac_path_EGREP_max=$ac_count
7831 # 10*(2^10) chars as input seems more than enough
7832 test $ac_count -gt 10 && break
7834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7838 $ac_path_EGREP_found && break 3
7848 EGREP="$ac_cv_path_EGREP"
7849 if test -z "$EGREP"; then
7850 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7851 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7852 { (exit 1); exit 1; }; }
7856 ac_cv_path_EGREP=$EGREP
7862 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7863 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7864 EGREP="$ac_cv_path_EGREP"
7867 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7868 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7869 if test "${ac_cv_header_stdc+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 cat >conftest.$ac_ext <<_ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7891 rm -f conftest.$ac_objext
7892 if { (ac_try="$ac_compile"
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_compile") 2>conftest.er1
7900 grep -v '^ *+' conftest.er1 >conftest.err
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } && {
7905 test -z "$ac_c_werror_flag" ||
7906 test ! -s conftest.err
7907 } && test -s conftest.$ac_objext; then
7908 ac_cv_header_stdc=yes
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7913 ac_cv_header_stdc=no
7916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 if test $ac_cv_header_stdc = yes; then
7919 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7920 cat >conftest.$ac_ext <<_ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7930 $EGREP "memchr" >/dev/null 2>&1; then
7933 ac_cv_header_stdc=no
7939 if test $ac_cv_header_stdc = yes; then
7940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7941 cat >conftest.$ac_ext <<_ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7951 $EGREP "free" >/dev/null 2>&1; then
7954 ac_cv_header_stdc=no
7960 if test $ac_cv_header_stdc = yes; then
7961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7962 if test "$cross_compiling" = yes; then
7965 cat >conftest.$ac_ext <<_ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7973 #if ((' ' & 0x0FF) == 0x020)
7974 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7975 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7977 # define ISLOWER(c) \
7978 (('a' <= (c) && (c) <= 'i') \
7979 || ('j' <= (c) && (c) <= 'r') \
7980 || ('s' <= (c) && (c) <= 'z'))
7981 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7984 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7989 for (i = 0; i < 256; i++)
7990 if (XOR (islower (i), ISLOWER (i))
7991 || toupper (i) != TOUPPER (i))
7996 rm -f conftest$ac_exeext
7997 if { (ac_try="$ac_link"
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_link") 2>&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8007 { (case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_try") 2>&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8018 echo "$as_me: program exited with status $ac_status" >&5
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8023 ac_cv_header_stdc=no
8025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8031 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8032 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8033 if test $ac_cv_header_stdc = yes; then
8035 cat >>confdefs.h <<\_ACEOF
8036 #define STDC_HEADERS 1
8041 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8051 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8052 inttypes.h stdint.h unistd.h
8054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 cat >conftest.$ac_ext <<_ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8066 $ac_includes_default
8068 #include <$ac_header>
8070 rm -f conftest.$ac_objext
8071 if { (ac_try="$ac_compile"
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_compile") 2>conftest.er1
8079 grep -v '^ *+' conftest.er1 >conftest.err
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } && {
8084 test -z "$ac_c_werror_flag" ||
8085 test ! -s conftest.err
8086 } && test -s conftest.$ac_objext; then
8087 eval "$as_ac_Header=yes"
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 eval "$as_ac_Header=no"
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 ac_res=`eval echo '${'$as_ac_Header'}'`
8098 { echo "$as_me:$LINENO: result: $ac_res" >&5
8099 echo "${ECHO_T}$ac_res" >&6; }
8100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8101 cat >>confdefs.h <<_ACEOF
8102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8110 { echo "$as_me:$LINENO: checking for void *" >&5
8111 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8112 if test "${ac_cv_type_void_p+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121 $ac_includes_default
8122 typedef void * ac__type_new_;
8126 if ((ac__type_new_ *) 0)
8128 if (sizeof (ac__type_new_))
8134 rm -f conftest.$ac_objext
8135 if { (ac_try="$ac_compile"
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_compile") 2>conftest.er1
8143 grep -v '^ *+' conftest.er1 >conftest.err
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } && {
8148 test -z "$ac_c_werror_flag" ||
8149 test ! -s conftest.err
8150 } && test -s conftest.$ac_objext; then
8151 ac_cv_type_void_p=yes
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 ac_cv_type_void_p=no
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8162 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8164 # The cast to long int works around a bug in the HP C Compiler
8165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8167 # This bug is HP SR number 8606223364.
8168 { echo "$as_me:$LINENO: checking size of void *" >&5
8169 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8170 if test "${ac_cv_sizeof_void_p+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 if test "$cross_compiling" = yes; then
8174 # Depending upon the size, compute the lo and hi bounds.
8175 cat >conftest.$ac_ext <<_ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8182 typedef void * ac__type_sizeof_;
8186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8193 rm -f conftest.$ac_objext
8194 if { (ac_try="$ac_compile"
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_compile") 2>conftest.er1
8202 grep -v '^ *+' conftest.er1 >conftest.err
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest.$ac_objext; then
8212 cat >conftest.$ac_ext <<_ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8218 $ac_includes_default
8219 typedef void * ac__type_sizeof_;
8223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8230 rm -f conftest.$ac_objext
8231 if { (ac_try="$ac_compile"
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_compile") 2>conftest.er1
8239 grep -v '^ *+' conftest.er1 >conftest.err
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest.$ac_objext; then
8247 ac_hi=$ac_mid; break
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8252 ac_lo=`expr $ac_mid + 1`
8253 if test $ac_lo -le $ac_mid; then
8257 ac_mid=`expr 2 '*' $ac_mid + 1`
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8266 cat >conftest.$ac_ext <<_ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 typedef void * ac__type_sizeof_;
8277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8284 rm -f conftest.$ac_objext
8285 if { (ac_try="$ac_compile"
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_compile") 2>conftest.er1
8293 grep -v '^ *+' conftest.er1 >conftest.err
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } && {
8298 test -z "$ac_c_werror_flag" ||
8299 test ! -s conftest.err
8300 } && test -s conftest.$ac_objext; then
8303 cat >conftest.$ac_ext <<_ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8309 $ac_includes_default
8310 typedef void * ac__type_sizeof_;
8314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8321 rm -f conftest.$ac_objext
8322 if { (ac_try="$ac_compile"
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325 *) ac_try_echo=$ac_try;;
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328 (eval "$ac_compile") 2>conftest.er1
8330 grep -v '^ *+' conftest.er1 >conftest.err
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && {
8335 test -z "$ac_c_werror_flag" ||
8336 test ! -s conftest.err
8337 } && test -s conftest.$ac_objext; then
8338 ac_lo=$ac_mid; break
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8343 ac_hi=`expr '(' $ac_mid ')' - 1`
8344 if test $ac_mid -le $ac_hi; then
8348 ac_mid=`expr 2 '*' $ac_mid`
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354 echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8364 # Binary search between lo and hi bounds.
8365 while test "x$ac_lo" != "x$ac_hi"; do
8366 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8367 cat >conftest.$ac_ext <<_ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 $ac_includes_default
8374 typedef void * ac__type_sizeof_;
8378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8385 rm -f conftest.$ac_objext
8386 if { (ac_try="$ac_compile"
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_compile") 2>conftest.er1
8394 grep -v '^ *+' conftest.er1 >conftest.err
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } && {
8399 test -z "$ac_c_werror_flag" ||
8400 test ! -s conftest.err
8401 } && test -s conftest.$ac_objext; then
8404 echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8407 ac_lo=`expr '(' $ac_mid ')' + 1`
8410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8413 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8414 '') if test "$ac_cv_type_void_p" = yes; then
8415 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8416 See \`config.log' for more details." >&5
8417 echo "$as_me: error: cannot compute sizeof (void *)
8418 See \`config.log' for more details." >&2;}
8419 { (exit 77); exit 77; }; }
8421 ac_cv_sizeof_void_p=0
8425 cat >conftest.$ac_ext <<_ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8431 $ac_includes_default
8432 typedef void * ac__type_sizeof_;
8433 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8434 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8441 FILE *f = fopen ("conftest.val", "w");
8444 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8446 long int i = longval ();
8447 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8449 fprintf (f, "%ld\n", i);
8453 unsigned long int i = ulongval ();
8454 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8456 fprintf (f, "%lu\n", i);
8458 return ferror (f) || fclose (f) != 0;
8464 rm -f conftest$ac_exeext
8465 if { (ac_try="$ac_link"
8467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468 *) ac_try_echo=$ac_try;;
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471 (eval "$ac_link") 2>&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8475 { (case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_try") 2>&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 ac_cv_sizeof_void_p=`cat conftest.val`
8486 echo "$as_me: program exited with status $ac_status" >&5
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8491 if test "$ac_cv_type_void_p" = yes; then
8492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8493 See \`config.log' for more details." >&5
8494 echo "$as_me: error: cannot compute sizeof (void *)
8495 See \`config.log' for more details." >&2;}
8496 { (exit 77); exit 77; }; }
8498 ac_cv_sizeof_void_p=0
8501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8505 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8506 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8510 cat >>confdefs.h <<_ACEOF
8511 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8515 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8517 if test "${ac_cv_header_stdc+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 cat >conftest.$ac_ext <<_ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8539 rm -f conftest.$ac_objext
8540 if { (ac_try="$ac_compile"
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_compile") 2>conftest.er1
8548 grep -v '^ *+' conftest.er1 >conftest.err
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } && {
8553 test -z "$ac_c_werror_flag" ||
8554 test ! -s conftest.err
8555 } && test -s conftest.$ac_objext; then
8556 ac_cv_header_stdc=yes
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 ac_cv_header_stdc=no
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8566 if test $ac_cv_header_stdc = yes; then
8567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8568 cat >conftest.$ac_ext <<_ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8578 $EGREP "memchr" >/dev/null 2>&1; then
8581 ac_cv_header_stdc=no
8587 if test $ac_cv_header_stdc = yes; then
8588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8589 cat >conftest.$ac_ext <<_ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8599 $EGREP "free" >/dev/null 2>&1; then
8602 ac_cv_header_stdc=no
8608 if test $ac_cv_header_stdc = yes; then
8609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8610 if test "$cross_compiling" = yes; then
8613 cat >conftest.$ac_ext <<_ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8621 #if ((' ' & 0x0FF) == 0x020)
8622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8625 # define ISLOWER(c) \
8626 (('a' <= (c) && (c) <= 'i') \
8627 || ('j' <= (c) && (c) <= 'r') \
8628 || ('s' <= (c) && (c) <= 'z'))
8629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8637 for (i = 0; i < 256; i++)
8638 if (XOR (islower (i), ISLOWER (i))
8639 || toupper (i) != TOUPPER (i))
8644 rm -f conftest$ac_exeext
8645 if { (ac_try="$ac_link"
8647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8648 *) ac_try_echo=$ac_try;;
8650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651 (eval "$ac_link") 2>&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8655 { (case "(($ac_try" in
8656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657 *) ac_try_echo=$ac_try;;
8659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8660 (eval "$ac_try") 2>&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8666 echo "$as_me: program exited with status $ac_status" >&5
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8671 ac_cv_header_stdc=no
8673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8679 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8680 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8681 if test $ac_cv_header_stdc = yes; then
8683 cat >>confdefs.h <<\_ACEOF
8684 #define STDC_HEADERS 1
8691 depcc="$OBJC" am_compiler_list='gcc3 gcc'
8693 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8694 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8695 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8699 # We make a subdir and do the tests there. Otherwise we can end up
8700 # making bogus files that we don't know about and never remove. For
8701 # instance it was reported that on HP-UX the gcc test will end up
8702 # making a dummy file named `D' -- because `-MD' means `put the output
8705 # Copy depcomp to subdir because otherwise we won't find it if we're
8706 # using a relative directory.
8707 cp "$am_depcomp" conftest.dir
8709 # We will build objects and dependencies in a subdirectory because
8710 # it helps to detect inapplicable dependency modes. For instance
8711 # both Tru64's cc and ICC support -MD to output dependencies as a
8712 # side effect of compilation, but ICC will put the dependencies in
8713 # the current directory while Tru64 will put them in the object
8717 am_cv_OBJC_dependencies_compiler_type=none
8718 if test "$am_compiler_list" = ""; then
8719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8721 for depmode in $am_compiler_list; do
8722 # Setup a source with many dependencies, because some compilers
8723 # like to wrap large dependency lists on column 80 (with \), and
8724 # we should not choose a depcomp mode which is confused by this.
8726 # We need to recreate these files for each test, as the compiler may
8727 # overwrite some of them when testing with obscure command lines.
8728 # This happens at least with the AIX C compiler.
8730 for i in 1 2 3 4 5 6; do
8731 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8732 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8733 # Solaris 8's {/usr,}/bin/sh.
8734 touch sub/conftst$i.h
8736 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8740 # after this tag, mechanisms are not by side-effect, so they'll
8741 # only be used when explicitly requested
8742 if test "x$enable_dependency_tracking" = xyes; then
8750 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8751 # mode. It turns out that the SunPro C++ compiler does not properly
8752 # handle `-M -o', and we need to detect this.
8753 if depmode=$depmode \
8754 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8755 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8756 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8757 >/dev/null 2>conftest.err &&
8758 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8759 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8760 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8761 # icc doesn't choke on unknown options, it will just issue warnings
8762 # or remarks (even with -Werror). So we grep stderr for any message
8763 # that says an option was ignored or not supported.
8764 # When given -MP, icc 7.0 and 7.1 complain thusly:
8765 # icc: Command line warning: ignoring option '-M'; no argument required
8766 # The diagnosis changed in icc 8.0:
8767 # icc: Command line remark: option '-MP' not supported
8768 if (grep 'ignoring option' conftest.err ||
8769 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8770 am_cv_OBJC_dependencies_compiler_type=$depmode
8779 am_cv_OBJC_dependencies_compiler_type=none
8783 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
8784 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
8785 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
8790 test "x$enable_dependency_tracking" != xno \
8791 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
8792 am__fastdepOBJC_TRUE=
8793 am__fastdepOBJC_FALSE='#'
8795 am__fastdepOBJC_TRUE='#'
8796 am__fastdepOBJC_FALSE=
8801 # Extract the first word of "pod2man", so it can be a program name with args.
8802 set dummy pod2man; ac_word=$2
8803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8805 if test "${ac_cv_path_POD2MAN+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817 test -z "$as_dir" && as_dir=.
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8820 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8831 POD2MAN=$ac_cv_path_POD2MAN
8832 if test -n "$POD2MAN"; then
8833 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8834 echo "${ECHO_T}$POD2MAN" >&6; }
8836 { echo "$as_me:$LINENO: result: no" >&5
8837 echo "${ECHO_T}no" >&6; }
8841 # Extract the first word of "pod2html", so it can be a program name with args.
8842 set dummy pod2html; ac_word=$2
8843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8845 if test "${ac_cv_path_POD2HTML+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 test -z "$as_dir" && as_dir=.
8858 for ac_exec_ext in '' $ac_executable_extensions; do
8859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8860 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8871 POD2HTML=$ac_cv_path_POD2HTML
8872 if test -n "$POD2HTML"; then
8873 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8874 echo "${ECHO_T}$POD2HTML" >&6; }
8876 { echo "$as_me:$LINENO: result: no" >&5
8877 echo "${ECHO_T}no" >&6; }
8883 cat >>confdefs.h <<_ACEOF
8884 #define BUILD_SED_PROG "${SED}"
8888 cat >>confdefs.h <<_ACEOF
8889 #define BUILD_CPP_PROG "${CPP}"
8894 # Check whether --enable-strict-warn was given.
8895 if test "${enable_strict_warn+set}" = set; then
8896 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
8897 enable_strictwarn=yes
8901 # Check whether --enable-translator was given.
8902 if test "${enable_translator+set}" = set; then
8903 enableval=$enable_translator; true
8905 enable_translator=yes
8908 # Check whether --enable-optimized was given.
8909 if test "${enable_optimized+set}" = set; then
8910 enableval=$enable_optimized; true
8912 enable_optimized=yes
8915 # Check whether --enable-shared was given.
8916 if test "${enable_shared+set}" = set; then
8917 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
8922 # Check whether --enable-profiled was given.
8923 if test "${enable_profiled+set}" = set; then
8924 enableval=$enable_profiled; if test "$enableval" == "yes"; then
8925 enable_profiled=yes;
8929 # Check whether --enable-trace was given.
8930 if test "${enable_trace+set}" = set; then
8931 enableval=$enable_trace; if test "$enableval" == "yes"; then
8933 cat >>confdefs.h <<\_ACEOF
8934 #define ENABLE_TRACE_IO 1
8940 # Check whether --enable-watch was given.
8941 if test "${enable_watch+set}" = set; then
8942 enableval=$enable_watch; if test "$enableval" == "yes"; then
8944 cat >>confdefs.h <<\_ACEOF
8945 #define ENABLE_WATCH 1
8951 # Check whether --enable-sh4stats was given.
8952 if test "${enable_sh4stats+set}" = set; then
8953 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
8955 cat >>confdefs.h <<\_ACEOF
8956 #define ENABLE_SH4STATS 1
8963 # Check whether --with-osmesa was given.
8964 if test "${with_osmesa+set}" = set; then
8965 withval=$with_osmesa;
8971 # Check whether --with-gtk was given.
8972 if test "${with_gtk+set}" = set; then
8973 withval=$with_gtk; with_gtk=yes
8979 # Check whether --with-esd was given.
8980 if test "${with_esd+set}" = set; then
8985 # Check whether --with-pulse was given.
8986 if test "${with_pulse+set}" = set; then
8987 withval=$with_pulse;
8991 # Check whether --with-sdl was given.
8992 if test "${with_sdl+set}" = set; then
8998 if test "$ANDROID_BUILD" = "yes"; then
9000 EXTRA_OUTPUT_FILES="src/android/build.properties"
9001 LIBS="-lEGL -lGLESv2 $LIBS"
9003 cat >>confdefs.h <<\_ACEOF
9004 #define HAVE_GLES2 1
9013 ac_cpp='$OBJCPP $CPPFLAGS'
9014 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9015 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9016 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9017 if test -n "$ac_tool_prefix"; then
9018 for ac_prog in gcc objcc objc cc CC
9020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9024 if test "${ac_cv_prog_OBJC+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 if test -n "$OBJC"; then
9028 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
9030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9034 test -z "$as_dir" && as_dir=.
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9037 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
9038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 OBJC=$ac_cv_prog_OBJC
9048 if test -n "$OBJC"; then
9049 { echo "$as_me:$LINENO: result: $OBJC" >&5
9050 echo "${ECHO_T}$OBJC" >&6; }
9052 { echo "$as_me:$LINENO: result: no" >&5
9053 echo "${ECHO_T}no" >&6; }
9057 test -n "$OBJC" && break
9060 if test -z "$OBJC"; then
9062 for ac_prog in gcc objcc objc cc CC
9064 # Extract the first word of "$ac_prog", so it can be a program name with args.
9065 set dummy $ac_prog; ac_word=$2
9066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9068 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 if test -n "$ac_ct_OBJC"; then
9072 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
9074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 test -z "$as_dir" && as_dir=.
9079 for ac_exec_ext in '' $ac_executable_extensions; do
9080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9081 ac_cv_prog_ac_ct_OBJC="$ac_prog"
9082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
9092 if test -n "$ac_ct_OBJC"; then
9093 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
9094 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
9096 { echo "$as_me:$LINENO: result: no" >&5
9097 echo "${ECHO_T}no" >&6; }
9101 test -n "$ac_ct_OBJC" && break
9104 if test "x$ac_ct_OBJC" = x; then
9107 case $cross_compiling:$ac_tool_warned in
9109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9110 whose name does not start with the host triplet. If you think this
9111 configuration is useful to you, please write to autoconf@gnu.org." >&5
9112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9113 whose name does not start with the host triplet. If you think this
9114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9115 ac_tool_warned=yes ;;
9121 # Provide some information about the compiler.
9122 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
9123 ac_compiler=`set X $ac_compile; echo $2`
9124 { (ac_try="$ac_compiler --version >&5"
9126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9130 (eval "$ac_compiler --version >&5") 2>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }
9134 { (ac_try="$ac_compiler -v >&5"
9136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137 *) ac_try_echo=$ac_try;;
9139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_compiler -v >&5") 2>&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }
9144 { (ac_try="$ac_compiler -V >&5"
9146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150 (eval "$ac_compiler -V >&5") 2>&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }
9155 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
9156 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
9157 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 cat >conftest.$ac_ext <<_ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9178 rm -f conftest.$ac_objext
9179 if { (ac_try="$ac_compile"
9181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9182 *) ac_try_echo=$ac_try;;
9184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9185 (eval "$ac_compile") 2>conftest.er1
9187 grep -v '^ *+' conftest.er1 >conftest.err
9189 cat conftest.err >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); } && {
9192 test -z "$ac_objc_werror_flag" ||
9193 test ! -s conftest.err
9194 } && test -s conftest.$ac_objext; then
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
9207 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
9208 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
9209 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
9210 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
9211 ac_save_OBJCFLAGS=$OBJCFLAGS
9212 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
9213 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
9214 if test "${ac_cv_prog_objc_g+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 ac_save_objc_werror_flag=$ac_objc_werror_flag
9218 ac_objc_werror_flag=yes
9219 ac_cv_prog_objc_g=no
9221 cat >conftest.$ac_ext <<_ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9236 rm -f conftest.$ac_objext
9237 if { (ac_try="$ac_compile"
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243 (eval "$ac_compile") 2>conftest.er1
9245 grep -v '^ *+' conftest.er1 >conftest.err
9247 cat conftest.err >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } && {
9250 test -z "$ac_objc_werror_flag" ||
9251 test ! -s conftest.err
9252 } && test -s conftest.$ac_objext; then
9253 ac_cv_prog_objc_g=yes
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9259 cat >conftest.$ac_ext <<_ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9274 rm -f conftest.$ac_objext
9275 if { (ac_try="$ac_compile"
9277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278 *) ac_try_echo=$ac_try;;
9280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281 (eval "$ac_compile") 2>conftest.er1
9283 grep -v '^ *+' conftest.er1 >conftest.err
9285 cat conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } && {
9288 test -z "$ac_objc_werror_flag" ||
9289 test ! -s conftest.err
9290 } && test -s conftest.$ac_objext; then
9293 echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9296 ac_objc_werror_flag=$ac_save_objc_werror_flag
9298 cat >conftest.$ac_ext <<_ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9313 rm -f conftest.$ac_objext
9314 if { (ac_try="$ac_compile"
9316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320 (eval "$ac_compile") 2>conftest.er1
9322 grep -v '^ *+' conftest.er1 >conftest.err
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && {
9327 test -z "$ac_objc_werror_flag" ||
9328 test ! -s conftest.err
9329 } && test -s conftest.$ac_objext; then
9330 ac_cv_prog_objc_g=yes
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 ac_objc_werror_flag=$ac_save_objc_werror_flag
9347 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
9348 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
9349 if test "$ac_test_OBJCFLAGS" = set; then
9350 OBJCFLAGS=$ac_save_OBJCFLAGS
9351 elif test $ac_cv_prog_objc_g = yes; then
9352 if test "$GOBJC" = yes; then
9358 if test "$GOBJC" = yes; then
9365 ac_cpp='$CPP $CPPFLAGS'
9366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9370 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
9371 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
9373 ac_cpp='$OBJCPP $CPPFLAGS'
9374 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9375 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9376 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9377 cat >conftest.$ac_ext <<_ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9392 rm -f conftest.$ac_objext
9393 if { (ac_try="$ac_compile"
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_compile") 2>conftest.er1
9401 grep -v '^ *+' conftest.er1 >conftest.err
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_objc_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest.$ac_objext; then
9409 { echo "$as_me:$LINENO: result: yes" >&5
9410 echo "${ECHO_T}yes" >&6; }
9412 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
9413 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
9414 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 cat >conftest.$ac_ext <<_ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9423 $ac_includes_default
9425 #include <Cocoa/Cocoa.h>
9427 rm -f conftest.$ac_objext
9428 if { (ac_try="$ac_compile"
9430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431 *) ac_try_echo=$ac_try;;
9433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9434 (eval "$ac_compile") 2>conftest.er1
9436 grep -v '^ *+' conftest.er1 >conftest.err
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } && {
9441 test -z "$ac_objc_werror_flag" ||
9442 test ! -s conftest.err
9443 } && test -s conftest.$ac_objext; then
9444 ac_cv_header_Cocoa_Cocoa_h=yes
9446 echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.$ac_ext >&5
9449 ac_cv_header_Cocoa_Cocoa_h=no
9452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9454 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
9455 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
9456 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
9460 LIBS="$LIBS -framework AppKit -framework Carbon"
9461 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"
9462 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
9463 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
9465 cat >>confdefs.h <<\_ACEOF
9466 #define HAVE_COCOA 1
9470 cat >>confdefs.h <<\_ACEOF
9471 #define APPLE_BUILD 1
9475 if test "x$with_gtk" = "xx11"; then
9484 { echo "$as_me:$LINENO: checking OBJC version" >&5
9485 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
9486 if test -n "$OBJC"; then
9487 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
9488 if test -n "$_GOBJC_VERSION"; then
9489 { echo "$as_me:$LINENO: result: GCC" >&5
9490 echo "${ECHO_T}GCC" >&6; }
9492 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
9494 { echo "$as_me:$LINENO: result: Unknown" >&5
9495 echo "${ECHO_T}Unknown" >&6; }
9499 { echo "$as_me:$LINENO: result: None" >&5
9500 echo "${ECHO_T}None" >&6; }
9506 ac_cpp='$OBJCPP $CPPFLAGS'
9507 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9508 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9509 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9511 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
9512 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
9513 save_OBJCFLAGS="$OBJCFLAGS"
9514 OBJCFLAGS="-msse2 $OBJCFLAGS"
9515 cat >conftest.$ac_ext <<_ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9522 int main() { return 0; }
9524 rm -f conftest.$ac_objext
9525 if { (ac_try="$ac_compile"
9527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528 *) ac_try_echo=$ac_try;;
9530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9531 (eval "$ac_compile") 2>conftest.er1
9533 grep -v '^ *+' conftest.er1 >conftest.err
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } && {
9538 test -z "$ac_objc_werror_flag" ||
9539 test ! -s conftest.err
9540 } && test -s conftest.$ac_objext; then
9542 { echo "$as_me:$LINENO: result: yes" >&5
9543 echo "${ECHO_T}yes" >&6; }
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9550 OBJCFLAGS="$save_OBJCFLAGS"
9551 { echo "$as_me:$LINENO: result: no" >&5
9552 echo "${ECHO_T}no" >&6; }
9556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558 ac_cpp='$OBJCPP $CPPFLAGS'
9559 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9560 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9561 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9566 ac_cpp='$OBJCPP $CPPFLAGS'
9567 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9568 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9569 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9571 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
9572 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
9573 save_OBJCFLAGS="$OBJCFLAGS"
9574 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
9575 cat >conftest.$ac_ext <<_ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9582 int main() { return 0; }
9584 rm -f conftest.$ac_objext
9585 if { (ac_try="$ac_compile"
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_compile") 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } && {
9598 test -z "$ac_objc_werror_flag" ||
9599 test ! -s conftest.err
9600 } && test -s conftest.$ac_objext; then
9602 { echo "$as_me:$LINENO: result: yes" >&5
9603 echo "${ECHO_T}yes" >&6; }
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9610 OBJCFLAGS="$save_OBJCFLAGS"
9611 { echo "$as_me:$LINENO: result: no" >&5
9612 echo "${ECHO_T}no" >&6; }
9616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9618 ac_cpp='$OBJCPP $CPPFLAGS'
9619 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9620 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9621 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 { echo "$as_me:$LINENO: result: No" >&5
9630 echo "${ECHO_T}No" >&6; }
9634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
9636 ac_cpp='$CPP $CPPFLAGS'
9637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9646 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
9654 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
9656 cat >>confdefs.h <<\_ACEOF
9657 #define OSX_BUNDLE 1
9662 CFLAGS_FOR_BUILD="-O2 -std=c99"
9663 CFLAGS="-g -fexceptions"
9664 OBJCFLAGS="-g -fexceptions"
9666 cat >>confdefs.h <<\_ACEOF
9667 #define HAVE_EXCEPTIONS 1
9673 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
9674 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
9675 { echo "$as_me:$LINENO: checking CC version" >&5
9676 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
9677 if test -n "$_ICC_VERSION"; then
9678 { echo "$as_me:$LINENO: result: ICC" >&5
9679 echo "${ECHO_T}ICC" >&6; }
9680 CCOPT="$CFLAGS -fast"
9681 CFLAGS="$CFLAGS -fno-strict-aliasing"
9682 elif test -n "$_GCC_VERSION"; then
9683 { echo "$as_me:$LINENO: result: GCC" >&5
9684 echo "${ECHO_T}GCC" >&6; }
9686 CFLAGS="$CFLAGS -fno-strict-aliasing"
9688 { echo "$as_me:$LINENO: result: Unknown" >&5
9689 echo "${ECHO_T}Unknown" >&6; }
9695 ac_cpp='$CPP $CPPFLAGS'
9696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9700 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
9701 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
9702 save_CFLAGS="$CFLAGS"
9703 CFLAGS="-msse2 $CFLAGS"
9704 cat >conftest.$ac_ext <<_ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 int main() { return 0; }
9713 rm -f conftest.$ac_objext
9714 if { (ac_try="$ac_compile"
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_compile") 2>conftest.er1
9722 grep -v '^ *+' conftest.er1 >conftest.err
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } && {
9727 test -z "$ac_c_werror_flag" ||
9728 test ! -s conftest.err
9729 } && test -s conftest.$ac_objext; then
9731 { echo "$as_me:$LINENO: result: yes" >&5
9732 echo "${ECHO_T}yes" >&6; }
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9739 CFLAGS="$save_CFLAGS"
9740 { echo "$as_me:$LINENO: result: no" >&5
9741 echo "${ECHO_T}no" >&6; }
9745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747 ac_cpp='$CPP $CPPFLAGS'
9748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9755 ac_cpp='$CPP $CPPFLAGS'
9756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9760 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
9761 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
9762 save_CFLAGS="$CFLAGS"
9763 CFLAGS="-mfpmath=sse $CFLAGS"
9764 cat >conftest.$ac_ext <<_ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9771 int main() { return 0; }
9773 rm -f conftest.$ac_objext
9774 if { (ac_try="$ac_compile"
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_compile") 2>conftest.er1
9782 grep -v '^ *+' conftest.er1 >conftest.err
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } && {
9787 test -z "$ac_c_werror_flag" ||
9788 test ! -s conftest.err
9789 } && test -s conftest.$ac_objext; then
9791 { echo "$as_me:$LINENO: result: yes" >&5
9792 echo "${ECHO_T}yes" >&6; }
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9799 CFLAGS="$save_CFLAGS"
9800 { echo "$as_me:$LINENO: result: no" >&5
9801 echo "${ECHO_T}no" >&6; }
9805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9807 ac_cpp='$CPP $CPPFLAGS'
9808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9814 if test "x$enable_optimized" = "xyes"; then
9815 CFLAGS="$CFLAGS $CCOPT"
9816 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
9817 if test "x$enable_profiled" != "xyes"; then
9818 CFLAGS="$CFLAGS -fomit-frame-pointer"
9819 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
9822 CFLAGS="$CFLAGS -g3"
9823 OBJCFLAGS="$OBJCFLAGS -g3"
9826 if test "x$enable_profiled" = "xyes"; then
9827 CFLAGS="$CFLAGS -pg"
9828 LDFLAGS="$LDFLAGS -pg";
9829 OBJCFLAGS="$OBJCFLAGS -pg";
9832 if test "x$enable_strictwarn" = "xyes"; then
9833 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
9834 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
9837 if test "x$enable_shared" != "xno"; then
9838 if test "x$APPLE_BUILD" = "xyes"; then
9840 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
9843 PLUGINLDFLAGS="-shared"
9845 PLUGINCFLAGS="-fPIC"
9847 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9848 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9849 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9850 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9854 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9856 # Is the header compilable?
9857 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9858 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
9859 cat >conftest.$ac_ext <<_ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h. */
9865 $ac_includes_default
9868 rm -f conftest.$ac_objext
9869 if { (ac_try="$ac_compile"
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_compile") 2>conftest.er1
9877 grep -v '^ *+' conftest.er1 >conftest.err
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } && {
9882 test -z "$ac_c_werror_flag" ||
9883 test ! -s conftest.err
9884 } && test -s conftest.$ac_objext; then
9885 ac_header_compiler=yes
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9890 ac_header_compiler=no
9893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9895 echo "${ECHO_T}$ac_header_compiler" >&6; }
9897 # Is the header present?
9898 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9899 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
9900 cat >conftest.$ac_ext <<_ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9908 if { (ac_try="$ac_cpp conftest.$ac_ext"
9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911 *) ac_try_echo=$ac_try;;
9913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9916 grep -v '^ *+' conftest.er1 >conftest.err
9918 cat conftest.err >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } >/dev/null && {
9921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9922 test ! -s conftest.err
9924 ac_header_preproc=yes
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9929 ac_header_preproc=no
9932 rm -f conftest.err conftest.$ac_ext
9933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9934 echo "${ECHO_T}$ac_header_preproc" >&6; }
9936 # So? What about this header?
9937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9939 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9940 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9942 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9943 ac_header_preproc=yes
9946 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9947 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9949 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9950 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9951 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9952 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9953 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9954 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9955 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9956 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9957 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9961 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9962 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9963 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 ac_cv_header_dlfcn_h=$ac_header_preproc
9968 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9969 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9972 if test $ac_cv_header_dlfcn_h = yes; then
9974 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9975 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9976 if test "${ac_cv_search_dlopen+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 ac_func_search_save_LIBS=$LIBS
9980 cat >conftest.$ac_ext <<_ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9987 /* Override any GCC internal prototype to avoid an error.
9988 Use char because int might match the return type of a GCC
9989 builtin and then its argument prototype would still apply. */
10002 for ac_lib in '' dl; do
10003 if test -z "$ac_lib"; then
10004 ac_res="none required"
10007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (ac_try="$ac_link"
10011 case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_link") 2>conftest.er1
10018 grep -v '^ *+' conftest.er1 >conftest.err
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } && {
10023 test -z "$ac_c_werror_flag" ||
10024 test ! -s conftest.err
10025 } && test -s conftest$ac_exeext &&
10026 $as_test_x conftest$ac_exeext; then
10027 ac_cv_search_dlopen=$ac_res
10029 echo "$as_me: failed program was:" >&5
10030 sed 's/^/| /' conftest.$ac_ext >&5
10035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10037 if test "${ac_cv_search_dlopen+set}" = set; then
10041 if test "${ac_cv_search_dlopen+set}" = set; then
10044 ac_cv_search_dlopen=no
10046 rm conftest.$ac_ext
10047 LIBS=$ac_func_search_save_LIBS
10049 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10050 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
10051 ac_res=$ac_cv_search_dlopen
10052 if test "$ac_res" != no; then
10053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10060 if test "x$have_dlopen" != "xyes"; then
10061 if test "x$enable_shared" == "xyes"; then
10062 { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
10063 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
10064 { (exit 1); exit 1; }; }
10066 { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
10067 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
10071 { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
10072 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
10073 old_LDFLAGS="$LDFLAGS"
10074 LDFLAGS="$LDFLAGS -rdynamic"
10075 cat >conftest.$ac_ext <<_ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10081 int main() { return 0; }
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (ac_try="$ac_link"
10085 case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090 (eval "$ac_link") 2>conftest.er1
10092 grep -v '^ *+' conftest.er1 >conftest.err
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } && {
10097 test -z "$ac_c_werror_flag" ||
10098 test ! -s conftest.err
10099 } && test -s conftest$ac_exeext &&
10100 $as_test_x conftest$ac_exeext; then
10102 LXDREAMLDFLAGS="-rdynamic"
10103 { echo "$as_me:$LINENO: result: yes" >&5
10104 echo "${ECHO_T}yes" >&6; }
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10112 { echo "$as_me:$LINENO: result: no" >&5
10113 echo "${ECHO_T}no" >&6; }
10116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10117 conftest$ac_exeext conftest.$ac_ext
10118 LDFLAGS="$old_LDFLAGS"
10125 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
10127 cat >>confdefs.h <<\_ACEOF
10128 #define BUILD_PLUGINS 1
10134 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
10135 BUILD_PLUGINS_TRUE=
10136 BUILD_PLUGINS_FALSE='#'
10138 BUILD_PLUGINS_TRUE='#'
10139 BUILD_PLUGINS_FALSE=
10144 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
10145 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
10146 save_CFLAGS="$CFLAGS"
10147 CFLAGS="-Werror $save_CFLAGS"
10148 if test "$cross_compiling" = yes; then
10150 { echo "$as_me:$LINENO: result: no" >&5
10151 echo "${ECHO_T}no" >&6; }
10154 cat >conftest.$ac_ext <<_ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10162 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
10164 int main(int argc, char *argv[])
10166 return foo( 1, 2 ) == 3 ? 0 : 1;
10169 rm -f conftest$ac_exeext
10170 if { (ac_try="$ac_link"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_link") 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10180 { (case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_try") 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10190 { echo "$as_me:$LINENO: result: yes" >&5
10191 echo "${ECHO_T}yes" >&6; }
10194 cat >>confdefs.h <<\_ACEOF
10195 #define HAVE_FASTCALL 1
10200 echo "$as_me: program exited with status $ac_status" >&5
10201 echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10204 ( exit $ac_status )
10206 { echo "$as_me:$LINENO: result: no" >&5
10207 echo "${ECHO_T}no" >&6; }
10210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10214 CFLAGS="$save_CFLAGS"
10217 { echo "$as_me:$LINENO: checking support for force inlining" >&5
10218 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
10219 cat >conftest.$ac_ext <<_ACEOF
10223 cat confdefs.h >>conftest.$ac_ext
10224 cat >>conftest.$ac_ext <<_ACEOF
10225 /* end confdefs.h. */
10227 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
10229 int main(int argc, char *argv[])
10231 return foo( 1, 2 ) == 3 ? 0 : 1;
10234 rm -f conftest.$ac_objext
10235 if { (ac_try="$ac_compile"
10236 case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_compile") 2>conftest.er1
10243 grep -v '^ *+' conftest.er1 >conftest.err
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } && {
10248 test -z "$ac_c_werror_flag" ||
10249 test ! -s conftest.err
10250 } && test -s conftest.$ac_objext; then
10252 FORCEINLINE="__attribute__((always_inline))"
10253 { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
10254 echo "${ECHO_T}$FORCEINLINE" >&6; }
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10262 { echo "$as_me:$LINENO: result: no" >&5
10263 echo "${ECHO_T}no" >&6; }
10267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10270 cat >>confdefs.h <<_ACEOF
10271 #define FORCEINLINE $FORCEINLINE
10275 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
10276 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
10277 if test "$cross_compiling" = yes; then
10279 { echo "$as_me:$LINENO: result: no" >&5
10280 echo "${ECHO_T}no" >&6; }
10281 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10282 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10284 cat >conftest.$ac_ext <<_ACEOF
10288 cat confdefs.h >>conftest.$ac_ext
10289 cat >>conftest.$ac_ext <<_ACEOF
10290 /* end confdefs.h. */
10292 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
10293 int __attribute__((noinline)) foo( int arg, void *exc )
10296 *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
10301 int main(int argc, char *argv[])
10303 goto *first_arg(&&start, &&except);
10306 return foo( argc, &&except ) + 1;
10312 rm -f conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10323 { (case "(($ac_try" in
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325 *) ac_try_echo=$ac_try;;
10327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10328 (eval "$ac_try") 2>&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10333 { echo "$as_me:$LINENO: result: yes" >&5
10334 echo "${ECHO_T}yes" >&6; }
10337 cat >>confdefs.h <<\_ACEOF
10338 #define HAVE_FRAME_ADDRESS 1
10343 echo "$as_me: program exited with status $ac_status" >&5
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10347 ( exit $ac_status )
10349 { echo "$as_me:$LINENO: result: no" >&5
10350 echo "${ECHO_T}no" >&6; }
10351 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10352 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10361 { echo "$as_me:$LINENO: checking for library containing listen" >&5
10362 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
10363 if test "${ac_cv_search_listen+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 ac_func_search_save_LIBS=$LIBS
10367 cat >conftest.$ac_ext <<_ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10374 /* Override any GCC internal prototype to avoid an error.
10375 Use char because int might match the return type of a GCC
10376 builtin and then its argument prototype would still apply. */
10389 for ac_lib in '' socket; do
10390 if test -z "$ac_lib"; then
10391 ac_res="none required"
10394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10396 rm -f conftest.$ac_objext conftest$ac_exeext
10397 if { (ac_try="$ac_link"
10398 case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_link") 2>conftest.er1
10405 grep -v '^ *+' conftest.er1 >conftest.err
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && {
10410 test -z "$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10412 } && test -s conftest$ac_exeext &&
10413 $as_test_x conftest$ac_exeext; then
10414 ac_cv_search_listen=$ac_res
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10424 if test "${ac_cv_search_listen+set}" = set; then
10428 if test "${ac_cv_search_listen+set}" = set; then
10431 ac_cv_search_listen=no
10433 rm conftest.$ac_ext
10434 LIBS=$ac_func_search_save_LIBS
10436 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
10437 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
10438 ac_res=$ac_cv_search_listen
10439 if test "$ac_res" != no; then
10440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10444 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
10445 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
10446 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 ac_func_search_save_LIBS=$LIBS
10450 cat >conftest.$ac_ext <<_ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10457 /* Override any GCC internal prototype to avoid an error.
10458 Use char because int might match the return type of a GCC
10459 builtin and then its argument prototype would still apply. */
10467 return inet_ntoa ();
10472 for ac_lib in '' nsl; do
10473 if test -z "$ac_lib"; then
10474 ac_res="none required"
10477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10479 rm -f conftest.$ac_objext conftest$ac_exeext
10480 if { (ac_try="$ac_link"
10481 case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_link") 2>conftest.er1
10488 grep -v '^ *+' conftest.er1 >conftest.err
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext &&
10496 $as_test_x conftest$ac_exeext; then
10497 ac_cv_search_inet_ntoa=$ac_res
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10507 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10511 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10514 ac_cv_search_inet_ntoa=no
10516 rm conftest.$ac_ext
10517 LIBS=$ac_func_search_save_LIBS
10519 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
10520 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
10521 ac_res=$ac_cv_search_inet_ntoa
10522 if test "$ac_res" != no; then
10523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10530 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10531 if test -n "$ac_tool_prefix"; then
10532 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10533 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10536 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 case $PKG_CONFIG in
10541 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10545 for as_dir in $PATH
10548 test -z "$as_dir" && as_dir=.
10549 for ac_exec_ext in '' $ac_executable_extensions; do
10550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10551 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10562 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10563 if test -n "$PKG_CONFIG"; then
10564 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10565 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10567 { echo "$as_me:$LINENO: result: no" >&5
10568 echo "${ECHO_T}no" >&6; }
10573 if test -z "$ac_cv_path_PKG_CONFIG"; then
10574 ac_pt_PKG_CONFIG=$PKG_CONFIG
10575 # Extract the first word of "pkg-config", so it can be a program name with args.
10576 set dummy pkg-config; ac_word=$2
10577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10579 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10582 case $ac_pt_PKG_CONFIG in
10584 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10588 for as_dir in $PATH
10591 test -z "$as_dir" && as_dir=.
10592 for ac_exec_ext in '' $ac_executable_extensions; do
10593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10594 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10605 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10606 if test -n "$ac_pt_PKG_CONFIG"; then
10607 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
10608 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
10610 { echo "$as_me:$LINENO: result: no" >&5
10611 echo "${ECHO_T}no" >&6; }
10614 if test "x$ac_pt_PKG_CONFIG" = x; then
10617 case $cross_compiling:$ac_tool_warned in
10619 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10620 whose name does not start with the host triplet. If you think this
10621 configuration is useful to you, please write to autoconf@gnu.org." >&5
10622 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10623 whose name does not start with the host triplet. If you think this
10624 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10625 ac_tool_warned=yes ;;
10627 PKG_CONFIG=$ac_pt_PKG_CONFIG
10630 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10634 if test -n "$PKG_CONFIG"; then
10635 _pkg_min_version=0.9.0
10636 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
10637 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
10638 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10639 { echo "$as_me:$LINENO: result: yes" >&5
10640 echo "${ECHO_T}yes" >&6; }
10642 { echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6; }
10650 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
10651 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
10653 if test -n "$LIBPNG_CFLAGS"; then
10654 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
10655 elif test -n "$PKG_CONFIG"; then
10656 if test -n "$PKG_CONFIG" && \
10657 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10658 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; then
10662 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
10669 if test -n "$LIBPNG_LIBS"; then
10670 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
10671 elif test -n "$PKG_CONFIG"; then
10672 if test -n "$PKG_CONFIG" && \
10673 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10674 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; then
10678 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
10688 if test $pkg_failed = yes; then
10690 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10691 _pkg_short_errors_supported=yes
10693 _pkg_short_errors_supported=no
10695 if test $_pkg_short_errors_supported = yes; then
10696 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
10698 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
10700 # Put the nasty error message in config.log where it belongs
10701 echo "$LIBPNG_PKG_ERRORS" >&5
10703 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
10707 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10708 installed software in a non-standard prefix.
10710 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10711 and LIBPNG_LIBS to avoid the need to call pkg-config.
10712 See the pkg-config man page for more details.
10714 echo "$as_me: error: Package requirements (libpng ) were not met:
10718 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10719 installed software in a non-standard prefix.
10721 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10722 and LIBPNG_LIBS to avoid the need to call pkg-config.
10723 See the pkg-config man page for more details.
10725 { (exit 1); exit 1; }; }
10726 elif test $pkg_failed = untried; then
10727 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10728 is in your PATH or set the PKG_CONFIG environment variable to the full
10729 path to pkg-config.
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 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10736 See \`config.log' for more details." >&5
10737 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10738 is in your PATH or set the PKG_CONFIG environment variable to the full
10739 path to pkg-config.
10741 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10742 and LIBPNG_LIBS to avoid the need to call pkg-config.
10743 See the pkg-config man page for more details.
10745 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10746 See \`config.log' for more details." >&2;}
10747 { (exit 1); exit 1; }; }
10749 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
10750 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
10751 { echo "$as_me:$LINENO: result: yes" >&5
10752 echo "${ECHO_T}yes" >&6; }
10757 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
10758 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
10759 if test "${ac_cv_lib_z_uncompress+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 ac_check_lib_save_LIBS=$LIBS
10764 cat >conftest.$ac_ext <<_ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10771 /* Override any GCC internal prototype to avoid an error.
10772 Use char because int might match the return type of a GCC
10773 builtin and then its argument prototype would still apply. */
10777 char uncompress ();
10781 return uncompress ();
10786 rm -f conftest.$ac_objext conftest$ac_exeext
10787 if { (ac_try="$ac_link"
10788 case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_link") 2>conftest.er1
10795 grep -v '^ *+' conftest.er1 >conftest.err
10797 cat conftest.err >&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } && {
10800 test -z "$ac_c_werror_flag" ||
10801 test ! -s conftest.err
10802 } && test -s conftest$ac_exeext &&
10803 $as_test_x conftest$ac_exeext; then
10804 ac_cv_lib_z_uncompress=yes
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10809 ac_cv_lib_z_uncompress=no
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10816 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
10817 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
10818 if test $ac_cv_lib_z_uncompress = yes; then
10819 cat >>confdefs.h <<_ACEOF
10820 #define HAVE_LIBZ 1
10827 echo "Zlib (libz.so) could not be found, but is required."
10832 if test "x$with_gtk" = "xno"; then
10835 { echo "$as_me:$LINENO: checking for GLIB" >&5
10836 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10838 if test -n "$GLIB_CFLAGS"; then
10839 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10840 elif test -n "$PKG_CONFIG"; then
10841 if test -n "$PKG_CONFIG" && \
10842 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10843 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; then
10847 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10854 if test -n "$GLIB_LIBS"; then
10855 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10856 elif test -n "$PKG_CONFIG"; then
10857 if test -n "$PKG_CONFIG" && \
10858 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10859 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; then
10863 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10873 if test $pkg_failed = yes; then
10875 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10876 _pkg_short_errors_supported=yes
10878 _pkg_short_errors_supported=no
10880 if test $_pkg_short_errors_supported = yes; then
10881 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
10883 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
10885 # Put the nasty error message in config.log where it belongs
10886 echo "$GLIB_PKG_ERRORS" >&5
10888 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
10892 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10893 installed software in a non-standard prefix.
10895 Alternatively, you may set the environment variables GLIB_CFLAGS
10896 and GLIB_LIBS to avoid the need to call pkg-config.
10897 See the pkg-config man page for more details.
10899 echo "$as_me: error: Package requirements (glib-2.0) were not met:
10903 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10904 installed software in a non-standard prefix.
10906 Alternatively, you may set the environment variables GLIB_CFLAGS
10907 and GLIB_LIBS to avoid the need to call pkg-config.
10908 See the pkg-config man page for more details.
10910 { (exit 1); exit 1; }; }
10911 elif test $pkg_failed = untried; then
10912 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10913 is in your PATH or set the PKG_CONFIG environment variable to the full
10914 path to pkg-config.
10916 Alternatively, you may set the environment variables GLIB_CFLAGS
10917 and GLIB_LIBS to avoid the need to call pkg-config.
10918 See the pkg-config man page for more details.
10920 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10921 See \`config.log' for more details." >&5
10922 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10923 is in your PATH or set the PKG_CONFIG environment variable to the full
10924 path to pkg-config.
10926 Alternatively, you may set the environment variables GLIB_CFLAGS
10927 and GLIB_LIBS to avoid the need to call pkg-config.
10928 See the pkg-config man page for more details.
10930 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10931 See \`config.log' for more details." >&2;}
10932 { (exit 1); exit 1; }; }
10934 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
10935 GLIB_LIBS=$pkg_cv_GLIB_LIBS
10936 { echo "$as_me:$LINENO: result: yes" >&5
10937 echo "${ECHO_T}yes" >&6; }
10943 { echo "$as_me:$LINENO: checking for GTK" >&5
10944 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
10946 if test -n "$GTK_CFLAGS"; then
10947 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
10948 elif test -n "$PKG_CONFIG"; then
10949 if test -n "$PKG_CONFIG" && \
10950 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10951 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; then
10955 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
10962 if test -n "$GTK_LIBS"; then
10963 pkg_cv_GTK_LIBS="$GTK_LIBS"
10964 elif test -n "$PKG_CONFIG"; then
10965 if test -n "$PKG_CONFIG" && \
10966 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10967 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; then
10971 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
10981 if test $pkg_failed = yes; then
10983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10984 _pkg_short_errors_supported=yes
10986 _pkg_short_errors_supported=no
10988 if test $_pkg_short_errors_supported = yes; then
10989 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
10991 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
10993 # Put the nasty error message in config.log where it belongs
10994 echo "$GTK_PKG_ERRORS" >&5
10996 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
11000 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11001 installed software in a non-standard prefix.
11003 Alternatively, you may set the environment variables GTK_CFLAGS
11004 and GTK_LIBS to avoid the need to call pkg-config.
11005 See the pkg-config man page for more details.
11007 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
11011 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11012 installed software in a non-standard prefix.
11014 Alternatively, you may set the environment variables GTK_CFLAGS
11015 and GTK_LIBS to avoid the need to call pkg-config.
11016 See the pkg-config man page for more details.
11018 { (exit 1); exit 1; }; }
11019 elif test $pkg_failed = untried; then
11020 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11021 is in your PATH or set the PKG_CONFIG environment variable to the full
11022 path to pkg-config.
11024 Alternatively, you may set the environment variables GTK_CFLAGS
11025 and GTK_LIBS to avoid the need to call pkg-config.
11026 See the pkg-config man page for more details.
11028 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11029 See \`config.log' for more details." >&5
11030 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11031 is in your PATH or set the PKG_CONFIG environment variable to the full
11032 path to pkg-config.
11034 Alternatively, you may set the environment variables GTK_CFLAGS
11035 and GTK_LIBS to avoid the need to call pkg-config.
11036 See the pkg-config man page for more details.
11038 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11039 See \`config.log' for more details." >&2;}
11040 { (exit 1); exit 1; }; }
11042 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
11043 GTK_LIBS=$pkg_cv_GTK_LIBS
11044 { echo "$as_me:$LINENO: result: yes" >&5
11045 echo "${ECHO_T}yes" >&6; }
11049 cat >>confdefs.h <<\_ACEOF
11057 LIBS="$LIBS $GTK_LIBS"
11058 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
11059 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
11060 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 cat >conftest.$ac_ext <<_ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
11070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11071 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
11073 /* System header to define __stub macros and hopefully few prototypes,
11074 which can conflict with char gdk_x11_display_get_xdisplay (); below.
11075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11076 <limits.h> exists even on freestanding compilers. */
11079 # include <limits.h>
11081 # include <assert.h>
11084 #undef gdk_x11_display_get_xdisplay
11086 /* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
11092 char gdk_x11_display_get_xdisplay ();
11093 /* The GNU C library defines this for functions which it implements
11094 to always fail with ENOSYS. Some functions are actually named
11095 something starting with __ and the normal name is an alias. */
11096 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
11103 return gdk_x11_display_get_xdisplay ();
11108 rm -f conftest.$ac_objext conftest$ac_exeext
11109 if { (ac_try="$ac_link"
11110 case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_link") 2>conftest.er1
11117 grep -v '^ *+' conftest.er1 >conftest.err
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } && {
11122 test -z "$ac_c_werror_flag" ||
11123 test ! -s conftest.err
11124 } && test -s conftest$ac_exeext &&
11125 $as_test_x conftest$ac_exeext; then
11126 ac_cv_func_gdk_x11_display_get_xdisplay=yes
11128 echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11131 ac_cv_func_gdk_x11_display_get_xdisplay=no
11134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11135 conftest$ac_exeext conftest.$ac_ext
11137 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
11138 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
11139 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
11143 cat >>confdefs.h <<\_ACEOF
11144 #define HAVE_GTK_X11 1
11149 GTK_LIBS="$GTK_LIBS -lX11"
11151 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
11152 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
11153 if test "${ac_cv_func_gdk_quartz_window_get_nsview+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_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
11163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11164 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
11166 /* System header to define __stub macros and hopefully few prototypes,
11167 which can conflict with char gdk_quartz_window_get_nsview (); 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_quartz_window_get_nsview
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_quartz_window_get_nsview ();
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_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
11196 return gdk_quartz_window_get_nsview ();
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_quartz_window_get_nsview=yes
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11224 ac_cv_func_gdk_quartz_window_get_nsview=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_quartz_window_get_nsview" >&5
11231 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
11232 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
11236 cat >>confdefs.h <<\_ACEOF
11237 #define HAVE_GTK_OSX 1
11242 if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
11243 { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
11244 See \`config.log' for more details." >&5
11245 echo "$as_me: error: Unable to identify GTK platform
11246 See \`config.log' for more details." >&2;}
11247 { (exit 1); exit 1; }; }
11254 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
11255 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
11257 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
11258 pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
11259 elif test -n "$PKG_CONFIG"; then
11260 if test -n "$PKG_CONFIG" && \
11261 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
11262 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; then
11266 pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
11273 if test -n "$GLIB_FOR_BUILD_LIBS"; then
11274 pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
11275 elif test -n "$PKG_CONFIG"; then
11276 if test -n "$PKG_CONFIG" && \
11277 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
11278 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; then
11282 pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
11292 if test $pkg_failed = yes; then
11294 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11295 _pkg_short_errors_supported=yes
11297 _pkg_short_errors_supported=no
11299 if test $_pkg_short_errors_supported = yes; then
11300 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
11302 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
11304 # Put the nasty error message in config.log where it belongs
11305 echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
11307 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
11309 $GLIB_FOR_BUILD_PKG_ERRORS
11311 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11312 installed software in a non-standard prefix.
11314 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11315 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11316 See the pkg-config man page for more details.
11318 echo "$as_me: error: Package requirements (glib-2.0) were not met:
11320 $GLIB_FOR_BUILD_PKG_ERRORS
11322 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11323 installed software in a non-standard prefix.
11325 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11326 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11327 See the pkg-config man page for more details.
11329 { (exit 1); exit 1; }; }
11330 elif test $pkg_failed = untried; then
11331 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11332 is in your PATH or set the PKG_CONFIG environment variable to the full
11333 path to pkg-config.
11335 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11336 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11337 See the pkg-config man page for more details.
11339 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11340 See \`config.log' for more details." >&5
11341 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11342 is in your PATH or set the PKG_CONFIG environment variable to the full
11343 path to pkg-config.
11345 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11346 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11347 See the pkg-config man page for more details.
11349 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11350 See \`config.log' for more details." >&2;}
11351 { (exit 1); exit 1; }; }
11353 GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
11354 GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
11355 { echo "$as_me:$LINENO: result: yes" >&5
11356 echo "${ECHO_T}yes" >&6; }
11363 if test "$HAVE_GTK" = 'yes'; then
11374 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
11375 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
11377 if test -n "$LIBISOFS_CFLAGS"; then
11378 pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
11379 elif test -n "$PKG_CONFIG"; then
11380 if test -n "$PKG_CONFIG" && \
11381 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11382 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; then
11386 pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
11393 if test -n "$LIBISOFS_LIBS"; then
11394 pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
11395 elif test -n "$PKG_CONFIG"; then
11396 if test -n "$PKG_CONFIG" && \
11397 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11398 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; then
11402 pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
11412 if test $pkg_failed = yes; then
11414 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11415 _pkg_short_errors_supported=yes
11417 _pkg_short_errors_supported=no
11419 if test $_pkg_short_errors_supported = yes; then
11420 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
11422 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
11424 # Put the nasty error message in config.log where it belongs
11425 echo "$LIBISOFS_PKG_ERRORS" >&5
11427 { { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
11429 $LIBISOFS_PKG_ERRORS
11431 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11432 installed software in a non-standard prefix.
11434 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11435 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11436 See the pkg-config man page for more details.
11438 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
11440 $LIBISOFS_PKG_ERRORS
11442 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11443 installed software in a non-standard prefix.
11445 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11446 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11447 See the pkg-config man page for more details.
11449 { (exit 1); exit 1; }; }
11450 elif test $pkg_failed = untried; then
11451 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11452 is in your PATH or set the PKG_CONFIG environment variable to the full
11453 path to pkg-config.
11455 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11456 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11457 See the pkg-config man page for more details.
11459 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11460 See \`config.log' for more details." >&5
11461 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11462 is in your PATH or set the PKG_CONFIG environment variable to the full
11463 path to pkg-config.
11465 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11466 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11467 See the pkg-config man page for more details.
11469 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11470 See \`config.log' for more details." >&2;}
11471 { (exit 1); exit 1; }; }
11473 LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
11474 LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
11475 { echo "$as_me:$LINENO: result: yes" >&5
11476 echo "${ECHO_T}yes" >&6; }
11480 if test "x$with_osmesa" != xno; then
11484 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
11485 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
11486 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 ac_check_lib_save_LIBS=$LIBS
11490 LIBS="-lOSMesa $LIBS"
11491 cat >conftest.$ac_ext <<_ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11498 /* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
11504 char OSMesaCreateContext ();
11508 return OSMesaCreateContext ();
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (ac_try="$ac_link"
11515 case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_link") 2>conftest.er1
11522 grep -v '^ *+' conftest.er1 >conftest.err
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } && {
11527 test -z "$ac_c_werror_flag" ||
11528 test ! -s conftest.err
11529 } && test -s conftest$ac_exeext &&
11530 $as_test_x conftest$ac_exeext; then
11531 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_cv_lib_OSMesa_OSMesaCreateContext=no
11539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11540 conftest$ac_exeext conftest.$ac_ext
11541 LIBS=$ac_check_lib_save_LIBS
11543 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
11544 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
11545 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
11546 cat >>confdefs.h <<_ACEOF
11547 #define HAVE_LIBOSMESA 1
11550 LIBS="-lOSMesa $LIBS"
11553 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
11554 See \`config.log' for more details." >&5
11555 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
11556 See \`config.log' for more details." >&2;}
11557 { (exit 1); exit 1; }; }
11560 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11561 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11562 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11563 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11567 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11569 # Is the header compilable?
11570 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
11571 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
11572 cat >conftest.$ac_ext <<_ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h. */
11578 $ac_includes_default
11579 #include <GL/osmesa.h>
11581 rm -f conftest.$ac_objext
11582 if { (ac_try="$ac_compile"
11583 case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_compile") 2>conftest.er1
11590 grep -v '^ *+' conftest.er1 >conftest.err
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } && {
11595 test -z "$ac_c_werror_flag" ||
11596 test ! -s conftest.err
11597 } && test -s conftest.$ac_objext; then
11598 ac_header_compiler=yes
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_header_compiler=no
11606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11608 echo "${ECHO_T}$ac_header_compiler" >&6; }
11610 # Is the header present?
11611 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
11612 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
11613 cat >conftest.$ac_ext <<_ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11619 #include <GL/osmesa.h>
11621 if { (ac_try="$ac_cpp conftest.$ac_ext"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11629 grep -v '^ *+' conftest.er1 >conftest.err
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } >/dev/null && {
11634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11635 test ! -s conftest.err
11637 ac_header_preproc=yes
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 ac_header_preproc=no
11645 rm -f conftest.err conftest.$ac_ext
11646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11647 echo "${ECHO_T}$ac_header_preproc" >&6; }
11649 # So? What about this header?
11650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11652 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
11653 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
11655 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
11656 ac_header_preproc=yes
11659 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
11660 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
11661 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
11662 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
11663 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
11664 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
11665 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
11666 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
11668 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
11669 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
11670 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
11674 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11675 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11676 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 ac_cv_header_GL_osmesa_h=$ac_header_preproc
11681 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11682 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11685 if test $ac_cv_header_GL_osmesa_h = yes; then
11688 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
11689 See \`config.log' for more details." >&5
11690 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
11691 See \`config.log' for more details." >&2;}
11692 { (exit 1); exit 1; }; }
11697 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
11699 cat >>confdefs.h <<\_ACEOF
11700 #define HAVE_OSMESA 1
11706 if test "x$APPLE_BUILD" != 'xyes' -a "x$ANDROID_BUILD" != 'xyes'; then
11709 { echo "$as_me:$LINENO: checking for LIBGL" >&5
11710 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
11712 if test -n "$LIBGL_CFLAGS"; then
11713 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
11714 elif test -n "$PKG_CONFIG"; then
11715 if test -n "$PKG_CONFIG" && \
11716 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11717 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; then
11721 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
11728 if test -n "$LIBGL_LIBS"; then
11729 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
11730 elif test -n "$PKG_CONFIG"; then
11731 if test -n "$PKG_CONFIG" && \
11732 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11733 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; then
11737 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
11747 if test $pkg_failed = yes; then
11749 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11750 _pkg_short_errors_supported=yes
11752 _pkg_short_errors_supported=no
11754 if test $_pkg_short_errors_supported = yes; then
11755 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
11757 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
11759 # Put the nasty error message in config.log where it belongs
11760 echo "$LIBGL_PKG_ERRORS" >&5
11762 { { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
11766 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11767 installed software in a non-standard prefix.
11769 Alternatively, you may set the environment variables LIBGL_CFLAGS
11770 and LIBGL_LIBS to avoid the need to call pkg-config.
11771 See the pkg-config man page for more details.
11773 echo "$as_me: error: Package requirements (gl ) were not met:
11777 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11778 installed software in a non-standard prefix.
11780 Alternatively, you may set the environment variables LIBGL_CFLAGS
11781 and LIBGL_LIBS to avoid the need to call pkg-config.
11782 See the pkg-config man page for more details.
11784 { (exit 1); exit 1; }; }
11785 elif test $pkg_failed = untried; then
11786 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11787 is in your PATH or set the PKG_CONFIG environment variable to the full
11788 path to pkg-config.
11790 Alternatively, you may set the environment variables LIBGL_CFLAGS
11791 and LIBGL_LIBS to avoid the need to call pkg-config.
11792 See the pkg-config man page for more details.
11794 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11795 See \`config.log' for more details." >&5
11796 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11797 is in your PATH or set the PKG_CONFIG environment variable to the full
11798 path to pkg-config.
11800 Alternatively, you may set the environment variables LIBGL_CFLAGS
11801 and LIBGL_LIBS to avoid the need to call pkg-config.
11802 See the pkg-config man page for more details.
11804 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11805 See \`config.log' for more details." >&2;}
11806 { (exit 1); exit 1; }; }
11808 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
11809 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
11810 { echo "$as_me:$LINENO: result: yes" >&5
11811 echo "${ECHO_T}yes" >&6; }
11814 LIBS="$LIBS $LIBGL_LIBS";
11815 CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
11817 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
11818 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
11819 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 cat >conftest.$ac_ext <<_ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
11829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11830 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
11832 /* System header to define __stub macros and hopefully few prototypes,
11833 which can conflict with char NSOpenGLGetVersion (); below.
11834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835 <limits.h> exists even on freestanding compilers. */
11838 # include <limits.h>
11840 # include <assert.h>
11843 #undef NSOpenGLGetVersion
11845 /* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11851 char NSOpenGLGetVersion ();
11852 /* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
11862 return NSOpenGLGetVersion ();
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
11876 grep -v '^ *+' conftest.er1 >conftest.err
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } && {
11881 test -z "$ac_c_werror_flag" ||
11882 test ! -s conftest.err
11883 } && test -s conftest$ac_exeext &&
11884 $as_test_x conftest$ac_exeext; then
11885 ac_cv_func_NSOpenGLGetVersion=yes
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11890 ac_cv_func_NSOpenGLGetVersion=no
11893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11894 conftest$ac_exeext conftest.$ac_ext
11896 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
11897 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
11898 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
11901 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
11903 cat >>confdefs.h <<\_ACEOF
11904 #define HAVE_NSGL 1
11911 if test "x$HAVE_GTK_X11" = "xyes"; then
11912 if test "x$APPLE_BUILD" = "xyes"; then
11913 LIBS="$LIBS -L/usr/X11/lib -lGL"
11915 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
11916 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
11917 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 cat >conftest.$ac_ext <<_ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h. */
11926 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
11927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11928 #define glXQueryVersion innocuous_glXQueryVersion
11930 /* System header to define __stub macros and hopefully few prototypes,
11931 which can conflict with char glXQueryVersion (); below.
11932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11933 <limits.h> exists even on freestanding compilers. */
11936 # include <limits.h>
11938 # include <assert.h>
11941 #undef glXQueryVersion
11943 /* Override any GCC internal prototype to avoid an error.
11944 Use char because int might match the return type of a GCC
11945 builtin and then its argument prototype would still apply. */
11949 char glXQueryVersion ();
11950 /* The GNU C library defines this for functions which it implements
11951 to always fail with ENOSYS. Some functions are actually named
11952 something starting with __ and the normal name is an alias. */
11953 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
11960 return glXQueryVersion ();
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (ac_try="$ac_link"
11967 case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_link") 2>conftest.er1
11974 grep -v '^ *+' conftest.er1 >conftest.err
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest$ac_exeext &&
11982 $as_test_x conftest$ac_exeext; then
11983 ac_cv_func_glXQueryVersion=yes
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_cv_func_glXQueryVersion=no
11991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992 conftest$ac_exeext conftest.$ac_ext
11994 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
11995 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
11996 if test $ac_cv_func_glXQueryVersion = yes; then
11999 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
12001 cat >>confdefs.h <<\_ACEOF
12017 if test "x$HAVE_OSMESA" = "xyes"; then
12019 VIDEO_OSMESA_FALSE='#'
12021 VIDEO_OSMESA_TRUE='#'
12022 VIDEO_OSMESA_FALSE=
12027 if test "x$HAVE_GLX" = "xyes"; then
12029 VIDEO_GLX_FALSE='#'
12037 if test "x$HAVE_NSGL" = "xyes"; then
12039 VIDEO_NSGL_FALSE='#'
12041 VIDEO_NSGL_TRUE='#'
12046 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
12047 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
12048 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 cat >conftest.$ac_ext <<_ACEOF
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h. */
12057 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
12058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12059 #define glGenFramebuffers innocuous_glGenFramebuffers
12061 /* System header to define __stub macros and hopefully few prototypes,
12062 which can conflict with char glGenFramebuffers (); below.
12063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12064 <limits.h> exists even on freestanding compilers. */
12067 # include <limits.h>
12069 # include <assert.h>
12072 #undef glGenFramebuffers
12074 /* Override any GCC internal prototype to avoid an error.
12075 Use char because int might match the return type of a GCC
12076 builtin and then its argument prototype would still apply. */
12080 char glGenFramebuffers ();
12081 /* The GNU C library defines this for functions which it implements
12082 to always fail with ENOSYS. Some functions are actually named
12083 something starting with __ and the normal name is an alias. */
12084 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
12091 return glGenFramebuffers ();
12096 rm -f conftest.$ac_objext conftest$ac_exeext
12097 if { (ac_try="$ac_link"
12098 case "(($ac_try" in
12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100 *) ac_try_echo=$ac_try;;
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103 (eval "$ac_link") 2>conftest.er1
12105 grep -v '^ *+' conftest.er1 >conftest.err
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } && {
12110 test -z "$ac_c_werror_flag" ||
12111 test ! -s conftest.err
12112 } && test -s conftest$ac_exeext &&
12113 $as_test_x conftest$ac_exeext; then
12114 ac_cv_func_glGenFramebuffers=yes
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12119 ac_cv_func_glGenFramebuffers=no
12122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12123 conftest$ac_exeext conftest.$ac_ext
12125 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
12126 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
12127 if test $ac_cv_func_glGenFramebuffers = yes; then
12129 cat >>confdefs.h <<\_ACEOF
12130 #define HAVE_OPENGL_FBO 1
12135 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
12136 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
12137 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
12147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12148 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
12150 /* System header to define __stub macros and hopefully few prototypes,
12151 which can conflict with char glGenFramebuffersEXT (); below.
12152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12153 <limits.h> exists even on freestanding compilers. */
12156 # include <limits.h>
12158 # include <assert.h>
12161 #undef glGenFramebuffersEXT
12163 /* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12169 char glGenFramebuffersEXT ();
12170 /* The GNU C library defines this for functions which it implements
12171 to always fail with ENOSYS. Some functions are actually named
12172 something starting with __ and the normal name is an alias. */
12173 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
12180 return glGenFramebuffersEXT ();
12185 rm -f conftest.$ac_objext conftest$ac_exeext
12186 if { (ac_try="$ac_link"
12187 case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_link") 2>conftest.er1
12194 grep -v '^ *+' conftest.er1 >conftest.err
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } && {
12199 test -z "$ac_c_werror_flag" ||
12200 test ! -s conftest.err
12201 } && test -s conftest$ac_exeext &&
12202 $as_test_x conftest$ac_exeext; then
12203 ac_cv_func_glGenFramebuffersEXT=yes
12205 echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12208 ac_cv_func_glGenFramebuffersEXT=no
12211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12212 conftest$ac_exeext conftest.$ac_ext
12214 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
12215 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
12216 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
12218 cat >>confdefs.h <<\_ACEOF
12219 #define HAVE_OPENGL_FBO_EXT 1
12224 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
12225 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
12226 if test "${ac_cv_func_glCreateShader+set}" = set; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12229 cat >conftest.$ac_ext <<_ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
12236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12237 #define glCreateShader innocuous_glCreateShader
12239 /* System header to define __stub macros and hopefully few prototypes,
12240 which can conflict with char glCreateShader (); below.
12241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242 <limits.h> exists even on freestanding compilers. */
12245 # include <limits.h>
12247 # include <assert.h>
12250 #undef glCreateShader
12252 /* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
12258 char glCreateShader ();
12259 /* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262 #if defined __stub_glCreateShader || defined __stub___glCreateShader
12269 return glCreateShader ();
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_link") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest$ac_exeext &&
12291 $as_test_x conftest$ac_exeext; then
12292 ac_cv_func_glCreateShader=yes
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12297 ac_cv_func_glCreateShader=no
12300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12301 conftest$ac_exeext conftest.$ac_ext
12303 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
12304 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
12305 if test $ac_cv_func_glCreateShader = yes; then
12307 cat >>confdefs.h <<\_ACEOF
12308 #define HAVE_OPENGL_SHADER 1
12313 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
12314 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
12315 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 cat >conftest.$ac_ext <<_ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12324 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
12325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12326 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
12328 /* System header to define __stub macros and hopefully few prototypes,
12329 which can conflict with char glCreateShaderObjectARB (); below.
12330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12331 <limits.h> exists even on freestanding compilers. */
12334 # include <limits.h>
12336 # include <assert.h>
12339 #undef glCreateShaderObjectARB
12341 /* Override any GCC internal prototype to avoid an error.
12342 Use char because int might match the return type of a GCC
12343 builtin and then its argument prototype would still apply. */
12347 char glCreateShaderObjectARB ();
12348 /* The GNU C library defines this for functions which it implements
12349 to always fail with ENOSYS. Some functions are actually named
12350 something starting with __ and the normal name is an alias. */
12351 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
12358 return glCreateShaderObjectARB ();
12363 rm -f conftest.$ac_objext conftest$ac_exeext
12364 if { (ac_try="$ac_link"
12365 case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_link") 2>conftest.er1
12372 grep -v '^ *+' conftest.er1 >conftest.err
12374 cat conftest.err >&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } && {
12377 test -z "$ac_c_werror_flag" ||
12378 test ! -s conftest.err
12379 } && test -s conftest$ac_exeext &&
12380 $as_test_x conftest$ac_exeext; then
12381 ac_cv_func_glCreateShaderObjectARB=yes
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12386 ac_cv_func_glCreateShaderObjectARB=no
12389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12390 conftest$ac_exeext conftest.$ac_ext
12392 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
12393 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
12394 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
12396 cat >>confdefs.h <<\_ACEOF
12397 #define HAVE_OPENGL_SHADER_ARB 1
12402 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
12403 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
12404 if test "${ac_cv_func_glClampColorARB+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
12414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12415 #define glClampColorARB innocuous_glClampColorARB
12417 /* System header to define __stub macros and hopefully few prototypes,
12418 which can conflict with char glClampColorARB (); below.
12419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12420 <limits.h> exists even on freestanding compilers. */
12423 # include <limits.h>
12425 # include <assert.h>
12428 #undef glClampColorARB
12430 /* Override any GCC internal prototype to avoid an error.
12431 Use char because int might match the return type of a GCC
12432 builtin and then its argument prototype would still apply. */
12436 char glClampColorARB ();
12437 /* The GNU C library defines this for functions which it implements
12438 to always fail with ENOSYS. Some functions are actually named
12439 something starting with __ and the normal name is an alias. */
12440 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
12447 return glClampColorARB ();
12452 rm -f conftest.$ac_objext conftest$ac_exeext
12453 if { (ac_try="$ac_link"
12454 case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_link") 2>conftest.er1
12461 grep -v '^ *+' conftest.er1 >conftest.err
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } && {
12466 test -z "$ac_c_werror_flag" ||
12467 test ! -s conftest.err
12468 } && test -s conftest$ac_exeext &&
12469 $as_test_x conftest$ac_exeext; then
12470 ac_cv_func_glClampColorARB=yes
12472 echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12475 ac_cv_func_glClampColorARB=no
12478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12479 conftest$ac_exeext conftest.$ac_ext
12481 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
12482 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
12483 if test $ac_cv_func_glClampColorARB = yes; then
12485 cat >>confdefs.h <<\_ACEOF
12486 #define HAVE_OPENGL_CLAMP_COLOR 1
12491 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
12492 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
12493 if test "${ac_cv_func_glClearDepthf+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 cat >conftest.$ac_ext <<_ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12502 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
12503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12504 #define glClearDepthf innocuous_glClearDepthf
12506 /* System header to define __stub macros and hopefully few prototypes,
12507 which can conflict with char glClearDepthf (); below.
12508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12509 <limits.h> exists even on freestanding compilers. */
12512 # include <limits.h>
12514 # include <assert.h>
12517 #undef glClearDepthf
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12525 char glClearDepthf ();
12526 /* The GNU C library defines this for functions which it implements
12527 to always fail with ENOSYS. Some functions are actually named
12528 something starting with __ and the normal name is an alias. */
12529 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
12536 return glClearDepthf ();
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (ac_try="$ac_link"
12543 case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_link") 2>conftest.er1
12550 grep -v '^ *+' conftest.er1 >conftest.err
12552 cat conftest.err >&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } && {
12555 test -z "$ac_c_werror_flag" ||
12556 test ! -s conftest.err
12557 } && test -s conftest$ac_exeext &&
12558 $as_test_x conftest$ac_exeext; then
12559 ac_cv_func_glClearDepthf=yes
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12564 ac_cv_func_glClearDepthf=no
12567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12568 conftest$ac_exeext conftest.$ac_ext
12570 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
12571 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
12572 if test $ac_cv_func_glClearDepthf = yes; then
12574 cat >>confdefs.h <<\_ACEOF
12575 #define HAVE_OPENGL_CLEAR_DEPTHF 1
12580 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
12581 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
12582 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 cat >conftest.$ac_ext <<_ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12591 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
12592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12593 #define glAreTexturesResident innocuous_glAreTexturesResident
12595 /* System header to define __stub macros and hopefully few prototypes,
12596 which can conflict with char glAreTexturesResident (); below.
12597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12598 <limits.h> exists even on freestanding compilers. */
12601 # include <limits.h>
12603 # include <assert.h>
12606 #undef glAreTexturesResident
12608 /* Override any GCC internal prototype to avoid an error.
12609 Use char because int might match the return type of a GCC
12610 builtin and then its argument prototype would still apply. */
12614 char glAreTexturesResident ();
12615 /* The GNU C library defines this for functions which it implements
12616 to always fail with ENOSYS. Some functions are actually named
12617 something starting with __ and the normal name is an alias. */
12618 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
12625 return glAreTexturesResident ();
12630 rm -f conftest.$ac_objext conftest$ac_exeext
12631 if { (ac_try="$ac_link"
12632 case "(($ac_try" in
12633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634 *) ac_try_echo=$ac_try;;
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637 (eval "$ac_link") 2>conftest.er1
12639 grep -v '^ *+' conftest.er1 >conftest.err
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } && {
12644 test -z "$ac_c_werror_flag" ||
12645 test ! -s conftest.err
12646 } && test -s conftest$ac_exeext &&
12647 $as_test_x conftest$ac_exeext; then
12648 ac_cv_func_glAreTexturesResident=yes
12650 echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12653 ac_cv_func_glAreTexturesResident=no
12656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12657 conftest$ac_exeext conftest.$ac_ext
12659 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
12660 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
12661 if test $ac_cv_func_glAreTexturesResident = yes; then
12663 cat >>confdefs.h <<\_ACEOF
12664 #define HAVE_OPENGL_TEX_RESIDENT 1
12669 { echo "$as_me:$LINENO: checking for glDrawBuffer" >&5
12670 echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }
12671 if test "${ac_cv_func_glDrawBuffer+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 cat >conftest.$ac_ext <<_ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12680 /* Define glDrawBuffer to an innocuous variant, in case <limits.h> declares glDrawBuffer.
12681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12682 #define glDrawBuffer innocuous_glDrawBuffer
12684 /* System header to define __stub macros and hopefully few prototypes,
12685 which can conflict with char glDrawBuffer (); below.
12686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12687 <limits.h> exists even on freestanding compilers. */
12690 # include <limits.h>
12692 # include <assert.h>
12695 #undef glDrawBuffer
12697 /* Override any GCC internal prototype to avoid an error.
12698 Use char because int might match the return type of a GCC
12699 builtin and then its argument prototype would still apply. */
12703 char glDrawBuffer ();
12704 /* The GNU C library defines this for functions which it implements
12705 to always fail with ENOSYS. Some functions are actually named
12706 something starting with __ and the normal name is an alias. */
12707 #if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer
12714 return glDrawBuffer ();
12719 rm -f conftest.$ac_objext conftest$ac_exeext
12720 if { (ac_try="$ac_link"
12721 case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_link") 2>conftest.er1
12728 grep -v '^ *+' conftest.er1 >conftest.err
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && {
12733 test -z "$ac_c_werror_flag" ||
12734 test ! -s conftest.err
12735 } && test -s conftest$ac_exeext &&
12736 $as_test_x conftest$ac_exeext; then
12737 ac_cv_func_glDrawBuffer=yes
12739 echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12742 ac_cv_func_glDrawBuffer=no
12745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12746 conftest$ac_exeext conftest.$ac_ext
12748 { echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&5
12749 echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }
12750 if test $ac_cv_func_glDrawBuffer = yes; then
12752 cat >>confdefs.h <<\_ACEOF
12753 #define HAVE_OPENGL_DRAW_BUFFER 1
12758 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
12759 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
12760 if test "${ac_cv_func_glTexEnvi+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12763 cat >conftest.$ac_ext <<_ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12769 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
12770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12771 #define glTexEnvi innocuous_glTexEnvi
12773 /* System header to define __stub macros and hopefully few prototypes,
12774 which can conflict with char glTexEnvi (); below.
12775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12776 <limits.h> exists even on freestanding compilers. */
12779 # include <limits.h>
12781 # include <assert.h>
12786 /* Override any GCC internal prototype to avoid an error.
12787 Use char because int might match the return type of a GCC
12788 builtin and then its argument prototype would still apply. */
12793 /* The GNU C library defines this for functions which it implements
12794 to always fail with ENOSYS. Some functions are actually named
12795 something starting with __ and the normal name is an alias. */
12796 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
12803 return glTexEnvi ();
12808 rm -f conftest.$ac_objext conftest$ac_exeext
12809 if { (ac_try="$ac_link"
12810 case "(($ac_try" in
12811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812 *) ac_try_echo=$ac_try;;
12814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12815 (eval "$ac_link") 2>conftest.er1
12817 grep -v '^ *+' conftest.er1 >conftest.err
12819 cat conftest.err >&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } && {
12822 test -z "$ac_c_werror_flag" ||
12823 test ! -s conftest.err
12824 } && test -s conftest$ac_exeext &&
12825 $as_test_x conftest$ac_exeext; then
12826 ac_cv_func_glTexEnvi=yes
12828 echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12831 ac_cv_func_glTexEnvi=no
12834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12835 conftest$ac_exeext conftest.$ac_ext
12837 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
12838 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
12839 if test $ac_cv_func_glTexEnvi = yes; then
12841 cat >>confdefs.h <<\_ACEOF
12842 #define HAVE_OPENGL_FIXEDFUNC 1
12848 if test "x$enable_translator" != "xno"; then
12850 i386|i486|i586|i686|x86_64)
12851 SH4_TRANSLATOR="x86"
12853 cat >>confdefs.h <<_ACEOF
12854 #define SH4_TRANSLATOR TARGET_X86
12861 if test "$SH4_TRANSLATOR" = "x86"; then
12863 BUILD_SH4X86_FALSE='#'
12865 BUILD_SH4X86_TRUE='#'
12866 BUILD_SH4X86_FALSE=
12870 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12871 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12872 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12873 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12877 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12879 # Is the header compilable?
12880 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
12881 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
12882 cat >conftest.$ac_ext <<_ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12888 $ac_includes_default
12889 #include <CoreAudio/CoreAudio.h>
12891 rm -f conftest.$ac_objext
12892 if { (ac_try="$ac_compile"
12893 case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898 (eval "$ac_compile") 2>conftest.er1
12900 grep -v '^ *+' conftest.er1 >conftest.err
12902 cat conftest.err >&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } && {
12905 test -z "$ac_c_werror_flag" ||
12906 test ! -s conftest.err
12907 } && test -s conftest.$ac_objext; then
12908 ac_header_compiler=yes
12910 echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12913 ac_header_compiler=no
12916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12918 echo "${ECHO_T}$ac_header_compiler" >&6; }
12920 # Is the header present?
12921 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
12922 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
12923 cat >conftest.$ac_ext <<_ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929 #include <CoreAudio/CoreAudio.h>
12931 if { (ac_try="$ac_cpp conftest.$ac_ext"
12932 case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12939 grep -v '^ *+' conftest.er1 >conftest.err
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } >/dev/null && {
12944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12945 test ! -s conftest.err
12947 ac_header_preproc=yes
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12952 ac_header_preproc=no
12955 rm -f conftest.err conftest.$ac_ext
12956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12957 echo "${ECHO_T}$ac_header_preproc" >&6; }
12959 # So? What about this header?
12960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12962 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12963 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12964 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
12965 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
12966 ac_header_preproc=yes
12969 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
12970 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
12971 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
12972 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
12973 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
12974 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
12975 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
12976 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12977 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
12978 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
12979 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
12980 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
12984 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12985 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12986 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
12991 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12992 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12995 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
12997 HAVE_CORE_AUDIO=yes
12998 LIBS="$LIBS -framework CoreAudio"
12999 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
13001 cat >>confdefs.h <<\_ACEOF
13002 #define HAVE_CORE_AUDIO 1
13012 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
13014 AUDIO_OSX_FALSE='#'
13021 if test "x$with_sdl" != "xno"; then
13024 { echo "$as_me:$LINENO: checking for SDL" >&5
13025 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
13027 if test -n "$SDL_CFLAGS"; then
13028 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13029 elif test -n "$PKG_CONFIG"; then
13030 if test -n "$PKG_CONFIG" && \
13031 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
13032 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; then
13036 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13043 if test -n "$SDL_LIBS"; then
13044 pkg_cv_SDL_LIBS="$SDL_LIBS"
13045 elif test -n "$PKG_CONFIG"; then
13046 if test -n "$PKG_CONFIG" && \
13047 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
13048 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; then
13052 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13062 if test $pkg_failed = yes; then
13064 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13065 _pkg_short_errors_supported=yes
13067 _pkg_short_errors_supported=no
13069 if test $_pkg_short_errors_supported = yes; then
13070 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
13072 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
13074 # Put the nasty error message in config.log where it belongs
13075 echo "$SDL_PKG_ERRORS" >&5
13077 { echo "$as_me:$LINENO: result: no" >&5
13078 echo "${ECHO_T}no" >&6; }
13080 if test "x$with_sdl" = "xyes"; then
13081 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
13082 See \`config.log' for more details." >&5
13083 echo "$as_me: error: \"SDL libraries could not be found (but were required)
13084 See \`config.log' for more details." >&2;}
13085 { (exit 1); exit 1; }; }
13088 elif test $pkg_failed = untried; then
13090 if test "x$with_sdl" = "xyes"; then
13091 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
13092 See \`config.log' for more details." >&5
13093 echo "$as_me: error: \"SDL libraries could not be found (but were required)
13094 See \`config.log' for more details." >&2;}
13095 { (exit 1); exit 1; }; }
13099 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13100 SDL_LIBS=$pkg_cv_SDL_LIBS
13101 { echo "$as_me:$LINENO: result: yes" >&5
13102 echo "${ECHO_T}yes" >&6; }
13105 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
13107 cat >>confdefs.h <<\_ACEOF
13116 if test "$HAVE_SDL" = 'yes' ; then
13118 AUDIO_SDL_FALSE='#'
13125 if test "x$with_pulse" != "xno"; then
13128 { echo "$as_me:$LINENO: checking for PULSE" >&5
13129 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
13131 if test -n "$PULSE_CFLAGS"; then
13132 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
13133 elif test -n "$PKG_CONFIG"; then
13134 if test -n "$PKG_CONFIG" && \
13135 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
13136 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; then
13140 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
13147 if test -n "$PULSE_LIBS"; then
13148 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
13149 elif test -n "$PKG_CONFIG"; then
13150 if test -n "$PKG_CONFIG" && \
13151 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
13152 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; then
13156 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
13166 if test $pkg_failed = yes; then
13168 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13169 _pkg_short_errors_supported=yes
13171 _pkg_short_errors_supported=no
13173 if test $_pkg_short_errors_supported = yes; then
13174 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
13176 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
13178 # Put the nasty error message in config.log where it belongs
13179 echo "$PULSE_PKG_ERRORS" >&5
13181 { echo "$as_me:$LINENO: result: no" >&5
13182 echo "${ECHO_T}no" >&6; }
13184 if test "x$with_pulse" = "xyes"; then
13185 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
13186 See \`config.log' for more details." >&5
13187 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
13188 See \`config.log' for more details." >&2;}
13189 { (exit 1); exit 1; }; }
13192 elif test $pkg_failed = untried; then
13194 if test "x$with_pulse" = "xyes"; then
13195 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
13196 See \`config.log' for more details." >&5
13197 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
13198 See \`config.log' for more details." >&2;}
13199 { (exit 1); exit 1; }; }
13203 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
13204 PULSE_LIBS=$pkg_cv_PULSE_LIBS
13205 { echo "$as_me:$LINENO: result: yes" >&5
13206 echo "${ECHO_T}yes" >&6; }
13209 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
13211 cat >>confdefs.h <<\_ACEOF
13212 #define HAVE_PULSE 1
13220 if test "$HAVE_PULSE" = 'yes' ; then
13222 AUDIO_PULSE_FALSE='#'
13224 AUDIO_PULSE_TRUE='#'
13229 if test "x$with_esd" != "xno"; then
13232 { echo "$as_me:$LINENO: checking for ESOUND" >&5
13233 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
13235 if test -n "$ESOUND_CFLAGS"; then
13236 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
13237 elif test -n "$PKG_CONFIG"; then
13238 if test -n "$PKG_CONFIG" && \
13239 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
13240 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; then
13244 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
13251 if test -n "$ESOUND_LIBS"; then
13252 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
13253 elif test -n "$PKG_CONFIG"; then
13254 if test -n "$PKG_CONFIG" && \
13255 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
13256 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; then
13260 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
13270 if test $pkg_failed = yes; then
13272 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13273 _pkg_short_errors_supported=yes
13275 _pkg_short_errors_supported=no
13277 if test $_pkg_short_errors_supported = yes; then
13278 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
13280 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
13282 # Put the nasty error message in config.log where it belongs
13283 echo "$ESOUND_PKG_ERRORS" >&5
13285 { echo "$as_me:$LINENO: result: no" >&5
13286 echo "${ECHO_T}no" >&6; }
13288 if test "x$with_esd" = "xyes"; then
13289 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13290 See \`config.log' for more details." >&5
13291 echo "$as_me: error: ESounD audio package could not be found (but was required)
13292 See \`config.log' for more details." >&2;}
13293 { (exit 1); exit 1; }; }
13296 elif test $pkg_failed = untried; then
13298 if test "x$with_esd" = "xyes"; then
13299 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13300 See \`config.log' for more details." >&5
13301 echo "$as_me: error: ESounD audio package could not be found (but was required)
13302 See \`config.log' for more details." >&2;}
13303 { (exit 1); exit 1; }; }
13307 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
13308 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
13309 { echo "$as_me:$LINENO: result: yes" >&5
13310 echo "${ECHO_T}yes" >&6; }
13313 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
13315 cat >>confdefs.h <<\_ACEOF
13316 #define HAVE_ESOUND 1
13324 if test "$HAVE_ESOUND" = 'yes' ; then
13326 AUDIO_ESOUND_FALSE='#'
13328 AUDIO_ESOUND_TRUE='#'
13329 AUDIO_ESOUND_FALSE=
13335 { echo "$as_me:$LINENO: checking for ALSA" >&5
13336 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
13338 if test -n "$ALSA_CFLAGS"; then
13339 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
13340 elif test -n "$PKG_CONFIG"; then
13341 if test -n "$PKG_CONFIG" && \
13342 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13343 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; then
13347 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
13354 if test -n "$ALSA_LIBS"; then
13355 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
13356 elif test -n "$PKG_CONFIG"; then
13357 if test -n "$PKG_CONFIG" && \
13358 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13359 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; then
13363 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
13373 if test $pkg_failed = yes; then
13375 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13376 _pkg_short_errors_supported=yes
13378 _pkg_short_errors_supported=no
13380 if test $_pkg_short_errors_supported = yes; then
13381 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
13383 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
13385 # Put the nasty error message in config.log where it belongs
13386 echo "$ALSA_PKG_ERRORS" >&5
13388 { echo "$as_me:$LINENO: result: no" >&5
13389 echo "${ECHO_T}no" >&6; }
13391 elif test $pkg_failed = untried; then
13394 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
13395 ALSA_LIBS=$pkg_cv_ALSA_LIBS
13396 { echo "$as_me:$LINENO: result: yes" >&5
13397 echo "${ECHO_T}yes" >&6; }
13400 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
13402 cat >>confdefs.h <<\_ACEOF
13403 #define HAVE_ALSA 1
13409 if test "$HAVE_ALSA" = 'yes' ; then
13411 AUDIO_ALSA_FALSE='#'
13413 AUDIO_ALSA_TRUE='#'
13419 if test "$ANDROID_BUILD" != "yes"; then
13420 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13421 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13422 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13423 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13427 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13429 # Is the header compilable?
13430 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
13431 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
13432 cat >conftest.$ac_ext <<_ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 $ac_includes_default
13439 #include <linux/cdrom.h>
13441 rm -f conftest.$ac_objext
13442 if { (ac_try="$ac_compile"
13443 case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_compile") 2>conftest.er1
13450 grep -v '^ *+' conftest.er1 >conftest.err
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } && {
13455 test -z "$ac_c_werror_flag" ||
13456 test ! -s conftest.err
13457 } && test -s conftest.$ac_objext; then
13458 ac_header_compiler=yes
13460 echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13463 ac_header_compiler=no
13466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13468 echo "${ECHO_T}$ac_header_compiler" >&6; }
13470 # Is the header present?
13471 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
13472 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
13473 cat >conftest.$ac_ext <<_ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 #include <linux/cdrom.h>
13481 if { (ac_try="$ac_cpp conftest.$ac_ext"
13482 case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13489 grep -v '^ *+' conftest.er1 >conftest.err
13491 cat conftest.err >&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } >/dev/null && {
13494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13495 test ! -s conftest.err
13497 ac_header_preproc=yes
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13502 ac_header_preproc=no
13505 rm -f conftest.err conftest.$ac_ext
13506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13507 echo "${ECHO_T}$ac_header_preproc" >&6; }
13509 # So? What about this header?
13510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13512 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
13513 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
13515 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
13516 ac_header_preproc=yes
13519 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
13520 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
13522 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
13523 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
13524 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
13525 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
13526 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
13527 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
13528 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
13529 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
13530 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
13534 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13535 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13536 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 ac_cv_header_linux_cdrom_h=$ac_header_preproc
13541 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13542 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13545 if test $ac_cv_header_linux_cdrom_h = yes; then
13548 { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
13549 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
13550 old_CFLAGS="$CFLAGS"
13551 CFLAGS="$CFLAGS $STDCFLAG"
13552 cat >conftest.$ac_ext <<_ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 #include <linux/cdrom.h>
13567 rm -f conftest.$ac_objext
13568 if { (ac_try="$ac_compile"
13569 case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574 (eval "$ac_compile") 2>conftest.er1
13576 grep -v '^ *+' conftest.er1 >conftest.err
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } && {
13581 test -z "$ac_c_werror_flag" ||
13582 test ! -s conftest.err
13583 } && test -s conftest.$ac_objext; then
13584 { echo "$as_me:$LINENO: result: Yes" >&5
13585 echo "${ECHO_T}Yes" >&6; }
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13591 { echo "$as_me:$LINENO: result: No" >&5
13592 echo "${ECHO_T}No" >&6; }
13593 STDCFLAG="-std=gnu99"
13596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13597 CFLAGS="$old_CFLAGS"
13604 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13605 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13606 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13607 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13608 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13611 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13613 # Is the header compilable?
13614 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
13615 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
13616 cat >conftest.$ac_ext <<_ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13622 $ac_includes_default
13623 #include <IOKit/IOKitLib.h>
13625 rm -f conftest.$ac_objext
13626 if { (ac_try="$ac_compile"
13627 case "(($ac_try" in
13628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629 *) ac_try_echo=$ac_try;;
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632 (eval "$ac_compile") 2>conftest.er1
13634 grep -v '^ *+' conftest.er1 >conftest.err
13636 cat conftest.err >&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } && {
13639 test -z "$ac_c_werror_flag" ||
13640 test ! -s conftest.err
13641 } && test -s conftest.$ac_objext; then
13642 ac_header_compiler=yes
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13647 ac_header_compiler=no
13650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13652 echo "${ECHO_T}$ac_header_compiler" >&6; }
13654 # Is the header present?
13655 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
13656 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
13657 cat >conftest.$ac_ext <<_ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 #include <IOKit/IOKitLib.h>
13665 if { (ac_try="$ac_cpp conftest.$ac_ext"
13666 case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13673 grep -v '^ *+' conftest.er1 >conftest.err
13675 cat conftest.err >&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } >/dev/null && {
13678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13679 test ! -s conftest.err
13681 ac_header_preproc=yes
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 ac_header_preproc=no
13689 rm -f conftest.err conftest.$ac_ext
13690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13691 echo "${ECHO_T}$ac_header_preproc" >&6; }
13693 # So? What about this header?
13694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13696 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13697 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13698 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
13699 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
13700 ac_header_preproc=yes
13703 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
13704 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
13705 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
13706 echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
13707 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
13708 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
13709 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
13710 echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13711 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
13712 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
13713 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
13714 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
13718 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13719 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13720 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
13723 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
13725 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13726 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13729 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
13732 LIBS="$LIBS -framework IOKit"
13741 if test "x$CDROM_DRIVER" = "xlinux"; then
13743 CDROM_LINUX_FALSE='#'
13745 CDROM_LINUX_TRUE='#'
13751 if test "x$CDROM_DRIVER" = "xosx"; then
13753 CDROM_OSX_FALSE='#'
13761 if test "x$CDROM_DRIVER" = "x"; then
13763 CDROM_NONE_FALSE='#'
13765 CDROM_NONE_TRUE='#'
13769 if test "x$CDROM_DRIVER" = "xlinux"; then
13771 cat >>confdefs.h <<\_ACEOF
13772 #define HAVE_LINUX_CDROM 1
13777 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13778 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13779 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13780 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13784 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13786 # Is the header compilable?
13787 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
13788 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
13789 cat >conftest.$ac_ext <<_ACEOF
13792 cat confdefs.h >>conftest.$ac_ext
13793 cat >>conftest.$ac_ext <<_ACEOF
13794 /* end confdefs.h. */
13795 $ac_includes_default
13796 #include <linux/joystick.h>
13798 rm -f conftest.$ac_objext
13799 if { (ac_try="$ac_compile"
13800 case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_compile") 2>conftest.er1
13807 grep -v '^ *+' conftest.er1 >conftest.err
13809 cat conftest.err >&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } && {
13812 test -z "$ac_c_werror_flag" ||
13813 test ! -s conftest.err
13814 } && test -s conftest.$ac_objext; then
13815 ac_header_compiler=yes
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 ac_header_compiler=no
13823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13825 echo "${ECHO_T}$ac_header_compiler" >&6; }
13827 # Is the header present?
13828 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
13829 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
13830 cat >conftest.$ac_ext <<_ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 #include <linux/joystick.h>
13838 if { (ac_try="$ac_cpp conftest.$ac_ext"
13839 case "(($ac_try" in
13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841 *) ac_try_echo=$ac_try;;
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13846 grep -v '^ *+' conftest.er1 >conftest.err
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } >/dev/null && {
13851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13852 test ! -s conftest.err
13854 ac_header_preproc=yes
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13859 ac_header_preproc=no
13862 rm -f conftest.err conftest.$ac_ext
13863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13864 echo "${ECHO_T}$ac_header_preproc" >&6; }
13866 # So? What about this header?
13867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13869 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
13870 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
13872 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
13873 ac_header_preproc=yes
13876 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
13877 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
13878 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
13879 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
13880 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
13881 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
13882 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
13883 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
13884 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
13885 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
13886 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
13887 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
13891 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13892 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13893 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13896 ac_cv_header_linux_joystick_h=$ac_header_preproc
13898 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13899 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13902 if test $ac_cv_header_linux_joystick_h = yes; then
13904 HAVE_LINUX_JOYSTICK_H=yes
13906 cat >>confdefs.h <<\_ACEOF
13907 #define HAVE_LINUX_JOYSTICK 1
13910 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
13912 echo "Linux Joystick support not found, building without it."
13918 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
13920 JOY_LINUX_FALSE='#'
13927 if test "x$with_lirc" != "xno"; then
13928 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13929 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
13930 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
13931 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
13935 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
13937 # Is the header compilable?
13938 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
13939 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
13940 cat >conftest.$ac_ext <<_ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h. */
13946 $ac_includes_default
13947 #include <lirc/lirc_client.h>
13949 rm -f conftest.$ac_objext
13950 if { (ac_try="$ac_compile"
13951 case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_compile") 2>conftest.er1
13958 grep -v '^ *+' conftest.er1 >conftest.err
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } && {
13963 test -z "$ac_c_werror_flag" ||
13964 test ! -s conftest.err
13965 } && test -s conftest.$ac_objext; then
13966 ac_header_compiler=yes
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13971 ac_header_compiler=no
13974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13976 echo "${ECHO_T}$ac_header_compiler" >&6; }
13978 # Is the header present?
13979 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
13980 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
13981 cat >conftest.$ac_ext <<_ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13987 #include <lirc/lirc_client.h>
13989 if { (ac_try="$ac_cpp conftest.$ac_ext"
13990 case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13997 grep -v '^ *+' conftest.er1 >conftest.err
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } >/dev/null && {
14002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14003 test ! -s conftest.err
14005 ac_header_preproc=yes
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14010 ac_header_preproc=no
14013 rm -f conftest.err conftest.$ac_ext
14014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14015 echo "${ECHO_T}$ac_header_preproc" >&6; }
14017 # So? What about this header?
14018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14020 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
14021 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14022 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
14023 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
14024 ac_header_preproc=yes
14027 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
14028 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
14030 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
14032 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
14034 echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
14036 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
14038 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
14042 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14043 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
14044 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
14049 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14050 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
14053 if test $ac_cv_header_lirc_lirc_client_h = yes; then
14055 HAVE_LIRC_CLIENT_H=yes
14057 cat >>confdefs.h <<\_ACEOF
14058 #define HAVE_LIRC 1
14061 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
14064 echo "LIRC support not found, building without it."
14071 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
14073 INPUT_LIRC_FALSE='#'
14075 INPUT_LIRC_TRUE='#'
14080 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
14081 set dummy sh-elf-gcc; ac_word=$2
14082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14084 if test "${ac_cv_path_SHCC+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
14092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14093 for as_dir in $PATH
14096 test -z "$as_dir" && as_dir=.
14097 for ac_exec_ext in '' $ac_executable_extensions; do
14098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14099 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
14100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14110 SHCC=$ac_cv_path_SHCC
14111 if test -n "$SHCC"; then
14112 { echo "$as_me:$LINENO: result: $SHCC" >&5
14113 echo "${ECHO_T}$SHCC" >&6; }
14115 { echo "$as_me:$LINENO: result: no" >&5
14116 echo "${ECHO_T}no" >&6; }
14120 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
14121 set dummy sh-elf-ld; ac_word=$2
14122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14124 if test "${ac_cv_path_SHLD+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
14132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14133 for as_dir in $PATH
14136 test -z "$as_dir" && as_dir=.
14137 for ac_exec_ext in '' $ac_executable_extensions; do
14138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14139 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
14140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14150 SHLD=$ac_cv_path_SHLD
14151 if test -n "$SHLD"; then
14152 { echo "$as_me:$LINENO: result: $SHLD" >&5
14153 echo "${ECHO_T}$SHLD" >&6; }
14155 { echo "$as_me:$LINENO: result: no" >&5
14156 echo "${ECHO_T}no" >&6; }
14160 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
14161 set dummy sh-elf-objcopy; ac_word=$2
14162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14164 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
14172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173 for as_dir in $PATH
14176 test -z "$as_dir" && as_dir=.
14177 for ac_exec_ext in '' $ac_executable_extensions; do
14178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14179 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
14180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14190 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
14191 if test -n "$SHOBJCOPY"; then
14192 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
14193 echo "${ECHO_T}$SHOBJCOPY" >&6; }
14195 { echo "$as_me:$LINENO: result: no" >&5
14196 echo "${ECHO_T}no" >&6; }
14200 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
14201 set dummy arm-elf-gcc; ac_word=$2
14202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14204 if test "${ac_cv_path_ARMCC+set}" = set; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
14212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213 for as_dir in $PATH
14216 test -z "$as_dir" && as_dir=.
14217 for ac_exec_ext in '' $ac_executable_extensions; do
14218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14219 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
14220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14230 ARMCC=$ac_cv_path_ARMCC
14231 if test -n "$ARMCC"; then
14232 { echo "$as_me:$LINENO: result: $ARMCC" >&5
14233 echo "${ECHO_T}$ARMCC" >&6; }
14235 { echo "$as_me:$LINENO: result: no" >&5
14236 echo "${ECHO_T}no" >&6; }
14240 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
14241 set dummy arm-elf-ld; ac_word=$2
14242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14244 if test "${ac_cv_path_ARMLD+set}" = set; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14259 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
14260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14270 ARMLD=$ac_cv_path_ARMLD
14271 if test -n "$ARMLD"; then
14272 { echo "$as_me:$LINENO: result: $ARMLD" >&5
14273 echo "${ECHO_T}$ARMLD" >&6; }
14275 { echo "$as_me:$LINENO: result: no" >&5
14276 echo "${ECHO_T}no" >&6; }
14280 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
14281 set dummy arm-elf-objcopy; ac_word=$2
14282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14284 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 case $ARMOBJCOPY in
14289 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14296 test -z "$as_dir" && as_dir=.
14297 for ac_exec_ext in '' $ac_executable_extensions; do
14298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14299 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
14300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14310 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
14311 if test -n "$ARMOBJCOPY"; then
14312 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
14313 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
14315 { echo "$as_me:$LINENO: result: no" >&5
14316 echo "${ECHO_T}no" >&6; }
14321 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
14323 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
14327 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
14329 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
14335 if test "$BUILD_SH" = "yes"; then
14336 BUILD_SYSTEST_TRUE=
14337 BUILD_SYSTEST_FALSE='#'
14339 BUILD_SYSTEST_TRUE='#'
14340 BUILD_SYSTEST_FALSE=
14345 if test "$BUILD_ARM" = "yes"; then
14346 BUILD_ARMTEST_TRUE=
14347 BUILD_ARMTEST_FALSE='#'
14349 BUILD_ARMTEST_TRUE='#'
14350 BUILD_ARMTEST_FALSE=
14354 CFLAGS="$CFLAGS $STDCFLAG"
14356 GETTEXT_PACKAGE=lxdream
14357 LXDREAM_LIBS="$LIBS"
14362 cat >>confdefs.h <<_ACEOF
14363 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
14367 ALL_LINGUAS="de es it nl pt_BR"
14370 for ac_header in locale.h
14372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 ac_res=`eval echo '${'$as_ac_Header'}'`
14380 { echo "$as_me:$LINENO: result: $ac_res" >&5
14381 echo "${ECHO_T}$ac_res" >&6; }
14383 # Is the header compilable?
14384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14386 cat >conftest.$ac_ext <<_ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 $ac_includes_default
14393 #include <$ac_header>
14395 rm -f conftest.$ac_objext
14396 if { (ac_try="$ac_compile"
14397 case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_compile") 2>conftest.er1
14404 grep -v '^ *+' conftest.er1 >conftest.err
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } && {
14409 test -z "$ac_c_werror_flag" ||
14410 test ! -s conftest.err
14411 } && test -s conftest.$ac_objext; then
14412 ac_header_compiler=yes
14414 echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14417 ac_header_compiler=no
14420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14422 echo "${ECHO_T}$ac_header_compiler" >&6; }
14424 # Is the header present?
14425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14427 cat >conftest.$ac_ext <<_ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h. */
14433 #include <$ac_header>
14435 if { (ac_try="$ac_cpp conftest.$ac_ext"
14436 case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14443 grep -v '^ *+' conftest.er1 >conftest.err
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } >/dev/null && {
14448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14449 test ! -s conftest.err
14451 ac_header_preproc=yes
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14456 ac_header_preproc=no
14459 rm -f conftest.err conftest.$ac_ext
14460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14461 echo "${ECHO_T}$ac_header_preproc" >&6; }
14463 # So? What about this header?
14464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14470 ac_header_preproc=yes
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 eval "$as_ac_Header=\$ac_header_preproc"
14495 ac_res=`eval echo '${'$as_ac_Header'}'`
14496 { echo "$as_me:$LINENO: result: $ac_res" >&5
14497 echo "${ECHO_T}$ac_res" >&6; }
14500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14501 cat >>confdefs.h <<_ACEOF
14502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14509 if test $ac_cv_header_locale_h = yes; then
14510 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14511 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
14512 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 cat >conftest.$ac_ext <<_ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 #include <locale.h>
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (ac_try="$ac_link"
14532 case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_link") 2>conftest.er1
14539 grep -v '^ *+' conftest.er1 >conftest.err
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } && {
14544 test -z "$ac_c_werror_flag" ||
14545 test ! -s conftest.err
14546 } && test -s conftest$ac_exeext &&
14547 $as_test_x conftest$ac_exeext; then
14548 am_cv_val_LC_MESSAGES=yes
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14553 am_cv_val_LC_MESSAGES=no
14556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14557 conftest$ac_exeext conftest.$ac_ext
14559 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14560 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
14561 if test $am_cv_val_LC_MESSAGES = yes; then
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_LC_MESSAGES 1
14572 gt_cv_have_gettext=no
14578 if test "${ac_cv_header_libintl_h+set}" = set; then
14579 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14580 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14581 if test "${ac_cv_header_libintl_h+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14585 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14587 # Is the header compilable?
14588 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
14589 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
14590 cat >conftest.$ac_ext <<_ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14596 $ac_includes_default
14597 #include <libintl.h>
14599 rm -f conftest.$ac_objext
14600 if { (ac_try="$ac_compile"
14601 case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_compile") 2>conftest.er1
14608 grep -v '^ *+' conftest.er1 >conftest.err
14610 cat conftest.err >&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } && {
14613 test -z "$ac_c_werror_flag" ||
14614 test ! -s conftest.err
14615 } && test -s conftest.$ac_objext; then
14616 ac_header_compiler=yes
14618 echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14621 ac_header_compiler=no
14624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14626 echo "${ECHO_T}$ac_header_compiler" >&6; }
14628 # Is the header present?
14629 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
14630 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
14631 cat >conftest.$ac_ext <<_ACEOF
14634 cat confdefs.h >>conftest.$ac_ext
14635 cat >>conftest.$ac_ext <<_ACEOF
14636 /* end confdefs.h. */
14637 #include <libintl.h>
14639 if { (ac_try="$ac_cpp conftest.$ac_ext"
14640 case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14647 grep -v '^ *+' conftest.er1 >conftest.err
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } >/dev/null && {
14652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14653 test ! -s conftest.err
14655 ac_header_preproc=yes
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14660 ac_header_preproc=no
14663 rm -f conftest.err conftest.$ac_ext
14664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14665 echo "${ECHO_T}$ac_header_preproc" >&6; }
14667 # So? What about this header?
14668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14670 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14671 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
14673 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
14674 ac_header_preproc=yes
14677 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14678 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14680 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
14682 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
14684 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14685 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14686 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14687 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
14688 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
14692 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14693 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14694 if test "${ac_cv_header_libintl_h+set}" = set; then
14695 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 ac_cv_header_libintl_h=$ac_header_preproc
14699 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14700 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14703 if test $ac_cv_header_libintl_h = yes; then
14704 gt_cv_func_dgettext_libintl="no"
14705 libintl_extra_libs=""
14708 # First check in libc
14710 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
14711 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
14712 if test "${gt_cv_func_ngettext_libc+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 cat >conftest.$ac_ext <<_ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h. */
14722 #include <libintl.h>
14727 return !ngettext ("","", 1)
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (ac_try="$ac_link"
14734 case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_link") 2>conftest.er1
14741 grep -v '^ *+' conftest.er1 >conftest.err
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } && {
14746 test -z "$ac_c_werror_flag" ||
14747 test ! -s conftest.err
14748 } && test -s conftest$ac_exeext &&
14749 $as_test_x conftest$ac_exeext; then
14750 gt_cv_func_ngettext_libc=yes
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 gt_cv_func_ngettext_libc=no
14758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14759 conftest$ac_exeext conftest.$ac_ext
14762 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
14763 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
14765 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14766 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
14767 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
14768 if test "${gt_cv_func_dgettext_libc+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 cat >conftest.$ac_ext <<_ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14778 #include <libintl.h>
14783 return !dgettext ("","")
14788 rm -f conftest.$ac_objext conftest$ac_exeext
14789 if { (ac_try="$ac_link"
14790 case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_link") 2>conftest.er1
14797 grep -v '^ *+' conftest.er1 >conftest.err
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } && {
14802 test -z "$ac_c_werror_flag" ||
14803 test ! -s conftest.err
14804 } && test -s conftest$ac_exeext &&
14805 $as_test_x conftest$ac_exeext; then
14806 gt_cv_func_dgettext_libc=yes
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14811 gt_cv_func_dgettext_libc=no
14814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14815 conftest$ac_exeext conftest.$ac_ext
14818 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
14819 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
14822 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14824 for ac_func in bind_textdomain_codeset
14826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14832 cat >conftest.$ac_ext <<_ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14840 #define $ac_func innocuous_$ac_func
14842 /* System header to define __stub macros and hopefully few prototypes,
14843 which can conflict with char $ac_func (); below.
14844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14845 <limits.h> exists even on freestanding compilers. */
14848 # include <limits.h>
14850 # include <assert.h>
14855 /* Override any GCC internal prototype to avoid an error.
14856 Use char because int might match the return type of a GCC
14857 builtin and then its argument prototype would still apply. */
14862 /* The GNU C library defines this for functions which it implements
14863 to always fail with ENOSYS. Some functions are actually named
14864 something starting with __ and the normal name is an alias. */
14865 #if defined __stub_$ac_func || defined __stub___$ac_func
14872 return $ac_func ();
14877 rm -f conftest.$ac_objext conftest$ac_exeext
14878 if { (ac_try="$ac_link"
14879 case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_link") 2>conftest.er1
14886 grep -v '^ *+' conftest.er1 >conftest.err
14888 cat conftest.err >&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); } && {
14891 test -z "$ac_c_werror_flag" ||
14892 test ! -s conftest.err
14893 } && test -s conftest$ac_exeext &&
14894 $as_test_x conftest$ac_exeext; then
14895 eval "$as_ac_var=yes"
14897 echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14900 eval "$as_ac_var=no"
14903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14904 conftest$ac_exeext conftest.$ac_ext
14906 ac_res=`eval echo '${'$as_ac_var'}'`
14907 { echo "$as_me:$LINENO: result: $ac_res" >&5
14908 echo "${ECHO_T}$ac_res" >&6; }
14909 if test `eval echo '${'$as_ac_var'}'` = yes; then
14910 cat >>confdefs.h <<_ACEOF
14911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14920 # If we don't have everything we want, check in libintl
14922 if test "$gt_cv_func_dgettext_libc" != "yes" \
14923 || test "$gt_cv_func_ngettext_libc" != "yes" \
14924 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
14926 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
14927 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
14928 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14931 ac_check_lib_save_LIBS=$LIBS
14932 LIBS="-lintl $LIBS"
14933 cat >conftest.$ac_ext <<_ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14940 /* Override any GCC internal prototype to avoid an error.
14941 Use char because int might match the return type of a GCC
14942 builtin and then its argument prototype would still apply. */
14946 char bindtextdomain ();
14950 return bindtextdomain ();
14955 rm -f conftest.$ac_objext conftest$ac_exeext
14956 if { (ac_try="$ac_link"
14957 case "(($ac_try" in
14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 *) ac_try_echo=$ac_try;;
14961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962 (eval "$ac_link") 2>conftest.er1
14964 grep -v '^ *+' conftest.er1 >conftest.err
14966 cat conftest.err >&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } && {
14969 test -z "$ac_c_werror_flag" ||
14970 test ! -s conftest.err
14971 } && test -s conftest$ac_exeext &&
14972 $as_test_x conftest$ac_exeext; then
14973 ac_cv_lib_intl_bindtextdomain=yes
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14978 ac_cv_lib_intl_bindtextdomain=no
14981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14982 conftest$ac_exeext conftest.$ac_ext
14983 LIBS=$ac_check_lib_save_LIBS
14985 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
14986 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
14987 if test $ac_cv_lib_intl_bindtextdomain = yes; then
14988 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
14989 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
14990 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14993 ac_check_lib_save_LIBS=$LIBS
14994 LIBS="-lintl $LIBS"
14995 cat >conftest.$ac_ext <<_ACEOF
14998 cat confdefs.h >>conftest.$ac_ext
14999 cat >>conftest.$ac_ext <<_ACEOF
15000 /* end confdefs.h. */
15002 /* Override any GCC internal prototype to avoid an error.
15003 Use char because int might match the return type of a GCC
15004 builtin and then its argument prototype would still apply. */
15012 return ngettext ();
15017 rm -f conftest.$ac_objext conftest$ac_exeext
15018 if { (ac_try="$ac_link"
15019 case "(($ac_try" in
15020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021 *) ac_try_echo=$ac_try;;
15023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024 (eval "$ac_link") 2>conftest.er1
15026 grep -v '^ *+' conftest.er1 >conftest.err
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } && {
15031 test -z "$ac_c_werror_flag" ||
15032 test ! -s conftest.err
15033 } && test -s conftest$ac_exeext &&
15034 $as_test_x conftest$ac_exeext; then
15035 ac_cv_lib_intl_ngettext=yes
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15040 ac_cv_lib_intl_ngettext=no
15043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15044 conftest$ac_exeext conftest.$ac_ext
15045 LIBS=$ac_check_lib_save_LIBS
15047 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
15048 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
15049 if test $ac_cv_lib_intl_ngettext = yes; then
15050 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
15051 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
15052 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 ac_check_lib_save_LIBS=$LIBS
15056 LIBS="-lintl $LIBS"
15057 cat >conftest.$ac_ext <<_ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15064 /* Override any GCC internal prototype to avoid an error.
15065 Use char because int might match the return type of a GCC
15066 builtin and then its argument prototype would still apply. */
15074 return dgettext ();
15079 rm -f conftest.$ac_objext conftest$ac_exeext
15080 if { (ac_try="$ac_link"
15081 case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_link") 2>conftest.er1
15088 grep -v '^ *+' conftest.er1 >conftest.err
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } && {
15093 test -z "$ac_c_werror_flag" ||
15094 test ! -s conftest.err
15095 } && test -s conftest$ac_exeext &&
15096 $as_test_x conftest$ac_exeext; then
15097 ac_cv_lib_intl_dgettext=yes
15099 echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15102 ac_cv_lib_intl_dgettext=no
15105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15106 conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_check_lib_save_LIBS
15109 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
15110 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
15111 if test $ac_cv_lib_intl_dgettext = yes; then
15112 gt_cv_func_dgettext_libintl=yes
15120 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
15121 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
15122 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
15123 { echo "$as_me:$LINENO: result: " >&5
15124 echo "${ECHO_T}" >&6; }
15125 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
15126 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
15127 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 ac_check_lib_save_LIBS=$LIBS
15131 LIBS="-lintl -liconv $LIBS"
15132 cat >conftest.$ac_ext <<_ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15139 /* Override any GCC internal prototype to avoid an error.
15140 Use char because int might match the return type of a GCC
15141 builtin and then its argument prototype would still apply. */
15149 return ngettext ();
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (ac_try="$ac_link"
15156 case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_link") 2>conftest.er1
15163 grep -v '^ *+' conftest.er1 >conftest.err
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } && {
15168 test -z "$ac_c_werror_flag" ||
15169 test ! -s conftest.err
15170 } && test -s conftest$ac_exeext &&
15171 $as_test_x conftest$ac_exeext; then
15172 ac_cv_lib_intl_ngettext=yes
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_cv_lib_intl_ngettext=no
15180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15181 conftest$ac_exeext conftest.$ac_ext
15182 LIBS=$ac_check_lib_save_LIBS
15184 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
15185 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
15186 if test $ac_cv_lib_intl_ngettext = yes; then
15187 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
15188 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
15189 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
15190 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 ac_check_lib_save_LIBS=$LIBS
15193 LIBS="-lintl -liconv $LIBS"
15194 cat >conftest.$ac_ext <<_ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15201 /* Override any GCC internal prototype to avoid an error.
15202 Use char because int might match the return type of a GCC
15203 builtin and then its argument prototype would still apply. */
15211 return dcgettext ();
15216 rm -f conftest.$ac_objext conftest$ac_exeext
15217 if { (ac_try="$ac_link"
15218 case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_link") 2>conftest.er1
15225 grep -v '^ *+' conftest.er1 >conftest.err
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } && {
15230 test -z "$ac_c_werror_flag" ||
15231 test ! -s conftest.err
15232 } && test -s conftest$ac_exeext &&
15233 $as_test_x conftest$ac_exeext; then
15234 ac_cv_lib_intl_dcgettext=yes
15236 echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15239 ac_cv_lib_intl_dcgettext=no
15242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15243 conftest$ac_exeext conftest.$ac_ext
15244 LIBS=$ac_check_lib_save_LIBS
15246 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
15247 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
15248 if test $ac_cv_lib_intl_dcgettext = yes; then
15249 gt_cv_func_dgettext_libintl=yes
15250 libintl_extra_libs=-liconv
15262 # If we found libintl, then check in it for bind_textdomain_codeset();
15263 # we'll prefer libc if neither have bind_textdomain_codeset(),
15264 # and both have dgettext and ngettext
15266 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
15267 glib_save_LIBS="$LIBS"
15268 LIBS="$LIBS -lintl $libintl_extra_libs"
15269 unset ac_cv_func_bind_textdomain_codeset
15271 for ac_func in bind_textdomain_codeset
15273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 cat >conftest.$ac_ext <<_ACEOF
15282 cat confdefs.h >>conftest.$ac_ext
15283 cat >>conftest.$ac_ext <<_ACEOF
15284 /* end confdefs.h. */
15285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15287 #define $ac_func innocuous_$ac_func
15289 /* System header to define __stub macros and hopefully few prototypes,
15290 which can conflict with char $ac_func (); below.
15291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15292 <limits.h> exists even on freestanding compilers. */
15295 # include <limits.h>
15297 # include <assert.h>
15302 /* Override any GCC internal prototype to avoid an error.
15303 Use char because int might match the return type of a GCC
15304 builtin and then its argument prototype would still apply. */
15309 /* The GNU C library defines this for functions which it implements
15310 to always fail with ENOSYS. Some functions are actually named
15311 something starting with __ and the normal name is an alias. */
15312 #if defined __stub_$ac_func || defined __stub___$ac_func
15319 return $ac_func ();
15324 rm -f conftest.$ac_objext conftest$ac_exeext
15325 if { (ac_try="$ac_link"
15326 case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_link") 2>conftest.er1
15333 grep -v '^ *+' conftest.er1 >conftest.err
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } && {
15338 test -z "$ac_c_werror_flag" ||
15339 test ! -s conftest.err
15340 } && test -s conftest$ac_exeext &&
15341 $as_test_x conftest$ac_exeext; then
15342 eval "$as_ac_var=yes"
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15347 eval "$as_ac_var=no"
15350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15351 conftest$ac_exeext conftest.$ac_ext
15353 ac_res=`eval echo '${'$as_ac_var'}'`
15354 { echo "$as_me:$LINENO: result: $ac_res" >&5
15355 echo "${ECHO_T}$ac_res" >&6; }
15356 if test `eval echo '${'$as_ac_var'}'` = yes; then
15357 cat >>confdefs.h <<_ACEOF
15358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15364 LIBS="$glib_save_LIBS"
15366 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
15367 gt_cv_func_dgettext_libc=no
15369 if test "$gt_cv_func_dgettext_libc" = "yes" \
15370 && test "$gt_cv_func_ngettext_libc" = "yes"; then
15371 gt_cv_func_dgettext_libintl=no
15377 if test "$gt_cv_func_dgettext_libc" = "yes" \
15378 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
15379 gt_cv_have_gettext=yes
15382 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
15383 INTLLIBS="-lintl $libintl_extra_libs"
15386 if test "$gt_cv_have_gettext" = "yes"; then
15388 cat >>confdefs.h <<\_ACEOF
15389 #define HAVE_GETTEXT 1
15392 # Extract the first word of "msgfmt", so it can be a program name with args.
15393 set dummy msgfmt; ac_word=$2
15394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15396 if test "${ac_cv_path_MSGFMT+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15405 for ac_dir in $PATH; do
15406 test -z "$ac_dir" && ac_dir=.
15407 if test -f $ac_dir/$ac_word; then
15408 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
15409 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15415 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
15419 MSGFMT="$ac_cv_path_MSGFMT"
15420 if test "$MSGFMT" != "no"; then
15421 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15422 echo "${ECHO_T}$MSGFMT" >&6; }
15424 { echo "$as_me:$LINENO: result: no" >&5
15425 echo "${ECHO_T}no" >&6; }
15427 if test "$MSGFMT" != "no"; then
15428 glib_save_LIBS="$LIBS"
15429 LIBS="$LIBS $INTLLIBS"
15431 for ac_func in dcgettext
15433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15439 cat >conftest.$ac_ext <<_ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h. */
15445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15447 #define $ac_func innocuous_$ac_func
15449 /* System header to define __stub macros and hopefully few prototypes,
15450 which can conflict with char $ac_func (); below.
15451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15452 <limits.h> exists even on freestanding compilers. */
15455 # include <limits.h>
15457 # include <assert.h>
15462 /* Override any GCC internal prototype to avoid an error.
15463 Use char because int might match the return type of a GCC
15464 builtin and then its argument prototype would still apply. */
15469 /* The GNU C library defines this for functions which it implements
15470 to always fail with ENOSYS. Some functions are actually named
15471 something starting with __ and the normal name is an alias. */
15472 #if defined __stub_$ac_func || defined __stub___$ac_func
15479 return $ac_func ();
15484 rm -f conftest.$ac_objext conftest$ac_exeext
15485 if { (ac_try="$ac_link"
15486 case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_link") 2>conftest.er1
15493 grep -v '^ *+' conftest.er1 >conftest.err
15495 cat conftest.err >&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } && {
15498 test -z "$ac_c_werror_flag" ||
15499 test ! -s conftest.err
15500 } && test -s conftest$ac_exeext &&
15501 $as_test_x conftest$ac_exeext; then
15502 eval "$as_ac_var=yes"
15504 echo "$as_me: failed program was:" >&5
15505 sed 's/^/| /' conftest.$ac_ext >&5
15507 eval "$as_ac_var=no"
15510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15511 conftest$ac_exeext conftest.$ac_ext
15513 ac_res=`eval echo '${'$as_ac_var'}'`
15514 { echo "$as_me:$LINENO: result: $ac_res" >&5
15515 echo "${ECHO_T}$ac_res" >&6; }
15516 if test `eval echo '${'$as_ac_var'}'` = yes; then
15517 cat >>confdefs.h <<_ACEOF
15518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15525 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
15526 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
15527 cat >conftest.foo <<_ACEOF
15531 "Content-Type: text/plain; charset=UTF-8\n"
15532 "Project-Id-Version: test 1.0\n"
15533 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
15534 "Last-Translator: test <foo@bar.xx>\n"
15535 "Language-Team: C <LL@li.org>\n"
15536 "MIME-Version: 1.0\n"
15537 "Content-Transfer-Encoding: 8bit\n"
15540 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
15541 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; then
15545 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
15546 echo "${ECHO_T}yes" >&6; }
15547 else { echo "$as_me:$LINENO: result: no" >&5
15548 echo "${ECHO_T}no" >&6; }
15549 echo "$as_me: failed input was:" >&5
15550 sed 's/^/| /' conftest.foo >&5
15553 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15554 set dummy gmsgfmt; ac_word=$2
15555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15557 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15566 for as_dir in $PATH
15569 test -z "$as_dir" && as_dir=.
15570 for ac_exec_ext in '' $ac_executable_extensions; do
15571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15572 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15580 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15584 GMSGFMT=$ac_cv_path_GMSGFMT
15585 if test -n "$GMSGFMT"; then
15586 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15587 echo "${ECHO_T}$GMSGFMT" >&6; }
15589 { echo "$as_me:$LINENO: result: no" >&5
15590 echo "${ECHO_T}no" >&6; }
15594 # Extract the first word of "xgettext", so it can be a program name with args.
15595 set dummy xgettext; ac_word=$2
15596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15598 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 case "$XGETTEXT" in
15603 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15607 for ac_dir in $PATH; do
15608 test -z "$ac_dir" && ac_dir=.
15609 if test -f $ac_dir/$ac_word; then
15610 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
15611 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15617 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15621 XGETTEXT="$ac_cv_path_XGETTEXT"
15622 if test "$XGETTEXT" != ":"; then
15623 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15624 echo "${ECHO_T}$XGETTEXT" >&6; }
15626 { echo "$as_me:$LINENO: result: no" >&5
15627 echo "${ECHO_T}no" >&6; }
15630 cat >conftest.$ac_ext <<_ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15640 extern int _nl_msg_cat_cntr;
15641 return _nl_msg_cat_cntr
15646 rm -f conftest.$ac_objext conftest$ac_exeext
15647 if { (ac_try="$ac_link"
15648 case "(($ac_try" in
15649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653 (eval "$ac_link") 2>conftest.er1
15655 grep -v '^ *+' conftest.er1 >conftest.err
15657 cat conftest.err >&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } && {
15660 test -z "$ac_c_werror_flag" ||
15661 test ! -s conftest.err
15662 } && test -s conftest$ac_exeext &&
15663 $as_test_x conftest$ac_exeext; then
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15672 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
15673 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
15674 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 cat >conftest.$ac_ext <<_ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
15684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15685 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
15687 /* System header to define __stub macros and hopefully few prototypes,
15688 which can conflict with char bind_textdomain_codeset (); below.
15689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15690 <limits.h> exists even on freestanding compilers. */
15693 # include <limits.h>
15695 # include <assert.h>
15698 #undef bind_textdomain_codeset
15700 /* Override any GCC internal prototype to avoid an error.
15701 Use char because int might match the return type of a GCC
15702 builtin and then its argument prototype would still apply. */
15706 char bind_textdomain_codeset ();
15707 /* The GNU C library defines this for functions which it implements
15708 to always fail with ENOSYS. Some functions are actually named
15709 something starting with __ and the normal name is an alias. */
15710 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
15717 return bind_textdomain_codeset ();
15722 rm -f conftest.$ac_objext conftest$ac_exeext
15723 if { (ac_try="$ac_link"
15724 case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729 (eval "$ac_link") 2>conftest.er1
15731 grep -v '^ *+' conftest.er1 >conftest.err
15733 cat conftest.err >&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } && {
15736 test -z "$ac_c_werror_flag" ||
15737 test ! -s conftest.err
15738 } && test -s conftest$ac_exeext &&
15739 $as_test_x conftest$ac_exeext; then
15740 ac_cv_func_bind_textdomain_codeset=yes
15742 echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15745 ac_cv_func_bind_textdomain_codeset=no
15748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15749 conftest$ac_exeext conftest.$ac_ext
15751 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
15752 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
15753 if test $ac_cv_func_bind_textdomain_codeset = yes; then
15769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15770 conftest$ac_exeext conftest.$ac_ext
15771 LIBS="$glib_save_LIBS"
15774 gt_cv_have_gettext=no
15782 if test "$gt_cv_have_gettext" = "yes" ; then
15784 cat >>confdefs.h <<\_ACEOF
15785 #define ENABLE_NLS 1
15790 if test "$XGETTEXT" != ":"; then
15791 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
15794 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15795 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
15800 # We need to process the po/ directory.
15803 ac_config_commands="$ac_config_commands default-1"
15806 for lang in $ALL_LINGUAS; do
15807 GMOFILES="$GMOFILES $lang.gmo"
15808 POFILES="$POFILES $lang.po"
15823 if test "$gt_cv_have_gettext" = "yes"; then
15824 if test "x$ALL_LINGUAS" = "x"; then
15827 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15828 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
15830 for presentlang in $ALL_LINGUAS; do
15832 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
15833 desiredlanguages="$LINGUAS"
15835 desiredlanguages="$ALL_LINGUAS"
15837 for desiredlang in $desiredlanguages; do
15838 # Use the presentlang catalog if desiredlang is
15839 # a. equal to presentlang, or
15840 # b. a variant of presentlang (because in this case,
15841 # presentlang can be used as a fallback for messages
15842 # which are not translated in the desiredlang catalog).
15843 case "$desiredlang" in
15844 "$presentlang"*) useit=yes;;
15847 if test $useit = yes; then
15848 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15851 LINGUAS=$NEW_LINGUAS
15852 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
15853 echo "${ECHO_T}$LINGUAS" >&6; }
15856 if test -n "$LINGUAS"; then
15857 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15862 if test -n "$ac_aux_dir"; then
15863 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15865 if test -z "$MKINSTALLDIRS"; then
15866 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15870 test -d po || mkdir po
15871 if test "x$srcdir" != "x."; then
15872 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
15873 posrcprefix="$srcdir/"
15875 posrcprefix="../$srcdir/"
15881 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
15882 < $srcdir/po/POTFILES.in > po/POTFILES
15885 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
15887 cat >confcache <<\_ACEOF
15888 # This file is a shell script that caches the results of configure
15889 # tests run on this system so they can be shared between configure
15890 # scripts and configure runs, see configure's option --config-cache.
15891 # It is not useful on other systems. If it contains results you don't
15892 # want to keep, you may remove or edit it.
15894 # config.status only pays attention to the cache file if you give it
15895 # the --recheck option to rerun configure.
15897 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15898 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15899 # following values.
15903 # The following way of writing the cache mishandles newlines in values,
15904 # but we know of no workaround that is simple, portable, and efficient.
15905 # So, we kill variables containing newlines.
15906 # Ultrix sh set writes to stderr and can't be redirected directly,
15907 # and sets the high bit in the cache file unless we assign to the vars.
15909 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15910 eval ac_val=\$$ac_var
15914 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15915 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15918 _ | IFS | as_nl) ;; #(
15919 *) $as_unset $ac_var ;;
15925 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15926 *${as_nl}ac_space=\ *)
15927 # `set' does not quote correctly, so add quotes (double-quote
15928 # substitution turns \\\\ into \\, and sed turns \\ into \).
15931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15934 # `set' quotes correctly as required by POSIX, so do not add quotes.
15935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15944 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15946 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15948 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15949 if test -w "$cache_file"; then
15950 test "x$cache_file" != "x/dev/null" &&
15951 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15952 echo "$as_me: updating cache $cache_file" >&6;}
15953 cat confcache >$cache_file
15955 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15956 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15962 # Let make expand exec_prefix.
15963 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15965 DEFS=-DHAVE_CONFIG_H
15969 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15970 # 1. Remove the extension, and $U if already installed.
15971 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15972 ac_i=`echo "$ac_i" | sed "$ac_script"`
15973 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15974 # will be set to the directory where LIBOBJS objects are built.
15975 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15976 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15978 LIBOBJS=$ac_libobjs
15980 LTLIBOBJS=$ac_ltlibobjs
15983 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15984 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15985 Usually this means the macro was only invoked conditionally." >&5
15986 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15987 Usually this means the macro was only invoked conditionally." >&2;}
15988 { (exit 1); exit 1; }; }
15990 if test -z "${GUI_ANDROID_TRUE}" && test -z "${GUI_ANDROID_FALSE}"; then
15991 { { echo "$as_me:$LINENO: error: conditional \"GUI_ANDROID\" was never defined.
15992 Usually this means the macro was only invoked conditionally." >&5
15993 echo "$as_me: error: conditional \"GUI_ANDROID\" was never defined.
15994 Usually this means the macro was only invoked conditionally." >&2;}
15995 { (exit 1); exit 1; }; }
15997 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15998 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15999 Usually this means the macro was only invoked conditionally." >&5
16000 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16001 Usually this means the macro was only invoked conditionally." >&2;}
16002 { (exit 1); exit 1; }; }
16004 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16005 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16006 Usually this means the macro was only invoked conditionally." >&5
16007 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16008 Usually this means the macro was only invoked conditionally." >&2;}
16009 { (exit 1); exit 1; }; }
16011 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16012 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16013 Usually this means the macro was only invoked conditionally." >&5
16014 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16015 Usually this means the macro was only invoked conditionally." >&2;}
16016 { (exit 1); exit 1; }; }
16018 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16019 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16020 Usually this means the macro was only invoked conditionally." >&5
16021 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16022 Usually this means the macro was only invoked conditionally." >&2;}
16023 { (exit 1); exit 1; }; }
16025 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
16026 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
16027 Usually this means the macro was only invoked conditionally." >&5
16028 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
16029 Usually this means the macro was only invoked conditionally." >&2;}
16030 { (exit 1); exit 1; }; }
16032 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
16033 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
16034 Usually this means the macro was only invoked conditionally." >&5
16035 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
16036 Usually this means the macro was only invoked conditionally." >&2;}
16037 { (exit 1); exit 1; }; }
16039 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
16040 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
16041 Usually this means the macro was only invoked conditionally." >&5
16042 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
16043 Usually this means the macro was only invoked conditionally." >&2;}
16044 { (exit 1); exit 1; }; }
16046 if test -z "${BUILD_PLUGINS_TRUE}" && test -z "${BUILD_PLUGINS_FALSE}"; then
16047 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PLUGINS\" was never defined.
16048 Usually this means the macro was only invoked conditionally." >&5
16049 echo "$as_me: error: conditional \"BUILD_PLUGINS\" was never defined.
16050 Usually this means the macro was only invoked conditionally." >&2;}
16051 { (exit 1); exit 1; }; }
16053 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
16054 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
16055 Usually this means the macro was only invoked conditionally." >&5
16056 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
16057 Usually this means the macro was only invoked conditionally." >&2;}
16058 { (exit 1); exit 1; }; }
16060 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
16061 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
16062 Usually this means the macro was only invoked conditionally." >&5
16063 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
16064 Usually this means the macro was only invoked conditionally." >&2;}
16065 { (exit 1); exit 1; }; }
16067 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
16068 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
16069 Usually this means the macro was only invoked conditionally." >&5
16070 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
16071 Usually this means the macro was only invoked conditionally." >&2;}
16072 { (exit 1); exit 1; }; }
16074 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
16075 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
16076 Usually this means the macro was only invoked conditionally." >&5
16077 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
16078 Usually this means the macro was only invoked conditionally." >&2;}
16079 { (exit 1); exit 1; }; }
16081 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
16082 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
16083 Usually this means the macro was only invoked conditionally." >&5
16084 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
16085 Usually this means the macro was only invoked conditionally." >&2;}
16086 { (exit 1); exit 1; }; }
16088 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
16089 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
16090 Usually this means the macro was only invoked conditionally." >&5
16091 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
16092 Usually this means the macro was only invoked conditionally." >&2;}
16093 { (exit 1); exit 1; }; }
16095 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
16096 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
16097 Usually this means the macro was only invoked conditionally." >&5
16098 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
16099 Usually this means the macro was only invoked conditionally." >&2;}
16100 { (exit 1); exit 1; }; }
16102 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
16103 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
16104 Usually this means the macro was only invoked conditionally." >&5
16105 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
16106 Usually this means the macro was only invoked conditionally." >&2;}
16107 { (exit 1); exit 1; }; }
16109 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
16110 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
16111 Usually this means the macro was only invoked conditionally." >&5
16112 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
16113 Usually this means the macro was only invoked conditionally." >&2;}
16114 { (exit 1); exit 1; }; }
16116 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
16117 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
16118 Usually this means the macro was only invoked conditionally." >&5
16119 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
16120 Usually this means the macro was only invoked conditionally." >&2;}
16121 { (exit 1); exit 1; }; }
16123 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
16124 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
16125 Usually this means the macro was only invoked conditionally." >&5
16126 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
16127 Usually this means the macro was only invoked conditionally." >&2;}
16128 { (exit 1); exit 1; }; }
16130 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
16131 { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
16132 Usually this means the macro was only invoked conditionally." >&5
16133 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
16134 Usually this means the macro was only invoked conditionally." >&2;}
16135 { (exit 1); exit 1; }; }
16137 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
16138 { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
16139 Usually this means the macro was only invoked conditionally." >&5
16140 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
16141 Usually this means the macro was only invoked conditionally." >&2;}
16142 { (exit 1); exit 1; }; }
16144 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
16145 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
16146 Usually this means the macro was only invoked conditionally." >&5
16147 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
16148 Usually this means the macro was only invoked conditionally." >&2;}
16149 { (exit 1); exit 1; }; }
16151 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
16152 { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
16153 Usually this means the macro was only invoked conditionally." >&5
16154 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
16155 Usually this means the macro was only invoked conditionally." >&2;}
16156 { (exit 1); exit 1; }; }
16158 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
16159 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
16160 Usually this means the macro was only invoked conditionally." >&5
16161 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
16162 Usually this means the macro was only invoked conditionally." >&2;}
16163 { (exit 1); exit 1; }; }
16165 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
16166 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
16167 Usually this means the macro was only invoked conditionally." >&5
16168 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
16169 Usually this means the macro was only invoked conditionally." >&2;}
16170 { (exit 1); exit 1; }; }
16173 : ${CONFIG_STATUS=./config.status}
16174 ac_clean_files_save=$ac_clean_files
16175 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16176 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16177 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16178 cat >$CONFIG_STATUS <<_ACEOF
16180 # Generated by $as_me.
16181 # Run this file to recreate the current configuration.
16182 # Compiler output produced by configure, useful for debugging
16183 # configure, is in config.log if it exists.
16186 ac_cs_recheck=false
16188 SHELL=\${CONFIG_SHELL-$SHELL}
16191 cat >>$CONFIG_STATUS <<\_ACEOF
16192 ## --------------------- ##
16193 ## M4sh Initialization. ##
16194 ## --------------------- ##
16196 # Be more Bourne compatible
16197 DUALCASE=1; export DUALCASE # for MKS sh
16198 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16201 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16202 # is contrary to our usage. Disable this feature.
16203 alias -g '${1+"$@"}'='"$@"'
16204 setopt NO_GLOB_SUBST
16206 case `(set -o) 2>/dev/null` in
16207 *posix*) set -o posix ;;
16216 # Avoid depending upon Character Ranges.
16217 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16218 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16219 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16220 as_cr_digits='0123456789'
16221 as_cr_alnum=$as_cr_Letters$as_cr_digits
16223 # The user is always right.
16224 if test "${PATH_SEPARATOR+set}" != set; then
16225 echo "#! /bin/sh" >conf$$.sh
16226 echo "exit 0" >>conf$$.sh
16228 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16236 # Support unset when possible.
16237 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16245 # We need space, tab and new line, in precisely that order. Quoting is
16246 # there to prevent editors from complaining about space-tab.
16247 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16248 # splitting by setting IFS to empty value.)
16253 # Find who we are. Look in the path if we contain no directory separator.
16255 *[\\/]* ) as_myself=$0 ;;
16256 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16257 for as_dir in $PATH
16260 test -z "$as_dir" && as_dir=.
16261 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16267 # We did not find ourselves, most probably we were run as `sh COMMAND'
16268 # in which case we are not to be found in the path.
16269 if test "x$as_myself" = x; then
16272 if test ! -f "$as_myself"; then
16273 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16274 { (exit 1); exit 1; }
16277 # Work around bugs in pre-3.0 UWIN ksh.
16278 for as_var in ENV MAIL MAILPATH
16279 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16287 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16288 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16289 LC_TELEPHONE LC_TIME
16291 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16292 eval $as_var=C; export $as_var
16294 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16298 # Required to use basename.
16299 if expr a : '\(a\)' >/dev/null 2>&1 &&
16300 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16306 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16307 as_basename=basename
16313 # Name of the executable.
16314 as_me=`$as_basename -- "$0" ||
16315 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16316 X"$0" : 'X\(//\)$' \| \
16317 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16319 sed '/^.*\/\([^/][^/]*\)\/*$/{
16338 as_lineno_1=$LINENO
16339 as_lineno_2=$LINENO
16340 test "x$as_lineno_1" != "x$as_lineno_2" &&
16341 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16343 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16344 # uniformly replaced by the line number. The first 'sed' inserts a
16345 # line-number line after each line using $LINENO; the second 'sed'
16346 # does the real work. The second script uses 'N' to pair each
16347 # line-number line with the line containing $LINENO, and appends
16348 # trailing '-' during substitution so that $LINENO is not a special
16349 # case at line end.
16350 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16351 # scripts with optimization help from Paolo Bonzini. Blame Lee
16352 # E. McMahon (1931-1989) for sed's syntax. :-)
16364 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16367 ' >$as_me.lineno &&
16368 chmod +x "$as_me.lineno" ||
16369 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16370 { (exit 1); exit 1; }; }
16372 # Don't try to exec as it changes $[0], causing all sort of problems
16373 # (the dirname of $[0] is not the place where we might find the
16374 # original and so on. Autoconf is especially sensitive to this).
16375 . "./$as_me.lineno"
16376 # Exit status is that of the last command.
16381 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16387 ECHO_C= ECHO_N= ECHO_T=
16388 case `echo -n x` in
16390 case `echo 'x\c'` in
16391 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16398 if expr a : '\(a\)' >/dev/null 2>&1 &&
16399 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16405 rm -f conf$$ conf$$.exe conf$$.file
16406 if test -d conf$$.dir; then
16407 rm -f conf$$.dir/conf$$.file
16413 if ln -s conf$$.file conf$$ 2>/dev/null; then
16415 # ... but there are two gotchas:
16416 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16417 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16418 # In both cases, we have to default to `cp -p'.
16419 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16421 elif ln conf$$.file conf$$ 2>/dev/null; then
16426 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16427 rmdir conf$$.dir 2>/dev/null
16429 if mkdir -p . 2>/dev/null; then
16432 test -d ./-p && rmdir ./-p
16436 if test -x / >/dev/null 2>&1; then
16437 as_test_x='test -x'
16439 if ls -dL / >/dev/null 2>&1; then
16446 if test -d "$1"; then
16452 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16453 ???[sx]*):;;*)false;;esac;fi
16457 as_executable_p=$as_test_x
16459 # Sed expression to map a string onto a valid CPP name.
16460 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16462 # Sed expression to map a string onto a valid variable name.
16463 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16468 # Save the log message, to keep $[0] and so on meaningful, and to
16469 # report actual input values of CONFIG_FILES etc. instead of their
16470 # values after options handling.
16472 This file was extended by $as_me, which was
16473 generated by GNU Autoconf 2.61. Invocation command line was
16475 CONFIG_FILES = $CONFIG_FILES
16476 CONFIG_HEADERS = $CONFIG_HEADERS
16477 CONFIG_LINKS = $CONFIG_LINKS
16478 CONFIG_COMMANDS = $CONFIG_COMMANDS
16481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16486 cat >>$CONFIG_STATUS <<_ACEOF
16487 # Files that config.status was made for.
16488 config_files="$ac_config_files"
16489 config_headers="$ac_config_headers"
16490 config_commands="$ac_config_commands"
16494 cat >>$CONFIG_STATUS <<\_ACEOF
16496 \`$as_me' instantiates files from templates according to the
16497 current configuration.
16499 Usage: $0 [OPTIONS] [FILE]...
16501 -h, --help print this help, then exit
16502 -V, --version print version number and configuration settings, then exit
16503 -q, --quiet do not print progress messages
16504 -d, --debug don't remove temporary files
16505 --recheck update $as_me by reconfiguring in the same conditions
16506 --file=FILE[:TEMPLATE]
16507 instantiate the configuration file FILE
16508 --header=FILE[:TEMPLATE]
16509 instantiate the configuration header FILE
16511 Configuration files:
16514 Configuration headers:
16517 Configuration commands:
16520 Report bugs to <bug-autoconf@gnu.org>."
16523 cat >>$CONFIG_STATUS <<_ACEOF
16526 configured by $0, generated by GNU Autoconf 2.61,
16527 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16529 Copyright (C) 2006 Free Software Foundation, Inc.
16530 This config.status script is free software; the Free Software Foundation
16531 gives unlimited permission to copy, distribute and modify it."
16538 cat >>$CONFIG_STATUS <<\_ACEOF
16539 # If no file are specified by the user, then we need to provide default
16540 # value. By we need to know if files were specified by the user.
16546 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16547 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16558 # Handling of the options.
16559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16561 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16562 echo "$ac_cs_version"; exit ;;
16563 --debug | --debu | --deb | --de | --d | -d )
16565 --file | --fil | --fi | --f )
16567 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16568 ac_need_defaults=false;;
16569 --header | --heade | --head | --hea )
16571 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16572 ac_need_defaults=false;;
16574 # Conflict between --help and --header
16575 { echo "$as_me: error: ambiguous option: $1
16576 Try \`$0 --help' for more information." >&2
16577 { (exit 1); exit 1; }; };;
16578 --help | --hel | -h )
16579 echo "$ac_cs_usage"; exit ;;
16580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16581 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16584 # This is an error.
16585 -*) { echo "$as_me: error: unrecognized option: $1
16586 Try \`$0 --help' for more information." >&2
16587 { (exit 1); exit 1; }; } ;;
16589 *) ac_config_targets="$ac_config_targets $1"
16590 ac_need_defaults=false ;;
16596 ac_configure_extra_args=
16598 if $ac_cs_silent; then
16600 ac_configure_extra_args="$ac_configure_extra_args --silent"
16604 cat >>$CONFIG_STATUS <<_ACEOF
16605 if \$ac_cs_recheck; then
16606 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16607 CONFIG_SHELL=$SHELL
16608 export CONFIG_SHELL
16609 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16613 cat >>$CONFIG_STATUS <<\_ACEOF
16617 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16618 ## Running $as_me. ##
16624 cat >>$CONFIG_STATUS <<_ACEOF
16628 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16633 cat >>$CONFIG_STATUS <<\_ACEOF
16635 # Handling of arguments.
16636 for ac_config_target in $ac_config_targets
16638 case $ac_config_target in
16639 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16640 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16641 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16642 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16643 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16644 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
16645 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16646 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16647 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
16649 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16650 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16651 { (exit 1); exit 1; }; };;
16656 # If the user did not use the arguments to specify the items to instantiate,
16657 # then the envvar interface is used. Set only those that are not.
16658 # We use the long form for the default assignment because of an extremely
16659 # bizarre bug on SunOS 4.1.3.
16660 if $ac_need_defaults; then
16661 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16662 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16663 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16666 # Have a temporary directory for convenience. Make it in the build tree
16667 # simply because there is no reason against having it here, and in addition,
16668 # creating and moving files from /tmp can sometimes cause problems.
16669 # Hook for its removal unless debugging.
16670 # Note that there is a small window in which the directory will not be cleaned:
16671 # after its creation but before its name has been assigned to `$tmp'.
16675 trap 'exit_status=$?
16676 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16678 trap '{ (exit 1); exit 1; }' 1 2 13 15
16680 # Create a (secure) tmp directory for tmp files.
16683 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16684 test -n "$tmp" && test -d "$tmp"
16687 tmp=./conf$$-$RANDOM
16688 (umask 077 && mkdir "$tmp")
16691 echo "$me: cannot create a temporary directory in ." >&2
16692 { (exit 1); exit 1; }
16696 # Set up the sed scripts for CONFIG_FILES section.
16699 # No need to generate the scripts if there are no CONFIG_FILES.
16700 # This happens for instance when ./config.status config.h
16701 if test -n "$CONFIG_FILES"; then
16708 for ac_last_try in false false false false false :; do
16709 cat >conf$$subs.sed <<_ACEOF
16710 SHELL!$SHELL$ac_delim
16711 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16712 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16713 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16714 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16715 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16716 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16717 exec_prefix!$exec_prefix$ac_delim
16718 prefix!$prefix$ac_delim
16719 program_transform_name!$program_transform_name$ac_delim
16720 bindir!$bindir$ac_delim
16721 sbindir!$sbindir$ac_delim
16722 libexecdir!$libexecdir$ac_delim
16723 datarootdir!$datarootdir$ac_delim
16724 datadir!$datadir$ac_delim
16725 sysconfdir!$sysconfdir$ac_delim
16726 sharedstatedir!$sharedstatedir$ac_delim
16727 localstatedir!$localstatedir$ac_delim
16728 includedir!$includedir$ac_delim
16729 oldincludedir!$oldincludedir$ac_delim
16730 docdir!$docdir$ac_delim
16731 infodir!$infodir$ac_delim
16732 htmldir!$htmldir$ac_delim
16733 dvidir!$dvidir$ac_delim
16734 pdfdir!$pdfdir$ac_delim
16735 psdir!$psdir$ac_delim
16736 libdir!$libdir$ac_delim
16737 localedir!$localedir$ac_delim
16738 mandir!$mandir$ac_delim
16739 DEFS!$DEFS$ac_delim
16740 ECHO_C!$ECHO_C$ac_delim
16741 ECHO_N!$ECHO_N$ac_delim
16742 ECHO_T!$ECHO_T$ac_delim
16743 LIBS!$LIBS$ac_delim
16744 build_alias!$build_alias$ac_delim
16745 host_alias!$host_alias$ac_delim
16746 target_alias!$target_alias$ac_delim
16747 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16748 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16749 INSTALL_DATA!$INSTALL_DATA$ac_delim
16750 CYGPATH_W!$CYGPATH_W$ac_delim
16751 PACKAGE!$PACKAGE$ac_delim
16752 VERSION!$VERSION$ac_delim
16753 ACLOCAL!$ACLOCAL$ac_delim
16754 AUTOCONF!$AUTOCONF$ac_delim
16755 AUTOMAKE!$AUTOMAKE$ac_delim
16756 AUTOHEADER!$AUTOHEADER$ac_delim
16757 MAKEINFO!$MAKEINFO$ac_delim
16758 install_sh!$install_sh$ac_delim
16759 STRIP!$STRIP$ac_delim
16760 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16761 mkdir_p!$mkdir_p$ac_delim
16763 SET_MAKE!$SET_MAKE$ac_delim
16764 am__leading_dot!$am__leading_dot$ac_delim
16765 AMTAR!$AMTAR$ac_delim
16766 am__tar!$am__tar$ac_delim
16767 am__untar!$am__untar$ac_delim
16768 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16769 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16770 MAINT!$MAINT$ac_delim
16771 build!$build$ac_delim
16772 build_cpu!$build_cpu$ac_delim
16773 build_vendor!$build_vendor$ac_delim
16774 build_os!$build_os$ac_delim
16775 host!$host$ac_delim
16776 host_cpu!$host_cpu$ac_delim
16777 host_vendor!$host_vendor$ac_delim
16778 host_os!$host_os$ac_delim
16780 ANDROID_ABI!$ANDROID_ABI$ac_delim
16781 ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
16782 ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
16783 ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
16784 ANDROID_NDK_VERSION!$ANDROID_NDK_VERSION$ac_delim
16785 ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
16786 GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
16787 GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
16789 CFLAGS!$CFLAGS$ac_delim
16790 LDFLAGS!$LDFLAGS$ac_delim
16791 CPPFLAGS!$CPPFLAGS$ac_delim
16792 ac_ct_CC!$ac_ct_CC$ac_delim
16793 EXEEXT!$EXEEXT$ac_delim
16794 OBJEXT!$OBJEXT$ac_delim
16795 DEPDIR!$DEPDIR$ac_delim
16796 am__include!$am__include$ac_delim
16797 am__quote!$am__quote$ac_delim
16798 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16799 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16800 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16801 CCDEPMODE!$CCDEPMODE$ac_delim
16802 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16803 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16806 CFLAGS!$CFLAGS$ac_delim
16809 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16811 elif $ac_last_try; then
16812 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16813 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16814 { (exit 1); exit 1; }; }
16816 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16820 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16821 if test -n "$ac_eof"; then
16822 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16823 ac_eof=`expr $ac_eof + 1`
16826 cat >>$CONFIG_STATUS <<_ACEOF
16827 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16831 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16832 s/^/s,@/; s/!/@,|#_!!_#|/
16835 s/'"$ac_delim"'$/,g/; t
16837 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16838 ' >>$CONFIG_STATUS <conf$$subs.sed
16839 rm -f conf$$subs.sed
16840 cat >>$CONFIG_STATUS <<_ACEOF
16846 for ac_last_try in false false false false false :; do
16847 cat >conf$$subs.sed <<_ACEOF
16848 CPPFLAGS!$CPPFLAGS$ac_delim
16849 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
16850 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
16851 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
16852 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
16853 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
16855 CPPFLAGS!$CPPFLAGS$ac_delim
16856 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
16857 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
16858 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
16859 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
16860 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
16861 OBJC!$OBJC$ac_delim
16862 OBJCFLAGS!$OBJCFLAGS$ac_delim
16863 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
16865 CCAS!$CCAS$ac_delim
16866 CCASFLAGS!$CCASFLAGS$ac_delim
16867 RANLIB!$RANLIB$ac_delim
16868 GREP!$GREP$ac_delim
16869 EGREP!$EGREP$ac_delim
16870 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
16871 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
16872 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
16873 POD2MAN!$POD2MAN$ac_delim
16874 POD2HTML!$POD2HTML$ac_delim
16875 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
16876 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
16877 SOEXT!$SOEXT$ac_delim
16878 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
16879 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
16880 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
16881 BUILD_PLUGINS_TRUE!$BUILD_PLUGINS_TRUE$ac_delim
16882 BUILD_PLUGINS_FALSE!$BUILD_PLUGINS_FALSE$ac_delim
16883 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
16884 PKG_CONFIG!$PKG_CONFIG$ac_delim
16885 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
16886 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
16887 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
16888 GLIB_LIBS!$GLIB_LIBS$ac_delim
16889 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
16890 GTK_LIBS!$GTK_LIBS$ac_delim
16891 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
16892 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
16893 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
16894 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
16895 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
16896 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
16897 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
16898 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
16899 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
16900 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
16901 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
16902 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
16903 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
16904 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
16905 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
16906 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
16907 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
16908 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
16909 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
16910 SDL_LIBS!$SDL_LIBS$ac_delim
16911 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
16912 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
16913 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
16914 PULSE_LIBS!$PULSE_LIBS$ac_delim
16915 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
16916 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
16917 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
16918 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
16919 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
16920 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
16921 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
16922 ALSA_LIBS!$ALSA_LIBS$ac_delim
16923 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
16924 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
16925 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
16926 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
16927 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
16928 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
16929 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
16930 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
16931 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
16932 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
16933 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
16934 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
16935 SHCC!$SHCC$ac_delim
16936 SHLD!$SHLD$ac_delim
16937 SHOBJCOPY!$SHOBJCOPY$ac_delim
16938 ARMCC!$ARMCC$ac_delim
16939 ARMLD!$ARMLD$ac_delim
16940 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
16941 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
16942 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
16943 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
16944 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
16947 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16949 elif $ac_last_try; then
16950 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16951 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16952 { (exit 1); exit 1; }; }
16954 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16958 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16959 if test -n "$ac_eof"; then
16960 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16961 ac_eof=`expr $ac_eof + 1`
16964 cat >>$CONFIG_STATUS <<_ACEOF
16965 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16969 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16970 s/^/s,@/; s/!/@,|#_!!_#|/
16973 s/'"$ac_delim"'$/,g/; t
16975 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16976 ' >>$CONFIG_STATUS <conf$$subs.sed
16977 rm -f conf$$subs.sed
16978 cat >>$CONFIG_STATUS <<_ACEOF
16984 for ac_last_try in false false false false false :; do
16985 cat >conf$$subs.sed <<_ACEOF
16986 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
16987 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16988 USE_NLS!$USE_NLS$ac_delim
16989 MSGFMT!$MSGFMT$ac_delim
16990 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
16991 GMSGFMT!$GMSGFMT$ac_delim
16992 XGETTEXT!$XGETTEXT$ac_delim
16993 CATALOGS!$CATALOGS$ac_delim
16994 CATOBJEXT!$CATOBJEXT$ac_delim
16995 DATADIRNAME!$DATADIRNAME$ac_delim
16996 GMOFILES!$GMOFILES$ac_delim
16997 INSTOBJEXT!$INSTOBJEXT$ac_delim
16998 INTLLIBS!$INTLLIBS$ac_delim
16999 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
17000 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
17001 POFILES!$POFILES$ac_delim
17002 POSUB!$POSUB$ac_delim
17003 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
17004 LIBOBJS!$LIBOBJS$ac_delim
17005 LTLIBOBJS!$LTLIBOBJS$ac_delim
17008 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
17010 elif $ac_last_try; then
17011 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17012 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17013 { (exit 1); exit 1; }; }
17015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17019 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17020 if test -n "$ac_eof"; then
17021 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17022 ac_eof=`expr $ac_eof + 1`
17025 cat >>$CONFIG_STATUS <<_ACEOF
17026 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
17027 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17030 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17031 s/^/s,@/; s/!/@,|#_!!_#|/
17034 s/'"$ac_delim"'$/,g/; t
17036 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17037 ' >>$CONFIG_STATUS <conf$$subs.sed
17038 rm -f conf$$subs.sed
17039 cat >>$CONFIG_STATUS <<_ACEOF
17046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17048 # trailing colons and then remove the whole line if VPATH becomes empty
17049 # (actually we leave an empty line to preserve line numbers).
17050 if test "x$srcdir" = x.; then
17051 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17052 s/:*\$(srcdir):*/:/
17053 s/:*\${srcdir}:*/:/
17055 s/^\([^=]*=[ ]*\):*/\1/
17061 cat >>$CONFIG_STATUS <<\_ACEOF
17062 fi # test -n "$CONFIG_FILES"
17065 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
17068 :[FHLC]) ac_mode=$ac_tag; continue;;
17070 case $ac_mode$ac_tag in
17072 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17073 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17074 { (exit 1); exit 1; }; };;
17075 :[FH]-) ac_tag=-:-;;
17076 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17093 -) ac_f="$tmp/stdin";;
17094 *) # Look for the file first in the build tree, then in the source tree
17095 # (if the path is not absolute). The absolute path cannot be DOS-style,
17096 # because $ac_f cannot contain `:'.
17100 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17102 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17103 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17104 { (exit 1); exit 1; }; };;
17106 ac_file_inputs="$ac_file_inputs $ac_f"
17109 # Let's still pretend it is `configure' which instantiates (i.e., don't
17110 # use $as_me), people would be surprised to read:
17111 # /* config.h. Generated by config.status. */
17112 configure_input="Generated from "`IFS=:
17113 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17114 if test x"$ac_file" != x-; then
17115 configure_input="$ac_file. $configure_input"
17116 { echo "$as_me:$LINENO: creating $ac_file" >&5
17117 echo "$as_me: creating $ac_file" >&6;}
17121 *:-:* | *:-) cat >"$tmp/stdin";;
17126 ac_dir=`$as_dirname -- "$ac_file" ||
17127 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17128 X"$ac_file" : 'X\(//\)[^/]' \| \
17129 X"$ac_file" : 'X\(//\)$' \| \
17130 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17136 /^X\(\/\/\)[^/].*/{
17151 -*) as_dir=./$as_dir;;
17153 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17157 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17158 *) as_qdir=$as_dir;;
17160 as_dirs="'$as_qdir' $as_dirs"
17161 as_dir=`$as_dirname -- "$as_dir" ||
17162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17163 X"$as_dir" : 'X\(//\)[^/]' \| \
17164 X"$as_dir" : 'X\(//\)$' \| \
17165 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17171 /^X\(\/\/\)[^/].*/{
17184 test -d "$as_dir" && break
17186 test -z "$as_dirs" || eval "mkdir $as_dirs"
17187 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17188 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17189 { (exit 1); exit 1; }; }; }
17193 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17195 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17196 # A ".." for each directory in $ac_dir_suffix.
17197 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17198 case $ac_top_builddir_sub in
17199 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17200 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17203 ac_abs_top_builddir=$ac_pwd
17204 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17205 # for backward compatibility:
17206 ac_top_builddir=$ac_top_build_prefix
17209 .) # We are building in place.
17211 ac_top_srcdir=$ac_top_builddir_sub
17212 ac_abs_top_srcdir=$ac_pwd ;;
17213 [\\/]* | ?:[\\/]* ) # Absolute name.
17214 ac_srcdir=$srcdir$ac_dir_suffix;
17215 ac_top_srcdir=$srcdir
17216 ac_abs_top_srcdir=$srcdir ;;
17217 *) # Relative name.
17218 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17219 ac_top_srcdir=$ac_top_build_prefix$srcdir
17220 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17222 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17232 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17233 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17237 cat >>$CONFIG_STATUS <<\_ACEOF
17238 # If the template does not know about datarootdir, expand it.
17239 # FIXME: This hack should be removed a few years after 2.60.
17240 ac_datarootdir_hack=; ac_datarootdir_seen=
17242 case `sed -n '/datarootdir/ {
17251 ' $ac_file_inputs` in
17252 *datarootdir*) ac_datarootdir_seen=yes;;
17253 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17254 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17255 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17257 cat >>$CONFIG_STATUS <<_ACEOF
17258 ac_datarootdir_hack='
17259 s&@datadir@&$datadir&g
17260 s&@docdir@&$docdir&g
17261 s&@infodir@&$infodir&g
17262 s&@localedir@&$localedir&g
17263 s&@mandir@&$mandir&g
17264 s&\\\${datarootdir}&$datarootdir&g' ;;
17268 # Neutralize VPATH when `$srcdir' = `.'.
17269 # Shell code in configure.ac might set extrasub.
17270 # FIXME: do we really want to maintain this feature?
17271 cat >>$CONFIG_STATUS <<_ACEOF
17275 cat >>$CONFIG_STATUS <<\_ACEOF
17277 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17278 s&@configure_input@&$configure_input&;t t
17279 s&@top_builddir@&$ac_top_builddir_sub&;t t
17280 s&@srcdir@&$ac_srcdir&;t t
17281 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17282 s&@top_srcdir@&$ac_top_srcdir&;t t
17283 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17284 s&@builddir@&$ac_builddir&;t t
17285 s&@abs_builddir@&$ac_abs_builddir&;t t
17286 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17287 s&@INSTALL@&$ac_INSTALL&;t t
17288 $ac_datarootdir_hack
17289 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
17291 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17292 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17293 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17294 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17295 which seems to be undefined. Please make sure it is defined." >&5
17296 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17297 which seems to be undefined. Please make sure it is defined." >&2;}
17301 -) cat "$tmp/out"; rm -f "$tmp/out";;
17302 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17311 # Transform confdefs.h into a sed script `conftest.defines', that
17312 # substitutes the proper values into config.h.in to produce config.h.
17313 rm -f conftest.defines conftest.tail
17314 # First, append a space to every undef/define line, to ease matching.
17315 echo 's/$/ /' >conftest.defines
17316 # Then, protect against being on the right side of a sed subst, or in
17317 # an unquoted here document, in config.status. If some macros were
17318 # called several times there might be several #defines for the same
17319 # symbol, which is useless. But do not sort them, since the last
17320 # AC_DEFINE must be honored.
17321 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17322 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17323 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17324 # PARAMS is the parameter list in the macro definition--in most cases, it's
17325 # just an empty string.
17326 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17327 ac_dB='\\)[ (].*,\\1define\\2'
17335 s/^[ ]*#[ ]*define[ ][ ]*//
17340 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17341 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17342 ' >>conftest.defines
17344 # Remove the space that was appended to ease matching.
17345 # Then replace #undef with comments. This is necessary, for
17346 # example, in the case of _POSIX_SOURCE, which is predefined and required
17347 # on some systems where configure will not decide to define it.
17348 # (The regexp can be short, since the line contains either #define or #undef.)
17350 s,^[ #]*u.*,/* & */,' >>conftest.defines
17352 # Break up conftest.defines:
17353 ac_max_sed_lines=50
17355 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17356 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17357 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17359 ac_in='$ac_file_inputs'
17360 ac_out='"$tmp/out1"'
17361 ac_nxt='"$tmp/out2"'
17365 # Write a here document:
17366 cat >>$CONFIG_STATUS <<_ACEOF
17367 # First, check the format of the line:
17368 cat >"\$tmp/defines.sed" <<\\CEOF
17369 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17370 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17374 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17376 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17377 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17378 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17379 grep . conftest.tail >/dev/null || break
17380 rm -f conftest.defines
17381 mv conftest.tail conftest.defines
17383 rm -f conftest.defines conftest.tail
17385 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17386 cat >>$CONFIG_STATUS <<\_ACEOF
17387 if test x"$ac_file" != x-; then
17388 echo "/* $configure_input */" >"$tmp/config.h"
17389 cat "$ac_result" >>"$tmp/config.h"
17390 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17391 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17392 echo "$as_me: $ac_file is unchanged" >&6;}
17395 mv "$tmp/config.h" $ac_file
17398 echo "/* $configure_input */"
17402 # Compute $ac_file's index in $config_headers.
17404 for _am_header in $config_headers :; do
17405 case $_am_header in
17406 $ac_file | $ac_file:* )
17409 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17412 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
17413 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17414 X$ac_file : 'X\(//\)[^/]' \| \
17415 X$ac_file : 'X\(//\)$' \| \
17416 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
17418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17422 /^X\(\/\/\)[^/].*/{
17434 s/.*/./; q'`/stamp-h$_am_stamp_count
17437 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17438 echo "$as_me: executing $ac_file commands" >&6;}
17443 case $ac_file$ac_mode in
17444 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17445 # Strip MF so we end up with the name of the file.
17446 mf=`echo "$mf" | sed -e 's/:.*$//'`
17447 # Check whether this is an Automake generated Makefile or not.
17448 # We used to match only the files named `Makefile.in', but
17449 # some people rename them; so instead we look at the file content.
17450 # Grep'ing the first line is not enough: some people post-process
17451 # each Makefile.in and add a new line on top of each file to say so.
17452 # So let's grep whole file.
17453 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17454 dirpart=`$as_dirname -- "$mf" ||
17455 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17456 X"$mf" : 'X\(//\)[^/]' \| \
17457 X"$mf" : 'X\(//\)$' \| \
17458 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17464 /^X\(\/\/\)[^/].*/{
17480 # Extract the definition of DEPDIR, am__include, and am__quote
17481 # from the Makefile without running `make'.
17482 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17483 test -z "$DEPDIR" && continue
17484 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17485 test -z "am__include" && continue
17486 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17487 # When using ansi2knr, U may be empty or an underscore; expand it
17488 U=`sed -n 's/^U = //p' < "$mf"`
17489 # Find all dependency output files, they are included files with
17490 # $(DEPDIR) in their names. We invoke sed twice because it is the
17491 # simplest approach to changing $(DEPDIR) to its actual value in the
17493 for file in `sed -n "
17494 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17495 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17496 # Make sure the directory exists.
17497 test -f "$dirpart/$file" && continue
17498 fdir=`$as_dirname -- "$file" ||
17499 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17500 X"$file" : 'X\(//\)[^/]' \| \
17501 X"$file" : 'X\(//\)$' \| \
17502 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17508 /^X\(\/\/\)[^/].*/{
17521 { as_dir=$dirpart/$fdir
17523 -*) as_dir=./$as_dir;;
17525 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17529 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17530 *) as_qdir=$as_dir;;
17532 as_dirs="'$as_qdir' $as_dirs"
17533 as_dir=`$as_dirname -- "$as_dir" ||
17534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17535 X"$as_dir" : 'X\(//\)[^/]' \| \
17536 X"$as_dir" : 'X\(//\)$' \| \
17537 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17543 /^X\(\/\/\)[^/].*/{
17556 test -d "$as_dir" && break
17558 test -z "$as_dirs" || eval "mkdir $as_dirs"
17559 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17560 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17561 { (exit 1); exit 1; }; }; }
17562 # echo "creating $dirpart/$file"
17563 echo '# dummy' > "$dirpart/$file"
17567 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17568 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17575 { (exit 0); exit 0; }
17577 chmod +x $CONFIG_STATUS
17578 ac_clean_files=$ac_clean_files_save
17581 # configure is writing to config.log, and then calls config.status.
17582 # config.status does its own redirection, appending to config.log.
17583 # Unfortunately, on DOS this fails, as config.log is still kept open
17584 # by configure, so config.status won't be able to write to it; its
17585 # output is simply discarded. So we exec the FD to /dev/null,
17586 # effectively closing config.log, so it can be properly (re)opened and
17587 # appended to by config.status. When coming back to configure, we
17588 # need to make the FD available again.
17589 if test "$no_create" != yes; then
17591 ac_config_status_args=
17592 test "$silent" = yes &&
17593 ac_config_status_args="$ac_config_status_args --quiet"
17595 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17597 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17598 # would make configure fail if this is the last instruction.
17599 $ac_cs_success || { (exit 1); exit 1; }
17604 -*) as_dir=./$as_dir;;
17606 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17610 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17611 *) as_qdir=$as_dir;;
17613 as_dirs="'$as_qdir' $as_dirs"
17614 as_dir=`$as_dirname -- "$as_dir" ||
17615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17616 X"$as_dir" : 'X\(//\)[^/]' \| \
17617 X"$as_dir" : 'X\(//\)$' \| \
17618 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17624 /^X\(\/\/\)[^/].*/{
17637 test -d "$as_dir" && break
17639 test -z "$as_dirs" || eval "mkdir $as_dirs"
17640 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17641 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17642 { (exit 1); exit 1; }; }; }
17646 echo "Configuration complete"
17649 if test "x$UI_DRIVER" = x; then
17650 echo " User interface: none"
17652 echo " User interface: $UI_DRIVER"
17655 if test "x$SH4_TRANSLATOR" = "x"; then
17656 echo " SH4 translator: none (emulation core only)"
17658 echo " SH4 translator: $SH4_TRANSLATOR"
17661 if test "x$VIDEO_DRIVERS" = "x"; then
17662 echo " Video drivers: none (no supported GL found)"
17664 echo " Video drivers: $VIDEO_DRIVERS"
17667 if test "x$AUDIO_DRIVERS" = "x"; then
17668 echo " Audio drivers: none (no supported output devices found)"
17670 echo " Audio drivers: $AUDIO_DRIVERS"
17673 if test "x$INPUT_DRIVERS" = "x"; then
17674 echo " Input drivers: none (no supported input devices found)"
17676 echo " Input drivers: $INPUT_DRIVERS"
17679 if test "x$CDROM_DRIVER" = "x"; then
17680 echo " CD-ROM driver: none (no supported cd-rom devices found)"
17682 echo " CD-ROM driver: $CDROM_DRIVER"
.