2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="configure.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
666 INSTALL_STRIP_PROGRAM
675 MAINTAINER_MODE_FALSE
708 am__fastdepCC_FOR_BUILD_TRUE
709 am__fastdepCC_FOR_BUILD_FALSE
727 am__fastdepOBJC_FALSE
746 GLIB_FOR_BUILD_CFLAGS
821 ac_precious_vars='build_alias
846 GLIB_FOR_BUILD_CFLAGS
862 # Initialize some variables set by options.
864 ac_init_version=false
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
874 program_transform_name=s,x,x,
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE}'
899 infodir='${datarootdir}/info'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
920 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 # Accept the important Cygnus configure options, so we can diagnose typos.
926 case $ac_dashdash$ac_option in
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935 -build | --build | --buil | --bui | --bu)
936 ac_prev=build_alias ;;
937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938 build_alias=$ac_optarg ;;
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945 cache_file=$ac_optarg ;;
948 cache_file=config.cache ;;
950 -datadir | --datadir | --datadi | --datad)
952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953 datadir=$ac_optarg ;;
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
962 -disable-* | --disable-*)
963 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
966 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
967 { (exit 1); exit 1; }; }
968 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
969 eval enable_$ac_feature=no ;;
971 -docdir | --docdir | --docdi | --doc | --do)
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 -enable-* | --enable-*)
982 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
985 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
986 { (exit 1); exit 1; }; }
987 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
988 eval enable_$ac_feature=\$ac_optarg ;;
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 htmldir=$ac_optarg ;;
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1033 -libdir | --libdir | --libdi | --libd)
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1124 -psdir | --psdir | --psdi | --psd | --ps)
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 sbindir=$ac_optarg ;;
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 sharedstatedir=$ac_optarg ;;
1150 -site | --site | --sit)
1152 -site=* | --site=* | --sit=*)
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1179 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid package name: $ac_package" >&2
1183 { (exit 1); exit 1; }; }
1184 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1185 eval with_$ac_package=\$ac_optarg ;;
1187 -without-* | --without-*)
1188 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 { echo "$as_me: error: invalid package name: $ac_package" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1194 eval with_$ac_package=no ;;
1197 # Obsolete; use --with-x.
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1214 -*) { echo "$as_me: error: unrecognized option: $ac_option
1215 Try \`$0 --help' for more information." >&2
1216 { (exit 1); exit 1; }; }
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1223 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1224 { (exit 1); exit 1; }; }
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1229 # FIXME: should be removed in autoconf 3.0.
1230 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 { echo "$as_me: error: missing argument to $ac_option" >&2
1242 { (exit 1); exit 1; }; }
1245 # Be sure to have absolute directory names.
1246 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir
1251 eval ac_val=\$$ac_var
1253 [\\/$]* | ?:[\\/]* ) continue;;
1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1257 { (exit 1); exit 1; }; }
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1265 target=$target_alias
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1272 If a cross compiler is detected then cross compile mode will be used." >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281 test "$silent" = yes && exec 6>/dev/null
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 { echo "$as_me: error: Working directory cannot be determined" >&2
1288 { (exit 1); exit 1; }; }
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 { echo "$as_me: error: pwd does not report name of working directory" >&2
1291 { (exit 1); exit 1; }; }
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$0" ||
1299 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$0" : 'X\(//\)[^/]' \| \
1301 X"$0" : 'X\(//\)$' \| \
1302 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1331 { (exit 1); exit 1; }; }
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1336 { (exit 1); exit 1; }; }
1338 # When building in place, set srcdir=.
1339 if test "$ac_abs_confdir" = "$ac_pwd"; then
1342 # Remove unnecessary trailing slashes from srcdir.
1343 # Double slashes in file names in object file debugging info
1344 # mess up M-x gdb in Emacs.
1346 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348 for ac_var in $ac_precious_vars; do
1349 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_env_${ac_var}_value=\$${ac_var}
1351 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356 # Report the --help message.
1358 if test "$ac_init_help" = "long"; then
1359 # Omit some internal or obsolete options to make the list less imposing.
1360 # This message is too long to be a string in the A/UX 3.1 sh.
1362 \`configure' configures this package to adapt to many kinds of systems.
1364 Usage: $0 [OPTION]... [VAR=VALUE]...
1366 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367 VAR=VALUE. See below for descriptions of some of the useful variables.
1369 Defaults for the options are specified in brackets.
1372 -h, --help display this help and exit
1373 --help=short display options specific to this package
1374 --help=recursive display the short help of all the included packages
1375 -V, --version display version information and exit
1376 -q, --quiet, --silent do not print \`checking...' messages
1377 --cache-file=FILE cache test results in FILE [disabled]
1378 -C, --config-cache alias for \`--cache-file=config.cache'
1379 -n, --no-create do not create output files
1380 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1382 Installation directories:
1383 --prefix=PREFIX install architecture-independent files in PREFIX
1384 [$ac_default_prefix]
1385 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1388 By default, \`make install' will install all the files in
1389 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1390 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391 for instance \`--prefix=\$HOME'.
1393 For better control, use the options below.
1395 Fine tuning of the installation directories:
1396 --bindir=DIR user executables [EPREFIX/bin]
1397 --sbindir=DIR system admin executables [EPREFIX/sbin]
1398 --libexecdir=DIR program executables [EPREFIX/libexec]
1399 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1400 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1401 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1402 --libdir=DIR object code libraries [EPREFIX/lib]
1403 --includedir=DIR C header files [PREFIX/include]
1404 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1405 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1406 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1407 --infodir=DIR info documentation [DATAROOTDIR/info]
1408 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1409 --mandir=DIR man documentation [DATAROOTDIR/man]
1410 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1411 --htmldir=DIR html documentation [DOCDIR]
1412 --dvidir=DIR dvi documentation [DOCDIR]
1413 --pdfdir=DIR pdf documentation [DOCDIR]
1414 --psdir=DIR ps documentation [DOCDIR]
1420 --program-prefix=PREFIX prepend PREFIX to installed program names
1421 --program-suffix=SUFFIX append SUFFIX to installed program names
1422 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1425 --build=BUILD configure for building on BUILD [guessed]
1426 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1430 if test -n "$ac_init_help"; then
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-maintainer-mode enable make rules and dependencies not useful
1438 (and sometimes confusing) to the casual installer
1439 --disable-dependency-tracking speeds up one-time build
1440 --enable-dependency-tracking do not reject slow dependency extractors
1441 --enable-strict-warn Enable strict compilation warnings
1442 --disable-translator Disable the SH4 translator (Enabled by default)
1443 --disable-optimized Disable compile-time optimizations (Enabled by
1445 --enable-shared Build drivers as shared libraries (Enabled if
1447 --enable-profiled Enable profiling build
1448 --enable-trace Enable generation of IO traces (warning: hurts
1450 --enable-watch Enable watchpoints in the debugger (warning: hurts
1452 --enable-sh4stats Enable statistics on executed sh4 instructions
1455 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1456 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1457 --with-osmesa Build with the osmesa GL library (software
1459 --with-gtk Build with the GTK UI. Default on X11 systems
1460 --with-esd Build with support for the ESounD audio system
1461 --with-pulse Build with support for the PulseAudio audio system
1462 --with-sdl Build with support for SDL audio
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1473 OBJC Objective C compiler command
1474 OBJCFLAGS Objective C compiler flags
1475 CCAS assembler compiler command (defaults to CC)
1476 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1477 PKG_CONFIG path to pkg-config utility
1479 C compiler flags for LIBPNG, overriding pkg-config
1480 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1481 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1482 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1483 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1484 GTK_LIBS linker flags for GTK, overriding pkg-config
1485 GLIB_FOR_BUILD_CFLAGS
1486 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1488 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1490 C compiler flags for LIBISOFS, overriding pkg-config
1492 linker flags for LIBISOFS, overriding pkg-config
1494 C compiler flags for LIBGL, overriding pkg-config
1495 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1496 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1497 SDL_LIBS linker flags for SDL, overriding pkg-config
1499 C compiler flags for PULSE, overriding pkg-config
1500 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1502 C compiler flags for ESOUND, overriding pkg-config
1503 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1504 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1505 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" || continue
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1537 .) # We are building in place.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1571 generated by GNU Autoconf 2.61
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1584 It was created by $as_me, which was
1585 generated by GNU Autoconf 2.61. Invocation command line was
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1606 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1610 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1645 ac_must_keep_next=false
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1674 -* ) ac_must_keep_next=true ;;
1677 ac_configure_args="$ac_configure_args '$ac_arg'"
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log. We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1701 # The following way of writing the cache mishandles newlines in values,
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1738 for ac_var in $ac_subst_vars
1740 eval ac_val=\$$ac_var
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 echo "$ac_var='\''$ac_val'\''"
1748 if test -n "$ac_subst_files"; then
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1755 for ac_var in $ac_subst_files
1757 eval ac_val=\$$ac_var
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 echo "$ac_var='\''$ac_val'\''"
1766 if test -s confdefs.h; then
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1784 for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1792 # Predefined preprocessor variables.
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1840 if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1857 # Check that the precious variables saved in the cache have kept the same
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880 echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882 echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929 am__api_version="1.9"
1931 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1932 if test -f "$ac_dir/install-sh"; then
1934 ac_install_sh="$ac_aux_dir/install-sh -c"
1936 elif test -f "$ac_dir/install.sh"; then
1938 ac_install_sh="$ac_aux_dir/install.sh -c"
1940 elif test -f "$ac_dir/shtool"; then
1942 ac_install_sh="$ac_aux_dir/shtool install -c"
1946 if test -z "$ac_aux_dir"; then
1947 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1948 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1949 { (exit 1); exit 1; }; }
1952 # These three variables are undocumented and unsupported,
1953 # and are intended to be withdrawn in a future Autoconf release.
1954 # They can cause serious problems if a builder's source tree is in a directory
1955 # whose full name contains unusual characters.
1956 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1957 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1958 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1961 # Find a good install program. We prefer a C program (faster),
1962 # so one script is as good as another. But avoid the broken or
1963 # incompatible versions:
1964 # SysV /etc/install, /usr/sbin/install
1965 # SunOS /usr/etc/install
1966 # IRIX /sbin/install
1968 # AmigaOS /C/install, which installs bootblocks on floppy discs
1969 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1970 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1971 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1972 # OS/2's system install, which has a completely different semantic
1973 # ./install, which can be erroneously created by make from ./install.sh.
1974 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1975 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1976 if test -z "$INSTALL"; then
1977 if test "${ac_cv_path_install+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 # Account for people who put trailing slashes in PATH elements.
1987 ./ | .// | /cC/* | \
1988 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1989 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1992 # OSF1 and SCO ODT 3.0 have their own names for install.
1993 # Don't use installbsd from OSF since it installs stuff as root
1995 for ac_prog in ginstall scoinst install; do
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1998 if test $ac_prog = install &&
1999 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2000 # AIX install. It has an incompatible calling convention.
2002 elif test $ac_prog = install &&
2003 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2004 # program-specific install script used by HP pwplus--don't use.
2007 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2020 if test "${ac_cv_path_install+set}" = set; then
2021 INSTALL=$ac_cv_path_install
2023 # As a last resort, use the slow shell script. Don't cache a
2024 # value for INSTALL within a source directory, because that will
2025 # break other packages using the cache if that directory is
2026 # removed, or if the value is a relative name.
2027 INSTALL=$ac_install_sh
2030 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2031 echo "${ECHO_T}$INSTALL" >&6; }
2033 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2034 # It thinks the first close brace ends the variable substitution.
2035 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2037 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2039 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2041 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2042 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2045 echo timestamp > conftest.file
2046 # Do `set' in a subshell so we don't clobber the current shell's
2047 # arguments. Must try -L first in case configure is actually a
2048 # symlink; some systems play weird games with the mod time of symlinks
2049 # (eg FreeBSD returns the mod time of the symlink's containing
2052 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2053 if test "$*" = "X"; then
2055 set X `ls -t $srcdir/configure conftest.file`
2058 if test "$*" != "X $srcdir/configure conftest.file" \
2059 && test "$*" != "X conftest.file $srcdir/configure"; then
2061 # If neither matched, then we have a broken ls. This can happen
2062 # if, for instance, CONFIG_SHELL is bash and it inherits a
2063 # broken ls alias from the environment. This has actually
2064 # happened. Such a system could not be considered "sane".
2065 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2066 alias in your environment" >&5
2067 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2068 alias in your environment" >&2;}
2069 { (exit 1); exit 1; }; }
2072 test "$2" = conftest.file
2078 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2079 Check your system clock" >&5
2080 echo "$as_me: error: newly created file is older than distributed files!
2081 Check your system clock" >&2;}
2082 { (exit 1); exit 1; }; }
2084 { echo "$as_me:$LINENO: result: yes" >&5
2085 echo "${ECHO_T}yes" >&6; }
2086 test "$program_prefix" != NONE &&
2087 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2088 # Use a double $ so make ignores it.
2089 test "$program_suffix" != NONE &&
2090 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2091 # Double any \ or $. echo might interpret backslashes.
2092 # By default was `s,x,x', remove it if useless.
2093 cat <<\_ACEOF >conftest.sed
2094 s/[\\$]/&&/g;s/;s,x,x,$//
2096 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2099 # expand $ac_aux_dir to an absolute path
2100 am_aux_dir=`cd $ac_aux_dir && pwd`
2102 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2103 # Use eval to expand $SHELL
2104 if eval "$MISSING --run true"; then
2105 am_missing_run="$MISSING --run "
2108 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2109 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2112 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2113 # We used to keeping the `.' as first argument, in order to
2114 # allow $(mkdir_p) to be used without argument. As in
2115 # $(mkdir_p) $(somedir)
2116 # where $(somedir) is conditionally defined. However this is wrong
2118 # 1. if the package is installed by a user who cannot write `.'
2119 # make install will fail,
2120 # 2. the above comment should most certainly read
2121 # $(mkdir_p) $(DESTDIR)$(somedir)
2122 # so it does not work when $(somedir) is undefined and
2123 # $(DESTDIR) is not.
2124 # To support the latter case, we have to write
2125 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2126 # so the `.' trick is pointless.
2127 mkdir_p='mkdir -p --'
2129 # On NextStep and OpenStep, the `mkdir' command does not
2130 # recognize any option. It will interpret all options as
2131 # directories to create, and then abort because `.' already
2133 for d in ./-p ./--version;
2135 test -d $d && rmdir $d
2137 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2138 if test -f "$ac_aux_dir/mkinstalldirs"; then
2139 mkdir_p='$(mkinstalldirs)'
2141 mkdir_p='$(install_sh) -d'
2145 for ac_prog in gawk mawk nawk awk
2147 # Extract the first word of "$ac_prog", so it can be a program name with args.
2148 set dummy $ac_prog; ac_word=$2
2149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151 if test "${ac_cv_prog_AWK+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 if test -n "$AWK"; then
2155 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 test -z "$as_dir" && as_dir=.
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164 ac_cv_prog_AWK="$ac_prog"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 if test -n "$AWK"; then
2176 { echo "$as_me:$LINENO: result: $AWK" >&5
2177 echo "${ECHO_T}$AWK" >&6; }
2179 { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2184 test -n "$AWK" && break
2187 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2188 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2189 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2190 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 cat >conftest.make <<\_ACEOF
2196 @echo '@@@%%%=$(MAKE)=@@@%%%'
2198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2201 eval ac_cv_prog_make_${ac_make}_set=yes;;
2203 eval ac_cv_prog_make_${ac_make}_set=no;;
2207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2208 { echo "$as_me:$LINENO: result: yes" >&5
2209 echo "${ECHO_T}yes" >&6; }
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2214 SET_MAKE="MAKE=${MAKE-make}"
2217 rm -rf .tst 2>/dev/null
2218 mkdir .tst 2>/dev/null
2219 if test -d .tst; then
2224 rmdir .tst 2>/dev/null
2226 # test to see if srcdir already configured
2227 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2228 test -f $srcdir/config.status; then
2229 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2230 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2231 { (exit 1); exit 1; }; }
2234 # test whether we have cygpath
2235 if test -z "$CYGPATH_W"; then
2236 if (cygpath --version) >/dev/null 2>/dev/null; then
2237 CYGPATH_W='cygpath -w'
2244 # Define the identity of the package.
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE "$PACKAGE"
2254 cat >>confdefs.h <<_ACEOF
2255 #define VERSION "$VERSION"
2258 # Some tools Automake needs.
2260 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2263 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2266 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2269 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2272 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2274 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2276 # Installed binaries are usually stripped using `strip' when the user
2277 # run `make install-strip'. However `strip' might not be the right
2278 # tool to use in cross-compilation environments, therefore Automake
2279 # will honor the `STRIP' environment variable to overrule this program.
2280 if test "$cross_compiling" != no; then
2281 if test -n "$ac_tool_prefix"; then
2282 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2283 set dummy ${ac_tool_prefix}strip; ac_word=$2
2284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2286 if test "${ac_cv_prog_STRIP+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 if test -n "$STRIP"; then
2290 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 STRIP=$ac_cv_prog_STRIP
2310 if test -n "$STRIP"; then
2311 { echo "$as_me:$LINENO: result: $STRIP" >&5
2312 echo "${ECHO_T}$STRIP" >&6; }
2314 { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6; }
2320 if test -z "$ac_cv_prog_STRIP"; then
2322 # Extract the first word of "strip", so it can be a program name with args.
2323 set dummy strip; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 if test -n "$ac_ct_STRIP"; then
2330 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_ac_ct_STRIP="strip"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2350 if test -n "$ac_ct_STRIP"; then
2351 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2352 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2358 if test "x$ac_ct_STRIP" = x; then
2361 case $cross_compiling:$ac_tool_warned in
2363 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2364 whose name does not start with the host triplet. If you think this
2365 configuration is useful to you, please write to autoconf@gnu.org." >&5
2366 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2367 whose name does not start with the host triplet. If you think this
2368 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2369 ac_tool_warned=yes ;;
2374 STRIP="$ac_cv_prog_STRIP"
2378 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2380 # We need awk for the "check" target. The system "awk" is bad on
2382 # Always define AMTAR for backward compatibility.
2384 AMTAR=${AMTAR-"${am_missing_run}tar"}
2386 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2392 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2393 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2394 # Check whether --enable-maintainer-mode was given.
2395 if test "${enable_maintainer_mode+set}" = set; then
2396 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2398 USE_MAINTAINER_MODE=no
2401 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2402 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2405 if test $USE_MAINTAINER_MODE = yes; then
2406 MAINTAINER_MODE_TRUE=
2407 MAINTAINER_MODE_FALSE='#'
2409 MAINTAINER_MODE_TRUE='#'
2410 MAINTAINER_MODE_FALSE=
2413 MAINT=$MAINTAINER_MODE_TRUE
2416 ac_config_headers="$ac_config_headers config.h"
2419 # Make sure we can run config.sub.
2420 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2421 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2422 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2423 { (exit 1); exit 1; }; }
2425 { echo "$as_me:$LINENO: checking build system type" >&5
2426 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2427 if test "${ac_cv_build+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 ac_build_alias=$build_alias
2431 test "x$ac_build_alias" = x &&
2432 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2433 test "x$ac_build_alias" = x &&
2434 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2435 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2436 { (exit 1); exit 1; }; }
2437 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2438 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2439 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2440 { (exit 1); exit 1; }; }
2443 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2444 echo "${ECHO_T}$ac_cv_build" >&6; }
2445 case $ac_cv_build in
2447 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2448 echo "$as_me: error: invalid value of canonical build" >&2;}
2449 { (exit 1); exit 1; }; };;
2452 ac_save_IFS=$IFS; IFS='-'
2458 # Remember, the first character of IFS is used to create $*,
2459 # except with old shells:
2462 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2465 { echo "$as_me:$LINENO: checking host system type" >&5
2466 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2467 if test "${ac_cv_host+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 if test "x$host_alias" = x; then
2471 ac_cv_host=$ac_cv_build
2473 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2474 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2475 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2476 { (exit 1); exit 1; }; }
2480 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2481 echo "${ECHO_T}$ac_cv_host" >&6; }
2484 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2485 echo "$as_me: error: invalid value of canonical host" >&2;}
2486 { (exit 1); exit 1; }; };;
2489 ac_save_IFS=$IFS; IFS='-'
2495 # Remember, the first character of IFS is used to create $*,
2496 # except with old shells:
2499 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2511 DEPDIR="${am__leading_dot}deps"
2513 ac_config_commands="$ac_config_commands depfiles"
2516 am_make=${MAKE-make}
2517 cat > confinc << 'END'
2522 # If we don't find an include directive, just comment out the code.
2523 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2524 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2528 # First try GNU make style include.
2529 echo "include confinc" > confmf
2530 # We grep out `Entering directory' and `Leaving directory'
2531 # messages which can occur if `w' ends up in MAKEFLAGS.
2532 # In particular we don't look at `^make:' because GNU make might
2533 # be invoked under some other name (usually "gmake"), in which
2534 # case it prints its new name instead of `make'.
2535 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2540 # Now try BSD make style include.
2541 if test "$am__include" = "#"; then
2542 echo '.include "confinc"' > confmf
2543 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2544 am__include=.include
2551 { echo "$as_me:$LINENO: result: $_am_result" >&5
2552 echo "${ECHO_T}$_am_result" >&6; }
2553 rm -f confinc confmf
2555 # Check whether --enable-dependency-tracking was given.
2556 if test "${enable_dependency_tracking+set}" = set; then
2557 enableval=$enable_dependency_tracking;
2560 if test "x$enable_dependency_tracking" != xno; then
2561 am_depcomp="$ac_aux_dir/depcomp"
2566 if test "x$enable_dependency_tracking" != xno; then
2577 ac_cpp='$CPP $CPPFLAGS'
2578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581 if test -n "$ac_tool_prefix"; then
2582 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2583 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 if test -n "$CC"; then
2590 ac_cv_prog_CC="$CC" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 if test -n "$CC"; then
2611 { echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6; }
2614 { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2620 if test -z "$ac_cv_prog_CC"; then
2622 # Extract the first word of "gcc", so it can be a program name with args.
2623 set dummy gcc; ac_word=$2
2624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2626 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 if test -n "$ac_ct_CC"; then
2630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2639 ac_cv_prog_ac_ct_CC="gcc"
2640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2650 if test -n "$ac_ct_CC"; then
2651 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2652 echo "${ECHO_T}$ac_ct_CC" >&6; }
2654 { echo "$as_me:$LINENO: result: no" >&5
2655 echo "${ECHO_T}no" >&6; }
2658 if test "x$ac_ct_CC" = x; then
2661 case $cross_compiling:$ac_tool_warned in
2663 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2664 whose name does not start with the host triplet. If you think this
2665 configuration is useful to you, please write to autoconf@gnu.org." >&5
2666 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2667 whose name does not start with the host triplet. If you think this
2668 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2669 ac_tool_warned=yes ;;
2677 if test -z "$CC"; then
2678 if test -n "$ac_tool_prefix"; then
2679 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2680 set dummy ${ac_tool_prefix}cc; ac_word=$2
2681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_CC+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 if test -n "$CC"; then
2687 ac_cv_prog_CC="$CC" # Let the user override the test.
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_prog_CC="${ac_tool_prefix}cc"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 if test -n "$CC"; then
2708 { echo "$as_me:$LINENO: result: $CC" >&5
2709 echo "${ECHO_T}$CC" >&6; }
2711 { echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6; }
2718 if test -z "$CC"; then
2719 # Extract the first word of "cc", so it can be a program name with args.
2720 set dummy cc; ac_word=$2
2721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2723 if test "${ac_cv_prog_CC+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2738 ac_prog_rejected=yes
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 if test $ac_prog_rejected = yes; then
2750 # We found a bogon in the path, so make sure we never use it.
2751 set dummy $ac_cv_prog_CC
2753 if test $# != 0; then
2754 # We chose a different compiler from the bogus one.
2755 # However, it has the same basename, so the bogon will be chosen
2756 # first if we set CC to just the basename; use the full file name.
2758 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2764 if test -n "$CC"; then
2765 { echo "$as_me:$LINENO: result: $CC" >&5
2766 echo "${ECHO_T}$CC" >&6; }
2768 { echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6; }
2774 if test -z "$CC"; then
2775 if test -n "$ac_tool_prefix"; then
2776 for ac_prog in cl.exe
2778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_CC+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 if test -n "$CC"; then
2807 { echo "$as_me:$LINENO: result: $CC" >&5
2808 echo "${ECHO_T}$CC" >&6; }
2810 { echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6; }
2815 test -n "$CC" && break
2818 if test -z "$CC"; then
2820 for ac_prog in cl.exe
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 if test -n "$ac_ct_CC"; then
2830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_ac_ct_CC="$ac_prog"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850 if test -n "$ac_ct_CC"; then
2851 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2852 echo "${ECHO_T}$ac_ct_CC" >&6; }
2854 { echo "$as_me:$LINENO: result: no" >&5
2855 echo "${ECHO_T}no" >&6; }
2859 test -n "$ac_ct_CC" && break
2862 if test "x$ac_ct_CC" = x; then
2865 case $cross_compiling:$ac_tool_warned in
2867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet. If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&5
2870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2871 whose name does not start with the host triplet. If you think this
2872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2873 ac_tool_warned=yes ;;
2882 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2883 See \`config.log' for more details." >&5
2884 echo "$as_me: error: no acceptable C compiler found in \$PATH
2885 See \`config.log' for more details." >&2;}
2886 { (exit 1); exit 1; }; }
2888 # Provide some information about the compiler.
2889 echo "$as_me:$LINENO: checking for C compiler version" >&5
2890 ac_compiler=`set X $ac_compile; echo $2`
2891 { (ac_try="$ac_compiler --version >&5"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler --version >&5") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901 { (ac_try="$ac_compiler -v >&5"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler -v >&5") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911 { (ac_try="$ac_compiler -V >&5"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -V >&5") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2922 cat >conftest.$ac_ext <<_ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2937 ac_clean_files_save=$ac_clean_files
2938 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2939 # Try to create an executable without -o first, disregard a.out.
2940 # It will help us diagnose broken compilers, and finding out an intuition
2942 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2943 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2944 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2946 # List of possible output files, starting from the most likely.
2947 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2948 # only as a last resort. b.out is created by i960 compilers.
2949 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2951 # The IRIX 6 linker writes into existing files which may not be
2952 # executable, retaining their permissions. Remove them first so a
2953 # subsequent execution test works.
2955 for ac_file in $ac_files
2958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2959 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2964 if { (ac_try="$ac_link_default"
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_link_default") 2>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; then
2974 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2975 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2976 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2977 # so that the user can short-circuit this test for compilers unknown to
2979 for ac_file in $ac_files ''
2981 test -f "$ac_file" || continue
2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2986 # We found the default executable, but exeext='' is most
2990 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2992 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2994 # We set ac_cv_exeext here because the later test for it is not
2995 # safe: cross compilers may not add the suffix if given an `-o'
2996 # argument, so we may need to know it at that point already.
2997 # Even if this section looks crufty: it has the advantage of
3004 test "$ac_cv_exeext" = no && ac_cv_exeext=
3010 { echo "$as_me:$LINENO: result: $ac_file" >&5
3011 echo "${ECHO_T}$ac_file" >&6; }
3012 if test -z "$ac_file"; then
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3016 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3017 See \`config.log' for more details." >&5
3018 echo "$as_me: error: C compiler cannot create executables
3019 See \`config.log' for more details." >&2;}
3020 { (exit 77); exit 77; }; }
3023 ac_exeext=$ac_cv_exeext
3025 # Check that the compiler produces executables we can run. If not, either
3026 # the compiler is broken, or we cross compile.
3027 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3028 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3029 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3030 # If not cross compiling, check that we can run a simple program.
3031 if test "$cross_compiling" != yes; then
3032 if { ac_try='./$ac_file'
3033 { (case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_try") 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3044 if test "$cross_compiling" = maybe; then
3047 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3048 If you meant to cross compile, use \`--host'.
3049 See \`config.log' for more details." >&5
3050 echo "$as_me: error: cannot run C compiled programs.
3051 If you meant to cross compile, use \`--host'.
3052 See \`config.log' for more details." >&2;}
3053 { (exit 1); exit 1; }; }
3057 { echo "$as_me:$LINENO: result: yes" >&5
3058 echo "${ECHO_T}yes" >&6; }
3060 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3061 ac_clean_files=$ac_clean_files_save
3062 # Check that the compiler produces executables we can run. If not, either
3063 # the compiler is broken, or we cross compile.
3064 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3065 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3066 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3067 echo "${ECHO_T}$cross_compiling" >&6; }
3069 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3070 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3071 if { (ac_try="$ac_link"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_link") 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3082 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3083 # work properly (i.e., refer to `conftest.exe'), while it won't with
3085 for ac_file in conftest.exe conftest conftest.*; do
3086 test -f "$ac_file" || continue
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3102 rm -f conftest$ac_cv_exeext
3103 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3104 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3106 rm -f conftest.$ac_ext
3107 EXEEXT=$ac_cv_exeext
3109 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3110 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3111 if test "${ac_cv_objext+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3129 rm -f conftest.o conftest.obj
3130 if { (ac_try="$ac_compile"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; then
3140 for ac_file in conftest.o conftest.obj conftest.*; do
3141 test -f "$ac_file" || continue;
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3155 See \`config.log' for more details." >&2;}
3156 { (exit 1); exit 1; }; }
3159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3161 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3162 echo "${ECHO_T}$ac_cv_objext" >&6; }
3163 OBJEXT=$ac_cv_objext
3165 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3188 rm -f conftest.$ac_objext
3189 if { (ac_try="$ac_compile"
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_compile") 2>conftest.er1
3197 grep -v '^ *+' conftest.er1 >conftest.err
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } && {
3202 test -z "$ac_c_werror_flag" ||
3203 test ! -s conftest.err
3204 } && test -s conftest.$ac_objext; then
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3217 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3218 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3219 GCC=`test $ac_compiler_gnu = yes && echo yes`
3220 ac_test_CFLAGS=${CFLAGS+set}
3221 ac_save_CFLAGS=$CFLAGS
3222 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3223 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3224 if test "${ac_cv_prog_cc_g+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 ac_save_c_werror_flag=$ac_c_werror_flag
3228 ac_c_werror_flag=yes
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3246 rm -f conftest.$ac_objext
3247 if { (ac_try="$ac_compile"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_compile") 2>conftest.er1
3255 grep -v '^ *+' conftest.er1 >conftest.err
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } && {
3260 test -z "$ac_c_werror_flag" ||
3261 test ! -s conftest.err
3262 } && test -s conftest.$ac_objext; then
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3284 rm -f conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compile") 2>conftest.er1
3293 grep -v '^ *+' conftest.er1 >conftest.err
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } && {
3298 test -z "$ac_c_werror_flag" ||
3299 test ! -s conftest.err
3300 } && test -s conftest.$ac_objext; then
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 ac_c_werror_flag=$ac_save_c_werror_flag
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3323 rm -f conftest.$ac_objext
3324 if { (ac_try="$ac_compile"
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_compile") 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } && {
3337 test -z "$ac_c_werror_flag" ||
3338 test ! -s conftest.err
3339 } && test -s conftest.$ac_objext; then
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_c_werror_flag=$ac_save_c_werror_flag
3357 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3358 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3359 if test "$ac_test_CFLAGS" = set; then
3360 CFLAGS=$ac_save_CFLAGS
3361 elif test $ac_cv_prog_cc_g = yes; then
3362 if test "$GCC" = yes; then
3368 if test "$GCC" = yes; then
3374 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3375 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3376 if test "${ac_cv_prog_cc_c89+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 ac_cv_prog_cc_c89=no
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3389 #include <sys/types.h>
3390 #include <sys/stat.h>
3391 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3392 struct buf { int x; };
3393 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3394 static char *e (p, i)
3400 static char *f (char * (*g) (char **, int), char **p, ...)
3405 s = g (p, va_arg (v,int));
3410 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3411 function prototypes and stuff, but not '\xHH' hex character constants.
3412 These don't provoke an error unfortunately, instead are silently treated
3413 as 'x'. The following induces an error, until -std is added to get
3414 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3415 array size at least. It's necessary to write '\x00'==0 to get something
3416 that's true only with -std. */
3417 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3419 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3420 inside strings and character constants. */
3422 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3424 int test (int i, double x);
3425 struct s1 {int (*f) (int a);};
3426 struct s2 {int (*f) (double a);};
3427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3438 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3439 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441 CC="$ac_save_CC $ac_arg"
3442 rm -f conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_compile") 2>conftest.er1
3451 grep -v '^ *+' conftest.er1 >conftest.err
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } && {
3456 test -z "$ac_c_werror_flag" ||
3457 test ! -s conftest.err
3458 } && test -s conftest.$ac_objext; then
3459 ac_cv_prog_cc_c89=$ac_arg
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3467 rm -f core conftest.err conftest.$ac_objext
3468 test "x$ac_cv_prog_cc_c89" != "xno" && break
3470 rm -f conftest.$ac_ext
3475 case "x$ac_cv_prog_cc_c89" in
3477 { echo "$as_me:$LINENO: result: none needed" >&5
3478 echo "${ECHO_T}none needed" >&6; } ;;
3480 { echo "$as_me:$LINENO: result: unsupported" >&5
3481 echo "${ECHO_T}unsupported" >&6; } ;;
3483 CC="$CC $ac_cv_prog_cc_c89"
3484 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3485 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495 depcc="$CC" am_compiler_list=
3497 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3498 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3499 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3503 # We make a subdir and do the tests there. Otherwise we can end up
3504 # making bogus files that we don't know about and never remove. For
3505 # instance it was reported that on HP-UX the gcc test will end up
3506 # making a dummy file named `D' -- because `-MD' means `put the output
3509 # Copy depcomp to subdir because otherwise we won't find it if we're
3510 # using a relative directory.
3511 cp "$am_depcomp" conftest.dir
3513 # We will build objects and dependencies in a subdirectory because
3514 # it helps to detect inapplicable dependency modes. For instance
3515 # both Tru64's cc and ICC support -MD to output dependencies as a
3516 # side effect of compilation, but ICC will put the dependencies in
3517 # the current directory while Tru64 will put them in the object
3521 am_cv_CC_dependencies_compiler_type=none
3522 if test "$am_compiler_list" = ""; then
3523 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3525 for depmode in $am_compiler_list; do
3526 # Setup a source with many dependencies, because some compilers
3527 # like to wrap large dependency lists on column 80 (with \), and
3528 # we should not choose a depcomp mode which is confused by this.
3530 # We need to recreate these files for each test, as the compiler may
3531 # overwrite some of them when testing with obscure command lines.
3532 # This happens at least with the AIX C compiler.
3534 for i in 1 2 3 4 5 6; do
3535 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3536 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3537 # Solaris 8's {/usr,}/bin/sh.
3538 touch sub/conftst$i.h
3540 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3544 # after this tag, mechanisms are not by side-effect, so they'll
3545 # only be used when explicitly requested
3546 if test "x$enable_dependency_tracking" = xyes; then
3554 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3555 # mode. It turns out that the SunPro C++ compiler does not properly
3556 # handle `-M -o', and we need to detect this.
3557 if depmode=$depmode \
3558 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3559 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3560 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3561 >/dev/null 2>conftest.err &&
3562 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3563 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3564 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3565 # icc doesn't choke on unknown options, it will just issue warnings
3566 # or remarks (even with -Werror). So we grep stderr for any message
3567 # that says an option was ignored or not supported.
3568 # When given -MP, icc 7.0 and 7.1 complain thusly:
3569 # icc: Command line warning: ignoring option '-M'; no argument required
3570 # The diagnosis changed in icc 8.0:
3571 # icc: Command line remark: option '-MP' not supported
3572 if (grep 'ignoring option' conftest.err ||
3573 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3574 am_cv_CC_dependencies_compiler_type=$depmode
3583 am_cv_CC_dependencies_compiler_type=none
3587 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3588 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3589 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3594 test "x$enable_dependency_tracking" != xno \
3595 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3597 am__fastdepCC_FALSE='#'
3599 am__fastdepCC_TRUE='#'
3600 am__fastdepCC_FALSE=
3606 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3607 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3608 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 ac_check_lib_save_LIBS=$LIBS
3612 LIBS="-lcposix $LIBS"
3613 cat >conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3620 /* Override any GCC internal prototype to avoid an error.
3621 Use char because int might match the return type of a GCC
3622 builtin and then its argument prototype would still apply. */
3635 rm -f conftest.$ac_objext conftest$ac_exeext
3636 if { (ac_try="$ac_link"
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_link") 2>conftest.er1
3644 grep -v '^ *+' conftest.er1 >conftest.err
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } && {
3649 test -z "$ac_c_werror_flag" ||
3650 test ! -s conftest.err
3651 } && test -s conftest$ac_exeext &&
3652 $as_test_x conftest$ac_exeext; then
3653 ac_cv_lib_cposix_strerror=yes
3655 echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658 ac_cv_lib_cposix_strerror=no
3661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3662 conftest$ac_exeext conftest.$ac_ext
3663 LIBS=$ac_check_lib_save_LIBS
3665 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3666 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3667 if test $ac_cv_lib_cposix_strerror = yes; then
3668 LIBS="$LIBS -lcposix"
3674 ac_cpp='$CPP $CPPFLAGS'
3675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678 if test -n "$ac_tool_prefix"; then
3679 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3680 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3683 if test "${ac_cv_prog_CC+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 if test -n "$CC"; then
3687 ac_cv_prog_CC="$CC" # Let the user override the test.
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 if test -n "$CC"; then
3708 { echo "$as_me:$LINENO: result: $CC" >&5
3709 echo "${ECHO_T}$CC" >&6; }
3711 { echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6; }
3717 if test -z "$ac_cv_prog_CC"; then
3719 # Extract the first word of "gcc", so it can be a program name with args.
3720 set dummy gcc; ac_word=$2
3721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 if test -n "$ac_ct_CC"; then
3727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_ac_ct_CC="gcc"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3747 if test -n "$ac_ct_CC"; then
3748 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3749 echo "${ECHO_T}$ac_ct_CC" >&6; }
3751 { echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6; }
3755 if test "x$ac_ct_CC" = x; then
3758 case $cross_compiling:$ac_tool_warned in
3760 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3761 whose name does not start with the host triplet. If you think this
3762 configuration is useful to you, please write to autoconf@gnu.org." >&5
3763 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3764 whose name does not start with the host triplet. If you think this
3765 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3766 ac_tool_warned=yes ;;
3774 if test -z "$CC"; then
3775 if test -n "$ac_tool_prefix"; then
3776 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3777 set dummy ${ac_tool_prefix}cc; ac_word=$2
3778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3780 if test "${ac_cv_prog_CC+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 if test -n "$CC"; then
3784 ac_cv_prog_CC="$CC" # Let the user override the test.
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3793 ac_cv_prog_CC="${ac_tool_prefix}cc"
3794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 if test -n "$CC"; then
3805 { echo "$as_me:$LINENO: result: $CC" >&5
3806 echo "${ECHO_T}$CC" >&6; }
3808 { echo "$as_me:$LINENO: result: no" >&5
3809 echo "${ECHO_T}no" >&6; }
3815 if test -z "$CC"; then
3816 # Extract the first word of "cc", so it can be a program name with args.
3817 set dummy cc; ac_word=$2
3818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3820 if test "${ac_cv_prog_CC+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 if test -n "$CC"; then
3824 ac_cv_prog_CC="$CC" # Let the user override the test.
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3834 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3835 ac_prog_rejected=yes
3839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 if test $ac_prog_rejected = yes; then
3847 # We found a bogon in the path, so make sure we never use it.
3848 set dummy $ac_cv_prog_CC
3850 if test $# != 0; then
3851 # We chose a different compiler from the bogus one.
3852 # However, it has the same basename, so the bogon will be chosen
3853 # first if we set CC to just the basename; use the full file name.
3855 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3861 if test -n "$CC"; then
3862 { echo "$as_me:$LINENO: result: $CC" >&5
3863 echo "${ECHO_T}$CC" >&6; }
3865 { echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6; }
3871 if test -z "$CC"; then
3872 if test -n "$ac_tool_prefix"; then
3873 for ac_prog in cl.exe
3875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3879 if test "${ac_cv_prog_CC+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 if test -n "$CC"; then
3883 ac_cv_prog_CC="$CC" # Let the user override the test.
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 if test -n "$CC"; then
3904 { echo "$as_me:$LINENO: result: $CC" >&5
3905 echo "${ECHO_T}$CC" >&6; }
3907 { echo "$as_me:$LINENO: result: no" >&5
3908 echo "${ECHO_T}no" >&6; }
3912 test -n "$CC" && break
3915 if test -z "$CC"; then
3917 for ac_prog in cl.exe
3919 # Extract the first word of "$ac_prog", so it can be a program name with args.
3920 set dummy $ac_prog; ac_word=$2
3921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 if test -n "$ac_ct_CC"; then
3927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 ac_cv_prog_ac_ct_CC="$ac_prog"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3947 if test -n "$ac_ct_CC"; then
3948 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3949 echo "${ECHO_T}$ac_ct_CC" >&6; }
3951 { echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6; }
3956 test -n "$ac_ct_CC" && break
3959 if test "x$ac_ct_CC" = x; then
3962 case $cross_compiling:$ac_tool_warned in
3964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3965 whose name does not start with the host triplet. If you think this
3966 configuration is useful to you, please write to autoconf@gnu.org." >&5
3967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3968 whose name does not start with the host triplet. If you think this
3969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3970 ac_tool_warned=yes ;;
3979 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3980 See \`config.log' for more details." >&5
3981 echo "$as_me: error: no acceptable C compiler found in \$PATH
3982 See \`config.log' for more details." >&2;}
3983 { (exit 1); exit 1; }; }
3985 # Provide some information about the compiler.
3986 echo "$as_me:$LINENO: checking for C compiler version" >&5
3987 ac_compiler=`set X $ac_compile; echo $2`
3988 { (ac_try="$ac_compiler --version >&5"
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994 (eval "$ac_compiler --version >&5") 2>&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }
3998 { (ac_try="$ac_compiler -v >&5"
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_compiler -v >&5") 2>&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }
4008 { (ac_try="$ac_compiler -V >&5"
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_compiler -V >&5") 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }
4019 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 cat >conftest.$ac_ext <<_ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4042 rm -f conftest.$ac_objext
4043 if { (ac_try="$ac_compile"
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_compile") 2>conftest.er1
4051 grep -v '^ *+' conftest.er1 >conftest.err
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } && {
4056 test -z "$ac_c_werror_flag" ||
4057 test ! -s conftest.err
4058 } && test -s conftest.$ac_objext; then
4061 echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4071 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4072 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4073 GCC=`test $ac_compiler_gnu = yes && echo yes`
4074 ac_test_CFLAGS=${CFLAGS+set}
4075 ac_save_CFLAGS=$CFLAGS
4076 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4077 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4078 if test "${ac_cv_prog_cc_g+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 ac_save_c_werror_flag=$ac_c_werror_flag
4082 ac_c_werror_flag=yes
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4100 rm -f conftest.$ac_objext
4101 if { (ac_try="$ac_compile"
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107 (eval "$ac_compile") 2>conftest.er1
4109 grep -v '^ *+' conftest.er1 >conftest.err
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } && {
4114 test -z "$ac_c_werror_flag" ||
4115 test ! -s conftest.err
4116 } && test -s conftest.$ac_objext; then
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4138 rm -f conftest.$ac_objext
4139 if { (ac_try="$ac_compile"
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_compile") 2>conftest.er1
4147 grep -v '^ *+' conftest.er1 >conftest.err
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } && {
4152 test -z "$ac_c_werror_flag" ||
4153 test ! -s conftest.err
4154 } && test -s conftest.$ac_objext; then
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4160 ac_c_werror_flag=$ac_save_c_werror_flag
4162 cat >conftest.$ac_ext <<_ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4177 rm -f conftest.$ac_objext
4178 if { (ac_try="$ac_compile"
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_compile") 2>conftest.er1
4186 grep -v '^ *+' conftest.er1 >conftest.err
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && {
4191 test -z "$ac_c_werror_flag" ||
4192 test ! -s conftest.err
4193 } && test -s conftest.$ac_objext; then
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 ac_c_werror_flag=$ac_save_c_werror_flag
4211 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4212 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4213 if test "$ac_test_CFLAGS" = set; then
4214 CFLAGS=$ac_save_CFLAGS
4215 elif test $ac_cv_prog_cc_g = yes; then
4216 if test "$GCC" = yes; then
4222 if test "$GCC" = yes; then
4228 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4229 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4230 if test "${ac_cv_prog_cc_c89+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 ac_cv_prog_cc_c89=no
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4243 #include <sys/types.h>
4244 #include <sys/stat.h>
4245 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4246 struct buf { int x; };
4247 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4248 static char *e (p, i)
4254 static char *f (char * (*g) (char **, int), char **p, ...)
4259 s = g (p, va_arg (v,int));
4264 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4265 function prototypes and stuff, but not '\xHH' hex character constants.
4266 These don't provoke an error unfortunately, instead are silently treated
4267 as 'x'. The following induces an error, until -std is added to get
4268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4269 array size at least. It's necessary to write '\x00'==0 to get something
4270 that's true only with -std. */
4271 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4273 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4274 inside strings and character constants. */
4276 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4278 int test (int i, double x);
4279 struct s1 {int (*f) (int a);};
4280 struct s2 {int (*f) (double a);};
4281 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4287 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4292 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4295 CC="$ac_save_CC $ac_arg"
4296 rm -f conftest.$ac_objext
4297 if { (ac_try="$ac_compile"
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_compile") 2>conftest.er1
4305 grep -v '^ *+' conftest.er1 >conftest.err
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } && {
4310 test -z "$ac_c_werror_flag" ||
4311 test ! -s conftest.err
4312 } && test -s conftest.$ac_objext; then
4313 ac_cv_prog_cc_c89=$ac_arg
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4321 rm -f core conftest.err conftest.$ac_objext
4322 test "x$ac_cv_prog_cc_c89" != "xno" && break
4324 rm -f conftest.$ac_ext
4329 case "x$ac_cv_prog_cc_c89" in
4331 { echo "$as_me:$LINENO: result: none needed" >&5
4332 echo "${ECHO_T}none needed" >&6; } ;;
4334 { echo "$as_me:$LINENO: result: unsupported" >&5
4335 echo "${ECHO_T}unsupported" >&6; } ;;
4337 CC="$CC $ac_cv_prog_cc_c89"
4338 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4339 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349 depcc="$CC" am_compiler_list=
4351 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4352 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4353 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4357 # We make a subdir and do the tests there. Otherwise we can end up
4358 # making bogus files that we don't know about and never remove. For
4359 # instance it was reported that on HP-UX the gcc test will end up
4360 # making a dummy file named `D' -- because `-MD' means `put the output
4363 # Copy depcomp to subdir because otherwise we won't find it if we're
4364 # using a relative directory.
4365 cp "$am_depcomp" conftest.dir
4367 # We will build objects and dependencies in a subdirectory because
4368 # it helps to detect inapplicable dependency modes. For instance
4369 # both Tru64's cc and ICC support -MD to output dependencies as a
4370 # side effect of compilation, but ICC will put the dependencies in
4371 # the current directory while Tru64 will put them in the object
4375 am_cv_CC_dependencies_compiler_type=none
4376 if test "$am_compiler_list" = ""; then
4377 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4379 for depmode in $am_compiler_list; do
4380 # Setup a source with many dependencies, because some compilers
4381 # like to wrap large dependency lists on column 80 (with \), and
4382 # we should not choose a depcomp mode which is confused by this.
4384 # We need to recreate these files for each test, as the compiler may
4385 # overwrite some of them when testing with obscure command lines.
4386 # This happens at least with the AIX C compiler.
4388 for i in 1 2 3 4 5 6; do
4389 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4390 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4391 # Solaris 8's {/usr,}/bin/sh.
4392 touch sub/conftst$i.h
4394 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4398 # after this tag, mechanisms are not by side-effect, so they'll
4399 # only be used when explicitly requested
4400 if test "x$enable_dependency_tracking" = xyes; then
4408 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4409 # mode. It turns out that the SunPro C++ compiler does not properly
4410 # handle `-M -o', and we need to detect this.
4411 if depmode=$depmode \
4412 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4413 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4414 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4415 >/dev/null 2>conftest.err &&
4416 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4417 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4418 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4419 # icc doesn't choke on unknown options, it will just issue warnings
4420 # or remarks (even with -Werror). So we grep stderr for any message
4421 # that says an option was ignored or not supported.
4422 # When given -MP, icc 7.0 and 7.1 complain thusly:
4423 # icc: Command line warning: ignoring option '-M'; no argument required
4424 # The diagnosis changed in icc 8.0:
4425 # icc: Command line remark: option '-MP' not supported
4426 if (grep 'ignoring option' conftest.err ||
4427 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4428 am_cv_CC_dependencies_compiler_type=$depmode
4437 am_cv_CC_dependencies_compiler_type=none
4441 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4442 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4443 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4448 test "x$enable_dependency_tracking" != xno \
4449 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4451 am__fastdepCC_FALSE='#'
4453 am__fastdepCC_TRUE='#'
4454 am__fastdepCC_FALSE=
4459 ac_cpp='$CPP $CPPFLAGS'
4460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463 if test -n "$ac_tool_prefix"; then
4464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4468 if test "${ac_cv_prog_CC+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 if test -n "$CC"; then
4472 ac_cv_prog_CC="$CC" # Let the user override the test.
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 if test -n "$CC"; then
4493 { echo "$as_me:$LINENO: result: $CC" >&5
4494 echo "${ECHO_T}$CC" >&6; }
4496 { echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6; }
4502 if test -z "$ac_cv_prog_CC"; then
4504 # Extract the first word of "gcc", so it can be a program name with args.
4505 set dummy gcc; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 if test -n "$ac_ct_CC"; then
4512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521 ac_cv_prog_ac_ct_CC="gcc"
4522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4532 if test -n "$ac_ct_CC"; then
4533 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4534 echo "${ECHO_T}$ac_ct_CC" >&6; }
4536 { echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6; }
4540 if test "x$ac_ct_CC" = x; then
4543 case $cross_compiling:$ac_tool_warned in
4545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4546 whose name does not start with the host triplet. If you think this
4547 configuration is useful to you, please write to autoconf@gnu.org." >&5
4548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4549 whose name does not start with the host triplet. If you think this
4550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4551 ac_tool_warned=yes ;;
4559 if test -z "$CC"; then
4560 if test -n "$ac_tool_prefix"; then
4561 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4562 set dummy ${ac_tool_prefix}cc; ac_word=$2
4563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4565 if test "${ac_cv_prog_CC+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 if test -n "$CC"; then
4569 ac_cv_prog_CC="$CC" # Let the user override the test.
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_CC="${ac_tool_prefix}cc"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 if test -n "$CC"; then
4590 { echo "$as_me:$LINENO: result: $CC" >&5
4591 echo "${ECHO_T}$CC" >&6; }
4593 { echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6; }
4600 if test -z "$CC"; then
4601 # Extract the first word of "cc", so it can be a program name with args.
4602 set dummy cc; ac_word=$2
4603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605 if test "${ac_cv_prog_CC+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 if test -n "$CC"; then
4609 ac_cv_prog_CC="$CC" # Let the user override the test.
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4620 ac_prog_rejected=yes
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 if test $ac_prog_rejected = yes; then
4632 # We found a bogon in the path, so make sure we never use it.
4633 set dummy $ac_cv_prog_CC
4635 if test $# != 0; then
4636 # We chose a different compiler from the bogus one.
4637 # However, it has the same basename, so the bogon will be chosen
4638 # first if we set CC to just the basename; use the full file name.
4640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4646 if test -n "$CC"; then
4647 { echo "$as_me:$LINENO: result: $CC" >&5
4648 echo "${ECHO_T}$CC" >&6; }
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4656 if test -z "$CC"; then
4657 if test -n "$ac_tool_prefix"; then
4658 for ac_prog in cl.exe
4660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4664 if test "${ac_cv_prog_CC+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC="$CC" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 if test -n "$CC"; then
4689 { echo "$as_me:$LINENO: result: $CC" >&5
4690 echo "${ECHO_T}$CC" >&6; }
4692 { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4697 test -n "$CC" && break
4700 if test -z "$CC"; then
4702 for ac_prog in cl.exe
4704 # Extract the first word of "$ac_prog", so it can be a program name with args.
4705 set dummy $ac_prog; ac_word=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 if test -n "$ac_ct_CC"; then
4712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_ac_ct_CC="$ac_prog"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4732 if test -n "$ac_ct_CC"; then
4733 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4734 echo "${ECHO_T}$ac_ct_CC" >&6; }
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4741 test -n "$ac_ct_CC" && break
4744 if test "x$ac_ct_CC" = x; then
4747 case $cross_compiling:$ac_tool_warned in
4749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4750 whose name does not start with the host triplet. If you think this
4751 configuration is useful to you, please write to autoconf@gnu.org." >&5
4752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4753 whose name does not start with the host triplet. If you think this
4754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4755 ac_tool_warned=yes ;;
4764 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4765 See \`config.log' for more details." >&5
4766 echo "$as_me: error: no acceptable C compiler found in \$PATH
4767 See \`config.log' for more details." >&2;}
4768 { (exit 1); exit 1; }; }
4770 # Provide some information about the compiler.
4771 echo "$as_me:$LINENO: checking for C compiler version" >&5
4772 ac_compiler=`set X $ac_compile; echo $2`
4773 { (ac_try="$ac_compiler --version >&5"
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4779 (eval "$ac_compiler --version >&5") 2>&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }
4783 { (ac_try="$ac_compiler -v >&5"
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4789 (eval "$ac_compiler -v >&5") 2>&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }
4793 { (ac_try="$ac_compiler -V >&5"
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_compiler -V >&5") 2>&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }
4804 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4805 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4806 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 cat >conftest.$ac_ext <<_ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4827 rm -f conftest.$ac_objext
4828 if { (ac_try="$ac_compile"
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_compile") 2>conftest.er1
4836 grep -v '^ *+' conftest.er1 >conftest.err
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } && {
4841 test -z "$ac_c_werror_flag" ||
4842 test ! -s conftest.err
4843 } && test -s conftest.$ac_objext; then
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4856 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4857 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4858 GCC=`test $ac_compiler_gnu = yes && echo yes`
4859 ac_test_CFLAGS=${CFLAGS+set}
4860 ac_save_CFLAGS=$CFLAGS
4861 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4862 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4863 if test "${ac_cv_prog_cc_g+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 ac_save_c_werror_flag=$ac_c_werror_flag
4867 ac_c_werror_flag=yes
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_compile") 2>conftest.er1
4894 grep -v '^ *+' conftest.er1 >conftest.err
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && {
4899 test -z "$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 } && test -s conftest.$ac_objext; then
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4908 cat >conftest.$ac_ext <<_ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4923 rm -f conftest.$ac_objext
4924 if { (ac_try="$ac_compile"
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4930 (eval "$ac_compile") 2>conftest.er1
4932 grep -v '^ *+' conftest.er1 >conftest.err
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && {
4937 test -z "$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 } && test -s conftest.$ac_objext; then
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 ac_c_werror_flag=$ac_save_c_werror_flag
4947 cat >conftest.$ac_ext <<_ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4962 rm -f conftest.$ac_objext
4963 if { (ac_try="$ac_compile"
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4971 grep -v '^ *+' conftest.er1 >conftest.err
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 ac_c_werror_flag=$ac_save_c_werror_flag
4996 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4997 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4998 if test "$ac_test_CFLAGS" = set; then
4999 CFLAGS=$ac_save_CFLAGS
5000 elif test $ac_cv_prog_cc_g = yes; then
5001 if test "$GCC" = yes; then
5007 if test "$GCC" = yes; then
5013 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5014 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5015 if test "${ac_cv_prog_cc_c89+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 ac_cv_prog_cc_c89=no
5020 cat >conftest.$ac_ext <<_ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5028 #include <sys/types.h>
5029 #include <sys/stat.h>
5030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5031 struct buf { int x; };
5032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5033 static char *e (p, i)
5039 static char *f (char * (*g) (char **, int), char **p, ...)
5044 s = g (p, va_arg (v,int));
5049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5050 function prototypes and stuff, but not '\xHH' hex character constants.
5051 These don't provoke an error unfortunately, instead are silently treated
5052 as 'x'. The following induces an error, until -std is added to get
5053 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5054 array size at least. It's necessary to write '\x00'==0 to get something
5055 that's true only with -std. */
5056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5058 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5059 inside strings and character constants. */
5061 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5063 int test (int i, double x);
5064 struct s1 {int (*f) (int a);};
5065 struct s2 {int (*f) (double a);};
5066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5072 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5078 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5080 CC="$ac_save_CC $ac_arg"
5081 rm -f conftest.$ac_objext
5082 if { (ac_try="$ac_compile"
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088 (eval "$ac_compile") 2>conftest.er1
5090 grep -v '^ *+' conftest.er1 >conftest.err
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } && {
5095 test -z "$ac_c_werror_flag" ||
5096 test ! -s conftest.err
5097 } && test -s conftest.$ac_objext; then
5098 ac_cv_prog_cc_c89=$ac_arg
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5106 rm -f core conftest.err conftest.$ac_objext
5107 test "x$ac_cv_prog_cc_c89" != "xno" && break
5109 rm -f conftest.$ac_ext
5114 case "x$ac_cv_prog_cc_c89" in
5116 { echo "$as_me:$LINENO: result: none needed" >&5
5117 echo "${ECHO_T}none needed" >&6; } ;;
5119 { echo "$as_me:$LINENO: result: unsupported" >&5
5120 echo "${ECHO_T}unsupported" >&6; } ;;
5122 CC="$CC $ac_cv_prog_cc_c89"
5123 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5124 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5129 ac_cpp='$CPP $CPPFLAGS'
5130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5134 depcc="$CC" am_compiler_list=
5136 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5137 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5138 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5142 # We make a subdir and do the tests there. Otherwise we can end up
5143 # making bogus files that we don't know about and never remove. For
5144 # instance it was reported that on HP-UX the gcc test will end up
5145 # making a dummy file named `D' -- because `-MD' means `put the output
5148 # Copy depcomp to subdir because otherwise we won't find it if we're
5149 # using a relative directory.
5150 cp "$am_depcomp" conftest.dir
5152 # We will build objects and dependencies in a subdirectory because
5153 # it helps to detect inapplicable dependency modes. For instance
5154 # both Tru64's cc and ICC support -MD to output dependencies as a
5155 # side effect of compilation, but ICC will put the dependencies in
5156 # the current directory while Tru64 will put them in the object
5160 am_cv_CC_dependencies_compiler_type=none
5161 if test "$am_compiler_list" = ""; then
5162 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5164 for depmode in $am_compiler_list; do
5165 # Setup a source with many dependencies, because some compilers
5166 # like to wrap large dependency lists on column 80 (with \), and
5167 # we should not choose a depcomp mode which is confused by this.
5169 # We need to recreate these files for each test, as the compiler may
5170 # overwrite some of them when testing with obscure command lines.
5171 # This happens at least with the AIX C compiler.
5173 for i in 1 2 3 4 5 6; do
5174 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5175 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5176 # Solaris 8's {/usr,}/bin/sh.
5177 touch sub/conftst$i.h
5179 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5183 # after this tag, mechanisms are not by side-effect, so they'll
5184 # only be used when explicitly requested
5185 if test "x$enable_dependency_tracking" = xyes; then
5193 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5194 # mode. It turns out that the SunPro C++ compiler does not properly
5195 # handle `-M -o', and we need to detect this.
5196 if depmode=$depmode \
5197 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5198 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5199 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5200 >/dev/null 2>conftest.err &&
5201 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5202 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5203 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5204 # icc doesn't choke on unknown options, it will just issue warnings
5205 # or remarks (even with -Werror). So we grep stderr for any message
5206 # that says an option was ignored or not supported.
5207 # When given -MP, icc 7.0 and 7.1 complain thusly:
5208 # icc: Command line warning: ignoring option '-M'; no argument required
5209 # The diagnosis changed in icc 8.0:
5210 # icc: Command line remark: option '-MP' not supported
5211 if (grep 'ignoring option' conftest.err ||
5212 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5213 am_cv_CC_dependencies_compiler_type=$depmode
5222 am_cv_CC_dependencies_compiler_type=none
5226 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5227 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5228 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5233 test "x$enable_dependency_tracking" != xno \
5234 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5236 am__fastdepCC_FALSE='#'
5238 am__fastdepCC_TRUE='#'
5239 am__fastdepCC_FALSE=
5244 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5247 ac_cpp='$CPP $CPPFLAGS'
5248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5251 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5252 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5253 # On Suns, sometimes $CPP names a directory.
5254 if test -n "$CPP" && test -d "$CPP"; then
5257 if test -z "$CPP"; then
5258 if test "${ac_cv_prog_CPP+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 # Double quotes because CPP needs to be expanded
5262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5265 for ac_c_preproc_warn_flag in '' yes
5267 # Use a header file that comes with gcc, so configuring glibc
5268 # with a fresh cross-compiler works.
5269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5270 # <limits.h> exists even on freestanding compilers.
5271 # On the NeXT, cc -E runs the code through the compiler's parser,
5272 # not just through cpp. "Syntax error" is here to catch this case.
5273 cat >conftest.$ac_ext <<_ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5280 # include <limits.h>
5282 # include <assert.h>
5286 if { (ac_try="$ac_cpp conftest.$ac_ext"
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 grep -v '^ *+' conftest.er1 >conftest.err
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } >/dev/null && {
5299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5300 test ! -s conftest.err
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5307 # Broken: fails on valid input.
5311 rm -f conftest.err conftest.$ac_ext
5313 # OK, works on sane cases. Now check whether nonexistent headers
5314 # can be detected and how.
5315 cat >conftest.$ac_ext <<_ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 #include <ac_nonexistent.h>
5323 if { (ac_try="$ac_cpp conftest.$ac_ext"
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5331 grep -v '^ *+' conftest.er1 >conftest.err
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } >/dev/null && {
5336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5337 test ! -s conftest.err
5339 # Broken: success on invalid input.
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5345 # Passes both tests.
5350 rm -f conftest.err conftest.$ac_ext
5353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5354 rm -f conftest.err conftest.$ac_ext
5355 if $ac_preproc_ok; then
5367 { echo "$as_me:$LINENO: result: $CPP" >&5
5368 echo "${ECHO_T}$CPP" >&6; }
5370 for ac_c_preproc_warn_flag in '' yes
5372 # Use a header file that comes with gcc, so configuring glibc
5373 # with a fresh cross-compiler works.
5374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5375 # <limits.h> exists even on freestanding compilers.
5376 # On the NeXT, cc -E runs the code through the compiler's parser,
5377 # not just through cpp. "Syntax error" is here to catch this case.
5378 cat >conftest.$ac_ext <<_ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5385 # include <limits.h>
5387 # include <assert.h>
5391 if { (ac_try="$ac_cpp conftest.$ac_ext"
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5399 grep -v '^ *+' conftest.er1 >conftest.err
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } >/dev/null && {
5404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5405 test ! -s conftest.err
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5412 # Broken: fails on valid input.
5416 rm -f conftest.err conftest.$ac_ext
5418 # OK, works on sane cases. Now check whether nonexistent headers
5419 # can be detected and how.
5420 cat >conftest.$ac_ext <<_ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 #include <ac_nonexistent.h>
5428 if { (ac_try="$ac_cpp conftest.$ac_ext"
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5436 grep -v '^ *+' conftest.er1 >conftest.err
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } >/dev/null && {
5441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5442 test ! -s conftest.err
5444 # Broken: success on invalid input.
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 # Passes both tests.
5455 rm -f conftest.err conftest.$ac_ext
5458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5459 rm -f conftest.err conftest.$ac_ext
5460 if $ac_preproc_ok; then
5463 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5464 See \`config.log' for more details." >&5
5465 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5466 See \`config.log' for more details." >&2;}
5467 { (exit 1); exit 1; }; }
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5480 if test -z "$CC_FOR_BUILD"; then
5481 if test "$#" = yes; then
5482 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5483 See \`config.log' for more details." >&5
5484 echo "$as_me: error: cannot run test program while cross compiling
5485 See \`config.log' for more details." >&2;}
5486 { (exit 1); exit 1; }; }
5488 cat >conftest.$ac_ext <<_ACEOF
5489 int main(){return 0;}
5491 rm -f conftest$ac_exeext
5492 if { (ac_try="$ac_link"
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_link") 2>&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5502 { (case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_try") 2>&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5513 echo "$as_me: program exited with status $ac_status" >&5
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5526 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5527 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5528 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5530 if test -n "$ac_build_tool_prefix"; then
5531 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5532 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5535 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 if test -n "$CC_FOR_BUILD"; then
5539 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5548 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5559 if test -n "$CC_FOR_BUILD"; then
5560 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5561 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5563 { echo "$as_me:$LINENO: result: no" >&5
5564 echo "${ECHO_T}no" >&6; }
5569 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5570 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5571 # Extract the first word of "gcc", so it can be a program name with args.
5572 set dummy gcc; ac_word=$2
5573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5575 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 if test -n "$ac_ct_CC_FOR_BUILD"; then
5579 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5588 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5599 if test -n "$ac_ct_CC_FOR_BUILD"; then
5600 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5601 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5603 { echo "$as_me:$LINENO: result: no" >&5
5604 echo "${ECHO_T}no" >&6; }
5607 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5610 case $#:$ac_tool_warned in
5612 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5613 whose name does not start with the build triplet. If you think this
5614 configuration is useful to you, please write to autoconf@gnu.org." >&5
5615 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5616 whose name does not start with the build triplet. If you think this
5617 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5618 ac_tool_warned=yes ;;
5620 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5623 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5626 if test -z "$CC_FOR_BUILD"; then
5627 if test -n "$ac_build_tool_prefix"; then
5628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5629 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5632 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 if test -n "$CC_FOR_BUILD"; then
5636 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5645 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5656 if test -n "$CC_FOR_BUILD"; then
5657 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5658 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5660 { echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6; }
5667 if test -z "$CC_FOR_BUILD"; then
5668 # Extract the first word of "cc", so it can be a program name with args.
5669 set dummy cc; ac_word=$2
5670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5672 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 if test -n "$CC_FOR_BUILD"; then
5676 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5687 ac_prog_rejected=yes
5690 ac_cv_prog_CC_FOR_BUILD="cc"
5691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 if test $ac_prog_rejected = yes; then
5699 # We found a bogon in the path, so make sure we never use it.
5700 set dummy $ac_cv_prog_CC_FOR_BUILD
5702 if test $# != 0; then
5703 # We chose a different compiler from the bogus one.
5704 # However, it has the same basename, so the bogon will be chosen
5705 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5707 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5712 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5713 if test -n "$CC_FOR_BUILD"; then
5714 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5715 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5717 { echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6; }
5723 if test -z "$CC_FOR_BUILD"; then
5724 if test -n "$ac_build_tool_prefix"; then
5725 for ac_prog in cl.exe
5727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5728 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5731 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 if test -n "$CC_FOR_BUILD"; then
5735 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5755 if test -n "$CC_FOR_BUILD"; then
5756 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5757 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5759 { echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6; }
5764 test -n "$CC_FOR_BUILD" && break
5767 if test -z "$CC_FOR_BUILD"; then
5768 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5769 for ac_prog in cl.exe
5771 # Extract the first word of "$ac_prog", so it can be a program name with args.
5772 set dummy $ac_prog; ac_word=$2
5773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5775 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 if test -n "$ac_ct_CC_FOR_BUILD"; then
5779 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5799 if test -n "$ac_ct_CC_FOR_BUILD"; then
5800 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5801 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5803 { echo "$as_me:$LINENO: result: no" >&5
5804 echo "${ECHO_T}no" >&6; }
5808 test -n "$ac_ct_CC_FOR_BUILD" && break
5811 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5814 case $#:$ac_tool_warned in
5816 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5817 whose name does not start with the build triplet. If you think this
5818 configuration is useful to you, please write to autoconf@gnu.org." >&5
5819 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5820 whose name does not start with the build triplet. If you think this
5821 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5822 ac_tool_warned=yes ;;
5824 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5831 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5832 See \`config.log' for more details." >&5
5833 echo "$as_me: error: no acceptable C compiler found in \$PATH
5834 See \`config.log' for more details." >&2;}
5835 { (exit 1); exit 1; }; }
5837 # Provide some information about the compiler.
5838 echo "$as_me:$LINENO: checking for C compiler version" >&5
5839 ac_compiler=`set X $ac_build_compile; echo $2`
5840 { (ac_try="$ac_compiler --version >&5"
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_compiler --version >&5") 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }
5850 { (ac_try="$ac_compiler -v >&5"
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compiler -v >&5") 2>&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }
5860 { (ac_try="$ac_compiler -V >&5"
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_compiler -V >&5") 2>&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }
5871 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5872 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5873 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 cat >conftest.$ac_ext <<_ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5894 rm -f conftest.$ac_build_objext
5895 if { (ac_try="$ac_build_compile"
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_build_compile") 2>conftest.er1
5903 grep -v '^ *+' conftest.er1 >conftest.err
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && {
5908 test -z "$ac_c_werror_flag" ||
5909 test ! -s conftest.err
5910 } && test -s conftest.$ac_build_objext; then
5911 ac_build_compiler_gnu=yes
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5916 ac_build_compiler_gnu=no
5919 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5920 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
5923 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5924 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5925 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
5926 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5927 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5928 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
5929 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
5930 if test "${ac_cv_build_prog_cc_g+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 ac_save_c_werror_flag=$ac_c_werror_flag
5934 ac_c_werror_flag=yes
5935 ac_cv_build_prog_cc_g=no
5936 CFLAGS_FOR_BUILD="-g"
5937 cat >conftest.$ac_ext <<_ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5952 rm -f conftest.$ac_build_objext
5953 if { (ac_try="$ac_build_compile"
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_build_compile") 2>conftest.er1
5961 grep -v '^ *+' conftest.er1 >conftest.err
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_c_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest.$ac_build_objext; then
5969 ac_cv_build_prog_cc_g=yes
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5975 cat >conftest.$ac_ext <<_ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5990 rm -f conftest.$ac_build_objext
5991 if { (ac_try="$ac_build_compile"
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_build_compile") 2>conftest.er1
5999 grep -v '^ *+' conftest.er1 >conftest.err
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && {
6004 test -z "$ac_c_werror_flag" ||
6005 test ! -s conftest.err
6006 } && test -s conftest.$ac_build_objext; then
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 ac_c_werror_flag=$ac_save_c_werror_flag
6013 CFLAGS_FOR_BUILD="-g"
6014 cat >conftest.$ac_ext <<_ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6029 rm -f conftest.$ac_build_objext
6030 if { (ac_try="$ac_build_compile"
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_build_compile") 2>conftest.er1
6038 grep -v '^ *+' conftest.er1 >conftest.err
6040 cat conftest.err >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } && {
6043 test -z "$ac_c_werror_flag" ||
6044 test ! -s conftest.err
6045 } && test -s conftest.$ac_build_objext; then
6046 ac_cv_build_prog_cc_g=yes
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6054 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6057 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6060 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6061 ac_c_werror_flag=$ac_save_c_werror_flag
6063 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6064 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6065 if test "$ac_test_CFLAGS" = set; then
6066 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6067 elif test $ac_cv_build_prog_cc_g = yes; then
6068 if test "$GCC" = yes; then
6069 CFLAGS_FOR_BUILD="-g -O2"
6071 CFLAGS_FOR_BUILD="-g"
6074 if test "$GCC" = yes; then
6075 CFLAGS_FOR_BUILD="-O2"
6080 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6081 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6082 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 ac_cv_build_prog_cc_stdc=no
6086 ac_save_CC=$CC_FOR_BUILD
6087 cat >conftest.$ac_ext <<_ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6095 #include <sys/types.h>
6096 #include <sys/stat.h>
6097 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6098 struct buf { int x; };
6099 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6100 static char *e (p, i)
6106 static char *f (char * (*g) (char **, int), char **p, ...)
6111 s = g (p, va_arg (v,int));
6116 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6117 function prototypes and stuff, but not '\xHH' hex character constants.
6118 These don't provoke an error unfortunately, instead are silently treated
6119 as 'x'. The following induces an error, until -std is added to get
6120 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6121 array size at least. It's necessary to write '\x00'==0 to get something
6122 that's true only with -std. */
6123 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6125 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6126 inside strings and character constants. */
6128 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6130 int test (int i, double x);
6131 struct s1 {int (*f) (int a);};
6132 struct s2 {int (*f) (double a);};
6133 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6139 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6144 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6145 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6147 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6148 rm -f conftest.$ac_build_objext
6149 if { (ac_try="$ac_build_compile"
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155 (eval "$ac_build_compile") 2>conftest.er1
6157 grep -v '^ *+' conftest.er1 >conftest.err
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } && {
6162 test -z "$ac_c_werror_flag" ||
6163 test ! -s conftest.err
6164 } && test -s conftest.$ac_build_objext; then
6165 ac_cv_build_prog_cc_stdc=$ac_arg
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6173 rm -f core conftest.err conftest.$ac_build_objext
6174 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6176 rm -f conftest.$ac_ext
6177 CC_FOR_BUILD=$ac_save_CC
6181 case "x$ac_cv_build_prog_cc_stdc" in
6183 { echo "$as_me:$LINENO: result: none needed" >&5
6184 echo "${ECHO_T}none needed" >&6; } ;;
6186 { echo "$as_me:$LINENO: result: unsupported" >&5
6187 echo "${ECHO_T}unsupported" >&6; } ;;
6189 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6190 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6191 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6196 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6197 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6198 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6201 depcc="$CC_FOR_BUILD" am_compiler_list=
6203 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6204 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6205 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6209 # We make a subdir and do the tests there. Otherwise we can end up
6210 # making bogus files that we don't know about and never remove. For
6211 # instance it was reported that on HP-UX the gcc test will end up
6212 # making a dummy file named `D' -- because `-MD' means `put the output
6215 # Copy depcomp to subdir because otherwise we won't find it if we're
6216 # using a relative directory.
6217 cp "$am_depcomp" conftest.dir
6219 # We will build objects and dependencies in a subdirectory because
6220 # it helps to detect inapplicable dependency modes. For instance
6221 # both Tru64's cc and ICC support -MD to output dependencies as a
6222 # side effect of compilation, but ICC will put the dependencies in
6223 # the current directory while Tru64 will put them in the object
6227 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6228 if test "$am_compiler_list" = ""; then
6229 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6231 for depmode in $am_compiler_list; do
6232 # Setup a source with many dependencies, because some compilers
6233 # like to wrap large dependency lists on column 80 (with \), and
6234 # we should not choose a depcomp mode which is confused by this.
6236 # We need to recreate these files for each test, as the compiler may
6237 # overwrite some of them when testing with obscure command lines.
6238 # This happens at least with the AIX C compiler.
6240 for i in 1 2 3 4 5 6; do
6241 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6242 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6243 # Solaris 8's {/usr,}/bin/sh.
6244 touch sub/conftst$i.h
6246 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6250 # after this tag, mechanisms are not by side-effect, so they'll
6251 # only be used when explicitly requested
6252 if test "x$enable_dependency_tracking" = xyes; then
6260 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6261 # mode. It turns out that the SunPro C++ compiler does not properly
6262 # handle `-M -o', and we need to detect this.
6263 if depmode=$depmode \
6264 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6265 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6266 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6267 >/dev/null 2>conftest.err &&
6268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6269 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6271 # icc doesn't choke on unknown options, it will just issue warnings
6272 # or remarks (even with -Werror). So we grep stderr for any message
6273 # that says an option was ignored or not supported.
6274 # When given -MP, icc 7.0 and 7.1 complain thusly:
6275 # icc: Command line warning: ignoring option '-M'; no argument required
6276 # The diagnosis changed in icc 8.0:
6277 # icc: Command line remark: option '-MP' not supported
6278 if (grep 'ignoring option' conftest.err ||
6279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6280 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6289 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6293 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6294 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6295 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6300 test "x$enable_dependency_tracking" != xno \
6301 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6302 am__fastdepCC_FOR_BUILD_TRUE=
6303 am__fastdepCC_FOR_BUILD_FALSE='#'
6305 am__fastdepCC_FOR_BUILD_TRUE='#'
6306 am__fastdepCC_FOR_BUILD_FALSE=
6310 case $ac_cv_build_prog_cc_stdc in
6311 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6312 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6313 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6314 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 ac_cv_build_prog_cc_stdc=no
6318 ac_save_CC=$CC_FOR_BUILD
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6326 #include <stdbool.h>
6331 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6332 #define debug(...) fprintf (stderr, __VA_ARGS__)
6333 #define showlist(...) puts (#__VA_ARGS__)
6334 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6336 test_varargs_macros (void)
6341 debug ("X = %d\n", x);
6342 showlist (The first, second, and third items.);
6343 report (x>y, "x is %d but y is %d", x, y);
6346 // Check long long types.
6347 #define BIG64 18446744073709551615ull
6348 #define BIG32 4294967295ul
6349 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6351 your preprocessor is broken;
6355 your preprocessor is broken;
6357 static long long int bignum = -9223372036854775807LL;
6358 static unsigned long long int ubignum = BIG64;
6360 struct incomplete_array
6368 const wchar_t *name;
6372 typedef const char *ccp;
6375 test_restrict (ccp restrict text)
6377 // See if C++-style comments work.
6378 // Iterate through items via the restricted pointer.
6379 // Also check for declarations in for loops.
6380 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6385 // Check varargs and va_copy.
6387 test_varargs (const char *format, ...)
6390 va_start (args, format);
6392 va_copy (args_copy, args);
6403 str = va_arg (args_copy, const char *);
6406 number = va_arg (args_copy, int);
6409 fnumber = va_arg (args_copy, double);
6424 _Bool success = false;
6427 if (test_restrict ("String literal") == 0)
6429 char *restrict newvar = "Another string";
6432 test_varargs ("s, d' f .", "string", 65, 34.234);
6433 test_varargs_macros ();
6435 // Check flexible array members.
6436 struct incomplete_array *ia =
6437 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6439 for (int i = 0; i < ia->datasize; ++i)
6440 ia->data[i] = i * 1.234;
6442 // Check named initializers.
6443 struct named_init ni = {
6445 .name = L"Test wide string",
6446 .average = 543.34343,
6451 int dynamic_array[ni.number];
6452 dynamic_array[ni.number - 1] = 543;
6454 // work around unused variable warnings
6455 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6456 || dynamic_array[ni.number - 1] != 543);
6462 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6464 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6465 rm -f conftest.$ac_build_objext
6466 if { (ac_try="$ac_build_compile"
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_build_compile") 2>conftest.er1
6474 grep -v '^ *+' conftest.er1 >conftest.err
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_build_objext; then
6482 ac_cv_build_prog_cc_stdc=$ac_arg
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6490 rm -f core conftest.err conftest.$ac_build_objext
6491 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6493 rm -f conftest.$ac_ext
6494 CC_FOR_BUILD=$ac_save_CC
6498 case "x$ac_cv_build_prog_cc_stdc" in
6500 { echo "$as_me:$LINENO: result: none needed" >&5
6501 echo "${ECHO_T}none needed" >&6; } ;;
6503 { echo "$as_me:$LINENO: result: unsupported" >&5
6504 echo "${ECHO_T}unsupported" >&6; } ;;
6506 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6507 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6508 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6510 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6511 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6513 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6514 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6515 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 ac_cv_build_prog_cc_stdc=no
6519 ac_save_CC=$CC_FOR_BUILD
6520 cat >conftest.$ac_ext <<_ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6528 #include <sys/types.h>
6529 #include <sys/stat.h>
6530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6531 struct buf { int x; };
6532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6533 static char *e (p, i)
6539 static char *f (char * (*g) (char **, int), char **p, ...)
6544 s = g (p, va_arg (v,int));
6549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6550 function prototypes and stuff, but not '\xHH' hex character constants.
6551 These don't provoke an error unfortunately, instead are silently treated
6552 as 'x'. The following induces an error, until -std is added to get
6553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6554 array size at least. It's necessary to write '\x00'==0 to get something
6555 that's true only with -std. */
6556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6559 inside strings and character constants. */
6561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6563 int test (int i, double x);
6564 struct s1 {int (*f) (int a);};
6565 struct s2 {int (*f) (double a);};
6566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6580 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6581 rm -f conftest.$ac_build_objext
6582 if { (ac_try="$ac_build_compile"
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_build_compile") 2>conftest.er1
6590 grep -v '^ *+' conftest.er1 >conftest.err
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } && {
6595 test -z "$ac_c_werror_flag" ||
6596 test ! -s conftest.err
6597 } && test -s conftest.$ac_build_objext; then
6598 ac_cv_build_prog_cc_stdc=$ac_arg
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6606 rm -f core conftest.err conftest.$ac_build_objext
6607 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6609 rm -f conftest.$ac_ext
6610 CC_FOR_BUILD=$ac_save_CC
6614 case "x$ac_cv_build_prog_cc_stdc" in
6616 { echo "$as_me:$LINENO: result: none needed" >&5
6617 echo "${ECHO_T}none needed" >&6; } ;;
6619 { echo "$as_me:$LINENO: result: unsupported" >&5
6620 echo "${ECHO_T}unsupported" >&6; } ;;
6622 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6623 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6624 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6626 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6627 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6629 ac_cv_build_prog_cc_stdc=no
6637 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
6638 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
6639 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 case $ac_cv_build_prog_cc_stdc in
6644 no) { echo "$as_me:$LINENO: result: unsupported" >&5
6645 echo "${ECHO_T}unsupported" >&6; } ;;
6646 '') { echo "$as_me:$LINENO: result: none needed" >&5
6647 echo "${ECHO_T}none needed" >&6; } ;;
6648 *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6649 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6654 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6655 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6656 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6657 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6658 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6659 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6660 # On Suns, sometimes $CPP names a directory.
6661 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6664 if test -z "$CPP_FOR_BUILD"; then
6665 if test "${ac_cv_build_prog_CPP+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 # Double quotes because CPP needs to be expanded
6669 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6672 for ac_c_preproc_warn_flag in '' yes
6674 # Use a header file that comes with gcc, so configuring glibc
6675 # with a fresh cross-compiler works.
6676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6677 # <limits.h> exists even on freestanding compilers.
6678 # On the NeXT, cc -E runs the code through the compiler's parser,
6679 # not just through cpp. "Syntax error" is here to catch this case.
6680 cat >conftest.$ac_ext <<_ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6687 # include <limits.h>
6689 # include <assert.h>
6693 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6701 grep -v '^ *+' conftest.er1 >conftest.err
6703 cat conftest.err >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } >/dev/null && {
6706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6707 test ! -s conftest.err
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6714 # Broken: fails on valid input.
6718 rm -f conftest.err conftest.$ac_ext
6720 # OK, works on sane cases. Now check whether nonexistent headers
6721 # can be detected and how.
6722 cat >conftest.$ac_ext <<_ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 #include <ac_nonexistent.h>
6730 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6733 *) ac_try_echo=$ac_try;;
6735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6736 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6738 grep -v '^ *+' conftest.er1 >conftest.err
6740 cat conftest.err >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } >/dev/null && {
6743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6744 test ! -s conftest.err
6746 # Broken: success on invalid input.
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 # Passes both tests.
6757 rm -f conftest.err conftest.$ac_ext
6760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6761 rm -f conftest.err conftest.$ac_ext
6762 if $ac_preproc_ok; then
6767 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6770 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6772 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6774 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
6775 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
6777 for ac_c_preproc_warn_flag in '' yes
6779 # Use a header file that comes with gcc, so configuring glibc
6780 # with a fresh cross-compiler works.
6781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6782 # <limits.h> exists even on freestanding compilers.
6783 # On the NeXT, cc -E runs the code through the compiler's parser,
6784 # not just through cpp. "Syntax error" is here to catch this case.
6785 cat >conftest.$ac_ext <<_ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6792 # include <limits.h>
6794 # include <assert.h>
6798 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6801 *) ac_try_echo=$ac_try;;
6803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6804 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6806 grep -v '^ *+' conftest.er1 >conftest.err
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } >/dev/null && {
6811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6812 test ! -s conftest.err
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6819 # Broken: fails on valid input.
6823 rm -f conftest.err conftest.$ac_ext
6825 # OK, works on sane cases. Now check whether nonexistent headers
6826 # can be detected and how.
6827 cat >conftest.$ac_ext <<_ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6833 #include <ac_nonexistent.h>
6835 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838 *) ac_try_echo=$ac_try;;
6840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6841 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6843 grep -v '^ *+' conftest.er1 >conftest.err
6845 cat conftest.err >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } >/dev/null && {
6848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6851 # Broken: success on invalid input.
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6857 # Passes both tests.
6862 rm -f conftest.err conftest.$ac_ext
6865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6866 rm -f conftest.err conftest.$ac_ext
6867 if $ac_preproc_ok; then
6870 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6871 See \`config.log' for more details." >&5
6872 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6873 See \`config.log' for more details." >&2;}
6874 { (exit 1); exit 1; }; }
6878 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6879 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6880 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6886 BUILD_EXEEXT=$ac_build_exeext
6887 BUILD_OBJEXT=$ac_build_objext
6890 ac_cpp='$OBJCPP $CPPFLAGS'
6891 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6892 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6893 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
6894 if test -n "$ac_tool_prefix"; then
6895 for ac_prog in gcc objcc objc cc CC
6897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901 if test "${ac_cv_prog_OBJC+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 if test -n "$OBJC"; then
6905 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 OBJC=$ac_cv_prog_OBJC
6925 if test -n "$OBJC"; then
6926 { echo "$as_me:$LINENO: result: $OBJC" >&5
6927 echo "${ECHO_T}$OBJC" >&6; }
6929 { echo "$as_me:$LINENO: result: no" >&5
6930 echo "${ECHO_T}no" >&6; }
6934 test -n "$OBJC" && break
6937 if test -z "$OBJC"; then
6939 for ac_prog in gcc objcc objc cc CC
6941 # Extract the first word of "$ac_prog", so it can be a program name with args.
6942 set dummy $ac_prog; ac_word=$2
6943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6945 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 if test -n "$ac_ct_OBJC"; then
6949 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_prog_ac_ct_OBJC="$ac_prog"
6959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
6969 if test -n "$ac_ct_OBJC"; then
6970 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
6971 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
6973 { echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6; }
6978 test -n "$ac_ct_OBJC" && break
6981 if test "x$ac_ct_OBJC" = x; then
6984 case $cross_compiling:$ac_tool_warned in
6986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6987 whose name does not start with the host triplet. If you think this
6988 configuration is useful to you, please write to autoconf@gnu.org." >&5
6989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6990 whose name does not start with the host triplet. If you think this
6991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6992 ac_tool_warned=yes ;;
6998 # Provide some information about the compiler.
6999 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7000 ac_compiler=`set X $ac_compile; echo $2`
7001 { (ac_try="$ac_compiler --version >&5"
7003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004 *) ac_try_echo=$ac_try;;
7006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7007 (eval "$ac_compiler --version >&5") 2>&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }
7011 { (ac_try="$ac_compiler -v >&5"
7013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017 (eval "$ac_compiler -v >&5") 2>&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }
7021 { (ac_try="$ac_compiler -V >&5"
7023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024 *) ac_try_echo=$ac_try;;
7026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7027 (eval "$ac_compiler -V >&5") 2>&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }
7032 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7033 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
7034 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 cat >conftest.$ac_ext <<_ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7055 rm -f conftest.$ac_objext
7056 if { (ac_try="$ac_compile"
7058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059 *) ac_try_echo=$ac_try;;
7061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7062 (eval "$ac_compile") 2>conftest.er1
7064 grep -v '^ *+' conftest.er1 >conftest.err
7066 cat conftest.err >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && {
7069 test -z "$ac_objc_werror_flag" ||
7070 test ! -s conftest.err
7071 } && test -s conftest.$ac_objext; then
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7084 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7085 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
7086 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
7087 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7088 ac_save_OBJCFLAGS=$OBJCFLAGS
7089 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7090 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
7091 if test "${ac_cv_prog_objc_g+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 ac_save_objc_werror_flag=$ac_objc_werror_flag
7095 ac_objc_werror_flag=yes
7096 ac_cv_prog_objc_g=no
7098 cat >conftest.$ac_ext <<_ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7122 grep -v '^ *+' conftest.er1 >conftest.err
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_objc_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.$ac_objext; then
7130 ac_cv_prog_objc_g=yes
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7136 cat >conftest.$ac_ext <<_ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7151 rm -f conftest.$ac_objext
7152 if { (ac_try="$ac_compile"
7154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7155 *) ac_try_echo=$ac_try;;
7157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7158 (eval "$ac_compile") 2>conftest.er1
7160 grep -v '^ *+' conftest.er1 >conftest.err
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } && {
7165 test -z "$ac_objc_werror_flag" ||
7166 test ! -s conftest.err
7167 } && test -s conftest.$ac_objext; then
7170 echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7173 ac_objc_werror_flag=$ac_save_objc_werror_flag
7175 cat >conftest.$ac_ext <<_ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7190 rm -f conftest.$ac_objext
7191 if { (ac_try="$ac_compile"
7193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_compile") 2>conftest.er1
7199 grep -v '^ *+' conftest.er1 >conftest.err
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_objc_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest.$ac_objext; then
7207 ac_cv_prog_objc_g=yes
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 ac_objc_werror_flag=$ac_save_objc_werror_flag
7224 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7225 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
7226 if test "$ac_test_OBJCFLAGS" = set; then
7227 OBJCFLAGS=$ac_save_OBJCFLAGS
7228 elif test $ac_cv_prog_objc_g = yes; then
7229 if test "$GOBJC" = yes; then
7235 if test "$GOBJC" = yes; then
7242 ac_cpp='$CPP $CPPFLAGS'
7243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7247 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7248 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_SED+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7253 for ac_i in 1 2 3 4 5 6 7; do
7254 ac_script="$ac_script$as_nl$ac_script"
7256 echo "$ac_script" | sed 99q >conftest.sed
7257 $as_unset ac_script || ac_script=
7258 # Extract the first word of "sed gsed" to use in msg output
7259 if test -z "$SED"; then
7260 set dummy sed gsed; ac_prog_name=$2
7261 if test "${ac_cv_path_SED+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 ac_path_SED_found=false
7265 # Loop through the user's path and test for each of PROGNAME-LIST
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 test -z "$as_dir" && as_dir=.
7271 for ac_prog in sed gsed; do
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7274 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7275 # Check for GNU ac_path_SED and select it if it is found.
7276 # Check for GNU $ac_path_SED
7277 case `"$ac_path_SED" --version 2>&1` in
7279 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7282 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7285 cat "conftest.in" "conftest.in" >"conftest.tmp"
7286 mv "conftest.tmp" "conftest.in"
7287 cp "conftest.in" "conftest.nl"
7288 echo '' >> "conftest.nl"
7289 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7291 ac_count=`expr $ac_count + 1`
7292 if test $ac_count -gt ${ac_path_SED_max-0}; then
7293 # Best one so far, save it but keep looking for a better one
7294 ac_cv_path_SED="$ac_path_SED"
7295 ac_path_SED_max=$ac_count
7297 # 10*(2^10) chars as input seems more than enough
7298 test $ac_count -gt 10 && break
7300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7304 $ac_path_SED_found && break 3
7314 SED="$ac_cv_path_SED"
7315 if test -z "$SED"; then
7316 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
7317 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
7318 { (exit 1); exit 1; }; }
7326 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7327 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
7328 SED="$ac_cv_path_SED"
7331 # By default we simply use the C compiler to build assembly code.
7333 test "${CCAS+set}" = set || CCAS=$CC
7334 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7339 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7340 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7341 if test "${ac_cv_path_GREP+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 # Extract the first word of "grep ggrep" to use in msg output
7345 if test -z "$GREP"; then
7346 set dummy grep ggrep; ac_prog_name=$2
7347 if test "${ac_cv_path_GREP+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 ac_path_GREP_found=false
7351 # Loop through the user's path and test for each of PROGNAME-LIST
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7356 test -z "$as_dir" && as_dir=.
7357 for ac_prog in grep ggrep; do
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7360 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7361 # Check for GNU ac_path_GREP and select it if it is found.
7362 # Check for GNU $ac_path_GREP
7363 case `"$ac_path_GREP" --version 2>&1` in
7365 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7368 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7371 cat "conftest.in" "conftest.in" >"conftest.tmp"
7372 mv "conftest.tmp" "conftest.in"
7373 cp "conftest.in" "conftest.nl"
7374 echo 'GREP' >> "conftest.nl"
7375 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7377 ac_count=`expr $ac_count + 1`
7378 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7379 # Best one so far, save it but keep looking for a better one
7380 ac_cv_path_GREP="$ac_path_GREP"
7381 ac_path_GREP_max=$ac_count
7383 # 10*(2^10) chars as input seems more than enough
7384 test $ac_count -gt 10 && break
7386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7390 $ac_path_GREP_found && break 3
7400 GREP="$ac_cv_path_GREP"
7401 if test -z "$GREP"; then
7402 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7403 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7404 { (exit 1); exit 1; }; }
7408 ac_cv_path_GREP=$GREP
7413 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7414 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7415 GREP="$ac_cv_path_GREP"
7418 { echo "$as_me:$LINENO: checking for egrep" >&5
7419 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7420 if test "${ac_cv_path_EGREP+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7424 then ac_cv_path_EGREP="$GREP -E"
7426 # Extract the first word of "egrep" to use in msg output
7427 if test -z "$EGREP"; then
7428 set dummy egrep; ac_prog_name=$2
7429 if test "${ac_cv_path_EGREP+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 ac_path_EGREP_found=false
7433 # Loop through the user's path and test for each of PROGNAME-LIST
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7438 test -z "$as_dir" && as_dir=.
7439 for ac_prog in egrep; do
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7442 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7443 # Check for GNU ac_path_EGREP and select it if it is found.
7444 # Check for GNU $ac_path_EGREP
7445 case `"$ac_path_EGREP" --version 2>&1` in
7447 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7450 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7453 cat "conftest.in" "conftest.in" >"conftest.tmp"
7454 mv "conftest.tmp" "conftest.in"
7455 cp "conftest.in" "conftest.nl"
7456 echo 'EGREP' >> "conftest.nl"
7457 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7459 ac_count=`expr $ac_count + 1`
7460 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7461 # Best one so far, save it but keep looking for a better one
7462 ac_cv_path_EGREP="$ac_path_EGREP"
7463 ac_path_EGREP_max=$ac_count
7465 # 10*(2^10) chars as input seems more than enough
7466 test $ac_count -gt 10 && break
7468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7472 $ac_path_EGREP_found && break 3
7482 EGREP="$ac_cv_path_EGREP"
7483 if test -z "$EGREP"; then
7484 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7485 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7486 { (exit 1); exit 1; }; }
7490 ac_cv_path_EGREP=$EGREP
7496 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7497 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7498 EGREP="$ac_cv_path_EGREP"
7501 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7502 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7503 if test "${ac_cv_header_stdc+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 cat >conftest.$ac_ext <<_ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7525 rm -f conftest.$ac_objext
7526 if { (ac_try="$ac_compile"
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7532 (eval "$ac_compile") 2>conftest.er1
7534 grep -v '^ *+' conftest.er1 >conftest.err
7536 cat conftest.err >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } && {
7539 test -z "$ac_c_werror_flag" ||
7540 test ! -s conftest.err
7541 } && test -s conftest.$ac_objext; then
7542 ac_cv_header_stdc=yes
7544 echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.$ac_ext >&5
7547 ac_cv_header_stdc=no
7550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 if test $ac_cv_header_stdc = yes; then
7553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7554 cat >conftest.$ac_ext <<_ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7564 $EGREP "memchr" >/dev/null 2>&1; then
7567 ac_cv_header_stdc=no
7573 if test $ac_cv_header_stdc = yes; then
7574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7575 cat >conftest.$ac_ext <<_ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7585 $EGREP "free" >/dev/null 2>&1; then
7588 ac_cv_header_stdc=no
7594 if test $ac_cv_header_stdc = yes; then
7595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7596 if test "$cross_compiling" = yes; then
7599 cat >conftest.$ac_ext <<_ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7607 #if ((' ' & 0x0FF) == 0x020)
7608 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7609 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7611 # define ISLOWER(c) \
7612 (('a' <= (c) && (c) <= 'i') \
7613 || ('j' <= (c) && (c) <= 'r') \
7614 || ('s' <= (c) && (c) <= 'z'))
7615 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7618 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7623 for (i = 0; i < 256; i++)
7624 if (XOR (islower (i), ISLOWER (i))
7625 || toupper (i) != TOUPPER (i))
7630 rm -f conftest$ac_exeext
7631 if { (ac_try="$ac_link"
7633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634 *) ac_try_echo=$ac_try;;
7636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7637 (eval "$ac_link") 2>&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7641 { (case "(($ac_try" in
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646 (eval "$ac_try") 2>&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; }; then
7652 echo "$as_me: program exited with status $ac_status" >&5
7653 echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7657 ac_cv_header_stdc=no
7659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7665 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7666 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7667 if test $ac_cv_header_stdc = yes; then
7669 cat >>confdefs.h <<\_ACEOF
7670 #define STDC_HEADERS 1
7675 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7685 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7686 inttypes.h stdint.h unistd.h
7688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 cat >conftest.$ac_ext <<_ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h. */
7700 $ac_includes_default
7702 #include <$ac_header>
7704 rm -f conftest.$ac_objext
7705 if { (ac_try="$ac_compile"
7707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7708 *) ac_try_echo=$ac_try;;
7710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7711 (eval "$ac_compile") 2>conftest.er1
7713 grep -v '^ *+' conftest.er1 >conftest.err
7715 cat conftest.err >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } && {
7718 test -z "$ac_c_werror_flag" ||
7719 test ! -s conftest.err
7720 } && test -s conftest.$ac_objext; then
7721 eval "$as_ac_Header=yes"
7723 echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7726 eval "$as_ac_Header=no"
7729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731 ac_res=`eval echo '${'$as_ac_Header'}'`
7732 { echo "$as_me:$LINENO: result: $ac_res" >&5
7733 echo "${ECHO_T}$ac_res" >&6; }
7734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7735 cat >>confdefs.h <<_ACEOF
7736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7744 { echo "$as_me:$LINENO: checking for void *" >&5
7745 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7746 if test "${ac_cv_type_void_p+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 cat >conftest.$ac_ext <<_ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 $ac_includes_default
7756 typedef void * ac__type_new_;
7760 if ((ac__type_new_ *) 0)
7762 if (sizeof (ac__type_new_))
7768 rm -f conftest.$ac_objext
7769 if { (ac_try="$ac_compile"
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775 (eval "$ac_compile") 2>conftest.er1
7777 grep -v '^ *+' conftest.er1 >conftest.err
7779 cat conftest.err >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } && {
7782 test -z "$ac_c_werror_flag" ||
7783 test ! -s conftest.err
7784 } && test -s conftest.$ac_objext; then
7785 ac_cv_type_void_p=yes
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 ac_cv_type_void_p=no
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7796 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7798 # The cast to long int works around a bug in the HP C Compiler
7799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7801 # This bug is HP SR number 8606223364.
7802 { echo "$as_me:$LINENO: checking size of void *" >&5
7803 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7804 if test "${ac_cv_sizeof_void_p+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 if test "$cross_compiling" = yes; then
7808 # Depending upon the size, compute the lo and hi bounds.
7809 cat >conftest.$ac_ext <<_ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815 $ac_includes_default
7816 typedef void * ac__type_sizeof_;
7820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7827 rm -f conftest.$ac_objext
7828 if { (ac_try="$ac_compile"
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_compile") 2>conftest.er1
7836 grep -v '^ *+' conftest.er1 >conftest.err
7838 cat conftest.err >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } && {
7841 test -z "$ac_c_werror_flag" ||
7842 test ! -s conftest.err
7843 } && test -s conftest.$ac_objext; then
7846 cat >conftest.$ac_ext <<_ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7852 $ac_includes_default
7853 typedef void * ac__type_sizeof_;
7857 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7864 rm -f conftest.$ac_objext
7865 if { (ac_try="$ac_compile"
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_compile") 2>conftest.er1
7873 grep -v '^ *+' conftest.er1 >conftest.err
7875 cat conftest.err >&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } && {
7878 test -z "$ac_c_werror_flag" ||
7879 test ! -s conftest.err
7880 } && test -s conftest.$ac_objext; then
7881 ac_hi=$ac_mid; break
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 ac_lo=`expr $ac_mid + 1`
7887 if test $ac_lo -le $ac_mid; then
7891 ac_mid=`expr 2 '*' $ac_mid + 1`
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7900 cat >conftest.$ac_ext <<_ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 $ac_includes_default
7907 typedef void * ac__type_sizeof_;
7911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7918 rm -f conftest.$ac_objext
7919 if { (ac_try="$ac_compile"
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925 (eval "$ac_compile") 2>conftest.er1
7927 grep -v '^ *+' conftest.er1 >conftest.err
7929 cat conftest.err >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } && {
7932 test -z "$ac_c_werror_flag" ||
7933 test ! -s conftest.err
7934 } && test -s conftest.$ac_objext; then
7937 cat >conftest.$ac_ext <<_ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7943 $ac_includes_default
7944 typedef void * ac__type_sizeof_;
7948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7964 grep -v '^ *+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.$ac_objext; then
7972 ac_lo=$ac_mid; break
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 ac_hi=`expr '(' $ac_mid ')' - 1`
7978 if test $ac_mid -le $ac_hi; then
7982 ac_mid=`expr 2 '*' $ac_mid`
7985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998 # Binary search between lo and hi bounds.
7999 while test "x$ac_lo" != "x$ac_hi"; do
8000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8001 cat >conftest.$ac_ext <<_ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8007 $ac_includes_default
8008 typedef void * ac__type_sizeof_;
8012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8019 rm -f conftest.$ac_objext
8020 if { (ac_try="$ac_compile"
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026 (eval "$ac_compile") 2>conftest.er1
8028 grep -v '^ *+' conftest.er1 >conftest.err
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } && {
8033 test -z "$ac_c_werror_flag" ||
8034 test ! -s conftest.err
8035 } && test -s conftest.$ac_objext; then
8038 echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8041 ac_lo=`expr '(' $ac_mid ')' + 1`
8044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8048 '') if test "$ac_cv_type_void_p" = yes; then
8049 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8050 See \`config.log' for more details." >&5
8051 echo "$as_me: error: cannot compute sizeof (void *)
8052 See \`config.log' for more details." >&2;}
8053 { (exit 77); exit 77; }; }
8055 ac_cv_sizeof_void_p=0
8059 cat >conftest.$ac_ext <<_ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8065 $ac_includes_default
8066 typedef void * ac__type_sizeof_;
8067 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8068 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8075 FILE *f = fopen ("conftest.val", "w");
8078 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8080 long int i = longval ();
8081 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8083 fprintf (f, "%ld\n", i);
8087 unsigned long int i = ulongval ();
8088 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8090 fprintf (f, "%lu\n", i);
8092 return ferror (f) || fclose (f) != 0;
8098 rm -f conftest$ac_exeext
8099 if { (ac_try="$ac_link"
8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_link") 2>&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8109 { (case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_try") 2>&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8118 ac_cv_sizeof_void_p=`cat conftest.val`
8120 echo "$as_me: program exited with status $ac_status" >&5
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8125 if test "$ac_cv_type_void_p" = yes; then
8126 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8127 See \`config.log' for more details." >&5
8128 echo "$as_me: error: cannot compute sizeof (void *)
8129 See \`config.log' for more details." >&2;}
8130 { (exit 77); exit 77; }; }
8132 ac_cv_sizeof_void_p=0
8135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8139 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8140 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8144 cat >>confdefs.h <<_ACEOF
8145 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8149 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8151 if test "${ac_cv_header_stdc+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 cat >conftest.$ac_ext <<_ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8173 rm -f conftest.$ac_objext
8174 if { (ac_try="$ac_compile"
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_compile") 2>conftest.er1
8182 grep -v '^ *+' conftest.er1 >conftest.err
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && {
8187 test -z "$ac_c_werror_flag" ||
8188 test ! -s conftest.err
8189 } && test -s conftest.$ac_objext; then
8190 ac_cv_header_stdc=yes
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_cv_header_stdc=no
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 if test $ac_cv_header_stdc = yes; then
8201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8202 cat >conftest.$ac_ext <<_ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8212 $EGREP "memchr" >/dev/null 2>&1; then
8215 ac_cv_header_stdc=no
8221 if test $ac_cv_header_stdc = yes; then
8222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8223 cat >conftest.$ac_ext <<_ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8233 $EGREP "free" >/dev/null 2>&1; then
8236 ac_cv_header_stdc=no
8242 if test $ac_cv_header_stdc = yes; then
8243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8244 if test "$cross_compiling" = yes; then
8247 cat >conftest.$ac_ext <<_ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8255 #if ((' ' & 0x0FF) == 0x020)
8256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8259 # define ISLOWER(c) \
8260 (('a' <= (c) && (c) <= 'i') \
8261 || ('j' <= (c) && (c) <= 'r') \
8262 || ('s' <= (c) && (c) <= 'z'))
8263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8271 for (i = 0; i < 256; i++)
8272 if (XOR (islower (i), ISLOWER (i))
8273 || toupper (i) != TOUPPER (i))
8278 rm -f conftest$ac_exeext
8279 if { (ac_try="$ac_link"
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_link") 2>&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8289 { (case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_try") 2>&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8300 echo "$as_me: program exited with status $ac_status" >&5
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8305 ac_cv_header_stdc=no
8307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8314 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8315 if test $ac_cv_header_stdc = yes; then
8317 cat >>confdefs.h <<\_ACEOF
8318 #define STDC_HEADERS 1
8325 depcc="$OBJC" am_compiler_list='gcc3 gcc'
8327 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8328 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8329 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8333 # We make a subdir and do the tests there. Otherwise we can end up
8334 # making bogus files that we don't know about and never remove. For
8335 # instance it was reported that on HP-UX the gcc test will end up
8336 # making a dummy file named `D' -- because `-MD' means `put the output
8339 # Copy depcomp to subdir because otherwise we won't find it if we're
8340 # using a relative directory.
8341 cp "$am_depcomp" conftest.dir
8343 # We will build objects and dependencies in a subdirectory because
8344 # it helps to detect inapplicable dependency modes. For instance
8345 # both Tru64's cc and ICC support -MD to output dependencies as a
8346 # side effect of compilation, but ICC will put the dependencies in
8347 # the current directory while Tru64 will put them in the object
8351 am_cv_OBJC_dependencies_compiler_type=none
8352 if test "$am_compiler_list" = ""; then
8353 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8355 for depmode in $am_compiler_list; do
8356 # Setup a source with many dependencies, because some compilers
8357 # like to wrap large dependency lists on column 80 (with \), and
8358 # we should not choose a depcomp mode which is confused by this.
8360 # We need to recreate these files for each test, as the compiler may
8361 # overwrite some of them when testing with obscure command lines.
8362 # This happens at least with the AIX C compiler.
8364 for i in 1 2 3 4 5 6; do
8365 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8366 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8367 # Solaris 8's {/usr,}/bin/sh.
8368 touch sub/conftst$i.h
8370 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8374 # after this tag, mechanisms are not by side-effect, so they'll
8375 # only be used when explicitly requested
8376 if test "x$enable_dependency_tracking" = xyes; then
8384 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8385 # mode. It turns out that the SunPro C++ compiler does not properly
8386 # handle `-M -o', and we need to detect this.
8387 if depmode=$depmode \
8388 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8389 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8390 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8391 >/dev/null 2>conftest.err &&
8392 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8393 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8394 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8395 # icc doesn't choke on unknown options, it will just issue warnings
8396 # or remarks (even with -Werror). So we grep stderr for any message
8397 # that says an option was ignored or not supported.
8398 # When given -MP, icc 7.0 and 7.1 complain thusly:
8399 # icc: Command line warning: ignoring option '-M'; no argument required
8400 # The diagnosis changed in icc 8.0:
8401 # icc: Command line remark: option '-MP' not supported
8402 if (grep 'ignoring option' conftest.err ||
8403 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8404 am_cv_OBJC_dependencies_compiler_type=$depmode
8413 am_cv_OBJC_dependencies_compiler_type=none
8417 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
8418 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
8419 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
8424 test "x$enable_dependency_tracking" != xno \
8425 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
8426 am__fastdepOBJC_TRUE=
8427 am__fastdepOBJC_FALSE='#'
8429 am__fastdepOBJC_TRUE='#'
8430 am__fastdepOBJC_FALSE=
8435 # Extract the first word of "pod2man", so it can be a program name with args.
8436 set dummy pod2man; ac_word=$2
8437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8439 if test "${ac_cv_path_POD2MAN+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8454 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 POD2MAN=$ac_cv_path_POD2MAN
8466 if test -n "$POD2MAN"; then
8467 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8468 echo "${ECHO_T}$POD2MAN" >&6; }
8470 { echo "$as_me:$LINENO: result: no" >&5
8471 echo "${ECHO_T}no" >&6; }
8475 # Extract the first word of "pod2html", so it can be a program name with args.
8476 set dummy pod2html; ac_word=$2
8477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8479 if test "${ac_cv_path_POD2HTML+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491 test -z "$as_dir" && as_dir=.
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8494 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 POD2HTML=$ac_cv_path_POD2HTML
8506 if test -n "$POD2HTML"; then
8507 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8508 echo "${ECHO_T}$POD2HTML" >&6; }
8510 { echo "$as_me:$LINENO: result: no" >&5
8511 echo "${ECHO_T}no" >&6; }
8517 # Check whether --enable-strict-warn was given.
8518 if test "${enable_strict_warn+set}" = set; then
8519 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
8520 enable_strictwarn=yes
8524 # Check whether --enable-translator was given.
8525 if test "${enable_translator+set}" = set; then
8526 enableval=$enable_translator; true
8528 enable_translator=yes
8531 # Check whether --enable-optimized was given.
8532 if test "${enable_optimized+set}" = set; then
8533 enableval=$enable_optimized; true
8535 enable_optimized=yes
8538 # Check whether --enable-shared was given.
8539 if test "${enable_shared+set}" = set; then
8540 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
8545 # Check whether --enable-profiled was given.
8546 if test "${enable_profiled+set}" = set; then
8547 enableval=$enable_profiled; if test "$enableval" == "yes"; then
8548 enable_profiled=yes;
8552 # Check whether --enable-trace was given.
8553 if test "${enable_trace+set}" = set; then
8554 enableval=$enable_trace; if test "$enableval" == "yes"; then
8556 cat >>confdefs.h <<\_ACEOF
8557 #define ENABLE_TRACE_IO 1
8563 # Check whether --enable-watch was given.
8564 if test "${enable_watch+set}" = set; then
8565 enableval=$enable_watch; if test "$enableval" == "yes"; then
8567 cat >>confdefs.h <<\_ACEOF
8568 #define ENABLE_WATCH 1
8574 # Check whether --enable-sh4stats was given.
8575 if test "${enable_sh4stats+set}" = set; then
8576 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
8578 cat >>confdefs.h <<\_ACEOF
8579 #define ENABLE_SH4STATS 1
8586 # Check whether --with-osmesa was given.
8587 if test "${with_osmesa+set}" = set; then
8588 withval=$with_osmesa;
8594 # Check whether --with-gtk was given.
8595 if test "${with_gtk+set}" = set; then
8596 withval=$with_gtk; with_gtk=yes
8602 # Check whether --with-esd was given.
8603 if test "${with_esd+set}" = set; then
8608 # Check whether --with-pulse was given.
8609 if test "${with_pulse+set}" = set; then
8610 withval=$with_pulse;
8614 # Check whether --with-sdl was given.
8615 if test "${with_sdl+set}" = set; then
8625 ac_cpp='$OBJCPP $CPPFLAGS'
8626 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8627 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8628 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8629 if test -n "$ac_tool_prefix"; then
8630 for ac_prog in gcc objcc objc cc CC
8632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8636 if test "${ac_cv_prog_OBJC+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 if test -n "$OBJC"; then
8640 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 test -z "$as_dir" && as_dir=.
8647 for ac_exec_ext in '' $ac_executable_extensions; do
8648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8649 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
8650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 OBJC=$ac_cv_prog_OBJC
8660 if test -n "$OBJC"; then
8661 { echo "$as_me:$LINENO: result: $OBJC" >&5
8662 echo "${ECHO_T}$OBJC" >&6; }
8664 { echo "$as_me:$LINENO: result: no" >&5
8665 echo "${ECHO_T}no" >&6; }
8669 test -n "$OBJC" && break
8672 if test -z "$OBJC"; then
8674 for ac_prog in gcc objcc objc cc CC
8676 # Extract the first word of "$ac_prog", so it can be a program name with args.
8677 set dummy $ac_prog; ac_word=$2
8678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8680 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 if test -n "$ac_ct_OBJC"; then
8684 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693 ac_cv_prog_ac_ct_OBJC="$ac_prog"
8694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
8704 if test -n "$ac_ct_OBJC"; then
8705 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
8706 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
8708 { echo "$as_me:$LINENO: result: no" >&5
8709 echo "${ECHO_T}no" >&6; }
8713 test -n "$ac_ct_OBJC" && break
8716 if test "x$ac_ct_OBJC" = x; then
8719 case $cross_compiling:$ac_tool_warned in
8721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8722 whose name does not start with the host triplet. If you think this
8723 configuration is useful to you, please write to autoconf@gnu.org." >&5
8724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8725 whose name does not start with the host triplet. If you think this
8726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8727 ac_tool_warned=yes ;;
8733 # Provide some information about the compiler.
8734 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
8735 ac_compiler=`set X $ac_compile; echo $2`
8736 { (ac_try="$ac_compiler --version >&5"
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_compiler --version >&5") 2>&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }
8746 { (ac_try="$ac_compiler -v >&5"
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8752 (eval "$ac_compiler -v >&5") 2>&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }
8756 { (ac_try="$ac_compiler -V >&5"
8758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8759 *) ac_try_echo=$ac_try;;
8761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8762 (eval "$ac_compiler -V >&5") 2>&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }
8767 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
8768 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
8769 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 cat >conftest.$ac_ext <<_ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8790 rm -f conftest.$ac_objext
8791 if { (ac_try="$ac_compile"
8793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794 *) ac_try_echo=$ac_try;;
8796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8797 (eval "$ac_compile") 2>conftest.er1
8799 grep -v '^ *+' conftest.er1 >conftest.err
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } && {
8804 test -z "$ac_objc_werror_flag" ||
8805 test ! -s conftest.err
8806 } && test -s conftest.$ac_objext; then
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
8819 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
8820 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
8821 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
8822 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
8823 ac_save_OBJCFLAGS=$OBJCFLAGS
8824 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
8825 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
8826 if test "${ac_cv_prog_objc_g+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 ac_save_objc_werror_flag=$ac_objc_werror_flag
8830 ac_objc_werror_flag=yes
8831 ac_cv_prog_objc_g=no
8833 cat >conftest.$ac_ext <<_ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8848 rm -f conftest.$ac_objext
8849 if { (ac_try="$ac_compile"
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_compile") 2>conftest.er1
8857 grep -v '^ *+' conftest.er1 >conftest.err
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } && {
8862 test -z "$ac_objc_werror_flag" ||
8863 test ! -s conftest.err
8864 } && test -s conftest.$ac_objext; then
8865 ac_cv_prog_objc_g=yes
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8871 cat >conftest.$ac_ext <<_ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8886 rm -f conftest.$ac_objext
8887 if { (ac_try="$ac_compile"
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893 (eval "$ac_compile") 2>conftest.er1
8895 grep -v '^ *+' conftest.er1 >conftest.err
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } && {
8900 test -z "$ac_objc_werror_flag" ||
8901 test ! -s conftest.err
8902 } && test -s conftest.$ac_objext; then
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8908 ac_objc_werror_flag=$ac_save_objc_werror_flag
8910 cat >conftest.$ac_ext <<_ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8925 rm -f conftest.$ac_objext
8926 if { (ac_try="$ac_compile"
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932 (eval "$ac_compile") 2>conftest.er1
8934 grep -v '^ *+' conftest.er1 >conftest.err
8936 cat conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } && {
8939 test -z "$ac_objc_werror_flag" ||
8940 test ! -s conftest.err
8941 } && test -s conftest.$ac_objext; then
8942 ac_cv_prog_objc_g=yes
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957 ac_objc_werror_flag=$ac_save_objc_werror_flag
8959 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
8960 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
8961 if test "$ac_test_OBJCFLAGS" = set; then
8962 OBJCFLAGS=$ac_save_OBJCFLAGS
8963 elif test $ac_cv_prog_objc_g = yes; then
8964 if test "$GOBJC" = yes; then
8970 if test "$GOBJC" = yes; then
8977 ac_cpp='$CPP $CPPFLAGS'
8978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8982 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
8983 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
8985 ac_cpp='$OBJCPP $CPPFLAGS'
8986 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8987 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8988 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8989 cat >conftest.$ac_ext <<_ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
9004 rm -f conftest.$ac_objext
9005 if { (ac_try="$ac_compile"
9007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9008 *) ac_try_echo=$ac_try;;
9010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9011 (eval "$ac_compile") 2>conftest.er1
9013 grep -v '^ *+' conftest.er1 >conftest.err
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } && {
9018 test -z "$ac_objc_werror_flag" ||
9019 test ! -s conftest.err
9020 } && test -s conftest.$ac_objext; then
9021 { echo "$as_me:$LINENO: result: yes" >&5
9022 echo "${ECHO_T}yes" >&6; }
9024 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
9025 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
9026 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 cat >conftest.$ac_ext <<_ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 $ac_includes_default
9037 #include <Cocoa/Cocoa.h>
9039 rm -f conftest.$ac_objext
9040 if { (ac_try="$ac_compile"
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046 (eval "$ac_compile") 2>conftest.er1
9048 grep -v '^ *+' conftest.er1 >conftest.err
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } && {
9053 test -z "$ac_objc_werror_flag" ||
9054 test ! -s conftest.err
9055 } && test -s conftest.$ac_objext; then
9056 ac_cv_header_Cocoa_Cocoa_h=yes
9058 echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9061 ac_cv_header_Cocoa_Cocoa_h=no
9064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9066 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
9067 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
9068 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
9072 LIBS="$LIBS -framework AppKit -framework Carbon"
9073 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"
9074 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
9075 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
9077 cat >>confdefs.h <<\_ACEOF
9078 #define HAVE_COCOA 1
9082 cat >>confdefs.h <<\_ACEOF
9083 #define APPLE_BUILD 1
9086 if test "x$with_gtk" = "xx11"; then
9095 { echo "$as_me:$LINENO: checking OBJC version" >&5
9096 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
9097 if test -n "$OBJC"; then
9098 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
9099 if test -n "$_GOBJC_VERSION"; then
9100 { echo "$as_me:$LINENO: result: GCC" >&5
9101 echo "${ECHO_T}GCC" >&6; }
9103 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
9105 { echo "$as_me:$LINENO: result: Unknown" >&5
9106 echo "${ECHO_T}Unknown" >&6; }
9110 { echo "$as_me:$LINENO: result: None" >&5
9111 echo "${ECHO_T}None" >&6; }
9117 ac_cpp='$OBJCPP $CPPFLAGS'
9118 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9119 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9120 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9122 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
9123 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
9124 save_OBJCFLAGS="$OBJCFLAGS"
9125 OBJCFLAGS="-msse2 $OBJCFLAGS"
9126 cat >conftest.$ac_ext <<_ACEOF
9130 cat confdefs.h >>conftest.$ac_ext
9131 cat >>conftest.$ac_ext <<_ACEOF
9132 /* end confdefs.h. */
9133 int main() { return 0; }
9135 rm -f conftest.$ac_objext
9136 if { (ac_try="$ac_compile"
9138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9139 *) ac_try_echo=$ac_try;;
9141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9142 (eval "$ac_compile") 2>conftest.er1
9144 grep -v '^ *+' conftest.er1 >conftest.err
9146 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } && {
9149 test -z "$ac_objc_werror_flag" ||
9150 test ! -s conftest.err
9151 } && test -s conftest.$ac_objext; then
9153 { echo "$as_me:$LINENO: result: yes" >&5
9154 echo "${ECHO_T}yes" >&6; }
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9161 OBJCFLAGS="$save_OBJCFLAGS"
9162 { echo "$as_me:$LINENO: result: no" >&5
9163 echo "${ECHO_T}no" >&6; }
9167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9169 ac_cpp='$OBJCPP $CPPFLAGS'
9170 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9171 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9172 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9177 ac_cpp='$OBJCPP $CPPFLAGS'
9178 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9179 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9180 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9182 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
9183 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
9184 save_OBJCFLAGS="$OBJCFLAGS"
9185 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
9186 cat >conftest.$ac_ext <<_ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9193 int main() { return 0; }
9195 rm -f conftest.$ac_objext
9196 if { (ac_try="$ac_compile"
9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202 (eval "$ac_compile") 2>conftest.er1
9204 grep -v '^ *+' conftest.er1 >conftest.err
9206 cat conftest.err >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } && {
9209 test -z "$ac_objc_werror_flag" ||
9210 test ! -s conftest.err
9211 } && test -s conftest.$ac_objext; then
9213 { echo "$as_me:$LINENO: result: yes" >&5
9214 echo "${ECHO_T}yes" >&6; }
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9221 OBJCFLAGS="$save_OBJCFLAGS"
9222 { echo "$as_me:$LINENO: result: no" >&5
9223 echo "${ECHO_T}no" >&6; }
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 ac_cpp='$OBJCPP $CPPFLAGS'
9230 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9231 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9232 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9237 echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.$ac_ext >&5
9240 { echo "$as_me:$LINENO: result: No" >&5
9241 echo "${ECHO_T}No" >&6; }
9245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
9247 ac_cpp='$CPP $CPPFLAGS'
9248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9256 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
9264 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
9266 cat >>confdefs.h <<\_ACEOF
9267 #define OSX_BUNDLE 1
9272 CFLAGS_FOR_BUILD="-O2 -std=c99"
9273 CFLAGS="-g -fexceptions"
9274 OBJCFLAGS="-g -fexceptions"
9276 cat >>confdefs.h <<\_ACEOF
9277 #define HAVE_EXCEPTIONS 1
9283 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
9284 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
9285 { echo "$as_me:$LINENO: checking CC version" >&5
9286 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
9287 if test -n "$_ICC_VERSION"; then
9288 { echo "$as_me:$LINENO: result: ICC" >&5
9289 echo "${ECHO_T}ICC" >&6; }
9290 CCOPT="$CFLAGS -fast"
9291 CFLAGS="$CFLAGS -fno-strict-aliasing"
9292 elif test -n "$_GCC_VERSION"; then
9293 { echo "$as_me:$LINENO: result: GCC" >&5
9294 echo "${ECHO_T}GCC" >&6; }
9296 CFLAGS="$CFLAGS -fno-strict-aliasing"
9298 { echo "$as_me:$LINENO: result: Unknown" >&5
9299 echo "${ECHO_T}Unknown" >&6; }
9305 ac_cpp='$CPP $CPPFLAGS'
9306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9310 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
9311 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
9312 save_CFLAGS="$CFLAGS"
9313 CFLAGS="-msse2 $CFLAGS"
9314 cat >conftest.$ac_ext <<_ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h. */
9321 int main() { return 0; }
9323 rm -f conftest.$ac_objext
9324 if { (ac_try="$ac_compile"
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330 (eval "$ac_compile") 2>conftest.er1
9332 grep -v '^ *+' conftest.er1 >conftest.err
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } && {
9337 test -z "$ac_c_werror_flag" ||
9338 test ! -s conftest.err
9339 } && test -s conftest.$ac_objext; then
9341 { echo "$as_me:$LINENO: result: yes" >&5
9342 echo "${ECHO_T}yes" >&6; }
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9349 CFLAGS="$save_CFLAGS"
9350 { echo "$as_me:$LINENO: result: no" >&5
9351 echo "${ECHO_T}no" >&6; }
9355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357 ac_cpp='$CPP $CPPFLAGS'
9358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 if $CC supports -mfpmath=sse" >&5
9371 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
9372 save_CFLAGS="$CFLAGS"
9373 CFLAGS="-mfpmath=sse $CFLAGS"
9374 cat >conftest.$ac_ext <<_ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 int main() { return 0; }
9383 rm -f conftest.$ac_objext
9384 if { (ac_try="$ac_compile"
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_compile") 2>conftest.er1
9392 grep -v '^ *+' conftest.er1 >conftest.err
9394 cat conftest.err >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && {
9397 test -z "$ac_c_werror_flag" ||
9398 test ! -s conftest.err
9399 } && test -s conftest.$ac_objext; then
9401 { echo "$as_me:$LINENO: result: yes" >&5
9402 echo "${ECHO_T}yes" >&6; }
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9409 CFLAGS="$save_CFLAGS"
9410 { echo "$as_me:$LINENO: result: no" >&5
9411 echo "${ECHO_T}no" >&6; }
9415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9417 ac_cpp='$CPP $CPPFLAGS'
9418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9424 if test "x$enable_optimized" = "xyes"; then
9425 CFLAGS="$CFLAGS $CCOPT"
9426 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
9427 if test "x$enable_profiled" != "xyes"; then
9428 CFLAGS="$CFLAGS -fomit-frame-pointer"
9429 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
9432 CFLAGS="$CFLAGS -g3"
9433 OBJCFLAGS="$OBJCFLAGS -g3"
9436 if test "x$enable_profiled" = "xyes"; then
9437 CFLAGS="$CFLAGS -pg"
9438 LDFLAGS="$LDFLAGS -pg";
9439 OBJCFLAGS="$OBJCFLAGS -pg";
9442 if test "x$enable_strictwarn" = "xyes"; then
9443 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
9444 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
9447 if test "x$enable_shared" != "xno"; then
9449 cat >>confdefs.h <<\_ACEOF
9450 #define ENABLE_SHARED 1
9453 if test "x$APPLE_BUILD" = "xyes"; then
9455 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
9458 PLUGINLDFLAGS="-shared"
9460 PLUGINCFLAGS="-fPIC"
9462 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9463 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9464 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9465 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9469 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9471 # Is the header compilable?
9472 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9473 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
9474 cat >conftest.$ac_ext <<_ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 $ac_includes_default
9483 rm -f conftest.$ac_objext
9484 if { (ac_try="$ac_compile"
9486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9487 *) ac_try_echo=$ac_try;;
9489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9490 (eval "$ac_compile") 2>conftest.er1
9492 grep -v '^ *+' conftest.er1 >conftest.err
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } && {
9497 test -z "$ac_c_werror_flag" ||
9498 test ! -s conftest.err
9499 } && test -s conftest.$ac_objext; then
9500 ac_header_compiler=yes
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9505 ac_header_compiler=no
9508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9510 echo "${ECHO_T}$ac_header_compiler" >&6; }
9512 # Is the header present?
9513 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9514 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
9515 cat >conftest.$ac_ext <<_ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9523 if { (ac_try="$ac_cpp conftest.$ac_ext"
9525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526 *) ac_try_echo=$ac_try;;
9528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9531 grep -v '^ *+' conftest.er1 >conftest.err
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } >/dev/null && {
9536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9537 test ! -s conftest.err
9539 ac_header_preproc=yes
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9544 ac_header_preproc=no
9547 rm -f conftest.err conftest.$ac_ext
9548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9549 echo "${ECHO_T}$ac_header_preproc" >&6; }
9551 # So? What about this header?
9552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9554 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9555 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9556 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9557 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9558 ac_header_preproc=yes
9561 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9562 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9564 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9566 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9568 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9570 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9572 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9576 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9577 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9578 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 ac_cv_header_dlfcn_h=$ac_header_preproc
9583 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9584 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9587 if test $ac_cv_header_dlfcn_h = yes; then
9589 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9590 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9591 if test "${ac_cv_search_dlopen+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 ac_func_search_save_LIBS=$LIBS
9595 cat >conftest.$ac_ext <<_ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h. */
9602 /* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
9617 for ac_lib in '' dl; do
9618 if test -z "$ac_lib"; then
9619 ac_res="none required"
9622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (ac_try="$ac_link"
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_link") 2>conftest.er1
9633 grep -v '^ *+' conftest.er1 >conftest.err
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest$ac_exeext &&
9641 $as_test_x conftest$ac_exeext; then
9642 ac_cv_search_dlopen=$ac_res
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9652 if test "${ac_cv_search_dlopen+set}" = set; then
9656 if test "${ac_cv_search_dlopen+set}" = set; then
9659 ac_cv_search_dlopen=no
9662 LIBS=$ac_func_search_save_LIBS
9664 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9665 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9666 ac_res=$ac_cv_search_dlopen
9667 if test "$ac_res" != no; then
9668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9675 if test "x$have_dlopen" != "xyes"; then
9676 if test "x$enable_shared" == "xyes"; then
9677 { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
9678 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
9679 { (exit 1); exit 1; }; }
9681 { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
9682 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
9686 { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
9687 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
9688 old_LDFLAGS="$LDFLAGS"
9689 LDFLAGS="$LDFLAGS -rdynamic"
9690 cat >conftest.$ac_ext <<_ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 int main() { return 0; }
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (ac_try="$ac_link"
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_link") 2>conftest.er1
9707 grep -v '^ *+' conftest.er1 >conftest.err
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } && {
9712 test -z "$ac_c_werror_flag" ||
9713 test ! -s conftest.err
9714 } && test -s conftest$ac_exeext &&
9715 $as_test_x conftest$ac_exeext; then
9717 LXDREAMLDFLAGS="-rdynamic"
9718 { echo "$as_me:$LINENO: result: yes" >&5
9719 echo "${ECHO_T}yes" >&6; }
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9727 { echo "$as_me:$LINENO: result: no" >&5
9728 echo "${ECHO_T}no" >&6; }
9731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9732 conftest$ac_exeext conftest.$ac_ext
9733 LDFLAGS="$old_LDFLAGS"
9742 if test "x$have_dlopen" = "xyes"; then
9744 BUILD_SHARED_FALSE='#'
9746 BUILD_SHARED_TRUE='#'
9752 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
9753 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
9754 save_CFLAGS="$CFLAGS"
9755 CFLAGS="-Werror $save_CFLAGS"
9756 if test "$cross_compiling" = yes; then
9758 { echo "$as_me:$LINENO: result: no" >&5
9759 echo "${ECHO_T}no" >&6; }
9762 cat >conftest.$ac_ext <<_ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9770 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
9772 int main(int argc, char *argv[])
9774 return foo( 1, 2 ) == 3 ? 0 : 1;
9777 rm -f conftest$ac_exeext
9778 if { (ac_try="$ac_link"
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_link") 2>&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9788 { (case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_try") 2>&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9798 { echo "$as_me:$LINENO: result: yes" >&5
9799 echo "${ECHO_T}yes" >&6; }
9802 cat >>confdefs.h <<\_ACEOF
9803 #define HAVE_FASTCALL 1
9808 echo "$as_me: program exited with status $ac_status" >&5
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9814 { echo "$as_me:$LINENO: result: no" >&5
9815 echo "${ECHO_T}no" >&6; }
9818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9822 CFLAGS="$save_CFLAGS"
9825 { echo "$as_me:$LINENO: checking support for force inlining" >&5
9826 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
9827 cat >conftest.$ac_ext <<_ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9835 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
9837 int main(int argc, char *argv[])
9839 return foo( 1, 2 ) == 3 ? 0 : 1;
9842 rm -f conftest.$ac_objext
9843 if { (ac_try="$ac_compile"
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849 (eval "$ac_compile") 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } && {
9856 test -z "$ac_c_werror_flag" ||
9857 test ! -s conftest.err
9858 } && test -s conftest.$ac_objext; then
9860 FORCEINLINE="__attribute__((always_inline))"
9861 { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
9862 echo "${ECHO_T}$FORCEINLINE" >&6; }
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9870 { echo "$as_me:$LINENO: result: no" >&5
9871 echo "${ECHO_T}no" >&6; }
9875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9878 cat >>confdefs.h <<_ACEOF
9879 #define FORCEINLINE $FORCEINLINE
9883 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
9884 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
9885 if test "$cross_compiling" = yes; then
9887 { echo "$as_me:$LINENO: result: no" >&5
9888 echo "${ECHO_T}no" >&6; }
9889 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
9890 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
9892 cat >conftest.$ac_ext <<_ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9900 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
9901 int __attribute__((noinline)) foo( int arg, void *exc )
9904 *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
9909 int main(int argc, char *argv[])
9911 goto *first_arg(&&start, &&except);
9914 return foo( argc, &&except ) + 1;
9920 rm -f conftest$ac_exeext
9921 if { (ac_try="$ac_link"
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_link") 2>&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9931 { (case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_try") 2>&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9941 { echo "$as_me:$LINENO: result: yes" >&5
9942 echo "${ECHO_T}yes" >&6; }
9945 cat >>confdefs.h <<\_ACEOF
9946 #define HAVE_FRAME_ADDRESS 1
9951 echo "$as_me: program exited with status $ac_status" >&5
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9957 { echo "$as_me:$LINENO: result: no" >&5
9958 echo "${ECHO_T}no" >&6; }
9959 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
9960 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
9962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9969 { echo "$as_me:$LINENO: checking for library containing listen" >&5
9970 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
9971 if test "${ac_cv_search_listen+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 ac_func_search_save_LIBS=$LIBS
9975 cat >conftest.$ac_ext <<_ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9982 /* Override any GCC internal prototype to avoid an error.
9983 Use char because int might match the return type of a GCC
9984 builtin and then its argument prototype would still apply. */
9997 for ac_lib in '' socket; do
9998 if test -z "$ac_lib"; then
9999 ac_res="none required"
10002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10004 rm -f conftest.$ac_objext conftest$ac_exeext
10005 if { (ac_try="$ac_link"
10006 case "(($ac_try" in
10007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008 *) ac_try_echo=$ac_try;;
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011 (eval "$ac_link") 2>conftest.er1
10013 grep -v '^ *+' conftest.er1 >conftest.err
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } && {
10018 test -z "$ac_c_werror_flag" ||
10019 test ! -s conftest.err
10020 } && test -s conftest$ac_exeext &&
10021 $as_test_x conftest$ac_exeext; then
10022 ac_cv_search_listen=$ac_res
10024 echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10032 if test "${ac_cv_search_listen+set}" = set; then
10036 if test "${ac_cv_search_listen+set}" = set; then
10039 ac_cv_search_listen=no
10041 rm conftest.$ac_ext
10042 LIBS=$ac_func_search_save_LIBS
10044 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
10045 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
10046 ac_res=$ac_cv_search_listen
10047 if test "$ac_res" != no; then
10048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10052 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
10053 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
10054 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10057 ac_func_search_save_LIBS=$LIBS
10058 cat >conftest.$ac_ext <<_ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10065 /* Override any GCC internal prototype to avoid an error.
10066 Use char because int might match the return type of a GCC
10067 builtin and then its argument prototype would still apply. */
10075 return inet_ntoa ();
10080 for ac_lib in '' nsl; do
10081 if test -z "$ac_lib"; then
10082 ac_res="none required"
10085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (ac_try="$ac_link"
10089 case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_link") 2>conftest.er1
10096 grep -v '^ *+' conftest.er1 >conftest.err
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && {
10101 test -z "$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10103 } && test -s conftest$ac_exeext &&
10104 $as_test_x conftest$ac_exeext; then
10105 ac_cv_search_inet_ntoa=$ac_res
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10115 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10119 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10122 ac_cv_search_inet_ntoa=no
10124 rm conftest.$ac_ext
10125 LIBS=$ac_func_search_save_LIBS
10127 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
10128 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
10129 ac_res=$ac_cv_search_inet_ntoa
10130 if test "$ac_res" != no; then
10131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10138 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10139 if test -n "$ac_tool_prefix"; then
10140 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10141 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10144 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 case $PKG_CONFIG in
10149 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10159 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10170 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10171 if test -n "$PKG_CONFIG"; then
10172 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10173 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10175 { echo "$as_me:$LINENO: result: no" >&5
10176 echo "${ECHO_T}no" >&6; }
10181 if test -z "$ac_cv_path_PKG_CONFIG"; then
10182 ac_pt_PKG_CONFIG=$PKG_CONFIG
10183 # Extract the first word of "pkg-config", so it can be a program name with args.
10184 set dummy pkg-config; ac_word=$2
10185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10187 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 case $ac_pt_PKG_CONFIG in
10192 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10196 for as_dir in $PATH
10199 test -z "$as_dir" && as_dir=.
10200 for ac_exec_ext in '' $ac_executable_extensions; do
10201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10202 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10213 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10214 if test -n "$ac_pt_PKG_CONFIG"; then
10215 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
10216 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
10218 { echo "$as_me:$LINENO: result: no" >&5
10219 echo "${ECHO_T}no" >&6; }
10222 if test "x$ac_pt_PKG_CONFIG" = x; then
10225 case $cross_compiling:$ac_tool_warned in
10227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10228 whose name does not start with the host triplet. If you think this
10229 configuration is useful to you, please write to autoconf@gnu.org." >&5
10230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10231 whose name does not start with the host triplet. If you think this
10232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10233 ac_tool_warned=yes ;;
10235 PKG_CONFIG=$ac_pt_PKG_CONFIG
10238 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10242 if test -n "$PKG_CONFIG"; then
10243 _pkg_min_version=0.9.0
10244 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
10245 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
10246 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10247 { echo "$as_me:$LINENO: result: yes" >&5
10248 echo "${ECHO_T}yes" >&6; }
10250 { echo "$as_me:$LINENO: result: no" >&5
10251 echo "${ECHO_T}no" >&6; }
10258 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
10259 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
10261 if test -n "$LIBPNG_CFLAGS"; then
10262 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
10263 elif test -n "$PKG_CONFIG"; then
10264 if test -n "$PKG_CONFIG" && \
10265 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10266 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; then
10270 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
10277 if test -n "$LIBPNG_LIBS"; then
10278 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
10279 elif test -n "$PKG_CONFIG"; then
10280 if test -n "$PKG_CONFIG" && \
10281 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10282 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; then
10286 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
10296 if test $pkg_failed = yes; then
10298 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10299 _pkg_short_errors_supported=yes
10301 _pkg_short_errors_supported=no
10303 if test $_pkg_short_errors_supported = yes; then
10304 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
10306 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
10308 # Put the nasty error message in config.log where it belongs
10309 echo "$LIBPNG_PKG_ERRORS" >&5
10311 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
10315 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10316 installed software in a non-standard prefix.
10318 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10319 and LIBPNG_LIBS to avoid the need to call pkg-config.
10320 See the pkg-config man page for more details.
10322 echo "$as_me: error: Package requirements (libpng ) were not met:
10326 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10327 installed software in a non-standard prefix.
10329 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10330 and LIBPNG_LIBS to avoid the need to call pkg-config.
10331 See the pkg-config man page for more details.
10333 { (exit 1); exit 1; }; }
10334 elif test $pkg_failed = untried; then
10335 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10336 is in your PATH or set the PKG_CONFIG environment variable to the full
10337 path to pkg-config.
10339 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10340 and LIBPNG_LIBS to avoid the need to call pkg-config.
10341 See the pkg-config man page for more details.
10343 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10344 See \`config.log' for more details." >&5
10345 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10346 is in your PATH or set the PKG_CONFIG environment variable to the full
10347 path to pkg-config.
10349 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10350 and LIBPNG_LIBS to avoid the need to call pkg-config.
10351 See the pkg-config man page for more details.
10353 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10354 See \`config.log' for more details." >&2;}
10355 { (exit 1); exit 1; }; }
10357 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
10358 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
10359 { echo "$as_me:$LINENO: result: yes" >&5
10360 echo "${ECHO_T}yes" >&6; }
10365 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
10366 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
10367 if test "${ac_cv_lib_z_uncompress+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 ac_check_lib_save_LIBS=$LIBS
10372 cat >conftest.$ac_ext <<_ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10379 /* Override any GCC internal prototype to avoid an error.
10380 Use char because int might match the return type of a GCC
10381 builtin and then its argument prototype would still apply. */
10385 char uncompress ();
10389 return uncompress ();
10394 rm -f conftest.$ac_objext conftest$ac_exeext
10395 if { (ac_try="$ac_link"
10396 case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_link") 2>conftest.er1
10403 grep -v '^ *+' conftest.er1 >conftest.err
10405 cat conftest.err >&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } && {
10408 test -z "$ac_c_werror_flag" ||
10409 test ! -s conftest.err
10410 } && test -s conftest$ac_exeext &&
10411 $as_test_x conftest$ac_exeext; then
10412 ac_cv_lib_z_uncompress=yes
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10417 ac_cv_lib_z_uncompress=no
10420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10421 conftest$ac_exeext conftest.$ac_ext
10422 LIBS=$ac_check_lib_save_LIBS
10424 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
10425 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
10426 if test $ac_cv_lib_z_uncompress = yes; then
10427 cat >>confdefs.h <<_ACEOF
10428 #define HAVE_LIBZ 1
10435 echo "Zlib (libz.so) could not be found, but is required."
10440 if test "x$with_gtk" = "xno"; then
10443 { echo "$as_me:$LINENO: checking for GLIB" >&5
10444 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10446 if test -n "$GLIB_CFLAGS"; then
10447 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10448 elif test -n "$PKG_CONFIG"; then
10449 if test -n "$PKG_CONFIG" && \
10450 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10451 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; then
10455 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10462 if test -n "$GLIB_LIBS"; then
10463 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10464 elif test -n "$PKG_CONFIG"; then
10465 if test -n "$PKG_CONFIG" && \
10466 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10467 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; then
10471 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10481 if test $pkg_failed = yes; then
10483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10484 _pkg_short_errors_supported=yes
10486 _pkg_short_errors_supported=no
10488 if test $_pkg_short_errors_supported = yes; then
10489 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
10491 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
10493 # Put the nasty error message in config.log where it belongs
10494 echo "$GLIB_PKG_ERRORS" >&5
10496 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
10500 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10501 installed software in a non-standard prefix.
10503 Alternatively, you may set the environment variables GLIB_CFLAGS
10504 and GLIB_LIBS to avoid the need to call pkg-config.
10505 See the pkg-config man page for more details.
10507 echo "$as_me: error: Package requirements (glib-2.0) were not met:
10511 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10512 installed software in a non-standard prefix.
10514 Alternatively, you may set the environment variables GLIB_CFLAGS
10515 and GLIB_LIBS to avoid the need to call pkg-config.
10516 See the pkg-config man page for more details.
10518 { (exit 1); exit 1; }; }
10519 elif test $pkg_failed = untried; then
10520 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10521 is in your PATH or set the PKG_CONFIG environment variable to the full
10522 path to pkg-config.
10524 Alternatively, you may set the environment variables GLIB_CFLAGS
10525 and GLIB_LIBS to avoid the need to call pkg-config.
10526 See the pkg-config man page for more details.
10528 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10529 See \`config.log' for more details." >&5
10530 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10531 is in your PATH or set the PKG_CONFIG environment variable to the full
10532 path to pkg-config.
10534 Alternatively, you may set the environment variables GLIB_CFLAGS
10535 and GLIB_LIBS to avoid the need to call pkg-config.
10536 See the pkg-config man page for more details.
10538 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10539 See \`config.log' for more details." >&2;}
10540 { (exit 1); exit 1; }; }
10542 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
10543 GLIB_LIBS=$pkg_cv_GLIB_LIBS
10544 { echo "$as_me:$LINENO: result: yes" >&5
10545 echo "${ECHO_T}yes" >&6; }
10551 { echo "$as_me:$LINENO: checking for GTK" >&5
10552 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
10554 if test -n "$GTK_CFLAGS"; then
10555 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
10556 elif test -n "$PKG_CONFIG"; then
10557 if test -n "$PKG_CONFIG" && \
10558 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10559 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; then
10563 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
10570 if test -n "$GTK_LIBS"; then
10571 pkg_cv_GTK_LIBS="$GTK_LIBS"
10572 elif test -n "$PKG_CONFIG"; then
10573 if test -n "$PKG_CONFIG" && \
10574 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10575 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; then
10579 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
10589 if test $pkg_failed = yes; then
10591 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10592 _pkg_short_errors_supported=yes
10594 _pkg_short_errors_supported=no
10596 if test $_pkg_short_errors_supported = yes; then
10597 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
10599 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
10601 # Put the nasty error message in config.log where it belongs
10602 echo "$GTK_PKG_ERRORS" >&5
10604 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
10608 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10609 installed software in a non-standard prefix.
10611 Alternatively, you may set the environment variables GTK_CFLAGS
10612 and GTK_LIBS to avoid the need to call pkg-config.
10613 See the pkg-config man page for more details.
10615 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
10619 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10620 installed software in a non-standard prefix.
10622 Alternatively, you may set the environment variables GTK_CFLAGS
10623 and GTK_LIBS to avoid the need to call pkg-config.
10624 See the pkg-config man page for more details.
10626 { (exit 1); exit 1; }; }
10627 elif test $pkg_failed = untried; then
10628 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10629 is in your PATH or set the PKG_CONFIG environment variable to the full
10630 path to pkg-config.
10632 Alternatively, you may set the environment variables GTK_CFLAGS
10633 and GTK_LIBS to avoid the need to call pkg-config.
10634 See the pkg-config man page for more details.
10636 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10637 See \`config.log' for more details." >&5
10638 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10639 is in your PATH or set the PKG_CONFIG environment variable to the full
10640 path to pkg-config.
10642 Alternatively, you may set the environment variables GTK_CFLAGS
10643 and GTK_LIBS to avoid the need to call pkg-config.
10644 See the pkg-config man page for more details.
10646 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10647 See \`config.log' for more details." >&2;}
10648 { (exit 1); exit 1; }; }
10650 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
10651 GTK_LIBS=$pkg_cv_GTK_LIBS
10652 { echo "$as_me:$LINENO: result: yes" >&5
10653 echo "${ECHO_T}yes" >&6; }
10657 cat >>confdefs.h <<\_ACEOF
10664 LIBS="$LIBS $GTK_LIBS"
10665 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
10666 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
10667 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 cat >conftest.$ac_ext <<_ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
10677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10678 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
10680 /* System header to define __stub macros and hopefully few prototypes,
10681 which can conflict with char gdk_x11_display_get_xdisplay (); below.
10682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10683 <limits.h> exists even on freestanding compilers. */
10686 # include <limits.h>
10688 # include <assert.h>
10691 #undef gdk_x11_display_get_xdisplay
10693 /* Override any GCC internal prototype to avoid an error.
10694 Use char because int might match the return type of a GCC
10695 builtin and then its argument prototype would still apply. */
10699 char gdk_x11_display_get_xdisplay ();
10700 /* The GNU C library defines this for functions which it implements
10701 to always fail with ENOSYS. Some functions are actually named
10702 something starting with __ and the normal name is an alias. */
10703 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
10710 return gdk_x11_display_get_xdisplay ();
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (ac_try="$ac_link"
10717 case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_link") 2>conftest.er1
10724 grep -v '^ *+' conftest.er1 >conftest.err
10726 cat conftest.err >&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } && {
10729 test -z "$ac_c_werror_flag" ||
10730 test ! -s conftest.err
10731 } && test -s conftest$ac_exeext &&
10732 $as_test_x conftest$ac_exeext; then
10733 ac_cv_func_gdk_x11_display_get_xdisplay=yes
10735 echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 ac_cv_func_gdk_x11_display_get_xdisplay=no
10741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10742 conftest$ac_exeext conftest.$ac_ext
10744 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
10745 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
10746 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
10750 cat >>confdefs.h <<\_ACEOF
10751 #define HAVE_GTK_X11 1
10756 GTK_LIBS="$GTK_LIBS -lX11"
10758 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
10759 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
10760 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 cat >conftest.$ac_ext <<_ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
10770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10771 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
10773 /* System header to define __stub macros and hopefully few prototypes,
10774 which can conflict with char gdk_quartz_window_get_nsview (); below.
10775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10776 <limits.h> exists even on freestanding compilers. */
10779 # include <limits.h>
10781 # include <assert.h>
10784 #undef gdk_quartz_window_get_nsview
10786 /* Override any GCC internal prototype to avoid an error.
10787 Use char because int might match the return type of a GCC
10788 builtin and then its argument prototype would still apply. */
10792 char gdk_quartz_window_get_nsview ();
10793 /* The GNU C library defines this for functions which it implements
10794 to always fail with ENOSYS. Some functions are actually named
10795 something starting with __ and the normal name is an alias. */
10796 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
10803 return gdk_quartz_window_get_nsview ();
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (ac_try="$ac_link"
10810 case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_link") 2>conftest.er1
10817 grep -v '^ *+' conftest.er1 >conftest.err
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } && {
10822 test -z "$ac_c_werror_flag" ||
10823 test ! -s conftest.err
10824 } && test -s conftest$ac_exeext &&
10825 $as_test_x conftest$ac_exeext; then
10826 ac_cv_func_gdk_quartz_window_get_nsview=yes
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10831 ac_cv_func_gdk_quartz_window_get_nsview=no
10834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10835 conftest$ac_exeext conftest.$ac_ext
10837 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
10838 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
10839 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
10843 cat >>confdefs.h <<\_ACEOF
10844 #define HAVE_GTK_OSX 1
10849 if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
10850 { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
10851 See \`config.log' for more details." >&5
10852 echo "$as_me: error: Unable to identify GTK platform
10853 See \`config.log' for more details." >&2;}
10854 { (exit 1); exit 1; }; }
10861 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
10862 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
10864 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
10865 pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
10866 elif test -n "$PKG_CONFIG"; then
10867 if test -n "$PKG_CONFIG" && \
10868 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10869 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; then
10873 pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10880 if test -n "$GLIB_FOR_BUILD_LIBS"; then
10881 pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
10882 elif test -n "$PKG_CONFIG"; then
10883 if test -n "$PKG_CONFIG" && \
10884 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10885 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; then
10889 pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10899 if test $pkg_failed = yes; then
10901 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10902 _pkg_short_errors_supported=yes
10904 _pkg_short_errors_supported=no
10906 if test $_pkg_short_errors_supported = yes; then
10907 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
10909 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
10911 # Put the nasty error message in config.log where it belongs
10912 echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
10914 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
10916 $GLIB_FOR_BUILD_PKG_ERRORS
10918 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10919 installed software in a non-standard prefix.
10921 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
10922 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
10923 See the pkg-config man page for more details.
10925 echo "$as_me: error: Package requirements (glib-2.0) were not met:
10927 $GLIB_FOR_BUILD_PKG_ERRORS
10929 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10930 installed software in a non-standard prefix.
10932 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
10933 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
10934 See the pkg-config man page for more details.
10936 { (exit 1); exit 1; }; }
10937 elif test $pkg_failed = untried; then
10938 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10939 is in your PATH or set the PKG_CONFIG environment variable to the full
10940 path to pkg-config.
10942 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
10943 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
10944 See the pkg-config man page for more details.
10946 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10947 See \`config.log' for more details." >&5
10948 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10949 is in your PATH or set the PKG_CONFIG environment variable to the full
10950 path to pkg-config.
10952 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
10953 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
10954 See the pkg-config man page for more details.
10956 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10957 See \`config.log' for more details." >&2;}
10958 { (exit 1); exit 1; }; }
10960 GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
10961 GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
10962 { echo "$as_me:$LINENO: result: yes" >&5
10963 echo "${ECHO_T}yes" >&6; }
10970 if test "$HAVE_GTK" = 'yes'; then
10981 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
10982 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
10984 if test -n "$LIBISOFS_CFLAGS"; then
10985 pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
10986 elif test -n "$PKG_CONFIG"; then
10987 if test -n "$PKG_CONFIG" && \
10988 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
10989 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; then
10993 pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
11000 if test -n "$LIBISOFS_LIBS"; then
11001 pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
11002 elif test -n "$PKG_CONFIG"; then
11003 if test -n "$PKG_CONFIG" && \
11004 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11005 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; then
11009 pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
11019 if test $pkg_failed = yes; then
11021 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11022 _pkg_short_errors_supported=yes
11024 _pkg_short_errors_supported=no
11026 if test $_pkg_short_errors_supported = yes; then
11027 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
11029 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
11031 # Put the nasty error message in config.log where it belongs
11032 echo "$LIBISOFS_PKG_ERRORS" >&5
11034 { { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
11036 $LIBISOFS_PKG_ERRORS
11038 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11039 installed software in a non-standard prefix.
11041 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11042 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11043 See the pkg-config man page for more details.
11045 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
11047 $LIBISOFS_PKG_ERRORS
11049 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11050 installed software in a non-standard prefix.
11052 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11053 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11054 See the pkg-config man page for more details.
11056 { (exit 1); exit 1; }; }
11057 elif test $pkg_failed = untried; then
11058 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11059 is in your PATH or set the PKG_CONFIG environment variable to the full
11060 path to pkg-config.
11062 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11063 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11064 See the pkg-config man page for more details.
11066 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11067 See \`config.log' for more details." >&5
11068 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11069 is in your PATH or set the PKG_CONFIG environment variable to the full
11070 path to pkg-config.
11072 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11073 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11074 See the pkg-config man page for more details.
11076 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11077 See \`config.log' for more details." >&2;}
11078 { (exit 1); exit 1; }; }
11080 LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
11081 LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
11082 { echo "$as_me:$LINENO: result: yes" >&5
11083 echo "${ECHO_T}yes" >&6; }
11087 if test "x$with_osmesa" != xno; then
11091 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
11092 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
11093 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 ac_check_lib_save_LIBS=$LIBS
11097 LIBS="-lOSMesa $LIBS"
11098 cat >conftest.$ac_ext <<_ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11105 /* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
11111 char OSMesaCreateContext ();
11115 return OSMesaCreateContext ();
11120 rm -f conftest.$ac_objext conftest$ac_exeext
11121 if { (ac_try="$ac_link"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_link") 2>conftest.er1
11129 grep -v '^ *+' conftest.er1 >conftest.err
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } && {
11134 test -z "$ac_c_werror_flag" ||
11135 test ! -s conftest.err
11136 } && test -s conftest$ac_exeext &&
11137 $as_test_x conftest$ac_exeext; then
11138 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
11140 echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 ac_cv_lib_OSMesa_OSMesaCreateContext=no
11146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11147 conftest$ac_exeext conftest.$ac_ext
11148 LIBS=$ac_check_lib_save_LIBS
11150 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
11151 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
11152 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
11153 cat >>confdefs.h <<_ACEOF
11154 #define HAVE_LIBOSMESA 1
11157 LIBS="-lOSMesa $LIBS"
11160 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
11161 See \`config.log' for more details." >&5
11162 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
11163 See \`config.log' for more details." >&2;}
11164 { (exit 1); exit 1; }; }
11167 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11168 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11169 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11170 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11174 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11176 # Is the header compilable?
11177 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
11178 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
11179 cat >conftest.$ac_ext <<_ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 $ac_includes_default
11186 #include <GL/osmesa.h>
11188 rm -f conftest.$ac_objext
11189 if { (ac_try="$ac_compile"
11190 case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_compile") 2>conftest.er1
11197 grep -v '^ *+' conftest.er1 >conftest.err
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && {
11202 test -z "$ac_c_werror_flag" ||
11203 test ! -s conftest.err
11204 } && test -s conftest.$ac_objext; then
11205 ac_header_compiler=yes
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 ac_header_compiler=no
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11215 echo "${ECHO_T}$ac_header_compiler" >&6; }
11217 # Is the header present?
11218 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
11219 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
11220 cat >conftest.$ac_ext <<_ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 #include <GL/osmesa.h>
11228 if { (ac_try="$ac_cpp conftest.$ac_ext"
11229 case "(($ac_try" in
11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11236 grep -v '^ *+' conftest.er1 >conftest.err
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } >/dev/null && {
11241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11242 test ! -s conftest.err
11244 ac_header_preproc=yes
11246 echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11249 ac_header_preproc=no
11252 rm -f conftest.err conftest.$ac_ext
11253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11254 echo "${ECHO_T}$ac_header_preproc" >&6; }
11256 # So? What about this header?
11257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11259 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
11260 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
11262 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
11263 ac_header_preproc=yes
11266 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
11267 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
11269 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
11271 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
11272 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
11273 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
11275 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
11277 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
11281 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11282 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11283 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 ac_cv_header_GL_osmesa_h=$ac_header_preproc
11288 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11289 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11292 if test $ac_cv_header_GL_osmesa_h = yes; then
11295 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
11296 See \`config.log' for more details." >&5
11297 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
11298 See \`config.log' for more details." >&2;}
11299 { (exit 1); exit 1; }; }
11304 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
11306 cat >>confdefs.h <<\_ACEOF
11307 #define HAVE_OSMESA 1
11313 if test "x$APPLE_BUILD" != 'xyes'; then
11316 { echo "$as_me:$LINENO: checking for LIBGL" >&5
11317 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
11319 if test -n "$LIBGL_CFLAGS"; then
11320 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
11321 elif test -n "$PKG_CONFIG"; then
11322 if test -n "$PKG_CONFIG" && \
11323 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11324 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; then
11328 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
11335 if test -n "$LIBGL_LIBS"; then
11336 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
11337 elif test -n "$PKG_CONFIG"; then
11338 if test -n "$PKG_CONFIG" && \
11339 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11340 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; then
11344 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
11354 if test $pkg_failed = yes; then
11356 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11357 _pkg_short_errors_supported=yes
11359 _pkg_short_errors_supported=no
11361 if test $_pkg_short_errors_supported = yes; then
11362 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
11364 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
11366 # Put the nasty error message in config.log where it belongs
11367 echo "$LIBGL_PKG_ERRORS" >&5
11369 { { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
11373 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11374 installed software in a non-standard prefix.
11376 Alternatively, you may set the environment variables LIBGL_CFLAGS
11377 and LIBGL_LIBS to avoid the need to call pkg-config.
11378 See the pkg-config man page for more details.
11380 echo "$as_me: error: Package requirements (gl ) were not met:
11384 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11385 installed software in a non-standard prefix.
11387 Alternatively, you may set the environment variables LIBGL_CFLAGS
11388 and LIBGL_LIBS to avoid the need to call pkg-config.
11389 See the pkg-config man page for more details.
11391 { (exit 1); exit 1; }; }
11392 elif test $pkg_failed = untried; then
11393 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11394 is in your PATH or set the PKG_CONFIG environment variable to the full
11395 path to pkg-config.
11397 Alternatively, you may set the environment variables LIBGL_CFLAGS
11398 and LIBGL_LIBS to avoid the need to call pkg-config.
11399 See the pkg-config man page for more details.
11401 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11402 See \`config.log' for more details." >&5
11403 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11404 is in your PATH or set the PKG_CONFIG environment variable to the full
11405 path to pkg-config.
11407 Alternatively, you may set the environment variables LIBGL_CFLAGS
11408 and LIBGL_LIBS to avoid the need to call pkg-config.
11409 See the pkg-config man page for more details.
11411 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11412 See \`config.log' for more details." >&2;}
11413 { (exit 1); exit 1; }; }
11415 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
11416 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
11417 { echo "$as_me:$LINENO: result: yes" >&5
11418 echo "${ECHO_T}yes" >&6; }
11421 LIBS="$LIBS $LIBGL_LIBS";
11422 CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
11424 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
11425 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
11426 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 cat >conftest.$ac_ext <<_ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h. */
11435 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
11436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11437 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
11439 /* System header to define __stub macros and hopefully few prototypes,
11440 which can conflict with char NSOpenGLGetVersion (); below.
11441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11442 <limits.h> exists even on freestanding compilers. */
11445 # include <limits.h>
11447 # include <assert.h>
11450 #undef NSOpenGLGetVersion
11452 /* Override any GCC internal prototype to avoid an error.
11453 Use char because int might match the return type of a GCC
11454 builtin and then its argument prototype would still apply. */
11458 char NSOpenGLGetVersion ();
11459 /* The GNU C library defines this for functions which it implements
11460 to always fail with ENOSYS. Some functions are actually named
11461 something starting with __ and the normal name is an alias. */
11462 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
11469 return NSOpenGLGetVersion ();
11474 rm -f conftest.$ac_objext conftest$ac_exeext
11475 if { (ac_try="$ac_link"
11476 case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_link") 2>conftest.er1
11483 grep -v '^ *+' conftest.er1 >conftest.err
11485 cat conftest.err >&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } && {
11488 test -z "$ac_c_werror_flag" ||
11489 test ! -s conftest.err
11490 } && test -s conftest$ac_exeext &&
11491 $as_test_x conftest$ac_exeext; then
11492 ac_cv_func_NSOpenGLGetVersion=yes
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 ac_cv_func_NSOpenGLGetVersion=no
11500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11501 conftest$ac_exeext conftest.$ac_ext
11503 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
11504 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
11505 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
11508 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
11510 cat >>confdefs.h <<\_ACEOF
11511 #define HAVE_NSGL 1
11518 if test "x$HAVE_GTK_X11" = "xyes"; then
11519 if test "x$APPLE_BUILD" = "xyes"; then
11520 LIBS="$LIBS -L/usr/X11/lib -lGL"
11522 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
11523 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
11524 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 cat >conftest.$ac_ext <<_ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
11534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11535 #define glXQueryVersion innocuous_glXQueryVersion
11537 /* System header to define __stub macros and hopefully few prototypes,
11538 which can conflict with char glXQueryVersion (); below.
11539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11540 <limits.h> exists even on freestanding compilers. */
11543 # include <limits.h>
11545 # include <assert.h>
11548 #undef glXQueryVersion
11550 /* Override any GCC internal prototype to avoid an error.
11551 Use char because int might match the return type of a GCC
11552 builtin and then its argument prototype would still apply. */
11556 char glXQueryVersion ();
11557 /* The GNU C library defines this for functions which it implements
11558 to always fail with ENOSYS. Some functions are actually named
11559 something starting with __ and the normal name is an alias. */
11560 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
11567 return glXQueryVersion ();
11572 rm -f conftest.$ac_objext conftest$ac_exeext
11573 if { (ac_try="$ac_link"
11574 case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_link") 2>conftest.er1
11581 grep -v '^ *+' conftest.er1 >conftest.err
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } && {
11586 test -z "$ac_c_werror_flag" ||
11587 test ! -s conftest.err
11588 } && test -s conftest$ac_exeext &&
11589 $as_test_x conftest$ac_exeext; then
11590 ac_cv_func_glXQueryVersion=yes
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11595 ac_cv_func_glXQueryVersion=no
11598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11599 conftest$ac_exeext conftest.$ac_ext
11601 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
11602 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
11603 if test $ac_cv_func_glXQueryVersion = yes; then
11606 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
11608 cat >>confdefs.h <<\_ACEOF
11624 if test "x$HAVE_OSMESA" = "xyes"; then
11626 VIDEO_OSMESA_FALSE='#'
11628 VIDEO_OSMESA_TRUE='#'
11629 VIDEO_OSMESA_FALSE=
11634 if test "x$HAVE_GLX" = "xyes"; then
11636 VIDEO_GLX_FALSE='#'
11644 if test "x$HAVE_NSGL" = "xyes"; then
11646 VIDEO_NSGL_FALSE='#'
11648 VIDEO_NSGL_TRUE='#'
11653 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
11654 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
11655 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 cat >conftest.$ac_ext <<_ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
11665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11666 #define glGenFramebuffers innocuous_glGenFramebuffers
11668 /* System header to define __stub macros and hopefully few prototypes,
11669 which can conflict with char glGenFramebuffers (); below.
11670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671 <limits.h> exists even on freestanding compilers. */
11674 # include <limits.h>
11676 # include <assert.h>
11679 #undef glGenFramebuffers
11681 /* Override any GCC internal prototype to avoid an error.
11682 Use char because int might match the return type of a GCC
11683 builtin and then its argument prototype would still apply. */
11687 char glGenFramebuffers ();
11688 /* The GNU C library defines this for functions which it implements
11689 to always fail with ENOSYS. Some functions are actually named
11690 something starting with __ and the normal name is an alias. */
11691 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
11698 return glGenFramebuffers ();
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (ac_try="$ac_link"
11705 case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_link") 2>conftest.er1
11712 grep -v '^ *+' conftest.er1 >conftest.err
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } && {
11717 test -z "$ac_c_werror_flag" ||
11718 test ! -s conftest.err
11719 } && test -s conftest$ac_exeext &&
11720 $as_test_x conftest$ac_exeext; then
11721 ac_cv_func_glGenFramebuffers=yes
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11726 ac_cv_func_glGenFramebuffers=no
11729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11730 conftest$ac_exeext conftest.$ac_ext
11732 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
11733 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
11734 if test $ac_cv_func_glGenFramebuffers = yes; then
11736 cat >>confdefs.h <<\_ACEOF
11737 #define HAVE_OPENGL_FBO 1
11742 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
11743 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
11744 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 cat >conftest.$ac_ext <<_ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11753 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
11754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11755 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
11757 /* System header to define __stub macros and hopefully few prototypes,
11758 which can conflict with char glGenFramebuffersEXT (); below.
11759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11760 <limits.h> exists even on freestanding compilers. */
11763 # include <limits.h>
11765 # include <assert.h>
11768 #undef glGenFramebuffersEXT
11770 /* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
11776 char glGenFramebuffersEXT ();
11777 /* The GNU C library defines this for functions which it implements
11778 to always fail with ENOSYS. Some functions are actually named
11779 something starting with __ and the normal name is an alias. */
11780 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
11787 return glGenFramebuffersEXT ();
11792 rm -f conftest.$ac_objext conftest$ac_exeext
11793 if { (ac_try="$ac_link"
11794 case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_link") 2>conftest.er1
11801 grep -v '^ *+' conftest.er1 >conftest.err
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } && {
11806 test -z "$ac_c_werror_flag" ||
11807 test ! -s conftest.err
11808 } && test -s conftest$ac_exeext &&
11809 $as_test_x conftest$ac_exeext; then
11810 ac_cv_func_glGenFramebuffersEXT=yes
11812 echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11815 ac_cv_func_glGenFramebuffersEXT=no
11818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11819 conftest$ac_exeext conftest.$ac_ext
11821 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
11822 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
11823 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
11825 cat >>confdefs.h <<\_ACEOF
11826 #define HAVE_OPENGL_FBO_EXT 1
11831 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
11832 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
11833 if test "${ac_cv_func_glCreateShader+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11836 cat >conftest.$ac_ext <<_ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
11843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11844 #define glCreateShader innocuous_glCreateShader
11846 /* System header to define __stub macros and hopefully few prototypes,
11847 which can conflict with char glCreateShader (); below.
11848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11849 <limits.h> exists even on freestanding compilers. */
11852 # include <limits.h>
11854 # include <assert.h>
11857 #undef glCreateShader
11859 /* Override any GCC internal prototype to avoid an error.
11860 Use char because int might match the return type of a GCC
11861 builtin and then its argument prototype would still apply. */
11865 char glCreateShader ();
11866 /* The GNU C library defines this for functions which it implements
11867 to always fail with ENOSYS. Some functions are actually named
11868 something starting with __ and the normal name is an alias. */
11869 #if defined __stub_glCreateShader || defined __stub___glCreateShader
11876 return glCreateShader ();
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (ac_try="$ac_link"
11883 case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_link") 2>conftest.er1
11890 grep -v '^ *+' conftest.er1 >conftest.err
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } && {
11895 test -z "$ac_c_werror_flag" ||
11896 test ! -s conftest.err
11897 } && test -s conftest$ac_exeext &&
11898 $as_test_x conftest$ac_exeext; then
11899 ac_cv_func_glCreateShader=yes
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 ac_cv_func_glCreateShader=no
11907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11908 conftest$ac_exeext conftest.$ac_ext
11910 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
11911 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
11912 if test $ac_cv_func_glCreateShader = yes; then
11914 cat >>confdefs.h <<\_ACEOF
11915 #define HAVE_OPENGL_SHADER 1
11920 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
11921 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
11922 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 cat >conftest.$ac_ext <<_ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
11932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11933 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
11935 /* System header to define __stub macros and hopefully few prototypes,
11936 which can conflict with char glCreateShaderObjectARB (); below.
11937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11938 <limits.h> exists even on freestanding compilers. */
11941 # include <limits.h>
11943 # include <assert.h>
11946 #undef glCreateShaderObjectARB
11948 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11954 char glCreateShaderObjectARB ();
11955 /* The GNU C library defines this for functions which it implements
11956 to always fail with ENOSYS. Some functions are actually named
11957 something starting with __ and the normal name is an alias. */
11958 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
11965 return glCreateShaderObjectARB ();
11970 rm -f conftest.$ac_objext conftest$ac_exeext
11971 if { (ac_try="$ac_link"
11972 case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_link") 2>conftest.er1
11979 grep -v '^ *+' conftest.er1 >conftest.err
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } && {
11984 test -z "$ac_c_werror_flag" ||
11985 test ! -s conftest.err
11986 } && test -s conftest$ac_exeext &&
11987 $as_test_x conftest$ac_exeext; then
11988 ac_cv_func_glCreateShaderObjectARB=yes
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 ac_cv_func_glCreateShaderObjectARB=no
11996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11997 conftest$ac_exeext conftest.$ac_ext
11999 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
12000 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
12001 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
12003 cat >>confdefs.h <<\_ACEOF
12004 #define HAVE_OPENGL_SHADER_ARB 1
12009 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
12010 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
12011 if test "${ac_cv_func_glClampColorARB+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12014 cat >conftest.$ac_ext <<_ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h. */
12020 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
12021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12022 #define glClampColorARB innocuous_glClampColorARB
12024 /* System header to define __stub macros and hopefully few prototypes,
12025 which can conflict with char glClampColorARB (); below.
12026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12027 <limits.h> exists even on freestanding compilers. */
12030 # include <limits.h>
12032 # include <assert.h>
12035 #undef glClampColorARB
12037 /* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
12043 char glClampColorARB ();
12044 /* The GNU C library defines this for functions which it implements
12045 to always fail with ENOSYS. Some functions are actually named
12046 something starting with __ and the normal name is an alias. */
12047 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
12054 return glClampColorARB ();
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (ac_try="$ac_link"
12061 case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_link") 2>conftest.er1
12068 grep -v '^ *+' conftest.er1 >conftest.err
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } && {
12073 test -z "$ac_c_werror_flag" ||
12074 test ! -s conftest.err
12075 } && test -s conftest$ac_exeext &&
12076 $as_test_x conftest$ac_exeext; then
12077 ac_cv_func_glClampColorARB=yes
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 ac_cv_func_glClampColorARB=no
12085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12086 conftest$ac_exeext conftest.$ac_ext
12088 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
12089 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
12090 if test $ac_cv_func_glClampColorARB = yes; then
12092 cat >>confdefs.h <<\_ACEOF
12093 #define HAVE_OPENGL_CLAMP_COLOR 1
12098 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
12099 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
12100 if test "${ac_cv_func_glClearDepthf+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 cat >conftest.$ac_ext <<_ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
12110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12111 #define glClearDepthf innocuous_glClearDepthf
12113 /* System header to define __stub macros and hopefully few prototypes,
12114 which can conflict with char glClearDepthf (); below.
12115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12116 <limits.h> exists even on freestanding compilers. */
12119 # include <limits.h>
12121 # include <assert.h>
12124 #undef glClearDepthf
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12132 char glClearDepthf ();
12133 /* The GNU C library defines this for functions which it implements
12134 to always fail with ENOSYS. Some functions are actually named
12135 something starting with __ and the normal name is an alias. */
12136 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
12143 return glClearDepthf ();
12148 rm -f conftest.$ac_objext conftest$ac_exeext
12149 if { (ac_try="$ac_link"
12150 case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_link") 2>conftest.er1
12157 grep -v '^ *+' conftest.er1 >conftest.err
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } && {
12162 test -z "$ac_c_werror_flag" ||
12163 test ! -s conftest.err
12164 } && test -s conftest$ac_exeext &&
12165 $as_test_x conftest$ac_exeext; then
12166 ac_cv_func_glClearDepthf=yes
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 ac_cv_func_glClearDepthf=no
12174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12175 conftest$ac_exeext conftest.$ac_ext
12177 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
12178 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
12179 if test $ac_cv_func_glClearDepthf = yes; then
12181 cat >>confdefs.h <<\_ACEOF
12182 #define HAVE_OPENGL_CLEAR_DEPTHF 1
12187 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
12188 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
12189 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 cat >conftest.$ac_ext <<_ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12198 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
12199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12200 #define glAreTexturesResident innocuous_glAreTexturesResident
12202 /* System header to define __stub macros and hopefully few prototypes,
12203 which can conflict with char glAreTexturesResident (); below.
12204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12205 <limits.h> exists even on freestanding compilers. */
12208 # include <limits.h>
12210 # include <assert.h>
12213 #undef glAreTexturesResident
12215 /* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12221 char glAreTexturesResident ();
12222 /* The GNU C library defines this for functions which it implements
12223 to always fail with ENOSYS. Some functions are actually named
12224 something starting with __ and the normal name is an alias. */
12225 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
12232 return glAreTexturesResident ();
12237 rm -f conftest.$ac_objext conftest$ac_exeext
12238 if { (ac_try="$ac_link"
12239 case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_link") 2>conftest.er1
12246 grep -v '^ *+' conftest.er1 >conftest.err
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } && {
12251 test -z "$ac_c_werror_flag" ||
12252 test ! -s conftest.err
12253 } && test -s conftest$ac_exeext &&
12254 $as_test_x conftest$ac_exeext; then
12255 ac_cv_func_glAreTexturesResident=yes
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12260 ac_cv_func_glAreTexturesResident=no
12263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12264 conftest$ac_exeext conftest.$ac_ext
12266 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
12267 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
12268 if test $ac_cv_func_glAreTexturesResident = yes; then
12270 cat >>confdefs.h <<\_ACEOF
12271 #define HAVE_OPENGL_TEX_RESIDENT 1
12276 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
12277 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
12278 if test "${ac_cv_func_glTexEnvi+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 cat >conftest.$ac_ext <<_ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12287 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
12288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12289 #define glTexEnvi innocuous_glTexEnvi
12291 /* System header to define __stub macros and hopefully few prototypes,
12292 which can conflict with char glTexEnvi (); below.
12293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12294 <limits.h> exists even on freestanding compilers. */
12297 # include <limits.h>
12299 # include <assert.h>
12304 /* Override any GCC internal prototype to avoid an error.
12305 Use char because int might match the return type of a GCC
12306 builtin and then its argument prototype would still apply. */
12311 /* The GNU C library defines this for functions which it implements
12312 to always fail with ENOSYS. Some functions are actually named
12313 something starting with __ and the normal name is an alias. */
12314 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
12321 return glTexEnvi ();
12326 rm -f conftest.$ac_objext conftest$ac_exeext
12327 if { (ac_try="$ac_link"
12328 case "(($ac_try" in
12329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330 *) ac_try_echo=$ac_try;;
12332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333 (eval "$ac_link") 2>conftest.er1
12335 grep -v '^ *+' conftest.er1 >conftest.err
12337 cat conftest.err >&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } && {
12340 test -z "$ac_c_werror_flag" ||
12341 test ! -s conftest.err
12342 } && test -s conftest$ac_exeext &&
12343 $as_test_x conftest$ac_exeext; then
12344 ac_cv_func_glTexEnvi=yes
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 ac_cv_func_glTexEnvi=no
12352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12353 conftest$ac_exeext conftest.$ac_ext
12355 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
12356 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
12357 if test $ac_cv_func_glTexEnvi = yes; then
12359 cat >>confdefs.h <<\_ACEOF
12360 #define HAVE_OPENGL_FIXEDFUNC 1
12369 if test "x$enable_translator" != "xno"; then
12371 i386|i486|i586|i686|x86_64)
12372 SH4_TRANSLATOR="x86"
12374 cat >>confdefs.h <<_ACEOF
12375 #define SH4_TRANSLATOR TARGET_X86
12382 if test "$SH4_TRANSLATOR" = "x86"; then
12384 BUILD_SH4X86_FALSE='#'
12386 BUILD_SH4X86_TRUE='#'
12387 BUILD_SH4X86_FALSE=
12391 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12392 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12393 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12394 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12398 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12400 # Is the header compilable?
12401 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
12402 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
12403 cat >conftest.$ac_ext <<_ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 $ac_includes_default
12410 #include <CoreAudio/CoreAudio.h>
12412 rm -f conftest.$ac_objext
12413 if { (ac_try="$ac_compile"
12414 case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_compile") 2>conftest.er1
12421 grep -v '^ *+' conftest.er1 >conftest.err
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } && {
12426 test -z "$ac_c_werror_flag" ||
12427 test ! -s conftest.err
12428 } && test -s conftest.$ac_objext; then
12429 ac_header_compiler=yes
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 ac_header_compiler=no
12437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12439 echo "${ECHO_T}$ac_header_compiler" >&6; }
12441 # Is the header present?
12442 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
12443 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
12444 cat >conftest.$ac_ext <<_ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 #include <CoreAudio/CoreAudio.h>
12452 if { (ac_try="$ac_cpp conftest.$ac_ext"
12453 case "(($ac_try" in
12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12460 grep -v '^ *+' conftest.er1 >conftest.err
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } >/dev/null && {
12465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12466 test ! -s conftest.err
12468 ac_header_preproc=yes
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 ac_header_preproc=no
12476 rm -f conftest.err conftest.$ac_ext
12477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12478 echo "${ECHO_T}$ac_header_preproc" >&6; }
12480 # So? What about this header?
12481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12483 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12484 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
12486 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
12487 ac_header_preproc=yes
12490 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
12491 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
12493 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
12494 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
12495 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
12496 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
12497 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12498 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
12499 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
12501 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
12505 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12506 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12507 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
12512 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12513 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12516 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
12518 HAVE_CORE_AUDIO=yes
12519 LIBS="$LIBS -framework CoreAudio"
12520 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
12522 cat >>confdefs.h <<\_ACEOF
12523 #define HAVE_CORE_AUDIO 1
12533 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
12535 AUDIO_OSX_FALSE='#'
12542 if test "x$with_sdl" != "xno"; then
12545 { echo "$as_me:$LINENO: checking for SDL" >&5
12546 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
12548 if test -n "$SDL_CFLAGS"; then
12549 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12550 elif test -n "$PKG_CONFIG"; then
12551 if test -n "$PKG_CONFIG" && \
12552 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
12553 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; then
12557 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
12564 if test -n "$SDL_LIBS"; then
12565 pkg_cv_SDL_LIBS="$SDL_LIBS"
12566 elif test -n "$PKG_CONFIG"; then
12567 if test -n "$PKG_CONFIG" && \
12568 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
12569 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; then
12573 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
12583 if test $pkg_failed = yes; then
12585 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12586 _pkg_short_errors_supported=yes
12588 _pkg_short_errors_supported=no
12590 if test $_pkg_short_errors_supported = yes; then
12591 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
12593 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
12595 # Put the nasty error message in config.log where it belongs
12596 echo "$SDL_PKG_ERRORS" >&5
12598 { echo "$as_me:$LINENO: result: no" >&5
12599 echo "${ECHO_T}no" >&6; }
12601 if test "x$with_sdl" = "xyes"; then
12602 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
12603 See \`config.log' for more details." >&5
12604 echo "$as_me: error: \"SDL libraries could not be found (but were required)
12605 See \`config.log' for more details." >&2;}
12606 { (exit 1); exit 1; }; }
12609 elif test $pkg_failed = untried; then
12611 if test "x$with_sdl" = "xyes"; then
12612 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
12613 See \`config.log' for more details." >&5
12614 echo "$as_me: error: \"SDL libraries could not be found (but were required)
12615 See \`config.log' for more details." >&2;}
12616 { (exit 1); exit 1; }; }
12620 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12621 SDL_LIBS=$pkg_cv_SDL_LIBS
12622 { echo "$as_me:$LINENO: result: yes" >&5
12623 echo "${ECHO_T}yes" >&6; }
12626 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
12628 cat >>confdefs.h <<\_ACEOF
12637 if test "$HAVE_SDL" = 'yes' ; then
12639 AUDIO_SDL_FALSE='#'
12646 if test "x$with_pulse" != "xno"; then
12649 { echo "$as_me:$LINENO: checking for PULSE" >&5
12650 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
12652 if test -n "$PULSE_CFLAGS"; then
12653 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
12654 elif test -n "$PKG_CONFIG"; then
12655 if test -n "$PKG_CONFIG" && \
12656 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
12657 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; then
12661 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
12668 if test -n "$PULSE_LIBS"; then
12669 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
12670 elif test -n "$PKG_CONFIG"; then
12671 if test -n "$PKG_CONFIG" && \
12672 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
12673 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; then
12677 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
12687 if test $pkg_failed = yes; then
12689 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12690 _pkg_short_errors_supported=yes
12692 _pkg_short_errors_supported=no
12694 if test $_pkg_short_errors_supported = yes; then
12695 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
12697 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
12699 # Put the nasty error message in config.log where it belongs
12700 echo "$PULSE_PKG_ERRORS" >&5
12702 { echo "$as_me:$LINENO: result: no" >&5
12703 echo "${ECHO_T}no" >&6; }
12705 if test "x$with_pulse" = "xyes"; then
12706 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
12707 See \`config.log' for more details." >&5
12708 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
12709 See \`config.log' for more details." >&2;}
12710 { (exit 1); exit 1; }; }
12713 elif test $pkg_failed = untried; then
12715 if test "x$with_pulse" = "xyes"; then
12716 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
12717 See \`config.log' for more details." >&5
12718 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
12719 See \`config.log' for more details." >&2;}
12720 { (exit 1); exit 1; }; }
12724 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
12725 PULSE_LIBS=$pkg_cv_PULSE_LIBS
12726 { echo "$as_me:$LINENO: result: yes" >&5
12727 echo "${ECHO_T}yes" >&6; }
12730 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
12732 cat >>confdefs.h <<\_ACEOF
12733 #define HAVE_PULSE 1
12741 if test "$HAVE_PULSE" = 'yes' ; then
12743 AUDIO_PULSE_FALSE='#'
12745 AUDIO_PULSE_TRUE='#'
12750 if test "x$with_esd" != "xno"; then
12753 { echo "$as_me:$LINENO: checking for ESOUND" >&5
12754 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
12756 if test -n "$ESOUND_CFLAGS"; then
12757 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
12758 elif test -n "$PKG_CONFIG"; then
12759 if test -n "$PKG_CONFIG" && \
12760 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
12761 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; then
12765 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
12772 if test -n "$ESOUND_LIBS"; then
12773 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
12774 elif test -n "$PKG_CONFIG"; then
12775 if test -n "$PKG_CONFIG" && \
12776 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
12777 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; then
12781 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
12791 if test $pkg_failed = yes; then
12793 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12794 _pkg_short_errors_supported=yes
12796 _pkg_short_errors_supported=no
12798 if test $_pkg_short_errors_supported = yes; then
12799 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
12801 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
12803 # Put the nasty error message in config.log where it belongs
12804 echo "$ESOUND_PKG_ERRORS" >&5
12806 { echo "$as_me:$LINENO: result: no" >&5
12807 echo "${ECHO_T}no" >&6; }
12809 if test "x$with_esd" = "xyes"; then
12810 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
12811 See \`config.log' for more details." >&5
12812 echo "$as_me: error: ESounD audio package could not be found (but was required)
12813 See \`config.log' for more details." >&2;}
12814 { (exit 1); exit 1; }; }
12817 elif test $pkg_failed = untried; then
12819 if test "x$with_esd" = "xyes"; then
12820 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
12821 See \`config.log' for more details." >&5
12822 echo "$as_me: error: ESounD audio package could not be found (but was required)
12823 See \`config.log' for more details." >&2;}
12824 { (exit 1); exit 1; }; }
12828 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
12829 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
12830 { echo "$as_me:$LINENO: result: yes" >&5
12831 echo "${ECHO_T}yes" >&6; }
12834 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
12836 cat >>confdefs.h <<\_ACEOF
12837 #define HAVE_ESOUND 1
12845 if test "$HAVE_ESOUND" = 'yes' ; then
12847 AUDIO_ESOUND_FALSE='#'
12849 AUDIO_ESOUND_TRUE='#'
12850 AUDIO_ESOUND_FALSE=
12856 { echo "$as_me:$LINENO: checking for ALSA" >&5
12857 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
12859 if test -n "$ALSA_CFLAGS"; then
12860 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
12861 elif test -n "$PKG_CONFIG"; then
12862 if test -n "$PKG_CONFIG" && \
12863 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
12864 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; then
12868 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
12875 if test -n "$ALSA_LIBS"; then
12876 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
12877 elif test -n "$PKG_CONFIG"; then
12878 if test -n "$PKG_CONFIG" && \
12879 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
12880 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; then
12884 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
12894 if test $pkg_failed = yes; then
12896 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12897 _pkg_short_errors_supported=yes
12899 _pkg_short_errors_supported=no
12901 if test $_pkg_short_errors_supported = yes; then
12902 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
12904 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
12906 # Put the nasty error message in config.log where it belongs
12907 echo "$ALSA_PKG_ERRORS" >&5
12909 { echo "$as_me:$LINENO: result: no" >&5
12910 echo "${ECHO_T}no" >&6; }
12912 elif test $pkg_failed = untried; then
12915 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
12916 ALSA_LIBS=$pkg_cv_ALSA_LIBS
12917 { echo "$as_me:$LINENO: result: yes" >&5
12918 echo "${ECHO_T}yes" >&6; }
12921 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
12923 cat >>confdefs.h <<\_ACEOF
12924 #define HAVE_ALSA 1
12930 if test "$HAVE_ALSA" = 'yes' ; then
12932 AUDIO_ALSA_FALSE='#'
12934 AUDIO_ALSA_TRUE='#'
12940 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
12941 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
12942 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
12943 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
12944 echo $ECHO_N "(cached) $ECHO_C" >&6
12946 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
12947 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
12949 # Is the header compilable?
12950 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
12951 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
12952 cat >conftest.$ac_ext <<_ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12958 $ac_includes_default
12959 #include <linux/cdrom.h>
12961 rm -f conftest.$ac_objext
12962 if { (ac_try="$ac_compile"
12963 case "(($ac_try" in
12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965 *) ac_try_echo=$ac_try;;
12967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968 (eval "$ac_compile") 2>conftest.er1
12970 grep -v '^ *+' conftest.er1 >conftest.err
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } && {
12975 test -z "$ac_c_werror_flag" ||
12976 test ! -s conftest.err
12977 } && test -s conftest.$ac_objext; then
12978 ac_header_compiler=yes
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12983 ac_header_compiler=no
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12988 echo "${ECHO_T}$ac_header_compiler" >&6; }
12990 # Is the header present?
12991 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
12992 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
12993 cat >conftest.$ac_ext <<_ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
12999 #include <linux/cdrom.h>
13001 if { (ac_try="$ac_cpp conftest.$ac_ext"
13002 case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13009 grep -v '^ *+' conftest.er1 >conftest.err
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } >/dev/null && {
13014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13015 test ! -s conftest.err
13017 ac_header_preproc=yes
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13022 ac_header_preproc=no
13025 rm -f conftest.err conftest.$ac_ext
13026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13027 echo "${ECHO_T}$ac_header_preproc" >&6; }
13029 # So? What about this header?
13030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13032 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
13033 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13034 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
13035 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
13036 ac_header_preproc=yes
13039 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
13040 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
13041 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
13042 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
13043 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
13044 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
13045 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
13046 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
13047 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
13048 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
13049 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
13050 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
13054 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13055 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13056 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 ac_cv_header_linux_cdrom_h=$ac_header_preproc
13061 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13062 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13065 if test $ac_cv_header_linux_cdrom_h = yes; then
13068 { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
13069 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
13070 old_CFLAGS="$CFLAGS"
13071 CFLAGS="$CFLAGS $STDCFLAG"
13072 cat >conftest.$ac_ext <<_ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13078 #include <linux/cdrom.h>
13087 rm -f conftest.$ac_objext
13088 if { (ac_try="$ac_compile"
13089 case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_compile") 2>conftest.er1
13096 grep -v '^ *+' conftest.er1 >conftest.err
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } && {
13101 test -z "$ac_c_werror_flag" ||
13102 test ! -s conftest.err
13103 } && test -s conftest.$ac_objext; then
13104 { echo "$as_me:$LINENO: result: Yes" >&5
13105 echo "${ECHO_T}Yes" >&6; }
13107 echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13111 { echo "$as_me:$LINENO: result: No" >&5
13112 echo "${ECHO_T}No" >&6; }
13113 STDCFLAG="-std=gnu99"
13116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13117 CFLAGS="$old_CFLAGS"
13124 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13125 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13126 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13127 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13130 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13131 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13133 # Is the header compilable?
13134 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
13135 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
13136 cat >conftest.$ac_ext <<_ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13142 $ac_includes_default
13143 #include <IOKit/IOKitLib.h>
13145 rm -f conftest.$ac_objext
13146 if { (ac_try="$ac_compile"
13147 case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_compile") 2>conftest.er1
13154 grep -v '^ *+' conftest.er1 >conftest.err
13156 cat conftest.err >&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } && {
13159 test -z "$ac_c_werror_flag" ||
13160 test ! -s conftest.err
13161 } && test -s conftest.$ac_objext; then
13162 ac_header_compiler=yes
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13167 ac_header_compiler=no
13170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13172 echo "${ECHO_T}$ac_header_compiler" >&6; }
13174 # Is the header present?
13175 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
13176 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
13177 cat >conftest.$ac_ext <<_ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13183 #include <IOKit/IOKitLib.h>
13185 if { (ac_try="$ac_cpp conftest.$ac_ext"
13186 case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13193 grep -v '^ *+' conftest.er1 >conftest.err
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } >/dev/null && {
13198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13199 test ! -s conftest.err
13201 ac_header_preproc=yes
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13206 ac_header_preproc=no
13209 rm -f conftest.err conftest.$ac_ext
13210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13211 echo "${ECHO_T}$ac_header_preproc" >&6; }
13213 # So? What about this header?
13214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13216 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13217 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13218 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
13219 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
13220 ac_header_preproc=yes
13223 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
13224 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
13225 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
13226 echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
13227 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
13228 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
13229 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
13230 echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13231 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
13232 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
13234 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
13238 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13239 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13240 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
13245 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13246 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13249 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
13252 LIBS="$LIBS -framework IOKit"
13260 if test "x$CDROM_DRIVER" = "xlinux"; then
13262 CDROM_LINUX_FALSE='#'
13264 CDROM_LINUX_TRUE='#'
13270 if test "x$CDROM_DRIVER" = "xosx"; then
13272 CDROM_OSX_FALSE='#'
13280 if test "x$CDROM_DRIVER" = "x"; then
13282 CDROM_NONE_FALSE='#'
13284 CDROM_NONE_TRUE='#'
13288 if test "x$CDROM_DRIVER" = "xlinux"; then
13290 cat >>confdefs.h <<\_ACEOF
13291 #define HAVE_LINUX_CDROM 1
13296 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13297 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13298 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13299 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13302 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13303 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13305 # Is the header compilable?
13306 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
13307 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
13308 cat >conftest.$ac_ext <<_ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13314 $ac_includes_default
13315 #include <linux/joystick.h>
13317 rm -f conftest.$ac_objext
13318 if { (ac_try="$ac_compile"
13319 case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_compile") 2>conftest.er1
13326 grep -v '^ *+' conftest.er1 >conftest.err
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } && {
13331 test -z "$ac_c_werror_flag" ||
13332 test ! -s conftest.err
13333 } && test -s conftest.$ac_objext; then
13334 ac_header_compiler=yes
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13339 ac_header_compiler=no
13342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13344 echo "${ECHO_T}$ac_header_compiler" >&6; }
13346 # Is the header present?
13347 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
13348 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
13349 cat >conftest.$ac_ext <<_ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13355 #include <linux/joystick.h>
13357 if { (ac_try="$ac_cpp conftest.$ac_ext"
13358 case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13365 grep -v '^ *+' conftest.er1 >conftest.err
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } >/dev/null && {
13370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13371 test ! -s conftest.err
13373 ac_header_preproc=yes
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 ac_header_preproc=no
13381 rm -f conftest.err conftest.$ac_ext
13382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13383 echo "${ECHO_T}$ac_header_preproc" >&6; }
13385 # So? What about this header?
13386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13388 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
13389 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13390 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
13391 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
13392 ac_header_preproc=yes
13395 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
13396 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
13397 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
13398 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
13399 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
13400 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
13401 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
13402 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
13403 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
13404 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
13405 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
13406 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
13410 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13411 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13412 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 ac_cv_header_linux_joystick_h=$ac_header_preproc
13417 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13418 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13421 if test $ac_cv_header_linux_joystick_h = yes; then
13423 HAVE_LINUX_JOYSTICK_H=yes
13425 cat >>confdefs.h <<\_ACEOF
13426 #define HAVE_LINUX_JOYSTICK 1
13429 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
13431 echo "Linux Joystick support not found, building without it."
13437 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
13439 JOY_LINUX_FALSE='#'
13446 if test "x$with_lirc" != "xno"; then
13447 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13448 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
13449 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
13450 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
13454 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
13456 # Is the header compilable?
13457 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
13458 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
13459 cat >conftest.$ac_ext <<_ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13465 $ac_includes_default
13466 #include <lirc/lirc_client.h>
13468 rm -f conftest.$ac_objext
13469 if { (ac_try="$ac_compile"
13470 case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_compile") 2>conftest.er1
13477 grep -v '^ *+' conftest.er1 >conftest.err
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } && {
13482 test -z "$ac_c_werror_flag" ||
13483 test ! -s conftest.err
13484 } && test -s conftest.$ac_objext; then
13485 ac_header_compiler=yes
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13490 ac_header_compiler=no
13493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13495 echo "${ECHO_T}$ac_header_compiler" >&6; }
13497 # Is the header present?
13498 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
13499 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
13500 cat >conftest.$ac_ext <<_ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13506 #include <lirc/lirc_client.h>
13508 if { (ac_try="$ac_cpp conftest.$ac_ext"
13509 case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13516 grep -v '^ *+' conftest.er1 >conftest.err
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } >/dev/null && {
13521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13522 test ! -s conftest.err
13524 ac_header_preproc=yes
13526 echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13529 ac_header_preproc=no
13532 rm -f conftest.err conftest.$ac_ext
13533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13534 echo "${ECHO_T}$ac_header_preproc" >&6; }
13536 # So? What about this header?
13537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13539 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
13540 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13541 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
13542 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
13543 ac_header_preproc=yes
13546 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
13547 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
13549 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
13551 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
13553 echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
13555 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
13556 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
13557 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
13561 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
13562 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
13563 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
13568 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
13569 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
13572 if test $ac_cv_header_lirc_lirc_client_h = yes; then
13574 HAVE_LIRC_CLIENT_H=yes
13576 cat >>confdefs.h <<\_ACEOF
13577 #define HAVE_LIRC 1
13580 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
13583 echo "LIRC support not found, building without it."
13590 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
13592 INPUT_LIRC_FALSE='#'
13594 INPUT_LIRC_TRUE='#'
13599 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
13600 set dummy sh-elf-gcc; ac_word=$2
13601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13603 if test "${ac_cv_path_SHCC+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
13611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13612 for as_dir in $PATH
13615 test -z "$as_dir" && as_dir=.
13616 for ac_exec_ext in '' $ac_executable_extensions; do
13617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13618 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
13619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13629 SHCC=$ac_cv_path_SHCC
13630 if test -n "$SHCC"; then
13631 { echo "$as_me:$LINENO: result: $SHCC" >&5
13632 echo "${ECHO_T}$SHCC" >&6; }
13634 { echo "$as_me:$LINENO: result: no" >&5
13635 echo "${ECHO_T}no" >&6; }
13639 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
13640 set dummy sh-elf-ld; ac_word=$2
13641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13643 if test "${ac_cv_path_SHLD+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
13651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH
13655 test -z "$as_dir" && as_dir=.
13656 for ac_exec_ext in '' $ac_executable_extensions; do
13657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13658 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
13659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13669 SHLD=$ac_cv_path_SHLD
13670 if test -n "$SHLD"; then
13671 { echo "$as_me:$LINENO: result: $SHLD" >&5
13672 echo "${ECHO_T}$SHLD" >&6; }
13674 { echo "$as_me:$LINENO: result: no" >&5
13675 echo "${ECHO_T}no" >&6; }
13679 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
13680 set dummy sh-elf-objcopy; ac_word=$2
13681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13683 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
13691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13692 for as_dir in $PATH
13695 test -z "$as_dir" && as_dir=.
13696 for ac_exec_ext in '' $ac_executable_extensions; do
13697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13698 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
13699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13709 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
13710 if test -n "$SHOBJCOPY"; then
13711 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
13712 echo "${ECHO_T}$SHOBJCOPY" >&6; }
13714 { echo "$as_me:$LINENO: result: no" >&5
13715 echo "${ECHO_T}no" >&6; }
13719 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
13720 set dummy arm-elf-gcc; ac_word=$2
13721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13723 if test "${ac_cv_path_ARMCC+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13728 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
13731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13732 for as_dir in $PATH
13735 test -z "$as_dir" && as_dir=.
13736 for ac_exec_ext in '' $ac_executable_extensions; do
13737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13738 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
13739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13749 ARMCC=$ac_cv_path_ARMCC
13750 if test -n "$ARMCC"; then
13751 { echo "$as_me:$LINENO: result: $ARMCC" >&5
13752 echo "${ECHO_T}$ARMCC" >&6; }
13754 { echo "$as_me:$LINENO: result: no" >&5
13755 echo "${ECHO_T}no" >&6; }
13759 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
13760 set dummy arm-elf-ld; ac_word=$2
13761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13763 if test "${ac_cv_path_ARMLD+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13768 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
13771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13772 for as_dir in $PATH
13775 test -z "$as_dir" && as_dir=.
13776 for ac_exec_ext in '' $ac_executable_extensions; do
13777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13778 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
13779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13789 ARMLD=$ac_cv_path_ARMLD
13790 if test -n "$ARMLD"; then
13791 { echo "$as_me:$LINENO: result: $ARMLD" >&5
13792 echo "${ECHO_T}$ARMLD" >&6; }
13794 { echo "$as_me:$LINENO: result: no" >&5
13795 echo "${ECHO_T}no" >&6; }
13799 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
13800 set dummy arm-elf-objcopy; ac_word=$2
13801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13803 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
13806 case $ARMOBJCOPY in
13808 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
13811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13812 for as_dir in $PATH
13815 test -z "$as_dir" && as_dir=.
13816 for ac_exec_ext in '' $ac_executable_extensions; do
13817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13818 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
13819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13829 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
13830 if test -n "$ARMOBJCOPY"; then
13831 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
13832 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
13834 { echo "$as_me:$LINENO: result: no" >&5
13835 echo "${ECHO_T}no" >&6; }
13840 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
13842 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
13846 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
13848 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
13854 if test "$BUILD_SH" = "yes"; then
13855 BUILD_SYSTEST_TRUE=
13856 BUILD_SYSTEST_FALSE='#'
13858 BUILD_SYSTEST_TRUE='#'
13859 BUILD_SYSTEST_FALSE=
13864 if test "$BUILD_ARM" = "yes"; then
13865 BUILD_ARMTEST_TRUE=
13866 BUILD_ARMTEST_FALSE='#'
13868 BUILD_ARMTEST_TRUE='#'
13869 BUILD_ARMTEST_FALSE=
13873 CFLAGS="$CFLAGS $STDCFLAG"
13875 GETTEXT_PACKAGE=lxdream
13876 LXDREAM_LIBS="$LIBS"
13881 cat >>confdefs.h <<_ACEOF
13882 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
13886 ALL_LINGUAS="de es it nl pt_BR"
13889 for ac_header in locale.h
13891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 ac_res=`eval echo '${'$as_ac_Header'}'`
13899 { echo "$as_me:$LINENO: result: $ac_res" >&5
13900 echo "${ECHO_T}$ac_res" >&6; }
13902 # Is the header compilable?
13903 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13905 cat >conftest.$ac_ext <<_ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 $ac_includes_default
13912 #include <$ac_header>
13914 rm -f conftest.$ac_objext
13915 if { (ac_try="$ac_compile"
13916 case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_compile") 2>conftest.er1
13923 grep -v '^ *+' conftest.er1 >conftest.err
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } && {
13928 test -z "$ac_c_werror_flag" ||
13929 test ! -s conftest.err
13930 } && test -s conftest.$ac_objext; then
13931 ac_header_compiler=yes
13933 echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13936 ac_header_compiler=no
13939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13941 echo "${ECHO_T}$ac_header_compiler" >&6; }
13943 # Is the header present?
13944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13946 cat >conftest.$ac_ext <<_ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13952 #include <$ac_header>
13954 if { (ac_try="$ac_cpp conftest.$ac_ext"
13955 case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13962 grep -v '^ *+' conftest.er1 >conftest.err
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } >/dev/null && {
13967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13968 test ! -s conftest.err
13970 ac_header_preproc=yes
13972 echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13975 ac_header_preproc=no
13978 rm -f conftest.err conftest.$ac_ext
13979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13980 echo "${ECHO_T}$ac_header_preproc" >&6; }
13982 # So? What about this header?
13983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13989 ac_header_preproc=yes
13992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 eval "$as_ac_Header=\$ac_header_preproc"
14014 ac_res=`eval echo '${'$as_ac_Header'}'`
14015 { echo "$as_me:$LINENO: result: $ac_res" >&5
14016 echo "${ECHO_T}$ac_res" >&6; }
14019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14020 cat >>confdefs.h <<_ACEOF
14021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14028 if test $ac_cv_header_locale_h = yes; then
14029 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14030 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
14031 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 cat >conftest.$ac_ext <<_ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h. */
14040 #include <locale.h>
14049 rm -f conftest.$ac_objext conftest$ac_exeext
14050 if { (ac_try="$ac_link"
14051 case "(($ac_try" in
14052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053 *) ac_try_echo=$ac_try;;
14055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14056 (eval "$ac_link") 2>conftest.er1
14058 grep -v '^ *+' conftest.er1 >conftest.err
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } && {
14063 test -z "$ac_c_werror_flag" ||
14064 test ! -s conftest.err
14065 } && test -s conftest$ac_exeext &&
14066 $as_test_x conftest$ac_exeext; then
14067 am_cv_val_LC_MESSAGES=yes
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14072 am_cv_val_LC_MESSAGES=no
14075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14076 conftest$ac_exeext conftest.$ac_ext
14078 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14079 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
14080 if test $am_cv_val_LC_MESSAGES = yes; then
14082 cat >>confdefs.h <<\_ACEOF
14083 #define HAVE_LC_MESSAGES 1
14091 gt_cv_have_gettext=no
14097 if test "${ac_cv_header_libintl_h+set}" = set; then
14098 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14099 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14100 if test "${ac_cv_header_libintl_h+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14104 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14106 # Is the header compilable?
14107 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
14108 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
14109 cat >conftest.$ac_ext <<_ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115 $ac_includes_default
14116 #include <libintl.h>
14118 rm -f conftest.$ac_objext
14119 if { (ac_try="$ac_compile"
14120 case "(($ac_try" in
14121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14122 *) ac_try_echo=$ac_try;;
14124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14125 (eval "$ac_compile") 2>conftest.er1
14127 grep -v '^ *+' conftest.er1 >conftest.err
14129 cat conftest.err >&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } && {
14132 test -z "$ac_c_werror_flag" ||
14133 test ! -s conftest.err
14134 } && test -s conftest.$ac_objext; then
14135 ac_header_compiler=yes
14137 echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14140 ac_header_compiler=no
14143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14145 echo "${ECHO_T}$ac_header_compiler" >&6; }
14147 # Is the header present?
14148 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
14149 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
14150 cat >conftest.$ac_ext <<_ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h. */
14156 #include <libintl.h>
14158 if { (ac_try="$ac_cpp conftest.$ac_ext"
14159 case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14166 grep -v '^ *+' conftest.er1 >conftest.err
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } >/dev/null && {
14171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14172 test ! -s conftest.err
14174 ac_header_preproc=yes
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 ac_header_preproc=no
14182 rm -f conftest.err conftest.$ac_ext
14183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14184 echo "${ECHO_T}$ac_header_preproc" >&6; }
14186 # So? What about this header?
14187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14189 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14190 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14191 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
14192 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
14193 ac_header_preproc=yes
14196 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14197 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14199 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14200 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
14201 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
14202 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
14203 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14204 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14205 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14206 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
14207 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
14211 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14212 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14213 if test "${ac_cv_header_libintl_h+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 ac_cv_header_libintl_h=$ac_header_preproc
14218 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14219 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14222 if test $ac_cv_header_libintl_h = yes; then
14223 gt_cv_func_dgettext_libintl="no"
14224 libintl_extra_libs=""
14227 # First check in libc
14229 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
14230 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
14231 if test "${gt_cv_func_ngettext_libc+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 cat >conftest.$ac_ext <<_ACEOF
14237 cat confdefs.h >>conftest.$ac_ext
14238 cat >>conftest.$ac_ext <<_ACEOF
14239 /* end confdefs.h. */
14241 #include <libintl.h>
14246 return !ngettext ("","", 1)
14251 rm -f conftest.$ac_objext conftest$ac_exeext
14252 if { (ac_try="$ac_link"
14253 case "(($ac_try" in
14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255 *) ac_try_echo=$ac_try;;
14257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258 (eval "$ac_link") 2>conftest.er1
14260 grep -v '^ *+' conftest.er1 >conftest.err
14262 cat conftest.err >&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } && {
14265 test -z "$ac_c_werror_flag" ||
14266 test ! -s conftest.err
14267 } && test -s conftest$ac_exeext &&
14268 $as_test_x conftest$ac_exeext; then
14269 gt_cv_func_ngettext_libc=yes
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14274 gt_cv_func_ngettext_libc=no
14277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14278 conftest$ac_exeext conftest.$ac_ext
14281 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
14282 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
14284 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14285 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
14286 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
14287 if test "${gt_cv_func_dgettext_libc+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 cat >conftest.$ac_ext <<_ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14297 #include <libintl.h>
14302 return !dgettext ("","")
14307 rm -f conftest.$ac_objext conftest$ac_exeext
14308 if { (ac_try="$ac_link"
14309 case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_link") 2>conftest.er1
14316 grep -v '^ *+' conftest.er1 >conftest.err
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } && {
14321 test -z "$ac_c_werror_flag" ||
14322 test ! -s conftest.err
14323 } && test -s conftest$ac_exeext &&
14324 $as_test_x conftest$ac_exeext; then
14325 gt_cv_func_dgettext_libc=yes
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 gt_cv_func_dgettext_libc=no
14333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14334 conftest$ac_exeext conftest.$ac_ext
14337 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
14338 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
14341 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14343 for ac_func in bind_textdomain_codeset
14345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 cat >conftest.$ac_ext <<_ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14359 #define $ac_func innocuous_$ac_func
14361 /* System header to define __stub macros and hopefully few prototypes,
14362 which can conflict with char $ac_func (); below.
14363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14364 <limits.h> exists even on freestanding compilers. */
14367 # include <limits.h>
14369 # include <assert.h>
14374 /* Override any GCC internal prototype to avoid an error.
14375 Use char because int might match the return type of a GCC
14376 builtin and then its argument prototype would still apply. */
14381 /* The GNU C library defines this for functions which it implements
14382 to always fail with ENOSYS. Some functions are actually named
14383 something starting with __ and the normal name is an alias. */
14384 #if defined __stub_$ac_func || defined __stub___$ac_func
14391 return $ac_func ();
14396 rm -f conftest.$ac_objext conftest$ac_exeext
14397 if { (ac_try="$ac_link"
14398 case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_link") 2>conftest.er1
14405 grep -v '^ *+' conftest.er1 >conftest.err
14407 cat conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } && {
14410 test -z "$ac_c_werror_flag" ||
14411 test ! -s conftest.err
14412 } && test -s conftest$ac_exeext &&
14413 $as_test_x conftest$ac_exeext; then
14414 eval "$as_ac_var=yes"
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14419 eval "$as_ac_var=no"
14422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14423 conftest$ac_exeext conftest.$ac_ext
14425 ac_res=`eval echo '${'$as_ac_var'}'`
14426 { echo "$as_me:$LINENO: result: $ac_res" >&5
14427 echo "${ECHO_T}$ac_res" >&6; }
14428 if test `eval echo '${'$as_ac_var'}'` = yes; then
14429 cat >>confdefs.h <<_ACEOF
14430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14439 # If we don't have everything we want, check in libintl
14441 if test "$gt_cv_func_dgettext_libc" != "yes" \
14442 || test "$gt_cv_func_ngettext_libc" != "yes" \
14443 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
14445 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
14446 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
14447 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 ac_check_lib_save_LIBS=$LIBS
14451 LIBS="-lintl $LIBS"
14452 cat >conftest.$ac_ext <<_ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h. */
14459 /* Override any GCC internal prototype to avoid an error.
14460 Use char because int might match the return type of a GCC
14461 builtin and then its argument prototype would still apply. */
14465 char bindtextdomain ();
14469 return bindtextdomain ();
14474 rm -f conftest.$ac_objext conftest$ac_exeext
14475 if { (ac_try="$ac_link"
14476 case "(($ac_try" in
14477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 *) ac_try_echo=$ac_try;;
14480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481 (eval "$ac_link") 2>conftest.er1
14483 grep -v '^ *+' conftest.er1 >conftest.err
14485 cat conftest.err >&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } && {
14488 test -z "$ac_c_werror_flag" ||
14489 test ! -s conftest.err
14490 } && test -s conftest$ac_exeext &&
14491 $as_test_x conftest$ac_exeext; then
14492 ac_cv_lib_intl_bindtextdomain=yes
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14497 ac_cv_lib_intl_bindtextdomain=no
14500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14501 conftest$ac_exeext conftest.$ac_ext
14502 LIBS=$ac_check_lib_save_LIBS
14504 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
14505 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
14506 if test $ac_cv_lib_intl_bindtextdomain = yes; then
14507 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
14508 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
14509 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 ac_check_lib_save_LIBS=$LIBS
14513 LIBS="-lintl $LIBS"
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14521 /* Override any GCC internal prototype to avoid an error.
14522 Use char because int might match the return type of a GCC
14523 builtin and then its argument prototype would still apply. */
14531 return ngettext ();
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (ac_try="$ac_link"
14538 case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_link") 2>conftest.er1
14545 grep -v '^ *+' conftest.er1 >conftest.err
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } && {
14550 test -z "$ac_c_werror_flag" ||
14551 test ! -s conftest.err
14552 } && test -s conftest$ac_exeext &&
14553 $as_test_x conftest$ac_exeext; then
14554 ac_cv_lib_intl_ngettext=yes
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14559 ac_cv_lib_intl_ngettext=no
14562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14563 conftest$ac_exeext conftest.$ac_ext
14564 LIBS=$ac_check_lib_save_LIBS
14566 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
14567 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
14568 if test $ac_cv_lib_intl_ngettext = yes; then
14569 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14570 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
14571 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 ac_check_lib_save_LIBS=$LIBS
14575 LIBS="-lintl $LIBS"
14576 cat >conftest.$ac_ext <<_ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14583 /* Override any GCC internal prototype to avoid an error.
14584 Use char because int might match the return type of a GCC
14585 builtin and then its argument prototype would still apply. */
14593 return dgettext ();
14598 rm -f conftest.$ac_objext conftest$ac_exeext
14599 if { (ac_try="$ac_link"
14600 case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 (eval "$ac_link") 2>conftest.er1
14607 grep -v '^ *+' conftest.er1 >conftest.err
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } && {
14612 test -z "$ac_c_werror_flag" ||
14613 test ! -s conftest.err
14614 } && test -s conftest$ac_exeext &&
14615 $as_test_x conftest$ac_exeext; then
14616 ac_cv_lib_intl_dgettext=yes
14618 echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14621 ac_cv_lib_intl_dgettext=no
14624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14625 conftest$ac_exeext conftest.$ac_ext
14626 LIBS=$ac_check_lib_save_LIBS
14628 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14629 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
14630 if test $ac_cv_lib_intl_dgettext = yes; then
14631 gt_cv_func_dgettext_libintl=yes
14639 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
14640 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
14641 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
14642 { echo "$as_me:$LINENO: result: " >&5
14643 echo "${ECHO_T}" >&6; }
14644 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
14645 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
14646 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 ac_check_lib_save_LIBS=$LIBS
14650 LIBS="-lintl -liconv $LIBS"
14651 cat >conftest.$ac_ext <<_ACEOF
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h. */
14658 /* Override any GCC internal prototype to avoid an error.
14659 Use char because int might match the return type of a GCC
14660 builtin and then its argument prototype would still apply. */
14668 return ngettext ();
14673 rm -f conftest.$ac_objext conftest$ac_exeext
14674 if { (ac_try="$ac_link"
14675 case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_link") 2>conftest.er1
14682 grep -v '^ *+' conftest.er1 >conftest.err
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } && {
14687 test -z "$ac_c_werror_flag" ||
14688 test ! -s conftest.err
14689 } && test -s conftest$ac_exeext &&
14690 $as_test_x conftest$ac_exeext; then
14691 ac_cv_lib_intl_ngettext=yes
14693 echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14696 ac_cv_lib_intl_ngettext=no
14699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14700 conftest$ac_exeext conftest.$ac_ext
14701 LIBS=$ac_check_lib_save_LIBS
14703 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
14704 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
14705 if test $ac_cv_lib_intl_ngettext = yes; then
14706 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
14707 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
14708 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14711 ac_check_lib_save_LIBS=$LIBS
14712 LIBS="-lintl -liconv $LIBS"
14713 cat >conftest.$ac_ext <<_ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14720 /* Override any GCC internal prototype to avoid an error.
14721 Use char because int might match the return type of a GCC
14722 builtin and then its argument prototype would still apply. */
14730 return dcgettext ();
14735 rm -f conftest.$ac_objext conftest$ac_exeext
14736 if { (ac_try="$ac_link"
14737 case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_link") 2>conftest.er1
14744 grep -v '^ *+' conftest.er1 >conftest.err
14746 cat conftest.err >&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } && {
14749 test -z "$ac_c_werror_flag" ||
14750 test ! -s conftest.err
14751 } && test -s conftest$ac_exeext &&
14752 $as_test_x conftest$ac_exeext; then
14753 ac_cv_lib_intl_dcgettext=yes
14755 echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14758 ac_cv_lib_intl_dcgettext=no
14761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14762 conftest$ac_exeext conftest.$ac_ext
14763 LIBS=$ac_check_lib_save_LIBS
14765 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
14766 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
14767 if test $ac_cv_lib_intl_dcgettext = yes; then
14768 gt_cv_func_dgettext_libintl=yes
14769 libintl_extra_libs=-liconv
14781 # If we found libintl, then check in it for bind_textdomain_codeset();
14782 # we'll prefer libc if neither have bind_textdomain_codeset(),
14783 # and both have dgettext and ngettext
14785 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
14786 glib_save_LIBS="$LIBS"
14787 LIBS="$LIBS -lintl $libintl_extra_libs"
14788 unset ac_cv_func_bind_textdomain_codeset
14790 for ac_func in bind_textdomain_codeset
14792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 cat >conftest.$ac_ext <<_ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14806 #define $ac_func innocuous_$ac_func
14808 /* System header to define __stub macros and hopefully few prototypes,
14809 which can conflict with char $ac_func (); below.
14810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14811 <limits.h> exists even on freestanding compilers. */
14814 # include <limits.h>
14816 # include <assert.h>
14821 /* Override any GCC internal prototype to avoid an error.
14822 Use char because int might match the return type of a GCC
14823 builtin and then its argument prototype would still apply. */
14828 /* The GNU C library defines this for functions which it implements
14829 to always fail with ENOSYS. Some functions are actually named
14830 something starting with __ and the normal name is an alias. */
14831 #if defined __stub_$ac_func || defined __stub___$ac_func
14838 return $ac_func ();
14843 rm -f conftest.$ac_objext conftest$ac_exeext
14844 if { (ac_try="$ac_link"
14845 case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_link") 2>conftest.er1
14852 grep -v '^ *+' conftest.er1 >conftest.err
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } && {
14857 test -z "$ac_c_werror_flag" ||
14858 test ! -s conftest.err
14859 } && test -s conftest$ac_exeext &&
14860 $as_test_x conftest$ac_exeext; then
14861 eval "$as_ac_var=yes"
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 eval "$as_ac_var=no"
14869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14870 conftest$ac_exeext conftest.$ac_ext
14872 ac_res=`eval echo '${'$as_ac_var'}'`
14873 { echo "$as_me:$LINENO: result: $ac_res" >&5
14874 echo "${ECHO_T}$ac_res" >&6; }
14875 if test `eval echo '${'$as_ac_var'}'` = yes; then
14876 cat >>confdefs.h <<_ACEOF
14877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14883 LIBS="$glib_save_LIBS"
14885 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
14886 gt_cv_func_dgettext_libc=no
14888 if test "$gt_cv_func_dgettext_libc" = "yes" \
14889 && test "$gt_cv_func_ngettext_libc" = "yes"; then
14890 gt_cv_func_dgettext_libintl=no
14896 if test "$gt_cv_func_dgettext_libc" = "yes" \
14897 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
14898 gt_cv_have_gettext=yes
14901 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
14902 INTLLIBS="-lintl $libintl_extra_libs"
14905 if test "$gt_cv_have_gettext" = "yes"; then
14907 cat >>confdefs.h <<\_ACEOF
14908 #define HAVE_GETTEXT 1
14911 # Extract the first word of "msgfmt", so it can be a program name with args.
14912 set dummy msgfmt; ac_word=$2
14913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14915 if test "${ac_cv_path_MSGFMT+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14924 for ac_dir in $PATH; do
14925 test -z "$ac_dir" && ac_dir=.
14926 if test -f $ac_dir/$ac_word; then
14927 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
14928 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14934 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
14938 MSGFMT="$ac_cv_path_MSGFMT"
14939 if test "$MSGFMT" != "no"; then
14940 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
14941 echo "${ECHO_T}$MSGFMT" >&6; }
14943 { echo "$as_me:$LINENO: result: no" >&5
14944 echo "${ECHO_T}no" >&6; }
14946 if test "$MSGFMT" != "no"; then
14947 glib_save_LIBS="$LIBS"
14948 LIBS="$LIBS $INTLLIBS"
14950 for ac_func in dcgettext
14952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 cat >conftest.$ac_ext <<_ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14966 #define $ac_func innocuous_$ac_func
14968 /* System header to define __stub macros and hopefully few prototypes,
14969 which can conflict with char $ac_func (); below.
14970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14971 <limits.h> exists even on freestanding compilers. */
14974 # include <limits.h>
14976 # include <assert.h>
14981 /* Override any GCC internal prototype to avoid an error.
14982 Use char because int might match the return type of a GCC
14983 builtin and then its argument prototype would still apply. */
14988 /* The GNU C library defines this for functions which it implements
14989 to always fail with ENOSYS. Some functions are actually named
14990 something starting with __ and the normal name is an alias. */
14991 #if defined __stub_$ac_func || defined __stub___$ac_func
14998 return $ac_func ();
15003 rm -f conftest.$ac_objext conftest$ac_exeext
15004 if { (ac_try="$ac_link"
15005 case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_link") 2>conftest.er1
15012 grep -v '^ *+' conftest.er1 >conftest.err
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } && {
15017 test -z "$ac_c_werror_flag" ||
15018 test ! -s conftest.err
15019 } && test -s conftest$ac_exeext &&
15020 $as_test_x conftest$ac_exeext; then
15021 eval "$as_ac_var=yes"
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15026 eval "$as_ac_var=no"
15029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15030 conftest$ac_exeext conftest.$ac_ext
15032 ac_res=`eval echo '${'$as_ac_var'}'`
15033 { echo "$as_me:$LINENO: result: $ac_res" >&5
15034 echo "${ECHO_T}$ac_res" >&6; }
15035 if test `eval echo '${'$as_ac_var'}'` = yes; then
15036 cat >>confdefs.h <<_ACEOF
15037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15044 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
15045 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
15046 cat >conftest.foo <<_ACEOF
15050 "Content-Type: text/plain; charset=UTF-8\n"
15051 "Project-Id-Version: test 1.0\n"
15052 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
15053 "Last-Translator: test <foo@bar.xx>\n"
15054 "Language-Team: C <LL@li.org>\n"
15055 "MIME-Version: 1.0\n"
15056 "Content-Transfer-Encoding: 8bit\n"
15059 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
15060 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; then
15064 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
15065 echo "${ECHO_T}yes" >&6; }
15066 else { echo "$as_me:$LINENO: result: no" >&5
15067 echo "${ECHO_T}no" >&6; }
15068 echo "$as_me: failed input was:" >&5
15069 sed 's/^/| /' conftest.foo >&5
15072 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15073 set dummy gmsgfmt; ac_word=$2
15074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15076 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15077 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15085 for as_dir in $PATH
15088 test -z "$as_dir" && as_dir=.
15089 for ac_exec_ext in '' $ac_executable_extensions; do
15090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15091 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15099 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15103 GMSGFMT=$ac_cv_path_GMSGFMT
15104 if test -n "$GMSGFMT"; then
15105 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15106 echo "${ECHO_T}$GMSGFMT" >&6; }
15108 { echo "$as_me:$LINENO: result: no" >&5
15109 echo "${ECHO_T}no" >&6; }
15113 # Extract the first word of "xgettext", so it can be a program name with args.
15114 set dummy xgettext; ac_word=$2
15115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15117 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15120 case "$XGETTEXT" in
15122 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15126 for ac_dir in $PATH; do
15127 test -z "$ac_dir" && ac_dir=.
15128 if test -f $ac_dir/$ac_word; then
15129 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
15130 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15136 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15140 XGETTEXT="$ac_cv_path_XGETTEXT"
15141 if test "$XGETTEXT" != ":"; then
15142 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15143 echo "${ECHO_T}$XGETTEXT" >&6; }
15145 { echo "$as_me:$LINENO: result: no" >&5
15146 echo "${ECHO_T}no" >&6; }
15149 cat >conftest.$ac_ext <<_ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h. */
15159 extern int _nl_msg_cat_cntr;
15160 return _nl_msg_cat_cntr
15165 rm -f conftest.$ac_objext conftest$ac_exeext
15166 if { (ac_try="$ac_link"
15167 case "(($ac_try" in
15168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169 *) ac_try_echo=$ac_try;;
15171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172 (eval "$ac_link") 2>conftest.er1
15174 grep -v '^ *+' conftest.er1 >conftest.err
15176 cat conftest.err >&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } && {
15179 test -z "$ac_c_werror_flag" ||
15180 test ! -s conftest.err
15181 } && test -s conftest$ac_exeext &&
15182 $as_test_x conftest$ac_exeext; then
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15191 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
15192 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
15193 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 cat >conftest.$ac_ext <<_ACEOF
15199 cat confdefs.h >>conftest.$ac_ext
15200 cat >>conftest.$ac_ext <<_ACEOF
15201 /* end confdefs.h. */
15202 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
15203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15204 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
15206 /* System header to define __stub macros and hopefully few prototypes,
15207 which can conflict with char bind_textdomain_codeset (); below.
15208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15209 <limits.h> exists even on freestanding compilers. */
15212 # include <limits.h>
15214 # include <assert.h>
15217 #undef bind_textdomain_codeset
15219 /* Override any GCC internal prototype to avoid an error.
15220 Use char because int might match the return type of a GCC
15221 builtin and then its argument prototype would still apply. */
15225 char bind_textdomain_codeset ();
15226 /* The GNU C library defines this for functions which it implements
15227 to always fail with ENOSYS. Some functions are actually named
15228 something starting with __ and the normal name is an alias. */
15229 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
15236 return bind_textdomain_codeset ();
15241 rm -f conftest.$ac_objext conftest$ac_exeext
15242 if { (ac_try="$ac_link"
15243 case "(($ac_try" in
15244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245 *) ac_try_echo=$ac_try;;
15247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248 (eval "$ac_link") 2>conftest.er1
15250 grep -v '^ *+' conftest.er1 >conftest.err
15252 cat conftest.err >&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } && {
15255 test -z "$ac_c_werror_flag" ||
15256 test ! -s conftest.err
15257 } && test -s conftest$ac_exeext &&
15258 $as_test_x conftest$ac_exeext; then
15259 ac_cv_func_bind_textdomain_codeset=yes
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15264 ac_cv_func_bind_textdomain_codeset=no
15267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15268 conftest$ac_exeext conftest.$ac_ext
15270 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
15271 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
15272 if test $ac_cv_func_bind_textdomain_codeset = yes; then
15288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15289 conftest$ac_exeext conftest.$ac_ext
15290 LIBS="$glib_save_LIBS"
15293 gt_cv_have_gettext=no
15301 if test "$gt_cv_have_gettext" = "yes" ; then
15303 cat >>confdefs.h <<\_ACEOF
15304 #define ENABLE_NLS 1
15309 if test "$XGETTEXT" != ":"; then
15310 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
15313 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15314 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
15319 # We need to process the po/ directory.
15322 ac_config_commands="$ac_config_commands default-1"
15325 for lang in $ALL_LINGUAS; do
15326 GMOFILES="$GMOFILES $lang.gmo"
15327 POFILES="$POFILES $lang.po"
15342 if test "$gt_cv_have_gettext" = "yes"; then
15343 if test "x$ALL_LINGUAS" = "x"; then
15346 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15347 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
15349 for presentlang in $ALL_LINGUAS; do
15351 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
15352 desiredlanguages="$LINGUAS"
15354 desiredlanguages="$ALL_LINGUAS"
15356 for desiredlang in $desiredlanguages; do
15357 # Use the presentlang catalog if desiredlang is
15358 # a. equal to presentlang, or
15359 # b. a variant of presentlang (because in this case,
15360 # presentlang can be used as a fallback for messages
15361 # which are not translated in the desiredlang catalog).
15362 case "$desiredlang" in
15363 "$presentlang"*) useit=yes;;
15366 if test $useit = yes; then
15367 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15370 LINGUAS=$NEW_LINGUAS
15371 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
15372 echo "${ECHO_T}$LINGUAS" >&6; }
15375 if test -n "$LINGUAS"; then
15376 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15381 if test -n "$ac_aux_dir"; then
15382 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15384 if test -z "$MKINSTALLDIRS"; then
15385 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15389 test -d po || mkdir po
15390 if test "x$srcdir" != "x."; then
15391 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
15392 posrcprefix="$srcdir/"
15394 posrcprefix="../$srcdir/"
15400 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
15401 < $srcdir/po/POTFILES.in > po/POTFILES
15404 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
15406 cat >confcache <<\_ACEOF
15407 # This file is a shell script that caches the results of configure
15408 # tests run on this system so they can be shared between configure
15409 # scripts and configure runs, see configure's option --config-cache.
15410 # It is not useful on other systems. If it contains results you don't
15411 # want to keep, you may remove or edit it.
15413 # config.status only pays attention to the cache file if you give it
15414 # the --recheck option to rerun configure.
15416 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15417 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15418 # following values.
15422 # The following way of writing the cache mishandles newlines in values,
15423 # but we know of no workaround that is simple, portable, and efficient.
15424 # So, we kill variables containing newlines.
15425 # Ultrix sh set writes to stderr and can't be redirected directly,
15426 # and sets the high bit in the cache file unless we assign to the vars.
15428 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15429 eval ac_val=\$$ac_var
15433 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15434 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15437 _ | IFS | as_nl) ;; #(
15438 *) $as_unset $ac_var ;;
15444 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15445 *${as_nl}ac_space=\ *)
15446 # `set' does not quote correctly, so add quotes (double-quote
15447 # substitution turns \\\\ into \\, and sed turns \\ into \).
15450 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15453 # `set' quotes correctly as required by POSIX, so do not add quotes.
15454 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15463 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15465 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15467 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15468 if test -w "$cache_file"; then
15469 test "x$cache_file" != "x/dev/null" &&
15470 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15471 echo "$as_me: updating cache $cache_file" >&6;}
15472 cat confcache >$cache_file
15474 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15475 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15480 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15481 # Let make expand exec_prefix.
15482 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15484 DEFS=-DHAVE_CONFIG_H
15488 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15489 # 1. Remove the extension, and $U if already installed.
15490 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15491 ac_i=`echo "$ac_i" | sed "$ac_script"`
15492 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15493 # will be set to the directory where LIBOBJS objects are built.
15494 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15495 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15497 LIBOBJS=$ac_libobjs
15499 LTLIBOBJS=$ac_ltlibobjs
15502 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15503 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15504 Usually this means the macro was only invoked conditionally." >&5
15505 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15506 Usually this means the macro was only invoked conditionally." >&2;}
15507 { (exit 1); exit 1; }; }
15509 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15510 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15511 Usually this means the macro was only invoked conditionally." >&5
15512 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15513 Usually this means the macro was only invoked conditionally." >&2;}
15514 { (exit 1); exit 1; }; }
15516 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15517 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15518 Usually this means the macro was only invoked conditionally." >&5
15519 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15520 Usually this means the macro was only invoked conditionally." >&2;}
15521 { (exit 1); exit 1; }; }
15523 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15524 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15525 Usually this means the macro was only invoked conditionally." >&5
15526 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15527 Usually this means the macro was only invoked conditionally." >&2;}
15528 { (exit 1); exit 1; }; }
15530 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15531 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15532 Usually this means the macro was only invoked conditionally." >&5
15533 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15534 Usually this means the macro was only invoked conditionally." >&2;}
15535 { (exit 1); exit 1; }; }
15537 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
15538 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
15539 Usually this means the macro was only invoked conditionally." >&5
15540 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
15541 Usually this means the macro was only invoked conditionally." >&2;}
15542 { (exit 1); exit 1; }; }
15544 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
15545 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
15546 Usually this means the macro was only invoked conditionally." >&5
15547 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
15548 Usually this means the macro was only invoked conditionally." >&2;}
15549 { (exit 1); exit 1; }; }
15551 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
15552 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
15553 Usually this means the macro was only invoked conditionally." >&5
15554 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
15555 Usually this means the macro was only invoked conditionally." >&2;}
15556 { (exit 1); exit 1; }; }
15558 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
15559 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SHARED\" was never defined.
15560 Usually this means the macro was only invoked conditionally." >&5
15561 echo "$as_me: error: conditional \"BUILD_SHARED\" was never defined.
15562 Usually this means the macro was only invoked conditionally." >&2;}
15563 { (exit 1); exit 1; }; }
15565 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
15566 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
15567 Usually this means the macro was only invoked conditionally." >&5
15568 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
15569 Usually this means the macro was only invoked conditionally." >&2;}
15570 { (exit 1); exit 1; }; }
15572 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
15573 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
15574 Usually this means the macro was only invoked conditionally." >&5
15575 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
15576 Usually this means the macro was only invoked conditionally." >&2;}
15577 { (exit 1); exit 1; }; }
15579 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
15580 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
15581 Usually this means the macro was only invoked conditionally." >&5
15582 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
15583 Usually this means the macro was only invoked conditionally." >&2;}
15584 { (exit 1); exit 1; }; }
15586 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
15587 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
15588 Usually this means the macro was only invoked conditionally." >&5
15589 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
15590 Usually this means the macro was only invoked conditionally." >&2;}
15591 { (exit 1); exit 1; }; }
15593 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
15594 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
15595 Usually this means the macro was only invoked conditionally." >&5
15596 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
15597 Usually this means the macro was only invoked conditionally." >&2;}
15598 { (exit 1); exit 1; }; }
15600 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
15601 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
15602 Usually this means the macro was only invoked conditionally." >&5
15603 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
15604 Usually this means the macro was only invoked conditionally." >&2;}
15605 { (exit 1); exit 1; }; }
15607 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
15608 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
15609 Usually this means the macro was only invoked conditionally." >&5
15610 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
15611 Usually this means the macro was only invoked conditionally." >&2;}
15612 { (exit 1); exit 1; }; }
15614 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
15615 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
15616 Usually this means the macro was only invoked conditionally." >&5
15617 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
15618 Usually this means the macro was only invoked conditionally." >&2;}
15619 { (exit 1); exit 1; }; }
15621 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
15622 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
15623 Usually this means the macro was only invoked conditionally." >&5
15624 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
15625 Usually this means the macro was only invoked conditionally." >&2;}
15626 { (exit 1); exit 1; }; }
15628 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
15629 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
15630 Usually this means the macro was only invoked conditionally." >&5
15631 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
15632 Usually this means the macro was only invoked conditionally." >&2;}
15633 { (exit 1); exit 1; }; }
15635 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
15636 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
15637 Usually this means the macro was only invoked conditionally." >&5
15638 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
15639 Usually this means the macro was only invoked conditionally." >&2;}
15640 { (exit 1); exit 1; }; }
15642 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
15643 { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
15644 Usually this means the macro was only invoked conditionally." >&5
15645 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
15646 Usually this means the macro was only invoked conditionally." >&2;}
15647 { (exit 1); exit 1; }; }
15649 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
15650 { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
15651 Usually this means the macro was only invoked conditionally." >&5
15652 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
15653 Usually this means the macro was only invoked conditionally." >&2;}
15654 { (exit 1); exit 1; }; }
15656 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
15657 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
15658 Usually this means the macro was only invoked conditionally." >&5
15659 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
15660 Usually this means the macro was only invoked conditionally." >&2;}
15661 { (exit 1); exit 1; }; }
15663 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
15664 { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
15665 Usually this means the macro was only invoked conditionally." >&5
15666 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
15667 Usually this means the macro was only invoked conditionally." >&2;}
15668 { (exit 1); exit 1; }; }
15670 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
15671 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
15672 Usually this means the macro was only invoked conditionally." >&5
15673 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
15674 Usually this means the macro was only invoked conditionally." >&2;}
15675 { (exit 1); exit 1; }; }
15677 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
15678 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
15679 Usually this means the macro was only invoked conditionally." >&5
15680 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
15681 Usually this means the macro was only invoked conditionally." >&2;}
15682 { (exit 1); exit 1; }; }
15685 : ${CONFIG_STATUS=./config.status}
15686 ac_clean_files_save=$ac_clean_files
15687 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15688 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15689 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15690 cat >$CONFIG_STATUS <<_ACEOF
15692 # Generated by $as_me.
15693 # Run this file to recreate the current configuration.
15694 # Compiler output produced by configure, useful for debugging
15695 # configure, is in config.log if it exists.
15698 ac_cs_recheck=false
15700 SHELL=\${CONFIG_SHELL-$SHELL}
15703 cat >>$CONFIG_STATUS <<\_ACEOF
15704 ## --------------------- ##
15705 ## M4sh Initialization. ##
15706 ## --------------------- ##
15708 # Be more Bourne compatible
15709 DUALCASE=1; export DUALCASE # for MKS sh
15710 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15713 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15714 # is contrary to our usage. Disable this feature.
15715 alias -g '${1+"$@"}'='"$@"'
15716 setopt NO_GLOB_SUBST
15718 case `(set -o) 2>/dev/null` in
15719 *posix*) set -o posix ;;
15728 # Avoid depending upon Character Ranges.
15729 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15730 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15731 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15732 as_cr_digits='0123456789'
15733 as_cr_alnum=$as_cr_Letters$as_cr_digits
15735 # The user is always right.
15736 if test "${PATH_SEPARATOR+set}" != set; then
15737 echo "#! /bin/sh" >conf$$.sh
15738 echo "exit 0" >>conf$$.sh
15740 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15748 # Support unset when possible.
15749 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15757 # We need space, tab and new line, in precisely that order. Quoting is
15758 # there to prevent editors from complaining about space-tab.
15759 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15760 # splitting by setting IFS to empty value.)
15765 # Find who we are. Look in the path if we contain no directory separator.
15767 *[\\/]* ) as_myself=$0 ;;
15768 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15769 for as_dir in $PATH
15772 test -z "$as_dir" && as_dir=.
15773 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15779 # We did not find ourselves, most probably we were run as `sh COMMAND'
15780 # in which case we are not to be found in the path.
15781 if test "x$as_myself" = x; then
15784 if test ! -f "$as_myself"; then
15785 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15786 { (exit 1); exit 1; }
15789 # Work around bugs in pre-3.0 UWIN ksh.
15790 for as_var in ENV MAIL MAILPATH
15791 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15799 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15800 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15801 LC_TELEPHONE LC_TIME
15803 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15804 eval $as_var=C; export $as_var
15806 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15810 # Required to use basename.
15811 if expr a : '\(a\)' >/dev/null 2>&1 &&
15812 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15819 as_basename=basename
15825 # Name of the executable.
15826 as_me=`$as_basename -- "$0" ||
15827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15828 X"$0" : 'X\(//\)$' \| \
15829 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15831 sed '/^.*\/\([^/][^/]*\)\/*$/{
15850 as_lineno_1=$LINENO
15851 as_lineno_2=$LINENO
15852 test "x$as_lineno_1" != "x$as_lineno_2" &&
15853 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15855 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15856 # uniformly replaced by the line number. The first 'sed' inserts a
15857 # line-number line after each line using $LINENO; the second 'sed'
15858 # does the real work. The second script uses 'N' to pair each
15859 # line-number line with the line containing $LINENO, and appends
15860 # trailing '-' during substitution so that $LINENO is not a special
15861 # case at line end.
15862 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15863 # scripts with optimization help from Paolo Bonzini. Blame Lee
15864 # E. McMahon (1931-1989) for sed's syntax. :-)
15876 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15879 ' >$as_me.lineno &&
15880 chmod +x "$as_me.lineno" ||
15881 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15882 { (exit 1); exit 1; }; }
15884 # Don't try to exec as it changes $[0], causing all sort of problems
15885 # (the dirname of $[0] is not the place where we might find the
15886 # original and so on. Autoconf is especially sensitive to this).
15887 . "./$as_me.lineno"
15888 # Exit status is that of the last command.
15893 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15899 ECHO_C= ECHO_N= ECHO_T=
15900 case `echo -n x` in
15902 case `echo 'x\c'` in
15903 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15910 if expr a : '\(a\)' >/dev/null 2>&1 &&
15911 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15917 rm -f conf$$ conf$$.exe conf$$.file
15918 if test -d conf$$.dir; then
15919 rm -f conf$$.dir/conf$$.file
15925 if ln -s conf$$.file conf$$ 2>/dev/null; then
15927 # ... but there are two gotchas:
15928 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15929 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15930 # In both cases, we have to default to `cp -p'.
15931 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15933 elif ln conf$$.file conf$$ 2>/dev/null; then
15938 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15939 rmdir conf$$.dir 2>/dev/null
15941 if mkdir -p . 2>/dev/null; then
15944 test -d ./-p && rmdir ./-p
15948 if test -x / >/dev/null 2>&1; then
15949 as_test_x='test -x'
15951 if ls -dL / >/dev/null 2>&1; then
15958 if test -d "$1"; then
15964 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15965 ???[sx]*):;;*)false;;esac;fi
15969 as_executable_p=$as_test_x
15971 # Sed expression to map a string onto a valid CPP name.
15972 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15974 # Sed expression to map a string onto a valid variable name.
15975 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15980 # Save the log message, to keep $[0] and so on meaningful, and to
15981 # report actual input values of CONFIG_FILES etc. instead of their
15982 # values after options handling.
15984 This file was extended by $as_me, which was
15985 generated by GNU Autoconf 2.61. Invocation command line was
15987 CONFIG_FILES = $CONFIG_FILES
15988 CONFIG_HEADERS = $CONFIG_HEADERS
15989 CONFIG_LINKS = $CONFIG_LINKS
15990 CONFIG_COMMANDS = $CONFIG_COMMANDS
15993 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15998 cat >>$CONFIG_STATUS <<_ACEOF
15999 # Files that config.status was made for.
16000 config_files="$ac_config_files"
16001 config_headers="$ac_config_headers"
16002 config_commands="$ac_config_commands"
16006 cat >>$CONFIG_STATUS <<\_ACEOF
16008 \`$as_me' instantiates files from templates according to the
16009 current configuration.
16011 Usage: $0 [OPTIONS] [FILE]...
16013 -h, --help print this help, then exit
16014 -V, --version print version number and configuration settings, then exit
16015 -q, --quiet do not print progress messages
16016 -d, --debug don't remove temporary files
16017 --recheck update $as_me by reconfiguring in the same conditions
16018 --file=FILE[:TEMPLATE]
16019 instantiate the configuration file FILE
16020 --header=FILE[:TEMPLATE]
16021 instantiate the configuration header FILE
16023 Configuration files:
16026 Configuration headers:
16029 Configuration commands:
16032 Report bugs to <bug-autoconf@gnu.org>."
16035 cat >>$CONFIG_STATUS <<_ACEOF
16038 configured by $0, generated by GNU Autoconf 2.61,
16039 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16041 Copyright (C) 2006 Free Software Foundation, Inc.
16042 This config.status script is free software; the Free Software Foundation
16043 gives unlimited permission to copy, distribute and modify it."
16050 cat >>$CONFIG_STATUS <<\_ACEOF
16051 # If no file are specified by the user, then we need to provide default
16052 # value. By we need to know if files were specified by the user.
16058 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16070 # Handling of the options.
16071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16073 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16074 echo "$ac_cs_version"; exit ;;
16075 --debug | --debu | --deb | --de | --d | -d )
16077 --file | --fil | --fi | --f )
16079 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16080 ac_need_defaults=false;;
16081 --header | --heade | --head | --hea )
16083 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16084 ac_need_defaults=false;;
16086 # Conflict between --help and --header
16087 { echo "$as_me: error: ambiguous option: $1
16088 Try \`$0 --help' for more information." >&2
16089 { (exit 1); exit 1; }; };;
16090 --help | --hel | -h )
16091 echo "$ac_cs_usage"; exit ;;
16092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16093 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16096 # This is an error.
16097 -*) { echo "$as_me: error: unrecognized option: $1
16098 Try \`$0 --help' for more information." >&2
16099 { (exit 1); exit 1; }; } ;;
16101 *) ac_config_targets="$ac_config_targets $1"
16102 ac_need_defaults=false ;;
16108 ac_configure_extra_args=
16110 if $ac_cs_silent; then
16112 ac_configure_extra_args="$ac_configure_extra_args --silent"
16116 cat >>$CONFIG_STATUS <<_ACEOF
16117 if \$ac_cs_recheck; then
16118 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16119 CONFIG_SHELL=$SHELL
16120 export CONFIG_SHELL
16121 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16125 cat >>$CONFIG_STATUS <<\_ACEOF
16129 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16130 ## Running $as_me. ##
16136 cat >>$CONFIG_STATUS <<_ACEOF
16140 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16145 cat >>$CONFIG_STATUS <<\_ACEOF
16147 # Handling of arguments.
16148 for ac_config_target in $ac_config_targets
16150 case $ac_config_target in
16151 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16152 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16153 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16154 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16155 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16156 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
16157 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16158 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16159 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
16161 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16162 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16163 { (exit 1); exit 1; }; };;
16168 # If the user did not use the arguments to specify the items to instantiate,
16169 # then the envvar interface is used. Set only those that are not.
16170 # We use the long form for the default assignment because of an extremely
16171 # bizarre bug on SunOS 4.1.3.
16172 if $ac_need_defaults; then
16173 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16174 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16175 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16178 # Have a temporary directory for convenience. Make it in the build tree
16179 # simply because there is no reason against having it here, and in addition,
16180 # creating and moving files from /tmp can sometimes cause problems.
16181 # Hook for its removal unless debugging.
16182 # Note that there is a small window in which the directory will not be cleaned:
16183 # after its creation but before its name has been assigned to `$tmp'.
16187 trap 'exit_status=$?
16188 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16190 trap '{ (exit 1); exit 1; }' 1 2 13 15
16192 # Create a (secure) tmp directory for tmp files.
16195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16196 test -n "$tmp" && test -d "$tmp"
16199 tmp=./conf$$-$RANDOM
16200 (umask 077 && mkdir "$tmp")
16203 echo "$me: cannot create a temporary directory in ." >&2
16204 { (exit 1); exit 1; }
16208 # Set up the sed scripts for CONFIG_FILES section.
16211 # No need to generate the scripts if there are no CONFIG_FILES.
16212 # This happens for instance when ./config.status config.h
16213 if test -n "$CONFIG_FILES"; then
16220 for ac_last_try in false false false false false :; do
16221 cat >conf$$subs.sed <<_ACEOF
16222 SHELL!$SHELL$ac_delim
16223 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16224 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16225 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16226 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16227 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16228 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16229 exec_prefix!$exec_prefix$ac_delim
16230 prefix!$prefix$ac_delim
16231 program_transform_name!$program_transform_name$ac_delim
16232 bindir!$bindir$ac_delim
16233 sbindir!$sbindir$ac_delim
16234 libexecdir!$libexecdir$ac_delim
16235 datarootdir!$datarootdir$ac_delim
16236 datadir!$datadir$ac_delim
16237 sysconfdir!$sysconfdir$ac_delim
16238 sharedstatedir!$sharedstatedir$ac_delim
16239 localstatedir!$localstatedir$ac_delim
16240 includedir!$includedir$ac_delim
16241 oldincludedir!$oldincludedir$ac_delim
16242 docdir!$docdir$ac_delim
16243 infodir!$infodir$ac_delim
16244 htmldir!$htmldir$ac_delim
16245 dvidir!$dvidir$ac_delim
16246 pdfdir!$pdfdir$ac_delim
16247 psdir!$psdir$ac_delim
16248 libdir!$libdir$ac_delim
16249 localedir!$localedir$ac_delim
16250 mandir!$mandir$ac_delim
16251 DEFS!$DEFS$ac_delim
16252 ECHO_C!$ECHO_C$ac_delim
16253 ECHO_N!$ECHO_N$ac_delim
16254 ECHO_T!$ECHO_T$ac_delim
16255 LIBS!$LIBS$ac_delim
16256 build_alias!$build_alias$ac_delim
16257 host_alias!$host_alias$ac_delim
16258 target_alias!$target_alias$ac_delim
16259 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16260 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16261 INSTALL_DATA!$INSTALL_DATA$ac_delim
16262 CYGPATH_W!$CYGPATH_W$ac_delim
16263 PACKAGE!$PACKAGE$ac_delim
16264 VERSION!$VERSION$ac_delim
16265 ACLOCAL!$ACLOCAL$ac_delim
16266 AUTOCONF!$AUTOCONF$ac_delim
16267 AUTOMAKE!$AUTOMAKE$ac_delim
16268 AUTOHEADER!$AUTOHEADER$ac_delim
16269 MAKEINFO!$MAKEINFO$ac_delim
16270 install_sh!$install_sh$ac_delim
16271 STRIP!$STRIP$ac_delim
16272 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16273 mkdir_p!$mkdir_p$ac_delim
16275 SET_MAKE!$SET_MAKE$ac_delim
16276 am__leading_dot!$am__leading_dot$ac_delim
16277 AMTAR!$AMTAR$ac_delim
16278 am__tar!$am__tar$ac_delim
16279 am__untar!$am__untar$ac_delim
16280 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16281 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16282 MAINT!$MAINT$ac_delim
16283 build!$build$ac_delim
16284 build_cpu!$build_cpu$ac_delim
16285 build_vendor!$build_vendor$ac_delim
16286 build_os!$build_os$ac_delim
16287 host!$host$ac_delim
16288 host_cpu!$host_cpu$ac_delim
16289 host_vendor!$host_vendor$ac_delim
16290 host_os!$host_os$ac_delim
16292 CFLAGS!$CFLAGS$ac_delim
16293 LDFLAGS!$LDFLAGS$ac_delim
16294 CPPFLAGS!$CPPFLAGS$ac_delim
16295 ac_ct_CC!$ac_ct_CC$ac_delim
16296 EXEEXT!$EXEEXT$ac_delim
16297 OBJEXT!$OBJEXT$ac_delim
16298 DEPDIR!$DEPDIR$ac_delim
16299 am__include!$am__include$ac_delim
16300 am__quote!$am__quote$ac_delim
16301 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16302 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16303 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16304 CCDEPMODE!$CCDEPMODE$ac_delim
16305 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16306 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16309 CFLAGS!$CFLAGS$ac_delim
16310 CPPFLAGS!$CPPFLAGS$ac_delim
16311 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
16312 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
16313 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
16314 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
16315 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
16317 CPPFLAGS!$CPPFLAGS$ac_delim
16318 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
16321 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16323 elif $ac_last_try; then
16324 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16325 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16326 { (exit 1); exit 1; }; }
16328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16332 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16333 if test -n "$ac_eof"; then
16334 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16335 ac_eof=`expr $ac_eof + 1`
16338 cat >>$CONFIG_STATUS <<_ACEOF
16339 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16340 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16343 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16344 s/^/s,@/; s/!/@,|#_!!_#|/
16347 s/'"$ac_delim"'$/,g/; t
16349 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16350 ' >>$CONFIG_STATUS <conf$$subs.sed
16351 rm -f conf$$subs.sed
16352 cat >>$CONFIG_STATUS <<_ACEOF
16358 for ac_last_try in false false false false false :; do
16359 cat >conf$$subs.sed <<_ACEOF
16360 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
16361 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
16362 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
16363 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
16364 OBJC!$OBJC$ac_delim
16365 OBJCFLAGS!$OBJCFLAGS$ac_delim
16366 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
16368 CCAS!$CCAS$ac_delim
16369 CCASFLAGS!$CCASFLAGS$ac_delim
16370 GREP!$GREP$ac_delim
16371 EGREP!$EGREP$ac_delim
16372 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
16373 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
16374 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
16375 POD2MAN!$POD2MAN$ac_delim
16376 POD2HTML!$POD2HTML$ac_delim
16377 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
16378 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
16379 SOEXT!$SOEXT$ac_delim
16380 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
16381 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
16382 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
16383 BUILD_SHARED_TRUE!$BUILD_SHARED_TRUE$ac_delim
16384 BUILD_SHARED_FALSE!$BUILD_SHARED_FALSE$ac_delim
16385 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
16386 PKG_CONFIG!$PKG_CONFIG$ac_delim
16387 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
16388 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
16389 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
16390 GLIB_LIBS!$GLIB_LIBS$ac_delim
16391 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
16392 GTK_LIBS!$GTK_LIBS$ac_delim
16393 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
16394 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
16395 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
16396 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
16397 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
16398 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
16399 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
16400 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
16401 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
16402 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
16403 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
16404 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
16405 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
16406 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
16407 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
16408 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
16409 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
16410 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
16411 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
16412 SDL_LIBS!$SDL_LIBS$ac_delim
16413 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
16414 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
16415 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
16416 PULSE_LIBS!$PULSE_LIBS$ac_delim
16417 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
16418 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
16419 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
16420 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
16421 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
16422 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
16423 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
16424 ALSA_LIBS!$ALSA_LIBS$ac_delim
16425 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
16426 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
16427 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
16428 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
16429 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
16430 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
16431 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
16432 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
16433 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
16434 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
16435 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
16436 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
16437 SHCC!$SHCC$ac_delim
16438 SHLD!$SHLD$ac_delim
16439 SHOBJCOPY!$SHOBJCOPY$ac_delim
16440 ARMCC!$ARMCC$ac_delim
16441 ARMLD!$ARMLD$ac_delim
16442 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
16443 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
16444 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
16445 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
16446 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
16447 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
16448 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16449 USE_NLS!$USE_NLS$ac_delim
16450 MSGFMT!$MSGFMT$ac_delim
16451 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
16452 GMSGFMT!$GMSGFMT$ac_delim
16453 XGETTEXT!$XGETTEXT$ac_delim
16454 CATALOGS!$CATALOGS$ac_delim
16455 CATOBJEXT!$CATOBJEXT$ac_delim
16456 DATADIRNAME!$DATADIRNAME$ac_delim
16459 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16461 elif $ac_last_try; then
16462 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16463 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16464 { (exit 1); exit 1; }; }
16466 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16470 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16471 if test -n "$ac_eof"; then
16472 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16473 ac_eof=`expr $ac_eof + 1`
16476 cat >>$CONFIG_STATUS <<_ACEOF
16477 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16478 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16481 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16482 s/^/s,@/; s/!/@,|#_!!_#|/
16485 s/'"$ac_delim"'$/,g/; t
16487 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16488 ' >>$CONFIG_STATUS <conf$$subs.sed
16489 rm -f conf$$subs.sed
16490 cat >>$CONFIG_STATUS <<_ACEOF
16496 for ac_last_try in false false false false false :; do
16497 cat >conf$$subs.sed <<_ACEOF
16498 GMOFILES!$GMOFILES$ac_delim
16499 INSTOBJEXT!$INSTOBJEXT$ac_delim
16500 INTLLIBS!$INTLLIBS$ac_delim
16501 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
16502 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
16503 POFILES!$POFILES$ac_delim
16504 POSUB!$POSUB$ac_delim
16505 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16506 LIBOBJS!$LIBOBJS$ac_delim
16507 LTLIBOBJS!$LTLIBOBJS$ac_delim
16510 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
16512 elif $ac_last_try; then
16513 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16514 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16515 { (exit 1); exit 1; }; }
16517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16521 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16522 if test -n "$ac_eof"; then
16523 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16524 ac_eof=`expr $ac_eof + 1`
16527 cat >>$CONFIG_STATUS <<_ACEOF
16528 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
16529 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16532 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16533 s/^/s,@/; s/!/@,|#_!!_#|/
16536 s/'"$ac_delim"'$/,g/; t
16538 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16539 ' >>$CONFIG_STATUS <conf$$subs.sed
16540 rm -f conf$$subs.sed
16541 cat >>$CONFIG_STATUS <<_ACEOF
16548 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16549 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16550 # trailing colons and then remove the whole line if VPATH becomes empty
16551 # (actually we leave an empty line to preserve line numbers).
16552 if test "x$srcdir" = x.; then
16553 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16554 s/:*\$(srcdir):*/:/
16555 s/:*\${srcdir}:*/:/
16557 s/^\([^=]*=[ ]*\):*/\1/
16563 cat >>$CONFIG_STATUS <<\_ACEOF
16564 fi # test -n "$CONFIG_FILES"
16567 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
16570 :[FHLC]) ac_mode=$ac_tag; continue;;
16572 case $ac_mode$ac_tag in
16574 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16575 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16576 { (exit 1); exit 1; }; };;
16577 :[FH]-) ac_tag=-:-;;
16578 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16595 -) ac_f="$tmp/stdin";;
16596 *) # Look for the file first in the build tree, then in the source tree
16597 # (if the path is not absolute). The absolute path cannot be DOS-style,
16598 # because $ac_f cannot contain `:'.
16602 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16604 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16605 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16606 { (exit 1); exit 1; }; };;
16608 ac_file_inputs="$ac_file_inputs $ac_f"
16611 # Let's still pretend it is `configure' which instantiates (i.e., don't
16612 # use $as_me), people would be surprised to read:
16613 # /* config.h. Generated by config.status. */
16614 configure_input="Generated from "`IFS=:
16615 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16616 if test x"$ac_file" != x-; then
16617 configure_input="$ac_file. $configure_input"
16618 { echo "$as_me:$LINENO: creating $ac_file" >&5
16619 echo "$as_me: creating $ac_file" >&6;}
16623 *:-:* | *:-) cat >"$tmp/stdin";;
16628 ac_dir=`$as_dirname -- "$ac_file" ||
16629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16630 X"$ac_file" : 'X\(//\)[^/]' \| \
16631 X"$ac_file" : 'X\(//\)$' \| \
16632 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16638 /^X\(\/\/\)[^/].*/{
16653 -*) as_dir=./$as_dir;;
16655 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16659 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16660 *) as_qdir=$as_dir;;
16662 as_dirs="'$as_qdir' $as_dirs"
16663 as_dir=`$as_dirname -- "$as_dir" ||
16664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16665 X"$as_dir" : 'X\(//\)[^/]' \| \
16666 X"$as_dir" : 'X\(//\)$' \| \
16667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16673 /^X\(\/\/\)[^/].*/{
16686 test -d "$as_dir" && break
16688 test -z "$as_dirs" || eval "mkdir $as_dirs"
16689 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16690 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16691 { (exit 1); exit 1; }; }; }
16695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16697 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16698 # A ".." for each directory in $ac_dir_suffix.
16699 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16700 case $ac_top_builddir_sub in
16701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16705 ac_abs_top_builddir=$ac_pwd
16706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16707 # for backward compatibility:
16708 ac_top_builddir=$ac_top_build_prefix
16711 .) # We are building in place.
16713 ac_top_srcdir=$ac_top_builddir_sub
16714 ac_abs_top_srcdir=$ac_pwd ;;
16715 [\\/]* | ?:[\\/]* ) # Absolute name.
16716 ac_srcdir=$srcdir$ac_dir_suffix;
16717 ac_top_srcdir=$srcdir
16718 ac_abs_top_srcdir=$srcdir ;;
16719 *) # Relative name.
16720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16721 ac_top_srcdir=$ac_top_build_prefix$srcdir
16722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16734 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16735 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16739 cat >>$CONFIG_STATUS <<\_ACEOF
16740 # If the template does not know about datarootdir, expand it.
16741 # FIXME: This hack should be removed a few years after 2.60.
16742 ac_datarootdir_hack=; ac_datarootdir_seen=
16744 case `sed -n '/datarootdir/ {
16753 ' $ac_file_inputs` in
16754 *datarootdir*) ac_datarootdir_seen=yes;;
16755 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16756 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16757 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16759 cat >>$CONFIG_STATUS <<_ACEOF
16760 ac_datarootdir_hack='
16761 s&@datadir@&$datadir&g
16762 s&@docdir@&$docdir&g
16763 s&@infodir@&$infodir&g
16764 s&@localedir@&$localedir&g
16765 s&@mandir@&$mandir&g
16766 s&\\\${datarootdir}&$datarootdir&g' ;;
16770 # Neutralize VPATH when `$srcdir' = `.'.
16771 # Shell code in configure.ac might set extrasub.
16772 # FIXME: do we really want to maintain this feature?
16773 cat >>$CONFIG_STATUS <<_ACEOF
16777 cat >>$CONFIG_STATUS <<\_ACEOF
16779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16780 s&@configure_input@&$configure_input&;t t
16781 s&@top_builddir@&$ac_top_builddir_sub&;t t
16782 s&@srcdir@&$ac_srcdir&;t t
16783 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16784 s&@top_srcdir@&$ac_top_srcdir&;t t
16785 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16786 s&@builddir@&$ac_builddir&;t t
16787 s&@abs_builddir@&$ac_abs_builddir&;t t
16788 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16789 s&@INSTALL@&$ac_INSTALL&;t t
16790 $ac_datarootdir_hack
16791 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
16793 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16794 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16795 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16796 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16797 which seems to be undefined. Please make sure it is defined." >&5
16798 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16799 which seems to be undefined. Please make sure it is defined." >&2;}
16803 -) cat "$tmp/out"; rm -f "$tmp/out";;
16804 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16813 # Transform confdefs.h into a sed script `conftest.defines', that
16814 # substitutes the proper values into config.h.in to produce config.h.
16815 rm -f conftest.defines conftest.tail
16816 # First, append a space to every undef/define line, to ease matching.
16817 echo 's/$/ /' >conftest.defines
16818 # Then, protect against being on the right side of a sed subst, or in
16819 # an unquoted here document, in config.status. If some macros were
16820 # called several times there might be several #defines for the same
16821 # symbol, which is useless. But do not sort them, since the last
16822 # AC_DEFINE must be honored.
16823 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16824 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
16825 # NAME is the cpp macro being defined, VALUE is the value it is being given.
16826 # PARAMS is the parameter list in the macro definition--in most cases, it's
16827 # just an empty string.
16828 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
16829 ac_dB='\\)[ (].*,\\1define\\2'
16837 s/^[ ]*#[ ]*define[ ][ ]*//
16842 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
16843 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
16844 ' >>conftest.defines
16846 # Remove the space that was appended to ease matching.
16847 # Then replace #undef with comments. This is necessary, for
16848 # example, in the case of _POSIX_SOURCE, which is predefined and required
16849 # on some systems where configure will not decide to define it.
16850 # (The regexp can be short, since the line contains either #define or #undef.)
16852 s,^[ #]*u.*,/* & */,' >>conftest.defines
16854 # Break up conftest.defines:
16855 ac_max_sed_lines=50
16857 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
16858 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
16859 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
16861 ac_in='$ac_file_inputs'
16862 ac_out='"$tmp/out1"'
16863 ac_nxt='"$tmp/out2"'
16867 # Write a here document:
16868 cat >>$CONFIG_STATUS <<_ACEOF
16869 # First, check the format of the line:
16870 cat >"\$tmp/defines.sed" <<\\CEOF
16871 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
16872 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
16876 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
16878 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16879 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16880 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16881 grep . conftest.tail >/dev/null || break
16882 rm -f conftest.defines
16883 mv conftest.tail conftest.defines
16885 rm -f conftest.defines conftest.tail
16887 echo "ac_result=$ac_in" >>$CONFIG_STATUS
16888 cat >>$CONFIG_STATUS <<\_ACEOF
16889 if test x"$ac_file" != x-; then
16890 echo "/* $configure_input */" >"$tmp/config.h"
16891 cat "$ac_result" >>"$tmp/config.h"
16892 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
16893 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16894 echo "$as_me: $ac_file is unchanged" >&6;}
16897 mv "$tmp/config.h" $ac_file
16900 echo "/* $configure_input */"
16904 # Compute $ac_file's index in $config_headers.
16906 for _am_header in $config_headers :; do
16907 case $_am_header in
16908 $ac_file | $ac_file:* )
16911 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16914 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
16915 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16916 X$ac_file : 'X\(//\)[^/]' \| \
16917 X$ac_file : 'X\(//\)$' \| \
16918 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
16920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16924 /^X\(\/\/\)[^/].*/{
16936 s/.*/./; q'`/stamp-h$_am_stamp_count
16939 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16940 echo "$as_me: executing $ac_file commands" >&6;}
16945 case $ac_file$ac_mode in
16946 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16947 # Strip MF so we end up with the name of the file.
16948 mf=`echo "$mf" | sed -e 's/:.*$//'`
16949 # Check whether this is an Automake generated Makefile or not.
16950 # We used to match only the files named `Makefile.in', but
16951 # some people rename them; so instead we look at the file content.
16952 # Grep'ing the first line is not enough: some people post-process
16953 # each Makefile.in and add a new line on top of each file to say so.
16954 # So let's grep whole file.
16955 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16956 dirpart=`$as_dirname -- "$mf" ||
16957 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16958 X"$mf" : 'X\(//\)[^/]' \| \
16959 X"$mf" : 'X\(//\)$' \| \
16960 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16966 /^X\(\/\/\)[^/].*/{
16982 # Extract the definition of DEPDIR, am__include, and am__quote
16983 # from the Makefile without running `make'.
16984 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16985 test -z "$DEPDIR" && continue
16986 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16987 test -z "am__include" && continue
16988 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16989 # When using ansi2knr, U may be empty or an underscore; expand it
16990 U=`sed -n 's/^U = //p' < "$mf"`
16991 # Find all dependency output files, they are included files with
16992 # $(DEPDIR) in their names. We invoke sed twice because it is the
16993 # simplest approach to changing $(DEPDIR) to its actual value in the
16995 for file in `sed -n "
16996 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16997 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16998 # Make sure the directory exists.
16999 test -f "$dirpart/$file" && continue
17000 fdir=`$as_dirname -- "$file" ||
17001 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17002 X"$file" : 'X\(//\)[^/]' \| \
17003 X"$file" : 'X\(//\)$' \| \
17004 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17010 /^X\(\/\/\)[^/].*/{
17023 { as_dir=$dirpart/$fdir
17025 -*) as_dir=./$as_dir;;
17027 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17031 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17032 *) as_qdir=$as_dir;;
17034 as_dirs="'$as_qdir' $as_dirs"
17035 as_dir=`$as_dirname -- "$as_dir" ||
17036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17037 X"$as_dir" : 'X\(//\)[^/]' \| \
17038 X"$as_dir" : 'X\(//\)$' \| \
17039 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17045 /^X\(\/\/\)[^/].*/{
17058 test -d "$as_dir" && break
17060 test -z "$as_dirs" || eval "mkdir $as_dirs"
17061 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17062 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17063 { (exit 1); exit 1; }; }; }
17064 # echo "creating $dirpart/$file"
17065 echo '# dummy' > "$dirpart/$file"
17069 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17070 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17077 { (exit 0); exit 0; }
17079 chmod +x $CONFIG_STATUS
17080 ac_clean_files=$ac_clean_files_save
17083 # configure is writing to config.log, and then calls config.status.
17084 # config.status does its own redirection, appending to config.log.
17085 # Unfortunately, on DOS this fails, as config.log is still kept open
17086 # by configure, so config.status won't be able to write to it; its
17087 # output is simply discarded. So we exec the FD to /dev/null,
17088 # effectively closing config.log, so it can be properly (re)opened and
17089 # appended to by config.status. When coming back to configure, we
17090 # need to make the FD available again.
17091 if test "$no_create" != yes; then
17093 ac_config_status_args=
17094 test "$silent" = yes &&
17095 ac_config_status_args="$ac_config_status_args --quiet"
17097 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17099 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17100 # would make configure fail if this is the last instruction.
17101 $ac_cs_success || { (exit 1); exit 1; }
17106 -*) as_dir=./$as_dir;;
17108 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17112 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17113 *) as_qdir=$as_dir;;
17115 as_dirs="'$as_qdir' $as_dirs"
17116 as_dir=`$as_dirname -- "$as_dir" ||
17117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17118 X"$as_dir" : 'X\(//\)[^/]' \| \
17119 X"$as_dir" : 'X\(//\)$' \| \
17120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17126 /^X\(\/\/\)[^/].*/{
17139 test -d "$as_dir" && break
17141 test -z "$as_dirs" || eval "mkdir $as_dirs"
17142 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17143 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17144 { (exit 1); exit 1; }; }; }
17148 echo "Configuration complete"
17151 if test "x$HAVE_GTK" = x; then
17152 if test "x$HAVE_COCOA" = x; then
17153 echo " User interface: none"
17155 echo " User interface: Cocoa"
17158 echo " User interface: GTK"
17161 if test "x$SH4_TRANSLATOR" = "x"; then
17162 echo " SH4 translator: None (emulation core only)"
17164 echo " SH4 translator: $SH4_TRANSLATOR"
17167 if test "x$VIDEO_DRIVERS" = "x"; then
17168 echo " Video drivers: none (no supported GL found)"
17170 echo " Video drivers: $VIDEO_DRIVERS"
17173 if test "x$AUDIO_DRIVERS" = "x"; then
17174 echo " Audio drivers: none (no supported output devices found)"
17176 echo " Audio drivers: $AUDIO_DRIVERS"
17179 if test "x$INPUT_DRIVERS" = "x"; then
17180 echo " Input drivers: none (no supported input devices found)"
17182 echo " Input drivers: $INPUT_DRIVERS"
17185 if test "x$CDROM_DRIVER" = "x"; then
17186 echo " CD-ROM driver: none (no supported cd-rom devices found)"
17188 echo " CD-ROM driver: $CDROM_DRIVER"
.