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
728 am__fastdepOBJC_FALSE
747 GLIB_FOR_BUILD_CFLAGS
822 ac_precious_vars='build_alias
847 GLIB_FOR_BUILD_CFLAGS
863 # Initialize some variables set by options.
865 ac_init_version=false
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
875 program_transform_name=s,x,x,
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE}'
900 infodir='${datarootdir}/info'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\$ac_option
921 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
967 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
968 { (exit 1); exit 1; }; }
969 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
970 eval enable_$ac_feature=no ;;
972 -docdir | --docdir | --docdi | --doc | --do)
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 -enable-* | --enable-*)
983 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
986 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
987 { (exit 1); exit 1; }; }
988 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
989 eval enable_$ac_feature=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1153 -site=* | --site=* | --sit=*)
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1180 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid package name: $ac_package" >&2
1184 { (exit 1); exit 1; }; }
1185 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1186 eval with_$ac_package=\$ac_optarg ;;
1188 -without-* | --without-*)
1189 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid package name: $ac_package" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1195 eval with_$ac_package=no ;;
1198 # Obsolete; use --with-x.
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1215 -*) { echo "$as_me: error: unrecognized option: $ac_option
1216 Try \`$0 --help' for more information." >&2
1217 { (exit 1); exit 1; }; }
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1225 { (exit 1); exit 1; }; }
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1230 # FIXME: should be removed in autoconf 3.0.
1231 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 { echo "$as_me: error: missing argument to $ac_option" >&2
1243 { (exit 1); exit 1; }; }
1246 # Be sure to have absolute directory names.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1252 eval ac_val=\$$ac_var
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1258 { (exit 1); exit 1; }; }
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1266 target=$target_alias
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1273 If a cross compiler is detected then cross compile mode will be used." >&2
1274 elif test "x$build_alias" != "x$host_alias"; then
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282 test "$silent" = yes && exec 6>/dev/null
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 { echo "$as_me: error: Working directory cannot be determined" >&2
1289 { (exit 1); exit 1; }; }
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 { echo "$as_me: error: pwd does not report name of working directory" >&2
1292 { (exit 1); exit 1; }; }
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$0" ||
1300 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$0" : 'X\(//\)[^/]' \| \
1302 X"$0" : 'X\(//\)$' \| \
1303 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1327 ac_srcdir_defaulted=no
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1332 { (exit 1); exit 1; }; }
1334 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1336 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1337 { (exit 1); exit 1; }; }
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 # Report the --help message.
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1363 \`configure' configures this package to adapt to many kinds of systems.
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1370 Defaults for the options are specified in brackets.
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1394 For better control, use the options below.
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 if test -n "$ac_init_help"; then
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-maintainer-mode enable make rules and dependencies not useful
1439 (and sometimes confusing) to the casual installer
1440 --disable-dependency-tracking speeds up one-time build
1441 --enable-dependency-tracking do not reject slow dependency extractors
1442 --enable-strict-warn Enable strict compilation warnings
1443 --disable-translator Disable the SH4 translator (Enabled by default)
1444 --disable-optimized Disable compile-time optimizations (Enabled by
1446 --enable-shared Build drivers as shared libraries (Enabled if
1448 --enable-profiled Enable profiling build
1449 --enable-trace Enable generation of IO traces (warning: hurts
1451 --enable-watch Enable watchpoints in the debugger (warning: hurts
1453 --enable-sh4stats Enable statistics on executed sh4 instructions
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-osmesa Build with the osmesa GL library (software
1460 --with-gtk Build with the GTK UI. Default on X11 systems
1461 --with-esd Build with support for the ESounD audio system
1462 --with-pulse Build with support for the PulseAudio audio system
1463 --with-sdl Build with support for SDL audio
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1474 OBJC Objective C compiler command
1475 OBJCFLAGS Objective C compiler flags
1476 CCAS assembler compiler command (defaults to CC)
1477 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1478 PKG_CONFIG path to pkg-config utility
1480 C compiler flags for LIBPNG, overriding pkg-config
1481 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1482 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1483 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1484 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1485 GTK_LIBS linker flags for GTK, overriding pkg-config
1486 GLIB_FOR_BUILD_CFLAGS
1487 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1489 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1491 C compiler flags for LIBISOFS, overriding pkg-config
1493 linker flags for LIBISOFS, overriding pkg-config
1495 C compiler flags for LIBGL, overriding pkg-config
1496 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1497 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1498 SDL_LIBS linker flags for SDL, overriding pkg-config
1500 C compiler flags for PULSE, overriding pkg-config
1501 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1503 C compiler flags for ESOUND, overriding pkg-config
1504 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1505 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1506 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" || continue
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1538 .) # We are building in place.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1562 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1572 generated by GNU Autoconf 2.61
1574 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1575 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1581 cat >config.log <<_ACEOF
1582 This file contains any messages produced by compilers while
1583 running configure, to aid debugging if configure makes a mistake.
1585 It was created by $as_me, which was
1586 generated by GNU Autoconf 2.61. Invocation command line was
1598 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1599 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1600 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1601 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1602 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1604 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1605 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1607 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1608 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1609 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1610 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1611 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1612 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1613 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 test -z "$as_dir" && as_dir=.
1622 echo "PATH: $as_dir"
1638 # Keep a trace of the command line.
1639 # Strip out --no-create and --no-recursion so they do not pile up.
1640 # Strip out --silent because we don't want to record it for future runs.
1641 # Also quote any args containing shell meta-characters.
1642 # Make two passes to allow for proper duplicate-argument suppression.
1646 ac_must_keep_next=false
1652 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1654 | -silent | --silent | --silen | --sile | --sil)
1657 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1660 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1662 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1663 if test $ac_must_keep_next = true; then
1664 ac_must_keep_next=false # Got value, back to normal.
1667 *=* | --config-cache | -C | -disable-* | --disable-* \
1668 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1669 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1670 | -with-* | --with-* | -without-* | --without-* | --x)
1671 case "$ac_configure_args0 " in
1672 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1675 -* ) ac_must_keep_next=true ;;
1678 ac_configure_args="$ac_configure_args '$ac_arg'"
1683 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1684 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1686 # When interrupted or exit'd, cleanup temporary files, and complete
1687 # config.log. We remove comments because anyway the quotes in there
1688 # would cause problems or look ugly.
1689 # WARNING: Use '\'' to represent an apostrophe within the trap.
1690 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1691 trap 'exit_status=$?
1692 # Save into config.log some information that might help in debugging.
1697 ## ---------------- ##
1698 ## Cache variables. ##
1699 ## ---------------- ##
1702 # The following way of writing the cache mishandles newlines in values,
1704 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1705 eval ac_val=\$$ac_var
1709 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1710 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1713 _ | IFS | as_nl) ;; #(
1714 *) $as_unset $ac_var ;;
1719 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1720 *${as_nl}ac_space=\ *)
1722 "s/'\''/'\''\\\\'\'''\''/g;
1723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1734 ## ----------------- ##
1735 ## Output variables. ##
1736 ## ----------------- ##
1739 for ac_var in $ac_subst_vars
1741 eval ac_val=\$$ac_var
1743 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745 echo "$ac_var='\''$ac_val'\''"
1749 if test -n "$ac_subst_files"; then
1751 ## ------------------- ##
1752 ## File substitutions. ##
1753 ## ------------------- ##
1756 for ac_var in $ac_subst_files
1758 eval ac_val=\$$ac_var
1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 echo "$ac_var='\''$ac_val'\''"
1767 if test -s confdefs.h; then
1777 test "$ac_signal" != 0 &&
1778 echo "$as_me: caught signal $ac_signal"
1779 echo "$as_me: exit $exit_status"
1781 rm -f core *.core core.conftest.* &&
1782 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1785 for ac_signal in 1 2 13 15; do
1786 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1790 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1791 rm -f -r conftest* confdefs.h
1793 # Predefined preprocessor variables.
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_NAME "$PACKAGE_NAME"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_STRING "$PACKAGE_STRING"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1820 # Let the site file select an alternate cache file if it wants to.
1821 # Prefer explicitly selected file to automatically selected ones.
1822 if test -n "$CONFIG_SITE"; then
1823 set x "$CONFIG_SITE"
1824 elif test "x$prefix" != xNONE; then
1825 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1827 set x "$ac_default_prefix/share/config.site" \
1828 "$ac_default_prefix/etc/config.site"
1833 if test -r "$ac_site_file"; then
1834 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1835 echo "$as_me: loading site script $ac_site_file" >&6;}
1836 sed 's/^/| /' "$ac_site_file" >&5
1841 if test -r "$cache_file"; then
1842 # Some versions of bash will fail to source /dev/null (special
1843 # files actually), so we avoid doing that.
1844 if test -f "$cache_file"; then
1845 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1846 echo "$as_me: loading cache $cache_file" >&6;}
1848 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1849 *) . "./$cache_file";;
1853 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1854 echo "$as_me: creating cache $cache_file" >&6;}
1858 # Check that the precious variables saved in the cache have kept the same
1860 ac_cache_corrupted=false
1861 for ac_var in $ac_precious_vars; do
1862 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1863 eval ac_new_set=\$ac_env_${ac_var}_set
1864 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1865 eval ac_new_val=\$ac_env_${ac_var}_value
1866 case $ac_old_set,$ac_new_set in
1868 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1869 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1870 ac_cache_corrupted=: ;;
1872 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1873 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1877 if test "x$ac_old_val" != "x$ac_new_val"; then
1878 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1879 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1880 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1881 echo "$as_me: former value: $ac_old_val" >&2;}
1882 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1883 echo "$as_me: current value: $ac_new_val" >&2;}
1884 ac_cache_corrupted=:
1887 # Pass precious variables to config.status.
1888 if test "$ac_new_set" = set; then
1890 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1891 *) ac_arg=$ac_var=$ac_new_val ;;
1893 case " $ac_configure_args " in
1894 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1895 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1899 if $ac_cache_corrupted; then
1900 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1901 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1902 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1903 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1904 { (exit 1); exit 1; }; }
1924 ac_cpp='$CPP $CPPFLAGS'
1925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 am__api_version="1.9"
1932 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933 if test -f "$ac_dir/install-sh"; then
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 elif test -f "$ac_dir/install.sh"; then
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 elif test -f "$ac_dir/shtool"; then
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 if test -z "$ac_aux_dir"; then
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962 # Find a good install program. We prefer a C program (faster),
1963 # so one script is as good as another. But avoid the broken or
1964 # incompatible versions:
1965 # SysV /etc/install, /usr/sbin/install
1966 # SunOS /usr/etc/install
1967 # IRIX /sbin/install
1969 # AmigaOS /C/install, which installs bootblocks on floppy discs
1970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1973 # OS/2's system install, which has a completely different semantic
1974 # ./install, which can be erroneously created by make from ./install.sh.
1975 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1976 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1977 if test -z "$INSTALL"; then
1978 if test "${ac_cv_path_install+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir=.
1986 # Account for people who put trailing slashes in PATH elements.
1988 ./ | .// | /cC/* | \
1989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1990 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1993 # OSF1 and SCO ODT 3.0 have their own names for install.
1994 # Don't use installbsd from OSF since it installs stuff as root
1996 for ac_prog in ginstall scoinst install; do
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1999 if test $ac_prog = install &&
2000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2001 # AIX install. It has an incompatible calling convention.
2003 elif test $ac_prog = install &&
2004 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2005 # program-specific install script used by HP pwplus--don't use.
2008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2021 if test "${ac_cv_path_install+set}" = set; then
2022 INSTALL=$ac_cv_path_install
2024 # As a last resort, use the slow shell script. Don't cache a
2025 # value for INSTALL within a source directory, because that will
2026 # break other packages using the cache if that directory is
2027 # removed, or if the value is a relative name.
2028 INSTALL=$ac_install_sh
2031 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2032 echo "${ECHO_T}$INSTALL" >&6; }
2034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2035 # It thinks the first close brace ends the variable substitution.
2036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2042 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2043 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2046 echo timestamp > conftest.file
2047 # Do `set' in a subshell so we don't clobber the current shell's
2048 # arguments. Must try -L first in case configure is actually a
2049 # symlink; some systems play weird games with the mod time of symlinks
2050 # (eg FreeBSD returns the mod time of the symlink's containing
2053 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2054 if test "$*" = "X"; then
2056 set X `ls -t $srcdir/configure conftest.file`
2059 if test "$*" != "X $srcdir/configure conftest.file" \
2060 && test "$*" != "X conftest.file $srcdir/configure"; then
2062 # If neither matched, then we have a broken ls. This can happen
2063 # if, for instance, CONFIG_SHELL is bash and it inherits a
2064 # broken ls alias from the environment. This has actually
2065 # happened. Such a system could not be considered "sane".
2066 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2067 alias in your environment" >&5
2068 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2069 alias in your environment" >&2;}
2070 { (exit 1); exit 1; }; }
2073 test "$2" = conftest.file
2079 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2080 Check your system clock" >&5
2081 echo "$as_me: error: newly created file is older than distributed files!
2082 Check your system clock" >&2;}
2083 { (exit 1); exit 1; }; }
2085 { echo "$as_me:$LINENO: result: yes" >&5
2086 echo "${ECHO_T}yes" >&6; }
2087 test "$program_prefix" != NONE &&
2088 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2089 # Use a double $ so make ignores it.
2090 test "$program_suffix" != NONE &&
2091 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2092 # Double any \ or $. echo might interpret backslashes.
2093 # By default was `s,x,x', remove it if useless.
2094 cat <<\_ACEOF >conftest.sed
2095 s/[\\$]/&&/g;s/;s,x,x,$//
2097 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2100 # expand $ac_aux_dir to an absolute path
2101 am_aux_dir=`cd $ac_aux_dir && pwd`
2103 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2104 # Use eval to expand $SHELL
2105 if eval "$MISSING --run true"; then
2106 am_missing_run="$MISSING --run "
2109 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2110 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2113 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2114 # We used to keeping the `.' as first argument, in order to
2115 # allow $(mkdir_p) to be used without argument. As in
2116 # $(mkdir_p) $(somedir)
2117 # where $(somedir) is conditionally defined. However this is wrong
2119 # 1. if the package is installed by a user who cannot write `.'
2120 # make install will fail,
2121 # 2. the above comment should most certainly read
2122 # $(mkdir_p) $(DESTDIR)$(somedir)
2123 # so it does not work when $(somedir) is undefined and
2124 # $(DESTDIR) is not.
2125 # To support the latter case, we have to write
2126 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2127 # so the `.' trick is pointless.
2128 mkdir_p='mkdir -p --'
2130 # On NextStep and OpenStep, the `mkdir' command does not
2131 # recognize any option. It will interpret all options as
2132 # directories to create, and then abort because `.' already
2134 for d in ./-p ./--version;
2136 test -d $d && rmdir $d
2138 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2139 if test -f "$ac_aux_dir/mkinstalldirs"; then
2140 mkdir_p='$(mkinstalldirs)'
2142 mkdir_p='$(install_sh) -d'
2146 for ac_prog in gawk mawk nawk awk
2148 # Extract the first word of "$ac_prog", so it can be a program name with args.
2149 set dummy $ac_prog; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_AWK+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 if test -n "$AWK"; then
2156 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165 ac_cv_prog_AWK="$ac_prog"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 if test -n "$AWK"; then
2177 { echo "$as_me:$LINENO: result: $AWK" >&5
2178 echo "${ECHO_T}$AWK" >&6; }
2180 { echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6; }
2185 test -n "$AWK" && break
2188 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2189 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2190 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2191 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 cat >conftest.make <<\_ACEOF
2197 @echo '@@@%%%=$(MAKE)=@@@%%%'
2199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2200 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2202 eval ac_cv_prog_make_${ac_make}_set=yes;;
2204 eval ac_cv_prog_make_${ac_make}_set=no;;
2208 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2209 { echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6; }
2213 { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2215 SET_MAKE="MAKE=${MAKE-make}"
2218 rm -rf .tst 2>/dev/null
2219 mkdir .tst 2>/dev/null
2220 if test -d .tst; then
2225 rmdir .tst 2>/dev/null
2227 # test to see if srcdir already configured
2228 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2229 test -f $srcdir/config.status; then
2230 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2231 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2232 { (exit 1); exit 1; }; }
2235 # test whether we have cygpath
2236 if test -z "$CYGPATH_W"; then
2237 if (cygpath --version) >/dev/null 2>/dev/null; then
2238 CYGPATH_W='cygpath -w'
2245 # Define the identity of the package.
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE "$PACKAGE"
2255 cat >>confdefs.h <<_ACEOF
2256 #define VERSION "$VERSION"
2259 # Some tools Automake needs.
2261 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2264 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2267 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2270 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2273 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2275 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2277 # Installed binaries are usually stripped using `strip' when the user
2278 # run `make install-strip'. However `strip' might not be the right
2279 # tool to use in cross-compilation environments, therefore Automake
2280 # will honor the `STRIP' environment variable to overrule this program.
2281 if test "$cross_compiling" != no; then
2282 if test -n "$ac_tool_prefix"; then
2283 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}strip; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_STRIP+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 if test -n "$STRIP"; then
2291 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 STRIP=$ac_cv_prog_STRIP
2311 if test -n "$STRIP"; then
2312 { echo "$as_me:$LINENO: result: $STRIP" >&5
2313 echo "${ECHO_T}$STRIP" >&6; }
2315 { echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6; }
2321 if test -z "$ac_cv_prog_STRIP"; then
2323 # Extract the first word of "strip", so it can be a program name with args.
2324 set dummy strip; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 if test -n "$ac_ct_STRIP"; then
2331 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_ac_ct_STRIP="strip"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2351 if test -n "$ac_ct_STRIP"; then
2352 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2353 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2359 if test "x$ac_ct_STRIP" = x; then
2362 case $cross_compiling:$ac_tool_warned in
2364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2365 whose name does not start with the host triplet. If you think this
2366 configuration is useful to you, please write to autoconf@gnu.org." >&5
2367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2368 whose name does not start with the host triplet. If you think this
2369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2370 ac_tool_warned=yes ;;
2375 STRIP="$ac_cv_prog_STRIP"
2379 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2381 # We need awk for the "check" target. The system "awk" is bad on
2383 # Always define AMTAR for backward compatibility.
2385 AMTAR=${AMTAR-"${am_missing_run}tar"}
2387 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2393 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2394 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2395 # Check whether --enable-maintainer-mode was given.
2396 if test "${enable_maintainer_mode+set}" = set; then
2397 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2399 USE_MAINTAINER_MODE=no
2402 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2403 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2406 if test $USE_MAINTAINER_MODE = yes; then
2407 MAINTAINER_MODE_TRUE=
2408 MAINTAINER_MODE_FALSE='#'
2410 MAINTAINER_MODE_TRUE='#'
2411 MAINTAINER_MODE_FALSE=
2414 MAINT=$MAINTAINER_MODE_TRUE
2417 ac_config_headers="$ac_config_headers config.h"
2420 # Make sure we can run config.sub.
2421 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2422 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2423 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2424 { (exit 1); exit 1; }; }
2426 { echo "$as_me:$LINENO: checking build system type" >&5
2427 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2428 if test "${ac_cv_build+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 ac_build_alias=$build_alias
2432 test "x$ac_build_alias" = x &&
2433 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2434 test "x$ac_build_alias" = x &&
2435 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2437 { (exit 1); exit 1; }; }
2438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2439 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2440 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2441 { (exit 1); exit 1; }; }
2444 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2445 echo "${ECHO_T}$ac_cv_build" >&6; }
2446 case $ac_cv_build in
2448 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2449 echo "$as_me: error: invalid value of canonical build" >&2;}
2450 { (exit 1); exit 1; }; };;
2453 ac_save_IFS=$IFS; IFS='-'
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2466 { echo "$as_me:$LINENO: checking host system type" >&5
2467 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2468 if test "${ac_cv_host+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test "x$host_alias" = x; then
2472 ac_cv_host=$ac_cv_build
2474 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2475 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2476 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2477 { (exit 1); exit 1; }; }
2481 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2482 echo "${ECHO_T}$ac_cv_host" >&6; }
2485 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2486 echo "$as_me: error: invalid value of canonical host" >&2;}
2487 { (exit 1); exit 1; }; };;
2490 ac_save_IFS=$IFS; IFS='-'
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2500 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2512 DEPDIR="${am__leading_dot}deps"
2514 ac_config_commands="$ac_config_commands depfiles"
2517 am_make=${MAKE-make}
2518 cat > confinc << 'END'
2523 # If we don't find an include directive, just comment out the code.
2524 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2525 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2529 # First try GNU make style include.
2530 echo "include confinc" > confmf
2531 # We grep out `Entering directory' and `Leaving directory'
2532 # messages which can occur if `w' ends up in MAKEFLAGS.
2533 # In particular we don't look at `^make:' because GNU make might
2534 # be invoked under some other name (usually "gmake"), in which
2535 # case it prints its new name instead of `make'.
2536 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2541 # Now try BSD make style include.
2542 if test "$am__include" = "#"; then
2543 echo '.include "confinc"' > confmf
2544 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2545 am__include=.include
2552 { echo "$as_me:$LINENO: result: $_am_result" >&5
2553 echo "${ECHO_T}$_am_result" >&6; }
2554 rm -f confinc confmf
2556 # Check whether --enable-dependency-tracking was given.
2557 if test "${enable_dependency_tracking+set}" = set; then
2558 enableval=$enable_dependency_tracking;
2561 if test "x$enable_dependency_tracking" != xno; then
2562 am_depcomp="$ac_aux_dir/depcomp"
2567 if test "x$enable_dependency_tracking" != xno; then
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582 if test -n "$ac_tool_prefix"; then
2583 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_CC+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 if test -n "$CC"; then
2591 ac_cv_prog_CC="$CC" # Let the user override the test.
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 if test -n "$CC"; then
2612 { echo "$as_me:$LINENO: result: $CC" >&5
2613 echo "${ECHO_T}$CC" >&6; }
2615 { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2621 if test -z "$ac_cv_prog_CC"; then
2623 # Extract the first word of "gcc", so it can be a program name with args.
2624 set dummy gcc; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 if test -n "$ac_ct_CC"; then
2631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_ac_ct_CC="gcc"
2641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2653 echo "${ECHO_T}$ac_ct_CC" >&6; }
2655 { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2659 if test "x$ac_ct_CC" = x; then
2662 case $cross_compiling:$ac_tool_warned in
2664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet. If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&5
2667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2668 whose name does not start with the host triplet. If you think this
2669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2670 ac_tool_warned=yes ;;
2678 if test -z "$CC"; then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}cc; ac_word=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_CC+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_CC="${ac_tool_prefix}cc"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 if test -n "$CC"; then
2709 { echo "$as_me:$LINENO: result: $CC" >&5
2710 echo "${ECHO_T}$CC" >&6; }
2712 { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2719 if test -z "$CC"; then
2720 # Extract the first word of "cc", so it can be a program name with args.
2721 set dummy cc; ac_word=$2
2722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2739 ac_prog_rejected=yes
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 if test $ac_prog_rejected = yes; then
2751 # We found a bogon in the path, so make sure we never use it.
2752 set dummy $ac_cv_prog_CC
2754 if test $# != 0; then
2755 # We chose a different compiler from the bogus one.
2756 # However, it has the same basename, so the bogon will be chosen
2757 # first if we set CC to just the basename; use the full file name.
2759 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2765 if test -n "$CC"; then
2766 { echo "$as_me:$LINENO: result: $CC" >&5
2767 echo "${ECHO_T}$CC" >&6; }
2769 { echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6; }
2775 if test -z "$CC"; then
2776 if test -n "$ac_tool_prefix"; then
2777 for ac_prog in cl.exe
2779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 if test -n "$CC"; then
2808 { echo "$as_me:$LINENO: result: $CC" >&5
2809 echo "${ECHO_T}$CC" >&6; }
2811 { echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6; }
2816 test -n "$CC" && break
2819 if test -z "$CC"; then
2821 for ac_prog in cl.exe
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_ac_ct_CC="$ac_prog"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851 if test -n "$ac_ct_CC"; then
2852 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2853 echo "${ECHO_T}$ac_ct_CC" >&6; }
2855 { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2860 test -n "$ac_ct_CC" && break
2863 if test "x$ac_ct_CC" = x; then
2866 case $cross_compiling:$ac_tool_warned in
2868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2869 whose name does not start with the host triplet. If you think this
2870 configuration is useful to you, please write to autoconf@gnu.org." >&5
2871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2872 whose name does not start with the host triplet. If you think this
2873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2874 ac_tool_warned=yes ;;
2883 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2884 See \`config.log' for more details." >&5
2885 echo "$as_me: error: no acceptable C compiler found in \$PATH
2886 See \`config.log' for more details." >&2;}
2887 { (exit 1); exit 1; }; }
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2938 ac_clean_files_save=$ac_clean_files
2939 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2940 # Try to create an executable without -o first, disregard a.out.
2941 # It will help us diagnose broken compilers, and finding out an intuition
2943 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2944 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2945 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2947 # List of possible output files, starting from the most likely.
2948 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2949 # only as a last resort. b.out is created by i960 compilers.
2950 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2952 # The IRIX 6 linker writes into existing files which may not be
2953 # executable, retaining their permissions. Remove them first so a
2954 # subsequent execution test works.
2956 for ac_file in $ac_files
2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2960 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2965 if { (ac_try="$ac_link_default"
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_link_default") 2>&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; then
2975 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2976 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2977 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2978 # so that the user can short-circuit this test for compilers unknown to
2980 for ac_file in $ac_files ''
2982 test -f "$ac_file" || continue
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2987 # We found the default executable, but exeext='' is most
2991 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2993 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2995 # We set ac_cv_exeext here because the later test for it is not
2996 # safe: cross compilers may not add the suffix if given an `-o'
2997 # argument, so we may need to know it at that point already.
2998 # Even if this section looks crufty: it has the advantage of
3005 test "$ac_cv_exeext" = no && ac_cv_exeext=
3011 { echo "$as_me:$LINENO: result: $ac_file" >&5
3012 echo "${ECHO_T}$ac_file" >&6; }
3013 if test -z "$ac_file"; then
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3018 See \`config.log' for more details." >&5
3019 echo "$as_me: error: C compiler cannot create executables
3020 See \`config.log' for more details." >&2;}
3021 { (exit 77); exit 77; }; }
3024 ac_exeext=$ac_cv_exeext
3026 # Check that the compiler produces executables we can run. If not, either
3027 # the compiler is broken, or we cross compile.
3028 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3029 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3030 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3031 # If not cross compiling, check that we can run a simple program.
3032 if test "$cross_compiling" != yes; then
3033 if { ac_try='./$ac_file'
3034 { (case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_try") 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3045 if test "$cross_compiling" = maybe; then
3048 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3049 If you meant to cross compile, use \`--host'.
3050 See \`config.log' for more details." >&5
3051 echo "$as_me: error: cannot run C compiled programs.
3052 If you meant to cross compile, use \`--host'.
3053 See \`config.log' for more details." >&2;}
3054 { (exit 1); exit 1; }; }
3058 { echo "$as_me:$LINENO: result: yes" >&5
3059 echo "${ECHO_T}yes" >&6; }
3061 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3062 ac_clean_files=$ac_clean_files_save
3063 # Check that the compiler produces executables we can run. If not, either
3064 # the compiler is broken, or we cross compile.
3065 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3066 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3067 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3068 echo "${ECHO_T}$cross_compiling" >&6; }
3070 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3071 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3072 if { (ac_try="$ac_link"
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_link") 2>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; then
3082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3083 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3084 # work properly (i.e., refer to `conftest.exe'), while it won't with
3086 for ac_file in conftest.exe conftest conftest.*; do
3087 test -f "$ac_file" || continue
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3090 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3099 See \`config.log' for more details." >&2;}
3100 { (exit 1); exit 1; }; }
3103 rm -f conftest$ac_cv_exeext
3104 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3105 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3107 rm -f conftest.$ac_ext
3108 EXEEXT=$ac_cv_exeext
3110 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3111 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3112 if test "${ac_cv_objext+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3130 rm -f conftest.o conftest.obj
3131 if { (ac_try="$ac_compile"
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; then
3141 for ac_file in conftest.o conftest.obj conftest.*; do
3142 test -f "$ac_file" || continue;
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3145 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3154 See \`config.log' for more details." >&5
3155 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3156 See \`config.log' for more details." >&2;}
3157 { (exit 1); exit 1; }; }
3160 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3162 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3163 echo "${ECHO_T}$ac_cv_objext" >&6; }
3164 OBJEXT=$ac_cv_objext
3166 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3167 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3168 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3189 rm -f conftest.$ac_objext
3190 if { (ac_try="$ac_compile"
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_compile") 2>conftest.er1
3198 grep -v '^ *+' conftest.er1 >conftest.err
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } && {
3203 test -z "$ac_c_werror_flag" ||
3204 test ! -s conftest.err
3205 } && test -s conftest.$ac_objext; then
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3218 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3219 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3220 GCC=`test $ac_compiler_gnu = yes && echo yes`
3221 ac_test_CFLAGS=${CFLAGS+set}
3222 ac_save_CFLAGS=$CFLAGS
3223 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3224 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3225 if test "${ac_cv_prog_cc_g+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 ac_save_c_werror_flag=$ac_c_werror_flag
3229 ac_c_werror_flag=yes
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3247 rm -f conftest.$ac_objext
3248 if { (ac_try="$ac_compile"
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_compile") 2>conftest.er1
3256 grep -v '^ *+' conftest.er1 >conftest.err
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } && {
3261 test -z "$ac_c_werror_flag" ||
3262 test ! -s conftest.err
3263 } && test -s conftest.$ac_objext; then
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3270 cat >conftest.$ac_ext <<_ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } && {
3299 test -z "$ac_c_werror_flag" ||
3300 test ! -s conftest.err
3301 } && test -s conftest.$ac_objext; then
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3309 cat >conftest.$ac_ext <<_ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3324 rm -f conftest.$ac_objext
3325 if { (ac_try="$ac_compile"
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_compile") 2>conftest.er1
3333 grep -v '^ *+' conftest.er1 >conftest.err
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } && {
3338 test -z "$ac_c_werror_flag" ||
3339 test ! -s conftest.err
3340 } && test -s conftest.$ac_objext; then
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_c_werror_flag=$ac_save_c_werror_flag
3358 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3359 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3360 if test "$ac_test_CFLAGS" = set; then
3361 CFLAGS=$ac_save_CFLAGS
3362 elif test $ac_cv_prog_cc_g = yes; then
3363 if test "$GCC" = yes; then
3369 if test "$GCC" = yes; then
3375 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3376 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3377 if test "${ac_cv_prog_cc_c89+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 ac_cv_prog_cc_c89=no
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3390 #include <sys/types.h>
3391 #include <sys/stat.h>
3392 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3393 struct buf { int x; };
3394 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3395 static char *e (p, i)
3401 static char *f (char * (*g) (char **, int), char **p, ...)
3406 s = g (p, va_arg (v,int));
3411 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3412 function prototypes and stuff, but not '\xHH' hex character constants.
3413 These don't provoke an error unfortunately, instead are silently treated
3414 as 'x'. The following induces an error, until -std is added to get
3415 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3416 array size at least. It's necessary to write '\x00'==0 to get something
3417 that's true only with -std. */
3418 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3420 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3421 inside strings and character constants. */
3423 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3425 int test (int i, double x);
3426 struct s1 {int (*f) (int a);};
3427 struct s2 {int (*f) (double a);};
3428 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3434 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3439 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3440 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3442 CC="$ac_save_CC $ac_arg"
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_compile") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } && {
3457 test -z "$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 } && test -s conftest.$ac_objext; then
3460 ac_cv_prog_cc_c89=$ac_arg
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3468 rm -f core conftest.err conftest.$ac_objext
3469 test "x$ac_cv_prog_cc_c89" != "xno" && break
3471 rm -f conftest.$ac_ext
3476 case "x$ac_cv_prog_cc_c89" in
3478 { echo "$as_me:$LINENO: result: none needed" >&5
3479 echo "${ECHO_T}none needed" >&6; } ;;
3481 { echo "$as_me:$LINENO: result: unsupported" >&5
3482 echo "${ECHO_T}unsupported" >&6; } ;;
3484 CC="$CC $ac_cv_prog_cc_c89"
3485 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3486 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 depcc="$CC" am_compiler_list=
3498 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3499 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3500 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3504 # We make a subdir and do the tests there. Otherwise we can end up
3505 # making bogus files that we don't know about and never remove. For
3506 # instance it was reported that on HP-UX the gcc test will end up
3507 # making a dummy file named `D' -- because `-MD' means `put the output
3510 # Copy depcomp to subdir because otherwise we won't find it if we're
3511 # using a relative directory.
3512 cp "$am_depcomp" conftest.dir
3514 # We will build objects and dependencies in a subdirectory because
3515 # it helps to detect inapplicable dependency modes. For instance
3516 # both Tru64's cc and ICC support -MD to output dependencies as a
3517 # side effect of compilation, but ICC will put the dependencies in
3518 # the current directory while Tru64 will put them in the object
3522 am_cv_CC_dependencies_compiler_type=none
3523 if test "$am_compiler_list" = ""; then
3524 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3526 for depmode in $am_compiler_list; do
3527 # Setup a source with many dependencies, because some compilers
3528 # like to wrap large dependency lists on column 80 (with \), and
3529 # we should not choose a depcomp mode which is confused by this.
3531 # We need to recreate these files for each test, as the compiler may
3532 # overwrite some of them when testing with obscure command lines.
3533 # This happens at least with the AIX C compiler.
3535 for i in 1 2 3 4 5 6; do
3536 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3537 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3538 # Solaris 8's {/usr,}/bin/sh.
3539 touch sub/conftst$i.h
3541 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3545 # after this tag, mechanisms are not by side-effect, so they'll
3546 # only be used when explicitly requested
3547 if test "x$enable_dependency_tracking" = xyes; then
3555 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3556 # mode. It turns out that the SunPro C++ compiler does not properly
3557 # handle `-M -o', and we need to detect this.
3558 if depmode=$depmode \
3559 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3560 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3561 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3562 >/dev/null 2>conftest.err &&
3563 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3564 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3565 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3566 # icc doesn't choke on unknown options, it will just issue warnings
3567 # or remarks (even with -Werror). So we grep stderr for any message
3568 # that says an option was ignored or not supported.
3569 # When given -MP, icc 7.0 and 7.1 complain thusly:
3570 # icc: Command line warning: ignoring option '-M'; no argument required
3571 # The diagnosis changed in icc 8.0:
3572 # icc: Command line remark: option '-MP' not supported
3573 if (grep 'ignoring option' conftest.err ||
3574 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3575 am_cv_CC_dependencies_compiler_type=$depmode
3584 am_cv_CC_dependencies_compiler_type=none
3588 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3589 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3590 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3595 test "x$enable_dependency_tracking" != xno \
3596 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3598 am__fastdepCC_FALSE='#'
3600 am__fastdepCC_TRUE='#'
3601 am__fastdepCC_FALSE=
3607 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3608 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3609 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 ac_check_lib_save_LIBS=$LIBS
3613 LIBS="-lcposix $LIBS"
3614 cat >conftest.$ac_ext <<_ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3621 /* Override any GCC internal prototype to avoid an error.
3622 Use char because int might match the return type of a GCC
3623 builtin and then its argument prototype would still apply. */
3636 rm -f conftest.$ac_objext conftest$ac_exeext
3637 if { (ac_try="$ac_link"
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3643 (eval "$ac_link") 2>conftest.er1
3645 grep -v '^ *+' conftest.er1 >conftest.err
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } && {
3650 test -z "$ac_c_werror_flag" ||
3651 test ! -s conftest.err
3652 } && test -s conftest$ac_exeext &&
3653 $as_test_x conftest$ac_exeext; then
3654 ac_cv_lib_cposix_strerror=yes
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 ac_cv_lib_cposix_strerror=no
3662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3663 conftest$ac_exeext conftest.$ac_ext
3664 LIBS=$ac_check_lib_save_LIBS
3666 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3667 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3668 if test $ac_cv_lib_cposix_strerror = yes; then
3669 LIBS="$LIBS -lcposix"
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679 if test -n "$ac_tool_prefix"; then
3680 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3681 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3684 if test "${ac_cv_prog_CC+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 if test -n "$CC"; then
3709 { echo "$as_me:$LINENO: result: $CC" >&5
3710 echo "${ECHO_T}$CC" >&6; }
3712 { echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6; }
3718 if test -z "$ac_cv_prog_CC"; then
3720 # Extract the first word of "gcc", so it can be a program name with args.
3721 set dummy gcc; ac_word=$2
3722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3724 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 if test -n "$ac_ct_CC"; then
3728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737 ac_cv_prog_ac_ct_CC="gcc"
3738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3748 if test -n "$ac_ct_CC"; then
3749 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3750 echo "${ECHO_T}$ac_ct_CC" >&6; }
3752 { echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6; }
3756 if test "x$ac_ct_CC" = x; then
3759 case $cross_compiling:$ac_tool_warned in
3761 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3762 whose name does not start with the host triplet. If you think this
3763 configuration is useful to you, please write to autoconf@gnu.org." >&5
3764 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3765 whose name does not start with the host triplet. If you think this
3766 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3767 ac_tool_warned=yes ;;
3775 if test -z "$CC"; then
3776 if test -n "$ac_tool_prefix"; then
3777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3778 set dummy ${ac_tool_prefix}cc; ac_word=$2
3779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3781 if test "${ac_cv_prog_CC+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 if test -n "$CC"; then
3785 ac_cv_prog_CC="$CC" # Let the user override the test.
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3794 ac_cv_prog_CC="${ac_tool_prefix}cc"
3795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 if test -n "$CC"; then
3806 { echo "$as_me:$LINENO: result: $CC" >&5
3807 echo "${ECHO_T}$CC" >&6; }
3809 { echo "$as_me:$LINENO: result: no" >&5
3810 echo "${ECHO_T}no" >&6; }
3816 if test -z "$CC"; then
3817 # Extract the first word of "cc", so it can be a program name with args.
3818 set dummy cc; ac_word=$2
3819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3821 if test "${ac_cv_prog_CC+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 if test -n "$CC"; then
3825 ac_cv_prog_CC="$CC" # Let the user override the test.
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3836 ac_prog_rejected=yes
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 if test $ac_prog_rejected = yes; then
3848 # We found a bogon in the path, so make sure we never use it.
3849 set dummy $ac_cv_prog_CC
3851 if test $# != 0; then
3852 # We chose a different compiler from the bogus one.
3853 # However, it has the same basename, so the bogon will be chosen
3854 # first if we set CC to just the basename; use the full file name.
3856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3862 if test -n "$CC"; then
3863 { echo "$as_me:$LINENO: result: $CC" >&5
3864 echo "${ECHO_T}$CC" >&6; }
3866 { echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6; }
3872 if test -z "$CC"; then
3873 if test -n "$ac_tool_prefix"; then
3874 for ac_prog in cl.exe
3876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3880 if test "${ac_cv_prog_CC+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 if test -n "$CC"; then
3905 { echo "$as_me:$LINENO: result: $CC" >&5
3906 echo "${ECHO_T}$CC" >&6; }
3908 { echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6; }
3913 test -n "$CC" && break
3916 if test -z "$CC"; then
3918 for ac_prog in cl.exe
3920 # Extract the first word of "$ac_prog", so it can be a program name with args.
3921 set dummy $ac_prog; ac_word=$2
3922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if test -n "$ac_ct_CC"; then
3928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_ac_ct_CC="$ac_prog"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3948 if test -n "$ac_ct_CC"; then
3949 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3950 echo "${ECHO_T}$ac_ct_CC" >&6; }
3952 { echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6; }
3957 test -n "$ac_ct_CC" && break
3960 if test "x$ac_ct_CC" = x; then
3963 case $cross_compiling:$ac_tool_warned in
3965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3966 whose name does not start with the host triplet. If you think this
3967 configuration is useful to you, please write to autoconf@gnu.org." >&5
3968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3969 whose name does not start with the host triplet. If you think this
3970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3971 ac_tool_warned=yes ;;
3980 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3981 See \`config.log' for more details." >&5
3982 echo "$as_me: error: no acceptable C compiler found in \$PATH
3983 See \`config.log' for more details." >&2;}
3984 { (exit 1); exit 1; }; }
3986 # Provide some information about the compiler.
3987 echo "$as_me:$LINENO: checking for C compiler version" >&5
3988 ac_compiler=`set X $ac_compile; echo $2`
3989 { (ac_try="$ac_compiler --version >&5"
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995 (eval "$ac_compiler --version >&5") 2>&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }
3999 { (ac_try="$ac_compiler -v >&5"
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_compiler -v >&5") 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }
4009 { (ac_try="$ac_compiler -V >&5"
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_compiler -V >&5") 2>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }
4020 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4021 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4022 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4043 rm -f conftest.$ac_objext
4044 if { (ac_try="$ac_compile"
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050 (eval "$ac_compile") 2>conftest.er1
4052 grep -v '^ *+' conftest.er1 >conftest.err
4054 cat conftest.err >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } && {
4057 test -z "$ac_c_werror_flag" ||
4058 test ! -s conftest.err
4059 } && test -s conftest.$ac_objext; then
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4072 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4073 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4074 GCC=`test $ac_compiler_gnu = yes && echo yes`
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4078 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4079 if test "${ac_cv_prog_cc_g+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4101 rm -f conftest.$ac_objext
4102 if { (ac_try="$ac_compile"
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_compile") 2>conftest.er1
4110 grep -v '^ *+' conftest.er1 >conftest.err
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } && {
4115 test -z "$ac_c_werror_flag" ||
4116 test ! -s conftest.err
4117 } && test -s conftest.$ac_objext; then
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4124 cat >conftest.$ac_ext <<_ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4139 rm -f conftest.$ac_objext
4140 if { (ac_try="$ac_compile"
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_compile") 2>conftest.er1
4148 grep -v '^ *+' conftest.er1 >conftest.err
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } && {
4153 test -z "$ac_c_werror_flag" ||
4154 test ! -s conftest.err
4155 } && test -s conftest.$ac_objext; then
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4163 cat >conftest.$ac_ext <<_ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4178 rm -f conftest.$ac_objext
4179 if { (ac_try="$ac_compile"
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_compile") 2>conftest.er1
4187 grep -v '^ *+' conftest.er1 >conftest.err
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && {
4192 test -z "$ac_c_werror_flag" ||
4193 test ! -s conftest.err
4194 } && test -s conftest.$ac_objext; then
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 ac_c_werror_flag=$ac_save_c_werror_flag
4212 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4213 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4214 if test "$ac_test_CFLAGS" = set; then
4215 CFLAGS=$ac_save_CFLAGS
4216 elif test $ac_cv_prog_cc_g = yes; then
4217 if test "$GCC" = yes; then
4223 if test "$GCC" = yes; then
4229 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4230 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4231 if test "${ac_cv_prog_cc_c89+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 ac_cv_prog_cc_c89=no
4236 cat >conftest.$ac_ext <<_ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4244 #include <sys/types.h>
4245 #include <sys/stat.h>
4246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4247 struct buf { int x; };
4248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4249 static char *e (p, i)
4255 static char *f (char * (*g) (char **, int), char **p, ...)
4260 s = g (p, va_arg (v,int));
4265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4266 function prototypes and stuff, but not '\xHH' hex character constants.
4267 These don't provoke an error unfortunately, instead are silently treated
4268 as 'x'. The following induces an error, until -std is added to get
4269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4270 array size at least. It's necessary to write '\x00'==0 to get something
4271 that's true only with -std. */
4272 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4275 inside strings and character constants. */
4277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4279 int test (int i, double x);
4280 struct s1 {int (*f) (int a);};
4281 struct s2 {int (*f) (double a);};
4282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4288 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4296 CC="$ac_save_CC $ac_arg"
4297 rm -f conftest.$ac_objext
4298 if { (ac_try="$ac_compile"
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_compile") 2>conftest.er1
4306 grep -v '^ *+' conftest.er1 >conftest.err
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } && {
4311 test -z "$ac_c_werror_flag" ||
4312 test ! -s conftest.err
4313 } && test -s conftest.$ac_objext; then
4314 ac_cv_prog_cc_c89=$ac_arg
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4322 rm -f core conftest.err conftest.$ac_objext
4323 test "x$ac_cv_prog_cc_c89" != "xno" && break
4325 rm -f conftest.$ac_ext
4330 case "x$ac_cv_prog_cc_c89" in
4332 { echo "$as_me:$LINENO: result: none needed" >&5
4333 echo "${ECHO_T}none needed" >&6; } ;;
4335 { echo "$as_me:$LINENO: result: unsupported" >&5
4336 echo "${ECHO_T}unsupported" >&6; } ;;
4338 CC="$CC $ac_cv_prog_cc_c89"
4339 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4340 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350 depcc="$CC" am_compiler_list=
4352 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4353 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4354 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4358 # We make a subdir and do the tests there. Otherwise we can end up
4359 # making bogus files that we don't know about and never remove. For
4360 # instance it was reported that on HP-UX the gcc test will end up
4361 # making a dummy file named `D' -- because `-MD' means `put the output
4364 # Copy depcomp to subdir because otherwise we won't find it if we're
4365 # using a relative directory.
4366 cp "$am_depcomp" conftest.dir
4368 # We will build objects and dependencies in a subdirectory because
4369 # it helps to detect inapplicable dependency modes. For instance
4370 # both Tru64's cc and ICC support -MD to output dependencies as a
4371 # side effect of compilation, but ICC will put the dependencies in
4372 # the current directory while Tru64 will put them in the object
4376 am_cv_CC_dependencies_compiler_type=none
4377 if test "$am_compiler_list" = ""; then
4378 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4380 for depmode in $am_compiler_list; do
4381 # Setup a source with many dependencies, because some compilers
4382 # like to wrap large dependency lists on column 80 (with \), and
4383 # we should not choose a depcomp mode which is confused by this.
4385 # We need to recreate these files for each test, as the compiler may
4386 # overwrite some of them when testing with obscure command lines.
4387 # This happens at least with the AIX C compiler.
4389 for i in 1 2 3 4 5 6; do
4390 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4391 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4392 # Solaris 8's {/usr,}/bin/sh.
4393 touch sub/conftst$i.h
4395 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4399 # after this tag, mechanisms are not by side-effect, so they'll
4400 # only be used when explicitly requested
4401 if test "x$enable_dependency_tracking" = xyes; then
4409 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4410 # mode. It turns out that the SunPro C++ compiler does not properly
4411 # handle `-M -o', and we need to detect this.
4412 if depmode=$depmode \
4413 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4414 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4415 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4416 >/dev/null 2>conftest.err &&
4417 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4418 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4419 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4420 # icc doesn't choke on unknown options, it will just issue warnings
4421 # or remarks (even with -Werror). So we grep stderr for any message
4422 # that says an option was ignored or not supported.
4423 # When given -MP, icc 7.0 and 7.1 complain thusly:
4424 # icc: Command line warning: ignoring option '-M'; no argument required
4425 # The diagnosis changed in icc 8.0:
4426 # icc: Command line remark: option '-MP' not supported
4427 if (grep 'ignoring option' conftest.err ||
4428 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4429 am_cv_CC_dependencies_compiler_type=$depmode
4438 am_cv_CC_dependencies_compiler_type=none
4442 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4443 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4444 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4449 test "x$enable_dependency_tracking" != xno \
4450 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4452 am__fastdepCC_FALSE='#'
4454 am__fastdepCC_TRUE='#'
4455 am__fastdepCC_FALSE=
4460 ac_cpp='$CPP $CPPFLAGS'
4461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4464 if test -n "$ac_tool_prefix"; then
4465 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4466 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$CC"; then
4473 ac_cv_prog_CC="$CC" # Let the user override the test.
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 if test -n "$CC"; then
4494 { echo "$as_me:$LINENO: result: $CC" >&5
4495 echo "${ECHO_T}$CC" >&6; }
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4503 if test -z "$ac_cv_prog_CC"; then
4505 # Extract the first word of "gcc", so it can be a program name with args.
4506 set dummy gcc; ac_word=$2
4507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 if test -n "$ac_ct_CC"; then
4513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 ac_cv_prog_ac_ct_CC="gcc"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4533 if test -n "$ac_ct_CC"; then
4534 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4535 echo "${ECHO_T}$ac_ct_CC" >&6; }
4537 { echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6; }
4541 if test "x$ac_ct_CC" = x; then
4544 case $cross_compiling:$ac_tool_warned in
4546 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4547 whose name does not start with the host triplet. If you think this
4548 configuration is useful to you, please write to autoconf@gnu.org." >&5
4549 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4550 whose name does not start with the host triplet. If you think this
4551 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4552 ac_tool_warned=yes ;;
4560 if test -z "$CC"; then
4561 if test -n "$ac_tool_prefix"; then
4562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4563 set dummy ${ac_tool_prefix}cc; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_prog_CC+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 if test -n "$CC"; then
4570 ac_cv_prog_CC="$CC" # Let the user override the test.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_CC="${ac_tool_prefix}cc"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 if test -n "$CC"; then
4591 { echo "$as_me:$LINENO: result: $CC" >&5
4592 echo "${ECHO_T}$CC" >&6; }
4594 { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4601 if test -z "$CC"; then
4602 # Extract the first word of "cc", so it can be a program name with args.
4603 set dummy cc; ac_word=$2
4604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4606 if test "${ac_cv_prog_CC+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if test -n "$CC"; then
4610 ac_cv_prog_CC="$CC" # Let the user override the test.
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4621 ac_prog_rejected=yes
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 if test $ac_prog_rejected = yes; then
4633 # We found a bogon in the path, so make sure we never use it.
4634 set dummy $ac_cv_prog_CC
4636 if test $# != 0; then
4637 # We chose a different compiler from the bogus one.
4638 # However, it has the same basename, so the bogon will be chosen
4639 # first if we set CC to just the basename; use the full file name.
4641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4647 if test -n "$CC"; then
4648 { echo "$as_me:$LINENO: result: $CC" >&5
4649 echo "${ECHO_T}$CC" >&6; }
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4657 if test -z "$CC"; then
4658 if test -n "$ac_tool_prefix"; then
4659 for ac_prog in cl.exe
4661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_CC+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 if test -n "$CC"; then
4669 ac_cv_prog_CC="$CC" # Let the user override the test.
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 if test -n "$CC"; then
4690 { echo "$as_me:$LINENO: result: $CC" >&5
4691 echo "${ECHO_T}$CC" >&6; }
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4698 test -n "$CC" && break
4701 if test -z "$CC"; then
4703 for ac_prog in cl.exe
4705 # Extract the first word of "$ac_prog", so it can be a program name with args.
4706 set dummy $ac_prog; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 if test -n "$ac_ct_CC"; then
4713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_ac_ct_CC="$ac_prog"
4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4733 if test -n "$ac_ct_CC"; then
4734 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4735 echo "${ECHO_T}$ac_ct_CC" >&6; }
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4742 test -n "$ac_ct_CC" && break
4745 if test "x$ac_ct_CC" = x; then
4748 case $cross_compiling:$ac_tool_warned in
4750 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4751 whose name does not start with the host triplet. If you think this
4752 configuration is useful to you, please write to autoconf@gnu.org." >&5
4753 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4754 whose name does not start with the host triplet. If you think this
4755 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4756 ac_tool_warned=yes ;;
4765 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4766 See \`config.log' for more details." >&5
4767 echo "$as_me: error: no acceptable C compiler found in \$PATH
4768 See \`config.log' for more details." >&2;}
4769 { (exit 1); exit 1; }; }
4771 # Provide some information about the compiler.
4772 echo "$as_me:$LINENO: checking for C compiler version" >&5
4773 ac_compiler=`set X $ac_compile; echo $2`
4774 { (ac_try="$ac_compiler --version >&5"
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4780 (eval "$ac_compiler --version >&5") 2>&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }
4784 { (ac_try="$ac_compiler -v >&5"
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790 (eval "$ac_compiler -v >&5") 2>&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }
4794 { (ac_try="$ac_compiler -V >&5"
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_compiler -V >&5") 2>&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }
4805 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4806 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4807 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 cat >conftest.$ac_ext <<_ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4828 rm -f conftest.$ac_objext
4829 if { (ac_try="$ac_compile"
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_compile") 2>conftest.er1
4837 grep -v '^ *+' conftest.er1 >conftest.err
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } && {
4842 test -z "$ac_c_werror_flag" ||
4843 test ! -s conftest.err
4844 } && test -s conftest.$ac_objext; then
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4857 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4858 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4859 GCC=`test $ac_compiler_gnu = yes && echo yes`
4860 ac_test_CFLAGS=${CFLAGS+set}
4861 ac_save_CFLAGS=$CFLAGS
4862 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4863 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_cc_g+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 ac_save_c_werror_flag=$ac_c_werror_flag
4868 ac_c_werror_flag=yes
4871 cat >conftest.$ac_ext <<_ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4886 rm -f conftest.$ac_objext
4887 if { (ac_try="$ac_compile"
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_compile") 2>conftest.er1
4895 grep -v '^ *+' conftest.er1 >conftest.err
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } && {
4900 test -z "$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 } && test -s conftest.$ac_objext; then
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4909 cat >conftest.$ac_ext <<_ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4924 rm -f conftest.$ac_objext
4925 if { (ac_try="$ac_compile"
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_compile") 2>conftest.er1
4933 grep -v '^ *+' conftest.er1 >conftest.err
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && {
4938 test -z "$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4940 } && test -s conftest.$ac_objext; then
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 ac_c_werror_flag=$ac_save_c_werror_flag
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4963 rm -f conftest.$ac_objext
4964 if { (ac_try="$ac_compile"
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_compile") 2>conftest.er1
4972 grep -v '^ *+' conftest.er1 >conftest.err
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } && {
4977 test -z "$ac_c_werror_flag" ||
4978 test ! -s conftest.err
4979 } && test -s conftest.$ac_objext; then
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 ac_c_werror_flag=$ac_save_c_werror_flag
4997 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4998 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4999 if test "$ac_test_CFLAGS" = set; then
5000 CFLAGS=$ac_save_CFLAGS
5001 elif test $ac_cv_prog_cc_g = yes; then
5002 if test "$GCC" = yes; then
5008 if test "$GCC" = yes; then
5014 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5015 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5016 if test "${ac_cv_prog_cc_c89+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 ac_cv_prog_cc_c89=no
5021 cat >conftest.$ac_ext <<_ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5029 #include <sys/types.h>
5030 #include <sys/stat.h>
5031 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5032 struct buf { int x; };
5033 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5034 static char *e (p, i)
5040 static char *f (char * (*g) (char **, int), char **p, ...)
5045 s = g (p, va_arg (v,int));
5050 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5051 function prototypes and stuff, but not '\xHH' hex character constants.
5052 These don't provoke an error unfortunately, instead are silently treated
5053 as 'x'. The following induces an error, until -std is added to get
5054 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5055 array size at least. It's necessary to write '\x00'==0 to get something
5056 that's true only with -std. */
5057 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5059 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5060 inside strings and character constants. */
5062 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5064 int test (int i, double x);
5065 struct s1 {int (*f) (int a);};
5066 struct s2 {int (*f) (double a);};
5067 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5073 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5078 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5079 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5081 CC="$ac_save_CC $ac_arg"
5082 rm -f conftest.$ac_objext
5083 if { (ac_try="$ac_compile"
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089 (eval "$ac_compile") 2>conftest.er1
5091 grep -v '^ *+' conftest.er1 >conftest.err
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } && {
5096 test -z "$ac_c_werror_flag" ||
5097 test ! -s conftest.err
5098 } && test -s conftest.$ac_objext; then
5099 ac_cv_prog_cc_c89=$ac_arg
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5107 rm -f core conftest.err conftest.$ac_objext
5108 test "x$ac_cv_prog_cc_c89" != "xno" && break
5110 rm -f conftest.$ac_ext
5115 case "x$ac_cv_prog_cc_c89" in
5117 { echo "$as_me:$LINENO: result: none needed" >&5
5118 echo "${ECHO_T}none needed" >&6; } ;;
5120 { echo "$as_me:$LINENO: result: unsupported" >&5
5121 echo "${ECHO_T}unsupported" >&6; } ;;
5123 CC="$CC $ac_cv_prog_cc_c89"
5124 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5125 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5130 ac_cpp='$CPP $CPPFLAGS'
5131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135 depcc="$CC" am_compiler_list=
5137 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5138 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5139 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5143 # We make a subdir and do the tests there. Otherwise we can end up
5144 # making bogus files that we don't know about and never remove. For
5145 # instance it was reported that on HP-UX the gcc test will end up
5146 # making a dummy file named `D' -- because `-MD' means `put the output
5149 # Copy depcomp to subdir because otherwise we won't find it if we're
5150 # using a relative directory.
5151 cp "$am_depcomp" conftest.dir
5153 # We will build objects and dependencies in a subdirectory because
5154 # it helps to detect inapplicable dependency modes. For instance
5155 # both Tru64's cc and ICC support -MD to output dependencies as a
5156 # side effect of compilation, but ICC will put the dependencies in
5157 # the current directory while Tru64 will put them in the object
5161 am_cv_CC_dependencies_compiler_type=none
5162 if test "$am_compiler_list" = ""; then
5163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5165 for depmode in $am_compiler_list; do
5166 # Setup a source with many dependencies, because some compilers
5167 # like to wrap large dependency lists on column 80 (with \), and
5168 # we should not choose a depcomp mode which is confused by this.
5170 # We need to recreate these files for each test, as the compiler may
5171 # overwrite some of them when testing with obscure command lines.
5172 # This happens at least with the AIX C compiler.
5174 for i in 1 2 3 4 5 6; do
5175 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5176 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5177 # Solaris 8's {/usr,}/bin/sh.
5178 touch sub/conftst$i.h
5180 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5184 # after this tag, mechanisms are not by side-effect, so they'll
5185 # only be used when explicitly requested
5186 if test "x$enable_dependency_tracking" = xyes; then
5194 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5195 # mode. It turns out that the SunPro C++ compiler does not properly
5196 # handle `-M -o', and we need to detect this.
5197 if depmode=$depmode \
5198 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5199 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5200 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5201 >/dev/null 2>conftest.err &&
5202 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5203 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5204 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5205 # icc doesn't choke on unknown options, it will just issue warnings
5206 # or remarks (even with -Werror). So we grep stderr for any message
5207 # that says an option was ignored or not supported.
5208 # When given -MP, icc 7.0 and 7.1 complain thusly:
5209 # icc: Command line warning: ignoring option '-M'; no argument required
5210 # The diagnosis changed in icc 8.0:
5211 # icc: Command line remark: option '-MP' not supported
5212 if (grep 'ignoring option' conftest.err ||
5213 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5214 am_cv_CC_dependencies_compiler_type=$depmode
5223 am_cv_CC_dependencies_compiler_type=none
5227 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5228 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5229 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5234 test "x$enable_dependency_tracking" != xno \
5235 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5237 am__fastdepCC_FALSE='#'
5239 am__fastdepCC_TRUE='#'
5240 am__fastdepCC_FALSE=
5245 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5248 ac_cpp='$CPP $CPPFLAGS'
5249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5252 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5253 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5254 # On Suns, sometimes $CPP names a directory.
5255 if test -n "$CPP" && test -d "$CPP"; then
5258 if test -z "$CPP"; then
5259 if test "${ac_cv_prog_CPP+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 # Double quotes because CPP needs to be expanded
5263 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5266 for ac_c_preproc_warn_flag in '' yes
5268 # Use a header file that comes with gcc, so configuring glibc
5269 # with a fresh cross-compiler works.
5270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5271 # <limits.h> exists even on freestanding compilers.
5272 # On the NeXT, cc -E runs the code through the compiler's parser,
5273 # not just through cpp. "Syntax error" is here to catch this case.
5274 cat >conftest.$ac_ext <<_ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5281 # include <limits.h>
5283 # include <assert.h>
5287 if { (ac_try="$ac_cpp conftest.$ac_ext"
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5295 grep -v '^ *+' conftest.er1 >conftest.err
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } >/dev/null && {
5300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5301 test ! -s conftest.err
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5308 # Broken: fails on valid input.
5312 rm -f conftest.err conftest.$ac_ext
5314 # OK, works on sane cases. Now check whether nonexistent headers
5315 # can be detected and how.
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 #include <ac_nonexistent.h>
5324 if { (ac_try="$ac_cpp conftest.$ac_ext"
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5332 grep -v '^ *+' conftest.er1 >conftest.err
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } >/dev/null && {
5337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5338 test ! -s conftest.err
5340 # Broken: success on invalid input.
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5346 # Passes both tests.
5351 rm -f conftest.err conftest.$ac_ext
5354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355 rm -f conftest.err conftest.$ac_ext
5356 if $ac_preproc_ok; then
5368 { echo "$as_me:$LINENO: result: $CPP" >&5
5369 echo "${ECHO_T}$CPP" >&6; }
5371 for ac_c_preproc_warn_flag in '' yes
5373 # Use a header file that comes with gcc, so configuring glibc
5374 # with a fresh cross-compiler works.
5375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5376 # <limits.h> exists even on freestanding compilers.
5377 # On the NeXT, cc -E runs the code through the compiler's parser,
5378 # not just through cpp. "Syntax error" is here to catch this case.
5379 cat >conftest.$ac_ext <<_ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5386 # include <limits.h>
5388 # include <assert.h>
5392 if { (ac_try="$ac_cpp conftest.$ac_ext"
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5400 grep -v '^ *+' conftest.er1 >conftest.err
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } >/dev/null && {
5405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5406 test ! -s conftest.err
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 # Broken: fails on valid input.
5417 rm -f conftest.err conftest.$ac_ext
5419 # OK, works on sane cases. Now check whether nonexistent headers
5420 # can be detected and how.
5421 cat >conftest.$ac_ext <<_ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 #include <ac_nonexistent.h>
5429 if { (ac_try="$ac_cpp conftest.$ac_ext"
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5437 grep -v '^ *+' conftest.er1 >conftest.err
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } >/dev/null && {
5442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5445 # Broken: success on invalid input.
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5451 # Passes both tests.
5456 rm -f conftest.err conftest.$ac_ext
5459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5460 rm -f conftest.err conftest.$ac_ext
5461 if $ac_preproc_ok; then
5464 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5465 See \`config.log' for more details." >&5
5466 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5467 See \`config.log' for more details." >&2;}
5468 { (exit 1); exit 1; }; }
5472 ac_cpp='$CPP $CPPFLAGS'
5473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5479 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5481 if test -z "$CC_FOR_BUILD"; then
5482 if test "$#" = yes; then
5483 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5484 See \`config.log' for more details." >&5
5485 echo "$as_me: error: cannot run test program while cross compiling
5486 See \`config.log' for more details." >&2;}
5487 { (exit 1); exit 1; }; }
5489 cat >conftest.$ac_ext <<_ACEOF
5490 int main(){return 0;}
5492 rm -f conftest$ac_exeext
5493 if { (ac_try="$ac_link"
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_link") 2>&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5503 { (case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_try") 2>&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5514 echo "$as_me: program exited with status $ac_status" >&5
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5527 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5528 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5529 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5531 if test -n "$ac_build_tool_prefix"; then
5532 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5533 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5536 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 if test -n "$CC_FOR_BUILD"; then
5540 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5560 if test -n "$CC_FOR_BUILD"; then
5561 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5562 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5564 { echo "$as_me:$LINENO: result: no" >&5
5565 echo "${ECHO_T}no" >&6; }
5570 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5571 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5572 # Extract the first word of "gcc", so it can be a program name with args.
5573 set dummy gcc; ac_word=$2
5574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5576 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 if test -n "$ac_ct_CC_FOR_BUILD"; then
5580 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5600 if test -n "$ac_ct_CC_FOR_BUILD"; then
5601 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5602 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5604 { echo "$as_me:$LINENO: result: no" >&5
5605 echo "${ECHO_T}no" >&6; }
5608 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5611 case $#:$ac_tool_warned in
5613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5614 whose name does not start with the build triplet. If you think this
5615 configuration is useful to you, please write to autoconf@gnu.org." >&5
5616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5617 whose name does not start with the build triplet. If you think this
5618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5619 ac_tool_warned=yes ;;
5621 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5624 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5627 if test -z "$CC_FOR_BUILD"; then
5628 if test -n "$ac_build_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5630 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5633 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 if test -n "$CC_FOR_BUILD"; then
5637 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5657 if test -n "$CC_FOR_BUILD"; then
5658 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5659 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5661 { echo "$as_me:$LINENO: result: no" >&5
5662 echo "${ECHO_T}no" >&6; }
5668 if test -z "$CC_FOR_BUILD"; then
5669 # Extract the first word of "cc", so it can be a program name with args.
5670 set dummy cc; ac_word=$2
5671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5673 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 if test -n "$CC_FOR_BUILD"; then
5677 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5688 ac_prog_rejected=yes
5691 ac_cv_prog_CC_FOR_BUILD="cc"
5692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 if test $ac_prog_rejected = yes; then
5700 # We found a bogon in the path, so make sure we never use it.
5701 set dummy $ac_cv_prog_CC_FOR_BUILD
5703 if test $# != 0; then
5704 # We chose a different compiler from the bogus one.
5705 # However, it has the same basename, so the bogon will be chosen
5706 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5708 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5713 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5714 if test -n "$CC_FOR_BUILD"; then
5715 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5716 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5718 { echo "$as_me:$LINENO: result: no" >&5
5719 echo "${ECHO_T}no" >&6; }
5724 if test -z "$CC_FOR_BUILD"; then
5725 if test -n "$ac_build_tool_prefix"; then
5726 for ac_prog in cl.exe
5728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5729 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5732 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 if test -n "$CC_FOR_BUILD"; then
5736 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
5746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5756 if test -n "$CC_FOR_BUILD"; then
5757 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5758 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5760 { echo "$as_me:$LINENO: result: no" >&5
5761 echo "${ECHO_T}no" >&6; }
5765 test -n "$CC_FOR_BUILD" && break
5768 if test -z "$CC_FOR_BUILD"; then
5769 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5770 for ac_prog in cl.exe
5772 # Extract the first word of "$ac_prog", so it can be a program name with args.
5773 set dummy $ac_prog; ac_word=$2
5774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5776 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 if test -n "$ac_ct_CC_FOR_BUILD"; then
5780 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5800 if test -n "$ac_ct_CC_FOR_BUILD"; then
5801 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5802 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5804 { echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6; }
5809 test -n "$ac_ct_CC_FOR_BUILD" && break
5812 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5815 case $#:$ac_tool_warned in
5817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5818 whose name does not start with the build triplet. If you think this
5819 configuration is useful to you, please write to autoconf@gnu.org." >&5
5820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5821 whose name does not start with the build triplet. If you think this
5822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5823 ac_tool_warned=yes ;;
5825 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5832 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5833 See \`config.log' for more details." >&5
5834 echo "$as_me: error: no acceptable C compiler found in \$PATH
5835 See \`config.log' for more details." >&2;}
5836 { (exit 1); exit 1; }; }
5838 # Provide some information about the compiler.
5839 echo "$as_me:$LINENO: checking for C compiler version" >&5
5840 ac_compiler=`set X $ac_build_compile; echo $2`
5841 { (ac_try="$ac_compiler --version >&5"
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compiler --version >&5") 2>&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }
5851 { (ac_try="$ac_compiler -v >&5"
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_compiler -v >&5") 2>&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }
5861 { (ac_try="$ac_compiler -V >&5"
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compiler -V >&5") 2>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }
5872 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5873 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5874 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5895 rm -f conftest.$ac_build_objext
5896 if { (ac_try="$ac_build_compile"
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_build_compile") 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && {
5909 test -z "$ac_c_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest.$ac_build_objext; then
5912 ac_build_compiler_gnu=yes
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5917 ac_build_compiler_gnu=no
5920 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5921 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
5924 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5925 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5926 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
5927 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5928 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5929 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
5930 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
5931 if test "${ac_cv_build_prog_cc_g+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 ac_save_c_werror_flag=$ac_c_werror_flag
5935 ac_c_werror_flag=yes
5936 ac_cv_build_prog_cc_g=no
5937 CFLAGS_FOR_BUILD="-g"
5938 cat >conftest.$ac_ext <<_ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5953 rm -f conftest.$ac_build_objext
5954 if { (ac_try="$ac_build_compile"
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_build_compile") 2>conftest.er1
5962 grep -v '^ *+' conftest.er1 >conftest.err
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && {
5967 test -z "$ac_c_werror_flag" ||
5968 test ! -s conftest.err
5969 } && test -s conftest.$ac_build_objext; then
5970 ac_cv_build_prog_cc_g=yes
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5976 cat >conftest.$ac_ext <<_ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5991 rm -f conftest.$ac_build_objext
5992 if { (ac_try="$ac_build_compile"
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_build_compile") 2>conftest.er1
6000 grep -v '^ *+' conftest.er1 >conftest.err
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest.$ac_build_objext; then
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6013 ac_c_werror_flag=$ac_save_c_werror_flag
6014 CFLAGS_FOR_BUILD="-g"
6015 cat >conftest.$ac_ext <<_ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6030 rm -f conftest.$ac_build_objext
6031 if { (ac_try="$ac_build_compile"
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_build_compile") 2>conftest.er1
6039 grep -v '^ *+' conftest.er1 >conftest.err
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } && {
6044 test -z "$ac_c_werror_flag" ||
6045 test ! -s conftest.err
6046 } && test -s conftest.$ac_build_objext; then
6047 ac_cv_build_prog_cc_g=yes
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6055 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6058 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6061 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6062 ac_c_werror_flag=$ac_save_c_werror_flag
6064 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6065 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6066 if test "$ac_test_CFLAGS" = set; then
6067 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6068 elif test $ac_cv_build_prog_cc_g = yes; then
6069 if test "$GCC" = yes; then
6070 CFLAGS_FOR_BUILD="-g -O2"
6072 CFLAGS_FOR_BUILD="-g"
6075 if test "$GCC" = yes; then
6076 CFLAGS_FOR_BUILD="-O2"
6081 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6082 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6083 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 ac_cv_build_prog_cc_stdc=no
6087 ac_save_CC=$CC_FOR_BUILD
6088 cat >conftest.$ac_ext <<_ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6096 #include <sys/types.h>
6097 #include <sys/stat.h>
6098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6099 struct buf { int x; };
6100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6101 static char *e (p, i)
6107 static char *f (char * (*g) (char **, int), char **p, ...)
6112 s = g (p, va_arg (v,int));
6117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6118 function prototypes and stuff, but not '\xHH' hex character constants.
6119 These don't provoke an error unfortunately, instead are silently treated
6120 as 'x'. The following induces an error, until -std is added to get
6121 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6122 array size at least. It's necessary to write '\x00'==0 to get something
6123 that's true only with -std. */
6124 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6127 inside strings and character constants. */
6129 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6131 int test (int i, double x);
6132 struct s1 {int (*f) (int a);};
6133 struct s2 {int (*f) (double a);};
6134 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6140 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6145 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6146 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6148 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6149 rm -f conftest.$ac_build_objext
6150 if { (ac_try="$ac_build_compile"
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_build_compile") 2>conftest.er1
6158 grep -v '^ *+' conftest.er1 >conftest.err
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } && {
6163 test -z "$ac_c_werror_flag" ||
6164 test ! -s conftest.err
6165 } && test -s conftest.$ac_build_objext; then
6166 ac_cv_build_prog_cc_stdc=$ac_arg
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6174 rm -f core conftest.err conftest.$ac_build_objext
6175 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6177 rm -f conftest.$ac_ext
6178 CC_FOR_BUILD=$ac_save_CC
6182 case "x$ac_cv_build_prog_cc_stdc" in
6184 { echo "$as_me:$LINENO: result: none needed" >&5
6185 echo "${ECHO_T}none needed" >&6; } ;;
6187 { echo "$as_me:$LINENO: result: unsupported" >&5
6188 echo "${ECHO_T}unsupported" >&6; } ;;
6190 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6191 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6192 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6197 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6198 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6199 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6202 depcc="$CC_FOR_BUILD" am_compiler_list=
6204 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6205 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6206 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6210 # We make a subdir and do the tests there. Otherwise we can end up
6211 # making bogus files that we don't know about and never remove. For
6212 # instance it was reported that on HP-UX the gcc test will end up
6213 # making a dummy file named `D' -- because `-MD' means `put the output
6216 # Copy depcomp to subdir because otherwise we won't find it if we're
6217 # using a relative directory.
6218 cp "$am_depcomp" conftest.dir
6220 # We will build objects and dependencies in a subdirectory because
6221 # it helps to detect inapplicable dependency modes. For instance
6222 # both Tru64's cc and ICC support -MD to output dependencies as a
6223 # side effect of compilation, but ICC will put the dependencies in
6224 # the current directory while Tru64 will put them in the object
6228 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6229 if test "$am_compiler_list" = ""; then
6230 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6232 for depmode in $am_compiler_list; do
6233 # Setup a source with many dependencies, because some compilers
6234 # like to wrap large dependency lists on column 80 (with \), and
6235 # we should not choose a depcomp mode which is confused by this.
6237 # We need to recreate these files for each test, as the compiler may
6238 # overwrite some of them when testing with obscure command lines.
6239 # This happens at least with the AIX C compiler.
6241 for i in 1 2 3 4 5 6; do
6242 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6243 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6244 # Solaris 8's {/usr,}/bin/sh.
6245 touch sub/conftst$i.h
6247 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6251 # after this tag, mechanisms are not by side-effect, so they'll
6252 # only be used when explicitly requested
6253 if test "x$enable_dependency_tracking" = xyes; then
6261 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6262 # mode. It turns out that the SunPro C++ compiler does not properly
6263 # handle `-M -o', and we need to detect this.
6264 if depmode=$depmode \
6265 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6266 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6267 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6268 >/dev/null 2>conftest.err &&
6269 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6270 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6271 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6272 # icc doesn't choke on unknown options, it will just issue warnings
6273 # or remarks (even with -Werror). So we grep stderr for any message
6274 # that says an option was ignored or not supported.
6275 # When given -MP, icc 7.0 and 7.1 complain thusly:
6276 # icc: Command line warning: ignoring option '-M'; no argument required
6277 # The diagnosis changed in icc 8.0:
6278 # icc: Command line remark: option '-MP' not supported
6279 if (grep 'ignoring option' conftest.err ||
6280 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6281 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6290 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6294 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6295 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6296 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6301 test "x$enable_dependency_tracking" != xno \
6302 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6303 am__fastdepCC_FOR_BUILD_TRUE=
6304 am__fastdepCC_FOR_BUILD_FALSE='#'
6306 am__fastdepCC_FOR_BUILD_TRUE='#'
6307 am__fastdepCC_FOR_BUILD_FALSE=
6311 case $ac_cv_build_prog_cc_stdc in
6312 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6313 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6314 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6315 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 ac_cv_build_prog_cc_stdc=no
6319 ac_save_CC=$CC_FOR_BUILD
6320 cat >conftest.$ac_ext <<_ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6327 #include <stdbool.h>
6332 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6333 #define debug(...) fprintf (stderr, __VA_ARGS__)
6334 #define showlist(...) puts (#__VA_ARGS__)
6335 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6337 test_varargs_macros (void)
6342 debug ("X = %d\n", x);
6343 showlist (The first, second, and third items.);
6344 report (x>y, "x is %d but y is %d", x, y);
6347 // Check long long types.
6348 #define BIG64 18446744073709551615ull
6349 #define BIG32 4294967295ul
6350 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6352 your preprocessor is broken;
6356 your preprocessor is broken;
6358 static long long int bignum = -9223372036854775807LL;
6359 static unsigned long long int ubignum = BIG64;
6361 struct incomplete_array
6369 const wchar_t *name;
6373 typedef const char *ccp;
6376 test_restrict (ccp restrict text)
6378 // See if C++-style comments work.
6379 // Iterate through items via the restricted pointer.
6380 // Also check for declarations in for loops.
6381 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6386 // Check varargs and va_copy.
6388 test_varargs (const char *format, ...)
6391 va_start (args, format);
6393 va_copy (args_copy, args);
6404 str = va_arg (args_copy, const char *);
6407 number = va_arg (args_copy, int);
6410 fnumber = va_arg (args_copy, double);
6425 _Bool success = false;
6428 if (test_restrict ("String literal") == 0)
6430 char *restrict newvar = "Another string";
6433 test_varargs ("s, d' f .", "string", 65, 34.234);
6434 test_varargs_macros ();
6436 // Check flexible array members.
6437 struct incomplete_array *ia =
6438 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6440 for (int i = 0; i < ia->datasize; ++i)
6441 ia->data[i] = i * 1.234;
6443 // Check named initializers.
6444 struct named_init ni = {
6446 .name = L"Test wide string",
6447 .average = 543.34343,
6452 int dynamic_array[ni.number];
6453 dynamic_array[ni.number - 1] = 543;
6455 // work around unused variable warnings
6456 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6457 || dynamic_array[ni.number - 1] != 543);
6463 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6465 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6466 rm -f conftest.$ac_build_objext
6467 if { (ac_try="$ac_build_compile"
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_build_compile") 2>conftest.er1
6475 grep -v '^ *+' conftest.er1 >conftest.err
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } && {
6480 test -z "$ac_c_werror_flag" ||
6481 test ! -s conftest.err
6482 } && test -s conftest.$ac_build_objext; then
6483 ac_cv_build_prog_cc_stdc=$ac_arg
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6491 rm -f core conftest.err conftest.$ac_build_objext
6492 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6494 rm -f conftest.$ac_ext
6495 CC_FOR_BUILD=$ac_save_CC
6499 case "x$ac_cv_build_prog_cc_stdc" in
6501 { echo "$as_me:$LINENO: result: none needed" >&5
6502 echo "${ECHO_T}none needed" >&6; } ;;
6504 { echo "$as_me:$LINENO: result: unsupported" >&5
6505 echo "${ECHO_T}unsupported" >&6; } ;;
6507 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6508 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6509 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6511 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6512 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6514 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6515 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6516 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 ac_cv_build_prog_cc_stdc=no
6520 ac_save_CC=$CC_FOR_BUILD
6521 cat >conftest.$ac_ext <<_ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6529 #include <sys/types.h>
6530 #include <sys/stat.h>
6531 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6532 struct buf { int x; };
6533 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6534 static char *e (p, i)
6540 static char *f (char * (*g) (char **, int), char **p, ...)
6545 s = g (p, va_arg (v,int));
6550 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6551 function prototypes and stuff, but not '\xHH' hex character constants.
6552 These don't provoke an error unfortunately, instead are silently treated
6553 as 'x'. The following induces an error, until -std is added to get
6554 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6555 array size at least. It's necessary to write '\x00'==0 to get something
6556 that's true only with -std. */
6557 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6559 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6560 inside strings and character constants. */
6562 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6564 int test (int i, double x);
6565 struct s1 {int (*f) (int a);};
6566 struct s2 {int (*f) (double a);};
6567 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6573 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6578 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6579 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6581 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6582 rm -f conftest.$ac_build_objext
6583 if { (ac_try="$ac_build_compile"
6585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589 (eval "$ac_build_compile") 2>conftest.er1
6591 grep -v '^ *+' conftest.er1 >conftest.err
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && {
6596 test -z "$ac_c_werror_flag" ||
6597 test ! -s conftest.err
6598 } && test -s conftest.$ac_build_objext; then
6599 ac_cv_build_prog_cc_stdc=$ac_arg
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6607 rm -f core conftest.err conftest.$ac_build_objext
6608 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6610 rm -f conftest.$ac_ext
6611 CC_FOR_BUILD=$ac_save_CC
6615 case "x$ac_cv_build_prog_cc_stdc" in
6617 { echo "$as_me:$LINENO: result: none needed" >&5
6618 echo "${ECHO_T}none needed" >&6; } ;;
6620 { echo "$as_me:$LINENO: result: unsupported" >&5
6621 echo "${ECHO_T}unsupported" >&6; } ;;
6623 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6624 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6625 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6627 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6628 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6630 ac_cv_build_prog_cc_stdc=no
6638 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
6639 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
6640 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 case $ac_cv_build_prog_cc_stdc in
6645 no) { echo "$as_me:$LINENO: result: unsupported" >&5
6646 echo "${ECHO_T}unsupported" >&6; } ;;
6647 '') { echo "$as_me:$LINENO: result: none needed" >&5
6648 echo "${ECHO_T}none needed" >&6; } ;;
6649 *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6650 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6655 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6656 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6657 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6658 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6659 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6660 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6661 # On Suns, sometimes $CPP names a directory.
6662 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6665 if test -z "$CPP_FOR_BUILD"; then
6666 if test "${ac_cv_build_prog_CPP+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 # Double quotes because CPP needs to be expanded
6670 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6673 for ac_c_preproc_warn_flag in '' yes
6675 # Use a header file that comes with gcc, so configuring glibc
6676 # with a fresh cross-compiler works.
6677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6678 # <limits.h> exists even on freestanding compilers.
6679 # On the NeXT, cc -E runs the code through the compiler's parser,
6680 # not just through cpp. "Syntax error" is here to catch this case.
6681 cat >conftest.$ac_ext <<_ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6688 # include <limits.h>
6690 # include <assert.h>
6694 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6702 grep -v '^ *+' conftest.er1 >conftest.err
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } >/dev/null && {
6707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 # Broken: fails on valid input.
6719 rm -f conftest.err conftest.$ac_ext
6721 # OK, works on sane cases. Now check whether nonexistent headers
6722 # can be detected and how.
6723 cat >conftest.$ac_ext <<_ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6729 #include <ac_nonexistent.h>
6731 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6739 grep -v '^ *+' conftest.er1 >conftest.err
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } >/dev/null && {
6744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6747 # Broken: success on invalid input.
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 # Passes both tests.
6758 rm -f conftest.err conftest.$ac_ext
6761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6762 rm -f conftest.err conftest.$ac_ext
6763 if $ac_preproc_ok; then
6768 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6771 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6773 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6775 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
6776 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
6778 for ac_c_preproc_warn_flag in '' yes
6780 # Use a header file that comes with gcc, so configuring glibc
6781 # with a fresh cross-compiler works.
6782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6783 # <limits.h> exists even on freestanding compilers.
6784 # On the NeXT, cc -E runs the code through the compiler's parser,
6785 # not just through cpp. "Syntax error" is here to catch this case.
6786 cat >conftest.$ac_ext <<_ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6793 # include <limits.h>
6795 # include <assert.h>
6799 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6802 *) ac_try_echo=$ac_try;;
6804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6805 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6807 grep -v '^ *+' conftest.er1 >conftest.err
6809 cat conftest.err >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } >/dev/null && {
6812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6813 test ! -s conftest.err
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6820 # Broken: fails on valid input.
6824 rm -f conftest.err conftest.$ac_ext
6826 # OK, works on sane cases. Now check whether nonexistent headers
6827 # can be detected and how.
6828 cat >conftest.$ac_ext <<_ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h. */
6834 #include <ac_nonexistent.h>
6836 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6844 grep -v '^ *+' conftest.er1 >conftest.err
6846 cat conftest.err >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } >/dev/null && {
6849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6850 test ! -s conftest.err
6852 # Broken: success on invalid input.
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6858 # Passes both tests.
6863 rm -f conftest.err conftest.$ac_ext
6866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6867 rm -f conftest.err conftest.$ac_ext
6868 if $ac_preproc_ok; then
6871 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6872 See \`config.log' for more details." >&5
6873 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6874 See \`config.log' for more details." >&2;}
6875 { (exit 1); exit 1; }; }
6879 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6880 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6881 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6882 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6887 BUILD_EXEEXT=$ac_build_exeext
6888 BUILD_OBJEXT=$ac_build_objext
6891 ac_cpp='$OBJCPP $CPPFLAGS'
6892 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
6895 if test -n "$ac_tool_prefix"; then
6896 for ac_prog in gcc objcc objc cc CC
6898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902 if test "${ac_cv_prog_OBJC+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6905 if test -n "$OBJC"; then
6906 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
6916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 OBJC=$ac_cv_prog_OBJC
6926 if test -n "$OBJC"; then
6927 { echo "$as_me:$LINENO: result: $OBJC" >&5
6928 echo "${ECHO_T}$OBJC" >&6; }
6930 { echo "$as_me:$LINENO: result: no" >&5
6931 echo "${ECHO_T}no" >&6; }
6935 test -n "$OBJC" && break
6938 if test -z "$OBJC"; then
6940 for ac_prog in gcc objcc objc cc CC
6942 # Extract the first word of "$ac_prog", so it can be a program name with args.
6943 set dummy $ac_prog; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 if test -n "$ac_ct_OBJC"; then
6950 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_ac_ct_OBJC="$ac_prog"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
6970 if test -n "$ac_ct_OBJC"; then
6971 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
6972 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
6974 { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6979 test -n "$ac_ct_OBJC" && break
6982 if test "x$ac_ct_OBJC" = x; then
6985 case $cross_compiling:$ac_tool_warned in
6987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6988 whose name does not start with the host triplet. If you think this
6989 configuration is useful to you, please write to autoconf@gnu.org." >&5
6990 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6991 whose name does not start with the host triplet. If you think this
6992 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6993 ac_tool_warned=yes ;;
6999 # Provide some information about the compiler.
7000 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7001 ac_compiler=`set X $ac_compile; echo $2`
7002 { (ac_try="$ac_compiler --version >&5"
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_compiler --version >&5") 2>&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }
7012 { (ac_try="$ac_compiler -v >&5"
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_compiler -v >&5") 2>&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }
7022 { (ac_try="$ac_compiler -V >&5"
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7028 (eval "$ac_compiler -V >&5") 2>&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }
7033 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7034 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
7035 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 cat >conftest.$ac_ext <<_ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7056 rm -f conftest.$ac_objext
7057 if { (ac_try="$ac_compile"
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_compile") 2>conftest.er1
7065 grep -v '^ *+' conftest.er1 >conftest.err
7067 cat conftest.err >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } && {
7070 test -z "$ac_objc_werror_flag" ||
7071 test ! -s conftest.err
7072 } && test -s conftest.$ac_objext; then
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7085 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7086 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
7087 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
7088 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7089 ac_save_OBJCFLAGS=$OBJCFLAGS
7090 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7091 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
7092 if test "${ac_cv_prog_objc_g+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 ac_save_objc_werror_flag=$ac_objc_werror_flag
7096 ac_objc_werror_flag=yes
7097 ac_cv_prog_objc_g=no
7099 cat >conftest.$ac_ext <<_ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7114 rm -f conftest.$ac_objext
7115 if { (ac_try="$ac_compile"
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 (eval "$ac_compile") 2>conftest.er1
7123 grep -v '^ *+' conftest.er1 >conftest.err
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_objc_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest.$ac_objext; then
7131 ac_cv_prog_objc_g=yes
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7137 cat >conftest.$ac_ext <<_ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7152 rm -f conftest.$ac_objext
7153 if { (ac_try="$ac_compile"
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_compile") 2>conftest.er1
7161 grep -v '^ *+' conftest.er1 >conftest.err
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && {
7166 test -z "$ac_objc_werror_flag" ||
7167 test ! -s conftest.err
7168 } && test -s conftest.$ac_objext; then
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7174 ac_objc_werror_flag=$ac_save_objc_werror_flag
7176 cat >conftest.$ac_ext <<_ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7191 rm -f conftest.$ac_objext
7192 if { (ac_try="$ac_compile"
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7200 grep -v '^ *+' conftest.er1 >conftest.err
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_objc_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.$ac_objext; then
7208 ac_cv_prog_objc_g=yes
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 ac_objc_werror_flag=$ac_save_objc_werror_flag
7225 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7226 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
7227 if test "$ac_test_OBJCFLAGS" = set; then
7228 OBJCFLAGS=$ac_save_OBJCFLAGS
7229 elif test $ac_cv_prog_objc_g = yes; then
7230 if test "$GOBJC" = yes; then
7236 if test "$GOBJC" = yes; then
7243 ac_cpp='$CPP $CPPFLAGS'
7244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7248 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7249 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7250 if test "${ac_cv_path_SED+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7254 for ac_i in 1 2 3 4 5 6 7; do
7255 ac_script="$ac_script$as_nl$ac_script"
7257 echo "$ac_script" | sed 99q >conftest.sed
7258 $as_unset ac_script || ac_script=
7259 # Extract the first word of "sed gsed" to use in msg output
7260 if test -z "$SED"; then
7261 set dummy sed gsed; ac_prog_name=$2
7262 if test "${ac_cv_path_SED+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 ac_path_SED_found=false
7266 # Loop through the user's path and test for each of PROGNAME-LIST
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 test -z "$as_dir" && as_dir=.
7272 for ac_prog in sed gsed; do
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7275 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7276 # Check for GNU ac_path_SED and select it if it is found.
7277 # Check for GNU $ac_path_SED
7278 case `"$ac_path_SED" --version 2>&1` in
7280 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7283 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7286 cat "conftest.in" "conftest.in" >"conftest.tmp"
7287 mv "conftest.tmp" "conftest.in"
7288 cp "conftest.in" "conftest.nl"
7289 echo '' >> "conftest.nl"
7290 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7292 ac_count=`expr $ac_count + 1`
7293 if test $ac_count -gt ${ac_path_SED_max-0}; then
7294 # Best one so far, save it but keep looking for a better one
7295 ac_cv_path_SED="$ac_path_SED"
7296 ac_path_SED_max=$ac_count
7298 # 10*(2^10) chars as input seems more than enough
7299 test $ac_count -gt 10 && break
7301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7305 $ac_path_SED_found && break 3
7315 SED="$ac_cv_path_SED"
7316 if test -z "$SED"; then
7317 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
7318 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
7319 { (exit 1); exit 1; }; }
7327 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7328 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
7329 SED="$ac_cv_path_SED"
7332 # By default we simply use the C compiler to build assembly code.
7334 test "${CCAS+set}" = set || CCAS=$CC
7335 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7339 if test -n "$ac_tool_prefix"; then
7340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_prog_RANLIB+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 if test -n "$RANLIB"; then
7348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 RANLIB=$ac_cv_prog_RANLIB
7368 if test -n "$RANLIB"; then
7369 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7370 echo "${ECHO_T}$RANLIB" >&6; }
7372 { echo "$as_me:$LINENO: result: no" >&5
7373 echo "${ECHO_T}no" >&6; }
7378 if test -z "$ac_cv_prog_RANLIB"; then
7379 ac_ct_RANLIB=$RANLIB
7380 # Extract the first word of "ranlib", so it can be a program name with args.
7381 set dummy ranlib; ac_word=$2
7382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 if test -n "$ac_ct_RANLIB"; then
7388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7397 ac_cv_prog_ac_ct_RANLIB="ranlib"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7408 if test -n "$ac_ct_RANLIB"; then
7409 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7410 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7412 { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7416 if test "x$ac_ct_RANLIB" = x; then
7419 case $cross_compiling:$ac_tool_warned in
7421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7422 whose name does not start with the host triplet. If you think this
7423 configuration is useful to you, please write to autoconf@gnu.org." >&5
7424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7425 whose name does not start with the host triplet. If you think this
7426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7427 ac_tool_warned=yes ;;
7429 RANLIB=$ac_ct_RANLIB
7432 RANLIB="$ac_cv_prog_RANLIB"
7436 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7437 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7438 if test "${ac_cv_path_GREP+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 # Extract the first word of "grep ggrep" to use in msg output
7442 if test -z "$GREP"; then
7443 set dummy grep ggrep; ac_prog_name=$2
7444 if test "${ac_cv_path_GREP+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 ac_path_GREP_found=false
7448 # Loop through the user's path and test for each of PROGNAME-LIST
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7453 test -z "$as_dir" && as_dir=.
7454 for ac_prog in grep ggrep; do
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7457 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7458 # Check for GNU ac_path_GREP and select it if it is found.
7459 # Check for GNU $ac_path_GREP
7460 case `"$ac_path_GREP" --version 2>&1` in
7462 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7465 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7468 cat "conftest.in" "conftest.in" >"conftest.tmp"
7469 mv "conftest.tmp" "conftest.in"
7470 cp "conftest.in" "conftest.nl"
7471 echo 'GREP' >> "conftest.nl"
7472 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7474 ac_count=`expr $ac_count + 1`
7475 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7476 # Best one so far, save it but keep looking for a better one
7477 ac_cv_path_GREP="$ac_path_GREP"
7478 ac_path_GREP_max=$ac_count
7480 # 10*(2^10) chars as input seems more than enough
7481 test $ac_count -gt 10 && break
7483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7487 $ac_path_GREP_found && break 3
7497 GREP="$ac_cv_path_GREP"
7498 if test -z "$GREP"; then
7499 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7500 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7501 { (exit 1); exit 1; }; }
7505 ac_cv_path_GREP=$GREP
7510 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7511 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7512 GREP="$ac_cv_path_GREP"
7515 { echo "$as_me:$LINENO: checking for egrep" >&5
7516 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7517 if test "${ac_cv_path_EGREP+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7521 then ac_cv_path_EGREP="$GREP -E"
7523 # Extract the first word of "egrep" to use in msg output
7524 if test -z "$EGREP"; then
7525 set dummy egrep; ac_prog_name=$2
7526 if test "${ac_cv_path_EGREP+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 ac_path_EGREP_found=false
7530 # Loop through the user's path and test for each of PROGNAME-LIST
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7535 test -z "$as_dir" && as_dir=.
7536 for ac_prog in egrep; do
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7539 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7540 # Check for GNU ac_path_EGREP and select it if it is found.
7541 # Check for GNU $ac_path_EGREP
7542 case `"$ac_path_EGREP" --version 2>&1` in
7544 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7547 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7550 cat "conftest.in" "conftest.in" >"conftest.tmp"
7551 mv "conftest.tmp" "conftest.in"
7552 cp "conftest.in" "conftest.nl"
7553 echo 'EGREP' >> "conftest.nl"
7554 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7556 ac_count=`expr $ac_count + 1`
7557 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7558 # Best one so far, save it but keep looking for a better one
7559 ac_cv_path_EGREP="$ac_path_EGREP"
7560 ac_path_EGREP_max=$ac_count
7562 # 10*(2^10) chars as input seems more than enough
7563 test $ac_count -gt 10 && break
7565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7569 $ac_path_EGREP_found && break 3
7579 EGREP="$ac_cv_path_EGREP"
7580 if test -z "$EGREP"; then
7581 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7582 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7583 { (exit 1); exit 1; }; }
7587 ac_cv_path_EGREP=$EGREP
7593 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7594 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7595 EGREP="$ac_cv_path_EGREP"
7598 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7599 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7600 if test "${ac_cv_header_stdc+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 cat >conftest.$ac_ext <<_ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7622 rm -f conftest.$ac_objext
7623 if { (ac_try="$ac_compile"
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_compile") 2>conftest.er1
7631 grep -v '^ *+' conftest.er1 >conftest.err
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.$ac_objext; then
7639 ac_cv_header_stdc=yes
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7644 ac_cv_header_stdc=no
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 if test $ac_cv_header_stdc = yes; then
7650 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7651 cat >conftest.$ac_ext <<_ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7661 $EGREP "memchr" >/dev/null 2>&1; then
7664 ac_cv_header_stdc=no
7670 if test $ac_cv_header_stdc = yes; then
7671 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7672 cat >conftest.$ac_ext <<_ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7682 $EGREP "free" >/dev/null 2>&1; then
7685 ac_cv_header_stdc=no
7691 if test $ac_cv_header_stdc = yes; then
7692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7693 if test "$cross_compiling" = yes; then
7696 cat >conftest.$ac_ext <<_ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7704 #if ((' ' & 0x0FF) == 0x020)
7705 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7706 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7708 # define ISLOWER(c) \
7709 (('a' <= (c) && (c) <= 'i') \
7710 || ('j' <= (c) && (c) <= 'r') \
7711 || ('s' <= (c) && (c) <= 'z'))
7712 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7715 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7720 for (i = 0; i < 256; i++)
7721 if (XOR (islower (i), ISLOWER (i))
7722 || toupper (i) != TOUPPER (i))
7727 rm -f conftest$ac_exeext
7728 if { (ac_try="$ac_link"
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_link") 2>&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7738 { (case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_try") 2>&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
7749 echo "$as_me: program exited with status $ac_status" >&5
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7754 ac_cv_header_stdc=no
7756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7762 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7763 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7764 if test $ac_cv_header_stdc = yes; then
7766 cat >>confdefs.h <<\_ACEOF
7767 #define STDC_HEADERS 1
7772 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7782 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7783 inttypes.h stdint.h unistd.h
7785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 cat >conftest.$ac_ext <<_ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 $ac_includes_default
7799 #include <$ac_header>
7801 rm -f conftest.$ac_objext
7802 if { (ac_try="$ac_compile"
7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805 *) ac_try_echo=$ac_try;;
7807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808 (eval "$ac_compile") 2>conftest.er1
7810 grep -v '^ *+' conftest.er1 >conftest.err
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } && {
7815 test -z "$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 } && test -s conftest.$ac_objext; then
7818 eval "$as_ac_Header=yes"
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7823 eval "$as_ac_Header=no"
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828 ac_res=`eval echo '${'$as_ac_Header'}'`
7829 { echo "$as_me:$LINENO: result: $ac_res" >&5
7830 echo "${ECHO_T}$ac_res" >&6; }
7831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7832 cat >>confdefs.h <<_ACEOF
7833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7841 { echo "$as_me:$LINENO: checking for void *" >&5
7842 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7843 if test "${ac_cv_type_void_p+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
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_new_;
7857 if ((ac__type_new_ *) 0)
7859 if (sizeof (ac__type_new_))
7865 rm -f conftest.$ac_objext
7866 if { (ac_try="$ac_compile"
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_compile") 2>conftest.er1
7874 grep -v '^ *+' conftest.er1 >conftest.err
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } && {
7879 test -z "$ac_c_werror_flag" ||
7880 test ! -s conftest.err
7881 } && test -s conftest.$ac_objext; then
7882 ac_cv_type_void_p=yes
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7887 ac_cv_type_void_p=no
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7893 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7895 # The cast to long int works around a bug in the HP C Compiler
7896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7898 # This bug is HP SR number 8606223364.
7899 { echo "$as_me:$LINENO: checking size of void *" >&5
7900 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7901 if test "${ac_cv_sizeof_void_p+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 if test "$cross_compiling" = yes; then
7905 # Depending upon the size, compute the lo and hi bounds.
7906 cat >conftest.$ac_ext <<_ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 $ac_includes_default
7913 typedef void * ac__type_sizeof_;
7917 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7924 rm -f conftest.$ac_objext
7925 if { (ac_try="$ac_compile"
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931 (eval "$ac_compile") 2>conftest.er1
7933 grep -v '^ *+' conftest.er1 >conftest.err
7935 cat conftest.err >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } && {
7938 test -z "$ac_c_werror_flag" ||
7939 test ! -s conftest.err
7940 } && test -s conftest.$ac_objext; then
7943 cat >conftest.$ac_ext <<_ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949 $ac_includes_default
7950 typedef void * ac__type_sizeof_;
7954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7961 rm -f conftest.$ac_objext
7962 if { (ac_try="$ac_compile"
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7970 grep -v '^ *+' conftest.er1 >conftest.err
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && {
7975 test -z "$ac_c_werror_flag" ||
7976 test ! -s conftest.err
7977 } && test -s conftest.$ac_objext; then
7978 ac_hi=$ac_mid; break
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 ac_lo=`expr $ac_mid + 1`
7984 if test $ac_lo -le $ac_mid; then
7988 ac_mid=`expr 2 '*' $ac_mid + 1`
7991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 cat >conftest.$ac_ext <<_ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 $ac_includes_default
8004 typedef void * ac__type_sizeof_;
8008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_compile") 2>conftest.er1
8024 grep -v '^ *+' conftest.er1 >conftest.err
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.$ac_objext; then
8034 cat >conftest.$ac_ext <<_ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8040 $ac_includes_default
8041 typedef void * ac__type_sizeof_;
8045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8052 rm -f conftest.$ac_objext
8053 if { (ac_try="$ac_compile"
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_compile") 2>conftest.er1
8061 grep -v '^ *+' conftest.er1 >conftest.err
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } && {
8066 test -z "$ac_c_werror_flag" ||
8067 test ! -s conftest.err
8068 } && test -s conftest.$ac_objext; then
8069 ac_lo=$ac_mid; break
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8074 ac_hi=`expr '(' $ac_mid ')' - 1`
8075 if test $ac_mid -le $ac_hi; then
8079 ac_mid=`expr 2 '*' $ac_mid`
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 # Binary search between lo and hi bounds.
8096 while test "x$ac_lo" != "x$ac_hi"; do
8097 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8098 cat >conftest.$ac_ext <<_ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 $ac_includes_default
8105 typedef void * ac__type_sizeof_;
8109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8116 rm -f conftest.$ac_objext
8117 if { (ac_try="$ac_compile"
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_compile") 2>conftest.er1
8125 grep -v '^ *+' conftest.er1 >conftest.err
8127 cat conftest.err >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } && {
8130 test -z "$ac_c_werror_flag" ||
8131 test ! -s conftest.err
8132 } && test -s conftest.$ac_objext; then
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8138 ac_lo=`expr '(' $ac_mid ')' + 1`
8141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8145 '') if test "$ac_cv_type_void_p" = yes; then
8146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8147 See \`config.log' for more details." >&5
8148 echo "$as_me: error: cannot compute sizeof (void *)
8149 See \`config.log' for more details." >&2;}
8150 { (exit 77); exit 77; }; }
8152 ac_cv_sizeof_void_p=0
8156 cat >conftest.$ac_ext <<_ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8162 $ac_includes_default
8163 typedef void * ac__type_sizeof_;
8164 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8165 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8172 FILE *f = fopen ("conftest.val", "w");
8175 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8177 long int i = longval ();
8178 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8180 fprintf (f, "%ld\n", i);
8184 unsigned long int i = ulongval ();
8185 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8187 fprintf (f, "%lu\n", i);
8189 return ferror (f) || fclose (f) != 0;
8195 rm -f conftest$ac_exeext
8196 if { (ac_try="$ac_link"
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_link") 2>&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8206 { (case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_try") 2>&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
8215 ac_cv_sizeof_void_p=`cat conftest.val`
8217 echo "$as_me: program exited with status $ac_status" >&5
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8222 if test "$ac_cv_type_void_p" = yes; then
8223 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8224 See \`config.log' for more details." >&5
8225 echo "$as_me: error: cannot compute sizeof (void *)
8226 See \`config.log' for more details." >&2;}
8227 { (exit 77); exit 77; }; }
8229 ac_cv_sizeof_void_p=0
8232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8236 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8237 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8241 cat >>confdefs.h <<_ACEOF
8242 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8246 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8247 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8248 if test "${ac_cv_header_stdc+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 cat >conftest.$ac_ext <<_ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8270 rm -f conftest.$ac_objext
8271 if { (ac_try="$ac_compile"
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_compile") 2>conftest.er1
8279 grep -v '^ *+' conftest.er1 >conftest.err
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } && {
8284 test -z "$ac_c_werror_flag" ||
8285 test ! -s conftest.err
8286 } && test -s conftest.$ac_objext; then
8287 ac_cv_header_stdc=yes
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8292 ac_cv_header_stdc=no
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 if test $ac_cv_header_stdc = yes; then
8298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8299 cat >conftest.$ac_ext <<_ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8309 $EGREP "memchr" >/dev/null 2>&1; then
8312 ac_cv_header_stdc=no
8318 if test $ac_cv_header_stdc = yes; then
8319 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8320 cat >conftest.$ac_ext <<_ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8330 $EGREP "free" >/dev/null 2>&1; then
8333 ac_cv_header_stdc=no
8339 if test $ac_cv_header_stdc = yes; then
8340 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8341 if test "$cross_compiling" = yes; then
8344 cat >conftest.$ac_ext <<_ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8352 #if ((' ' & 0x0FF) == 0x020)
8353 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8354 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8356 # define ISLOWER(c) \
8357 (('a' <= (c) && (c) <= 'i') \
8358 || ('j' <= (c) && (c) <= 'r') \
8359 || ('s' <= (c) && (c) <= 'z'))
8360 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8363 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8368 for (i = 0; i < 256; i++)
8369 if (XOR (islower (i), ISLOWER (i))
8370 || toupper (i) != TOUPPER (i))
8375 rm -f conftest$ac_exeext
8376 if { (ac_try="$ac_link"
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_link") 2>&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8386 { (case "(($ac_try" in
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_try") 2>&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8397 echo "$as_me: program exited with status $ac_status" >&5
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8402 ac_cv_header_stdc=no
8404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8410 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8411 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8412 if test $ac_cv_header_stdc = yes; then
8414 cat >>confdefs.h <<\_ACEOF
8415 #define STDC_HEADERS 1
8422 depcc="$OBJC" am_compiler_list='gcc3 gcc'
8424 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8425 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8426 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8430 # We make a subdir and do the tests there. Otherwise we can end up
8431 # making bogus files that we don't know about and never remove. For
8432 # instance it was reported that on HP-UX the gcc test will end up
8433 # making a dummy file named `D' -- because `-MD' means `put the output
8436 # Copy depcomp to subdir because otherwise we won't find it if we're
8437 # using a relative directory.
8438 cp "$am_depcomp" conftest.dir
8440 # We will build objects and dependencies in a subdirectory because
8441 # it helps to detect inapplicable dependency modes. For instance
8442 # both Tru64's cc and ICC support -MD to output dependencies as a
8443 # side effect of compilation, but ICC will put the dependencies in
8444 # the current directory while Tru64 will put them in the object
8448 am_cv_OBJC_dependencies_compiler_type=none
8449 if test "$am_compiler_list" = ""; then
8450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8452 for depmode in $am_compiler_list; do
8453 # Setup a source with many dependencies, because some compilers
8454 # like to wrap large dependency lists on column 80 (with \), and
8455 # we should not choose a depcomp mode which is confused by this.
8457 # We need to recreate these files for each test, as the compiler may
8458 # overwrite some of them when testing with obscure command lines.
8459 # This happens at least with the AIX C compiler.
8461 for i in 1 2 3 4 5 6; do
8462 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8463 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8464 # Solaris 8's {/usr,}/bin/sh.
8465 touch sub/conftst$i.h
8467 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8471 # after this tag, mechanisms are not by side-effect, so they'll
8472 # only be used when explicitly requested
8473 if test "x$enable_dependency_tracking" = xyes; then
8481 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8482 # mode. It turns out that the SunPro C++ compiler does not properly
8483 # handle `-M -o', and we need to detect this.
8484 if depmode=$depmode \
8485 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8486 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8487 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8488 >/dev/null 2>conftest.err &&
8489 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8490 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8491 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8492 # icc doesn't choke on unknown options, it will just issue warnings
8493 # or remarks (even with -Werror). So we grep stderr for any message
8494 # that says an option was ignored or not supported.
8495 # When given -MP, icc 7.0 and 7.1 complain thusly:
8496 # icc: Command line warning: ignoring option '-M'; no argument required
8497 # The diagnosis changed in icc 8.0:
8498 # icc: Command line remark: option '-MP' not supported
8499 if (grep 'ignoring option' conftest.err ||
8500 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8501 am_cv_OBJC_dependencies_compiler_type=$depmode
8510 am_cv_OBJC_dependencies_compiler_type=none
8514 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
8515 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
8516 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
8521 test "x$enable_dependency_tracking" != xno \
8522 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
8523 am__fastdepOBJC_TRUE=
8524 am__fastdepOBJC_FALSE='#'
8526 am__fastdepOBJC_TRUE='#'
8527 am__fastdepOBJC_FALSE=
8532 # Extract the first word of "pod2man", so it can be a program name with args.
8533 set dummy pod2man; ac_word=$2
8534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8536 if test "${ac_cv_path_POD2MAN+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8551 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 POD2MAN=$ac_cv_path_POD2MAN
8563 if test -n "$POD2MAN"; then
8564 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8565 echo "${ECHO_T}$POD2MAN" >&6; }
8567 { echo "$as_me:$LINENO: result: no" >&5
8568 echo "${ECHO_T}no" >&6; }
8572 # Extract the first word of "pod2html", so it can be a program name with args.
8573 set dummy pod2html; ac_word=$2
8574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8576 if test "${ac_cv_path_POD2HTML+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8591 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 POD2HTML=$ac_cv_path_POD2HTML
8603 if test -n "$POD2HTML"; then
8604 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8605 echo "${ECHO_T}$POD2HTML" >&6; }
8607 { echo "$as_me:$LINENO: result: no" >&5
8608 echo "${ECHO_T}no" >&6; }
8614 cat >>confdefs.h <<_ACEOF
8615 #define BUILD_SED_PROG "${SED}"
8619 cat >>confdefs.h <<_ACEOF
8620 #define BUILD_CPP_PROG "${CPP}"
8625 # Check whether --enable-strict-warn was given.
8626 if test "${enable_strict_warn+set}" = set; then
8627 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
8628 enable_strictwarn=yes
8632 # Check whether --enable-translator was given.
8633 if test "${enable_translator+set}" = set; then
8634 enableval=$enable_translator; true
8636 enable_translator=yes
8639 # Check whether --enable-optimized was given.
8640 if test "${enable_optimized+set}" = set; then
8641 enableval=$enable_optimized; true
8643 enable_optimized=yes
8646 # Check whether --enable-shared was given.
8647 if test "${enable_shared+set}" = set; then
8648 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
8653 # Check whether --enable-profiled was given.
8654 if test "${enable_profiled+set}" = set; then
8655 enableval=$enable_profiled; if test "$enableval" == "yes"; then
8656 enable_profiled=yes;
8660 # Check whether --enable-trace was given.
8661 if test "${enable_trace+set}" = set; then
8662 enableval=$enable_trace; if test "$enableval" == "yes"; then
8664 cat >>confdefs.h <<\_ACEOF
8665 #define ENABLE_TRACE_IO 1
8671 # Check whether --enable-watch was given.
8672 if test "${enable_watch+set}" = set; then
8673 enableval=$enable_watch; if test "$enableval" == "yes"; then
8675 cat >>confdefs.h <<\_ACEOF
8676 #define ENABLE_WATCH 1
8682 # Check whether --enable-sh4stats was given.
8683 if test "${enable_sh4stats+set}" = set; then
8684 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
8686 cat >>confdefs.h <<\_ACEOF
8687 #define ENABLE_SH4STATS 1
8694 # Check whether --with-osmesa was given.
8695 if test "${with_osmesa+set}" = set; then
8696 withval=$with_osmesa;
8702 # Check whether --with-gtk was given.
8703 if test "${with_gtk+set}" = set; then
8704 withval=$with_gtk; with_gtk=yes
8710 # Check whether --with-esd was given.
8711 if test "${with_esd+set}" = set; then
8716 # Check whether --with-pulse was given.
8717 if test "${with_pulse+set}" = set; then
8718 withval=$with_pulse;
8722 # Check whether --with-sdl was given.
8723 if test "${with_sdl+set}" = set; then
8733 ac_cpp='$OBJCPP $CPPFLAGS'
8734 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8735 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8736 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8737 if test -n "$ac_tool_prefix"; then
8738 for ac_prog in gcc objcc objc cc CC
8740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8744 if test "${ac_cv_prog_OBJC+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 if test -n "$OBJC"; then
8748 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
8756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8757 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
8758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 OBJC=$ac_cv_prog_OBJC
8768 if test -n "$OBJC"; then
8769 { echo "$as_me:$LINENO: result: $OBJC" >&5
8770 echo "${ECHO_T}$OBJC" >&6; }
8772 { echo "$as_me:$LINENO: result: no" >&5
8773 echo "${ECHO_T}no" >&6; }
8777 test -n "$OBJC" && break
8780 if test -z "$OBJC"; then
8782 for ac_prog in gcc objcc objc cc CC
8784 # Extract the first word of "$ac_prog", so it can be a program name with args.
8785 set dummy $ac_prog; ac_word=$2
8786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8788 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 if test -n "$ac_ct_OBJC"; then
8792 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
8794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798 test -z "$as_dir" && as_dir=.
8799 for ac_exec_ext in '' $ac_executable_extensions; do
8800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8801 ac_cv_prog_ac_ct_OBJC="$ac_prog"
8802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
8812 if test -n "$ac_ct_OBJC"; then
8813 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
8814 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
8816 { echo "$as_me:$LINENO: result: no" >&5
8817 echo "${ECHO_T}no" >&6; }
8821 test -n "$ac_ct_OBJC" && break
8824 if test "x$ac_ct_OBJC" = x; then
8827 case $cross_compiling:$ac_tool_warned in
8829 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8830 whose name does not start with the host triplet. If you think this
8831 configuration is useful to you, please write to autoconf@gnu.org." >&5
8832 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8833 whose name does not start with the host triplet. If you think this
8834 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8835 ac_tool_warned=yes ;;
8841 # Provide some information about the compiler.
8842 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
8843 ac_compiler=`set X $ac_compile; echo $2`
8844 { (ac_try="$ac_compiler --version >&5"
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8850 (eval "$ac_compiler --version >&5") 2>&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }
8854 { (ac_try="$ac_compiler -v >&5"
8856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860 (eval "$ac_compiler -v >&5") 2>&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }
8864 { (ac_try="$ac_compiler -V >&5"
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_compiler -V >&5") 2>&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }
8875 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
8876 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
8877 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 cat >conftest.$ac_ext <<_ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8898 rm -f conftest.$ac_objext
8899 if { (ac_try="$ac_compile"
8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_compile") 2>conftest.er1
8907 grep -v '^ *+' conftest.er1 >conftest.err
8909 cat conftest.err >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } && {
8912 test -z "$ac_objc_werror_flag" ||
8913 test ! -s conftest.err
8914 } && test -s conftest.$ac_objext; then
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
8927 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
8928 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
8929 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
8930 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
8931 ac_save_OBJCFLAGS=$OBJCFLAGS
8932 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
8933 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
8934 if test "${ac_cv_prog_objc_g+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 ac_save_objc_werror_flag=$ac_objc_werror_flag
8938 ac_objc_werror_flag=yes
8939 ac_cv_prog_objc_g=no
8941 cat >conftest.$ac_ext <<_ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8956 rm -f conftest.$ac_objext
8957 if { (ac_try="$ac_compile"
8959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8960 *) ac_try_echo=$ac_try;;
8962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8963 (eval "$ac_compile") 2>conftest.er1
8965 grep -v '^ *+' conftest.er1 >conftest.err
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } && {
8970 test -z "$ac_objc_werror_flag" ||
8971 test ! -s conftest.err
8972 } && test -s conftest.$ac_objext; then
8973 ac_cv_prog_objc_g=yes
8975 echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8979 cat >conftest.$ac_ext <<_ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h. */
8994 rm -f conftest.$ac_objext
8995 if { (ac_try="$ac_compile"
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_compile") 2>conftest.er1
9003 grep -v '^ *+' conftest.er1 >conftest.err
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } && {
9008 test -z "$ac_objc_werror_flag" ||
9009 test ! -s conftest.err
9010 } && test -s conftest.$ac_objext; then
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 ac_objc_werror_flag=$ac_save_objc_werror_flag
9018 cat >conftest.$ac_ext <<_ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9033 rm -f conftest.$ac_objext
9034 if { (ac_try="$ac_compile"
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_compile") 2>conftest.er1
9042 grep -v '^ *+' conftest.er1 >conftest.err
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } && {
9047 test -z "$ac_objc_werror_flag" ||
9048 test ! -s conftest.err
9049 } && test -s conftest.$ac_objext; then
9050 ac_cv_prog_objc_g=yes
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065 ac_objc_werror_flag=$ac_save_objc_werror_flag
9067 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
9068 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
9069 if test "$ac_test_OBJCFLAGS" = set; then
9070 OBJCFLAGS=$ac_save_OBJCFLAGS
9071 elif test $ac_cv_prog_objc_g = yes; then
9072 if test "$GOBJC" = yes; then
9078 if test "$GOBJC" = yes; then
9085 ac_cpp='$CPP $CPPFLAGS'
9086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9090 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
9091 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
9093 ac_cpp='$OBJCPP $CPPFLAGS'
9094 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9095 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9096 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9097 cat >conftest.$ac_ext <<_ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9112 rm -f conftest.$ac_objext
9113 if { (ac_try="$ac_compile"
9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116 *) ac_try_echo=$ac_try;;
9118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119 (eval "$ac_compile") 2>conftest.er1
9121 grep -v '^ *+' conftest.er1 >conftest.err
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } && {
9126 test -z "$ac_objc_werror_flag" ||
9127 test ! -s conftest.err
9128 } && test -s conftest.$ac_objext; then
9129 { echo "$as_me:$LINENO: result: yes" >&5
9130 echo "${ECHO_T}yes" >&6; }
9132 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
9133 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
9134 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 cat >conftest.$ac_ext <<_ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9143 $ac_includes_default
9145 #include <Cocoa/Cocoa.h>
9147 rm -f conftest.$ac_objext
9148 if { (ac_try="$ac_compile"
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_compile") 2>conftest.er1
9156 grep -v '^ *+' conftest.er1 >conftest.err
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } && {
9161 test -z "$ac_objc_werror_flag" ||
9162 test ! -s conftest.err
9163 } && test -s conftest.$ac_objext; then
9164 ac_cv_header_Cocoa_Cocoa_h=yes
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9169 ac_cv_header_Cocoa_Cocoa_h=no
9172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9174 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
9175 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
9176 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
9180 LIBS="$LIBS -framework AppKit -framework Carbon"
9181 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"
9182 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
9183 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
9185 cat >>confdefs.h <<\_ACEOF
9186 #define HAVE_COCOA 1
9190 cat >>confdefs.h <<\_ACEOF
9191 #define APPLE_BUILD 1
9194 if test "x$with_gtk" = "xx11"; then
9203 { echo "$as_me:$LINENO: checking OBJC version" >&5
9204 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
9205 if test -n "$OBJC"; then
9206 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
9207 if test -n "$_GOBJC_VERSION"; then
9208 { echo "$as_me:$LINENO: result: GCC" >&5
9209 echo "${ECHO_T}GCC" >&6; }
9211 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
9213 { echo "$as_me:$LINENO: result: Unknown" >&5
9214 echo "${ECHO_T}Unknown" >&6; }
9218 { echo "$as_me:$LINENO: result: None" >&5
9219 echo "${ECHO_T}None" >&6; }
9225 ac_cpp='$OBJCPP $CPPFLAGS'
9226 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9227 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9228 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9230 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
9231 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
9232 save_OBJCFLAGS="$OBJCFLAGS"
9233 OBJCFLAGS="-msse2 $OBJCFLAGS"
9234 cat >conftest.$ac_ext <<_ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9241 int main() { return 0; }
9243 rm -f conftest.$ac_objext
9244 if { (ac_try="$ac_compile"
9246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247 *) ac_try_echo=$ac_try;;
9249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9250 (eval "$ac_compile") 2>conftest.er1
9252 grep -v '^ *+' conftest.er1 >conftest.err
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } && {
9257 test -z "$ac_objc_werror_flag" ||
9258 test ! -s conftest.err
9259 } && test -s conftest.$ac_objext; then
9261 { echo "$as_me:$LINENO: result: yes" >&5
9262 echo "${ECHO_T}yes" >&6; }
9265 echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9269 OBJCFLAGS="$save_OBJCFLAGS"
9270 { echo "$as_me:$LINENO: result: no" >&5
9271 echo "${ECHO_T}no" >&6; }
9275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277 ac_cpp='$OBJCPP $CPPFLAGS'
9278 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9279 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9280 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9285 ac_cpp='$OBJCPP $CPPFLAGS'
9286 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9287 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9288 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9290 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
9291 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
9292 save_OBJCFLAGS="$OBJCFLAGS"
9293 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
9294 cat >conftest.$ac_ext <<_ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9301 int main() { return 0; }
9303 rm -f conftest.$ac_objext
9304 if { (ac_try="$ac_compile"
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310 (eval "$ac_compile") 2>conftest.er1
9312 grep -v '^ *+' conftest.er1 >conftest.err
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } && {
9317 test -z "$ac_objc_werror_flag" ||
9318 test ! -s conftest.err
9319 } && test -s conftest.$ac_objext; then
9321 { echo "$as_me:$LINENO: result: yes" >&5
9322 echo "${ECHO_T}yes" >&6; }
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9329 OBJCFLAGS="$save_OBJCFLAGS"
9330 { echo "$as_me:$LINENO: result: no" >&5
9331 echo "${ECHO_T}no" >&6; }
9335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337 ac_cpp='$OBJCPP $CPPFLAGS'
9338 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9339 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9340 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9348 { echo "$as_me:$LINENO: result: No" >&5
9349 echo "${ECHO_T}No" >&6; }
9353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
9355 ac_cpp='$CPP $CPPFLAGS'
9356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9364 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
9372 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
9374 cat >>confdefs.h <<\_ACEOF
9375 #define OSX_BUNDLE 1
9380 CFLAGS_FOR_BUILD="-O2 -std=c99"
9381 CFLAGS="-g -fexceptions"
9382 OBJCFLAGS="-g -fexceptions"
9384 cat >>confdefs.h <<\_ACEOF
9385 #define HAVE_EXCEPTIONS 1
9391 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
9392 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
9393 { echo "$as_me:$LINENO: checking CC version" >&5
9394 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
9395 if test -n "$_ICC_VERSION"; then
9396 { echo "$as_me:$LINENO: result: ICC" >&5
9397 echo "${ECHO_T}ICC" >&6; }
9398 CCOPT="$CFLAGS -fast"
9399 CFLAGS="$CFLAGS -fno-strict-aliasing"
9400 elif test -n "$_GCC_VERSION"; then
9401 { echo "$as_me:$LINENO: result: GCC" >&5
9402 echo "${ECHO_T}GCC" >&6; }
9404 CFLAGS="$CFLAGS -fno-strict-aliasing"
9406 { echo "$as_me:$LINENO: result: Unknown" >&5
9407 echo "${ECHO_T}Unknown" >&6; }
9413 ac_cpp='$CPP $CPPFLAGS'
9414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9418 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
9419 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
9420 save_CFLAGS="$CFLAGS"
9421 CFLAGS="-msse2 $CFLAGS"
9422 cat >conftest.$ac_ext <<_ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9429 int main() { return 0; }
9431 rm -f conftest.$ac_objext
9432 if { (ac_try="$ac_compile"
9434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435 *) ac_try_echo=$ac_try;;
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438 (eval "$ac_compile") 2>conftest.er1
9440 grep -v '^ *+' conftest.er1 >conftest.err
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } && {
9445 test -z "$ac_c_werror_flag" ||
9446 test ! -s conftest.err
9447 } && test -s conftest.$ac_objext; then
9449 { echo "$as_me:$LINENO: result: yes" >&5
9450 echo "${ECHO_T}yes" >&6; }
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9457 CFLAGS="$save_CFLAGS"
9458 { echo "$as_me:$LINENO: result: no" >&5
9459 echo "${ECHO_T}no" >&6; }
9463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465 ac_cpp='$CPP $CPPFLAGS'
9466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9473 ac_cpp='$CPP $CPPFLAGS'
9474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9478 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
9479 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
9480 save_CFLAGS="$CFLAGS"
9481 CFLAGS="-mfpmath=sse $CFLAGS"
9482 cat >conftest.$ac_ext <<_ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9489 int main() { return 0; }
9491 rm -f conftest.$ac_objext
9492 if { (ac_try="$ac_compile"
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9498 (eval "$ac_compile") 2>conftest.er1
9500 grep -v '^ *+' conftest.er1 >conftest.err
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } && {
9505 test -z "$ac_c_werror_flag" ||
9506 test ! -s conftest.err
9507 } && test -s conftest.$ac_objext; then
9509 { echo "$as_me:$LINENO: result: yes" >&5
9510 echo "${ECHO_T}yes" >&6; }
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9517 CFLAGS="$save_CFLAGS"
9518 { echo "$as_me:$LINENO: result: no" >&5
9519 echo "${ECHO_T}no" >&6; }
9523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9525 ac_cpp='$CPP $CPPFLAGS'
9526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9532 if test "x$enable_optimized" = "xyes"; then
9533 CFLAGS="$CFLAGS $CCOPT"
9534 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
9535 if test "x$enable_profiled" != "xyes"; then
9536 CFLAGS="$CFLAGS -fomit-frame-pointer"
9537 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
9540 CFLAGS="$CFLAGS -g3"
9541 OBJCFLAGS="$OBJCFLAGS -g3"
9544 if test "x$enable_profiled" = "xyes"; then
9545 CFLAGS="$CFLAGS -pg"
9546 LDFLAGS="$LDFLAGS -pg";
9547 OBJCFLAGS="$OBJCFLAGS -pg";
9550 if test "x$enable_strictwarn" = "xyes"; then
9551 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
9552 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
9555 if test "x$enable_shared" != "xno"; then
9556 if test "x$APPLE_BUILD" = "xyes"; then
9558 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
9561 PLUGINLDFLAGS="-shared"
9563 PLUGINCFLAGS="-fPIC"
9565 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9566 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9567 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9568 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9572 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9574 # Is the header compilable?
9575 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9576 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
9577 cat >conftest.$ac_ext <<_ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9583 $ac_includes_default
9586 rm -f conftest.$ac_objext
9587 if { (ac_try="$ac_compile"
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_compile") 2>conftest.er1
9595 grep -v '^ *+' conftest.er1 >conftest.err
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } && {
9600 test -z "$ac_c_werror_flag" ||
9601 test ! -s conftest.err
9602 } && test -s conftest.$ac_objext; then
9603 ac_header_compiler=yes
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9608 ac_header_compiler=no
9611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9613 echo "${ECHO_T}$ac_header_compiler" >&6; }
9615 # Is the header present?
9616 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9617 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
9618 cat >conftest.$ac_ext <<_ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9626 if { (ac_try="$ac_cpp conftest.$ac_ext"
9628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629 *) ac_try_echo=$ac_try;;
9631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9634 grep -v '^ *+' conftest.er1 >conftest.err
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } >/dev/null && {
9639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9640 test ! -s conftest.err
9642 ac_header_preproc=yes
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9647 ac_header_preproc=no
9650 rm -f conftest.err conftest.$ac_ext
9651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9652 echo "${ECHO_T}$ac_header_preproc" >&6; }
9654 # So? What about this header?
9655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9657 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9658 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9659 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9660 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9661 ac_header_preproc=yes
9664 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9665 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9666 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9667 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9668 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9669 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9670 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9671 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9672 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9673 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9674 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9675 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9679 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9680 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9681 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 ac_cv_header_dlfcn_h=$ac_header_preproc
9686 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9687 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9690 if test $ac_cv_header_dlfcn_h = yes; then
9692 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9693 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9694 if test "${ac_cv_search_dlopen+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 ac_func_search_save_LIBS=$LIBS
9698 cat >conftest.$ac_ext <<_ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9705 /* Override any GCC internal prototype to avoid an error.
9706 Use char because int might match the return type of a GCC
9707 builtin and then its argument prototype would still apply. */
9720 for ac_lib in '' dl; do
9721 if test -z "$ac_lib"; then
9722 ac_res="none required"
9725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (ac_try="$ac_link"
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_link") 2>conftest.er1
9736 grep -v '^ *+' conftest.er1 >conftest.err
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } && {
9741 test -z "$ac_c_werror_flag" ||
9742 test ! -s conftest.err
9743 } && test -s conftest$ac_exeext &&
9744 $as_test_x conftest$ac_exeext; then
9745 ac_cv_search_dlopen=$ac_res
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9755 if test "${ac_cv_search_dlopen+set}" = set; then
9759 if test "${ac_cv_search_dlopen+set}" = set; then
9762 ac_cv_search_dlopen=no
9765 LIBS=$ac_func_search_save_LIBS
9767 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9768 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9769 ac_res=$ac_cv_search_dlopen
9770 if test "$ac_res" != no; then
9771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9778 if test "x$have_dlopen" != "xyes"; then
9779 if test "x$enable_shared" == "xyes"; then
9780 { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
9781 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
9782 { (exit 1); exit 1; }; }
9784 { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
9785 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
9789 { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
9790 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
9791 old_LDFLAGS="$LDFLAGS"
9792 LDFLAGS="$LDFLAGS -rdynamic"
9793 cat >conftest.$ac_ext <<_ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 int main() { return 0; }
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (ac_try="$ac_link"
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_link") 2>conftest.er1
9810 grep -v '^ *+' conftest.er1 >conftest.err
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } && {
9815 test -z "$ac_c_werror_flag" ||
9816 test ! -s conftest.err
9817 } && test -s conftest$ac_exeext &&
9818 $as_test_x conftest$ac_exeext; then
9820 LXDREAMLDFLAGS="-rdynamic"
9821 { echo "$as_me:$LINENO: result: yes" >&5
9822 echo "${ECHO_T}yes" >&6; }
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9830 { echo "$as_me:$LINENO: result: no" >&5
9831 echo "${ECHO_T}no" >&6; }
9834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9835 conftest$ac_exeext conftest.$ac_ext
9836 LDFLAGS="$old_LDFLAGS"
9843 if test "x$have_dlopen" = "xyes"; then
9845 cat >>confdefs.h <<\_ACEOF
9846 #define BUILD_PLUGINS 1
9852 if test "x$have_dlopen" = "xyes"; then
9854 BUILD_PLUGINS_FALSE='#'
9856 BUILD_PLUGINS_TRUE='#'
9857 BUILD_PLUGINS_FALSE=
9862 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
9863 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
9864 save_CFLAGS="$CFLAGS"
9865 CFLAGS="-Werror $save_CFLAGS"
9866 if test "$cross_compiling" = yes; then
9868 { echo "$as_me:$LINENO: result: no" >&5
9869 echo "${ECHO_T}no" >&6; }
9872 cat >conftest.$ac_ext <<_ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9880 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
9882 int main(int argc, char *argv[])
9884 return foo( 1, 2 ) == 3 ? 0 : 1;
9887 rm -f conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9898 { (case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_try") 2>&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9908 { echo "$as_me:$LINENO: result: yes" >&5
9909 echo "${ECHO_T}yes" >&6; }
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_FASTCALL 1
9918 echo "$as_me: program exited with status $ac_status" >&5
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9924 { echo "$as_me:$LINENO: result: no" >&5
9925 echo "${ECHO_T}no" >&6; }
9928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9932 CFLAGS="$save_CFLAGS"
9935 { echo "$as_me:$LINENO: checking support for force inlining" >&5
9936 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
9937 cat >conftest.$ac_ext <<_ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9945 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
9947 int main(int argc, char *argv[])
9949 return foo( 1, 2 ) == 3 ? 0 : 1;
9952 rm -f conftest.$ac_objext
9953 if { (ac_try="$ac_compile"
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_compile") 2>conftest.er1
9961 grep -v '^ *+' conftest.er1 >conftest.err
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest.$ac_objext; then
9970 FORCEINLINE="__attribute__((always_inline))"
9971 { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
9972 echo "${ECHO_T}$FORCEINLINE" >&6; }
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9980 { echo "$as_me:$LINENO: result: no" >&5
9981 echo "${ECHO_T}no" >&6; }
9985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9988 cat >>confdefs.h <<_ACEOF
9989 #define FORCEINLINE $FORCEINLINE
9993 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
9994 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
9995 if test "$cross_compiling" = yes; then
9997 { echo "$as_me:$LINENO: result: no" >&5
9998 echo "${ECHO_T}no" >&6; }
9999 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10000 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10002 cat >conftest.$ac_ext <<_ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10010 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
10011 int __attribute__((noinline)) foo( int arg, void *exc )
10014 *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
10019 int main(int argc, char *argv[])
10021 goto *first_arg(&&start, &&except);
10024 return foo( argc, &&except ) + 1;
10030 rm -f conftest$ac_exeext
10031 if { (ac_try="$ac_link"
10032 case "(($ac_try" in
10033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034 *) ac_try_echo=$ac_try;;
10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037 (eval "$ac_link") 2>&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10041 { (case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_try") 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10051 { echo "$as_me:$LINENO: result: yes" >&5
10052 echo "${ECHO_T}yes" >&6; }
10055 cat >>confdefs.h <<\_ACEOF
10056 #define HAVE_FRAME_ADDRESS 1
10061 echo "$as_me: program exited with status $ac_status" >&5
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 ( exit $ac_status )
10067 { echo "$as_me:$LINENO: result: no" >&5
10068 echo "${ECHO_T}no" >&6; }
10069 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10070 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10079 { echo "$as_me:$LINENO: checking for library containing listen" >&5
10080 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
10081 if test "${ac_cv_search_listen+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 ac_func_search_save_LIBS=$LIBS
10085 cat >conftest.$ac_ext <<_ACEOF
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h. */
10092 /* Override any GCC internal prototype to avoid an error.
10093 Use char because int might match the return type of a GCC
10094 builtin and then its argument prototype would still apply. */
10107 for ac_lib in '' socket; do
10108 if test -z "$ac_lib"; then
10109 ac_res="none required"
10112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_link") 2>conftest.er1
10123 grep -v '^ *+' conftest.er1 >conftest.err
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } && {
10128 test -z "$ac_c_werror_flag" ||
10129 test ! -s conftest.err
10130 } && test -s conftest$ac_exeext &&
10131 $as_test_x conftest$ac_exeext; then
10132 ac_cv_search_listen=$ac_res
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10142 if test "${ac_cv_search_listen+set}" = set; then
10146 if test "${ac_cv_search_listen+set}" = set; then
10149 ac_cv_search_listen=no
10151 rm conftest.$ac_ext
10152 LIBS=$ac_func_search_save_LIBS
10154 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
10155 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
10156 ac_res=$ac_cv_search_listen
10157 if test "$ac_res" != no; then
10158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10162 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
10163 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
10164 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 ac_func_search_save_LIBS=$LIBS
10168 cat >conftest.$ac_ext <<_ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10175 /* Override any GCC internal prototype to avoid an error.
10176 Use char because int might match the return type of a GCC
10177 builtin and then its argument prototype would still apply. */
10185 return inet_ntoa ();
10190 for ac_lib in '' nsl; do
10191 if test -z "$ac_lib"; then
10192 ac_res="none required"
10195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10197 rm -f conftest.$ac_objext conftest$ac_exeext
10198 if { (ac_try="$ac_link"
10199 case "(($ac_try" in
10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10204 (eval "$ac_link") 2>conftest.er1
10206 grep -v '^ *+' conftest.er1 >conftest.err
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } && {
10211 test -z "$ac_c_werror_flag" ||
10212 test ! -s conftest.err
10213 } && test -s conftest$ac_exeext &&
10214 $as_test_x conftest$ac_exeext; then
10215 ac_cv_search_inet_ntoa=$ac_res
10217 echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10225 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10229 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10232 ac_cv_search_inet_ntoa=no
10234 rm conftest.$ac_ext
10235 LIBS=$ac_func_search_save_LIBS
10237 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
10238 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
10239 ac_res=$ac_cv_search_inet_ntoa
10240 if test "$ac_res" != no; then
10241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10248 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10249 if test -n "$ac_tool_prefix"; then
10250 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10251 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10254 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 case $PKG_CONFIG in
10259 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263 for as_dir in $PATH
10266 test -z "$as_dir" && as_dir=.
10267 for ac_exec_ext in '' $ac_executable_extensions; do
10268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10269 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10280 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10281 if test -n "$PKG_CONFIG"; then
10282 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10283 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10285 { echo "$as_me:$LINENO: result: no" >&5
10286 echo "${ECHO_T}no" >&6; }
10291 if test -z "$ac_cv_path_PKG_CONFIG"; then
10292 ac_pt_PKG_CONFIG=$PKG_CONFIG
10293 # Extract the first word of "pkg-config", so it can be a program name with args.
10294 set dummy pkg-config; ac_word=$2
10295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10297 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 case $ac_pt_PKG_CONFIG in
10302 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306 for as_dir in $PATH
10309 test -z "$as_dir" && as_dir=.
10310 for ac_exec_ext in '' $ac_executable_extensions; do
10311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10312 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10323 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10324 if test -n "$ac_pt_PKG_CONFIG"; then
10325 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
10326 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
10328 { echo "$as_me:$LINENO: result: no" >&5
10329 echo "${ECHO_T}no" >&6; }
10332 if test "x$ac_pt_PKG_CONFIG" = x; then
10335 case $cross_compiling:$ac_tool_warned in
10337 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10338 whose name does not start with the host triplet. If you think this
10339 configuration is useful to you, please write to autoconf@gnu.org." >&5
10340 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10341 whose name does not start with the host triplet. If you think this
10342 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10343 ac_tool_warned=yes ;;
10345 PKG_CONFIG=$ac_pt_PKG_CONFIG
10348 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10352 if test -n "$PKG_CONFIG"; then
10353 _pkg_min_version=0.9.0
10354 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
10355 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
10356 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10357 { echo "$as_me:$LINENO: result: yes" >&5
10358 echo "${ECHO_T}yes" >&6; }
10360 { echo "$as_me:$LINENO: result: no" >&5
10361 echo "${ECHO_T}no" >&6; }
10368 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
10369 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
10371 if test -n "$LIBPNG_CFLAGS"; then
10372 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
10373 elif test -n "$PKG_CONFIG"; then
10374 if test -n "$PKG_CONFIG" && \
10375 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10376 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; then
10380 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
10387 if test -n "$LIBPNG_LIBS"; then
10388 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
10389 elif test -n "$PKG_CONFIG"; then
10390 if test -n "$PKG_CONFIG" && \
10391 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10392 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; then
10396 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
10406 if test $pkg_failed = yes; then
10408 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10409 _pkg_short_errors_supported=yes
10411 _pkg_short_errors_supported=no
10413 if test $_pkg_short_errors_supported = yes; then
10414 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
10416 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
10418 # Put the nasty error message in config.log where it belongs
10419 echo "$LIBPNG_PKG_ERRORS" >&5
10421 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
10425 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10426 installed software in a non-standard prefix.
10428 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10429 and LIBPNG_LIBS to avoid the need to call pkg-config.
10430 See the pkg-config man page for more details.
10432 echo "$as_me: error: Package requirements (libpng ) were not met:
10436 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10437 installed software in a non-standard prefix.
10439 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10440 and LIBPNG_LIBS to avoid the need to call pkg-config.
10441 See the pkg-config man page for more details.
10443 { (exit 1); exit 1; }; }
10444 elif test $pkg_failed = untried; then
10445 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10446 is in your PATH or set the PKG_CONFIG environment variable to the full
10447 path to pkg-config.
10449 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10450 and LIBPNG_LIBS to avoid the need to call pkg-config.
10451 See the pkg-config man page for more details.
10453 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10454 See \`config.log' for more details." >&5
10455 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10456 is in your PATH or set the PKG_CONFIG environment variable to the full
10457 path to pkg-config.
10459 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10460 and LIBPNG_LIBS to avoid the need to call pkg-config.
10461 See the pkg-config man page for more details.
10463 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10464 See \`config.log' for more details." >&2;}
10465 { (exit 1); exit 1; }; }
10467 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
10468 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
10469 { echo "$as_me:$LINENO: result: yes" >&5
10470 echo "${ECHO_T}yes" >&6; }
10475 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
10476 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
10477 if test "${ac_cv_lib_z_uncompress+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 ac_check_lib_save_LIBS=$LIBS
10482 cat >conftest.$ac_ext <<_ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10489 /* Override any GCC internal prototype to avoid an error.
10490 Use char because int might match the return type of a GCC
10491 builtin and then its argument prototype would still apply. */
10495 char uncompress ();
10499 return uncompress ();
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (ac_try="$ac_link"
10506 case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_link") 2>conftest.er1
10513 grep -v '^ *+' conftest.er1 >conftest.err
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } && {
10518 test -z "$ac_c_werror_flag" ||
10519 test ! -s conftest.err
10520 } && test -s conftest$ac_exeext &&
10521 $as_test_x conftest$ac_exeext; then
10522 ac_cv_lib_z_uncompress=yes
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 ac_cv_lib_z_uncompress=no
10530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10531 conftest$ac_exeext conftest.$ac_ext
10532 LIBS=$ac_check_lib_save_LIBS
10534 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
10535 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
10536 if test $ac_cv_lib_z_uncompress = yes; then
10537 cat >>confdefs.h <<_ACEOF
10538 #define HAVE_LIBZ 1
10545 echo "Zlib (libz.so) could not be found, but is required."
10550 if test "x$with_gtk" = "xno"; then
10553 { echo "$as_me:$LINENO: checking for GLIB" >&5
10554 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10556 if test -n "$GLIB_CFLAGS"; then
10557 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10558 elif test -n "$PKG_CONFIG"; then
10559 if test -n "$PKG_CONFIG" && \
10560 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10561 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; then
10565 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10572 if test -n "$GLIB_LIBS"; then
10573 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10574 elif test -n "$PKG_CONFIG"; then
10575 if test -n "$PKG_CONFIG" && \
10576 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10577 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; then
10581 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10591 if test $pkg_failed = yes; then
10593 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10594 _pkg_short_errors_supported=yes
10596 _pkg_short_errors_supported=no
10598 if test $_pkg_short_errors_supported = yes; then
10599 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
10601 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
10603 # Put the nasty error message in config.log where it belongs
10604 echo "$GLIB_PKG_ERRORS" >&5
10606 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
10610 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10611 installed software in a non-standard prefix.
10613 Alternatively, you may set the environment variables GLIB_CFLAGS
10614 and GLIB_LIBS to avoid the need to call pkg-config.
10615 See the pkg-config man page for more details.
10617 echo "$as_me: error: Package requirements (glib-2.0) were not met:
10621 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10622 installed software in a non-standard prefix.
10624 Alternatively, you may set the environment variables GLIB_CFLAGS
10625 and GLIB_LIBS to avoid the need to call pkg-config.
10626 See the pkg-config man page for more details.
10628 { (exit 1); exit 1; }; }
10629 elif test $pkg_failed = untried; then
10630 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10631 is in your PATH or set the PKG_CONFIG environment variable to the full
10632 path to pkg-config.
10634 Alternatively, you may set the environment variables GLIB_CFLAGS
10635 and GLIB_LIBS to avoid the need to call pkg-config.
10636 See the pkg-config man page for more details.
10638 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10639 See \`config.log' for more details." >&5
10640 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10641 is in your PATH or set the PKG_CONFIG environment variable to the full
10642 path to pkg-config.
10644 Alternatively, you may set the environment variables GLIB_CFLAGS
10645 and GLIB_LIBS to avoid the need to call pkg-config.
10646 See the pkg-config man page for more details.
10648 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10649 See \`config.log' for more details." >&2;}
10650 { (exit 1); exit 1; }; }
10652 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
10653 GLIB_LIBS=$pkg_cv_GLIB_LIBS
10654 { echo "$as_me:$LINENO: result: yes" >&5
10655 echo "${ECHO_T}yes" >&6; }
10661 { echo "$as_me:$LINENO: checking for GTK" >&5
10662 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
10664 if test -n "$GTK_CFLAGS"; then
10665 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
10666 elif test -n "$PKG_CONFIG"; then
10667 if test -n "$PKG_CONFIG" && \
10668 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10669 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; then
10673 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
10680 if test -n "$GTK_LIBS"; then
10681 pkg_cv_GTK_LIBS="$GTK_LIBS"
10682 elif test -n "$PKG_CONFIG"; then
10683 if test -n "$PKG_CONFIG" && \
10684 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10685 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; then
10689 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
10699 if test $pkg_failed = yes; then
10701 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10702 _pkg_short_errors_supported=yes
10704 _pkg_short_errors_supported=no
10706 if test $_pkg_short_errors_supported = yes; then
10707 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
10709 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
10711 # Put the nasty error message in config.log where it belongs
10712 echo "$GTK_PKG_ERRORS" >&5
10714 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
10718 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10719 installed software in a non-standard prefix.
10721 Alternatively, you may set the environment variables GTK_CFLAGS
10722 and GTK_LIBS to avoid the need to call pkg-config.
10723 See the pkg-config man page for more details.
10725 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
10729 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10730 installed software in a non-standard prefix.
10732 Alternatively, you may set the environment variables GTK_CFLAGS
10733 and GTK_LIBS to avoid the need to call pkg-config.
10734 See the pkg-config man page for more details.
10736 { (exit 1); exit 1; }; }
10737 elif test $pkg_failed = untried; then
10738 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10739 is in your PATH or set the PKG_CONFIG environment variable to the full
10740 path to pkg-config.
10742 Alternatively, you may set the environment variables GTK_CFLAGS
10743 and GTK_LIBS to avoid the need to call pkg-config.
10744 See the pkg-config man page for more details.
10746 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10747 See \`config.log' for more details." >&5
10748 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10749 is in your PATH or set the PKG_CONFIG environment variable to the full
10750 path to pkg-config.
10752 Alternatively, you may set the environment variables GTK_CFLAGS
10753 and GTK_LIBS to avoid the need to call pkg-config.
10754 See the pkg-config man page for more details.
10756 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10757 See \`config.log' for more details." >&2;}
10758 { (exit 1); exit 1; }; }
10760 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
10761 GTK_LIBS=$pkg_cv_GTK_LIBS
10762 { echo "$as_me:$LINENO: result: yes" >&5
10763 echo "${ECHO_T}yes" >&6; }
10767 cat >>confdefs.h <<\_ACEOF
10774 LIBS="$LIBS $GTK_LIBS"
10775 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
10776 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
10777 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 cat >conftest.$ac_ext <<_ACEOF
10783 cat confdefs.h >>conftest.$ac_ext
10784 cat >>conftest.$ac_ext <<_ACEOF
10785 /* end confdefs.h. */
10786 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
10787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10788 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
10790 /* System header to define __stub macros and hopefully few prototypes,
10791 which can conflict with char gdk_x11_display_get_xdisplay (); below.
10792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10793 <limits.h> exists even on freestanding compilers. */
10796 # include <limits.h>
10798 # include <assert.h>
10801 #undef gdk_x11_display_get_xdisplay
10803 /* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10809 char gdk_x11_display_get_xdisplay ();
10810 /* The GNU C library defines this for functions which it implements
10811 to always fail with ENOSYS. Some functions are actually named
10812 something starting with __ and the normal name is an alias. */
10813 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
10820 return gdk_x11_display_get_xdisplay ();
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_link") 2>conftest.er1
10834 grep -v '^ *+' conftest.er1 >conftest.err
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } && {
10839 test -z "$ac_c_werror_flag" ||
10840 test ! -s conftest.err
10841 } && test -s conftest$ac_exeext &&
10842 $as_test_x conftest$ac_exeext; then
10843 ac_cv_func_gdk_x11_display_get_xdisplay=yes
10845 echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10848 ac_cv_func_gdk_x11_display_get_xdisplay=no
10851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10852 conftest$ac_exeext conftest.$ac_ext
10854 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
10855 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
10856 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
10860 cat >>confdefs.h <<\_ACEOF
10861 #define HAVE_GTK_X11 1
10866 GTK_LIBS="$GTK_LIBS -lX11"
10868 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
10869 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
10870 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 cat >conftest.$ac_ext <<_ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
10880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10881 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
10883 /* System header to define __stub macros and hopefully few prototypes,
10884 which can conflict with char gdk_quartz_window_get_nsview (); below.
10885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10886 <limits.h> exists even on freestanding compilers. */
10889 # include <limits.h>
10891 # include <assert.h>
10894 #undef gdk_quartz_window_get_nsview
10896 /* Override any GCC internal prototype to avoid an error.
10897 Use char because int might match the return type of a GCC
10898 builtin and then its argument prototype would still apply. */
10902 char gdk_quartz_window_get_nsview ();
10903 /* The GNU C library defines this for functions which it implements
10904 to always fail with ENOSYS. Some functions are actually named
10905 something starting with __ and the normal name is an alias. */
10906 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
10913 return gdk_quartz_window_get_nsview ();
10918 rm -f conftest.$ac_objext conftest$ac_exeext
10919 if { (ac_try="$ac_link"
10920 case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_link") 2>conftest.er1
10927 grep -v '^ *+' conftest.er1 >conftest.err
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } && {
10932 test -z "$ac_c_werror_flag" ||
10933 test ! -s conftest.err
10934 } && test -s conftest$ac_exeext &&
10935 $as_test_x conftest$ac_exeext; then
10936 ac_cv_func_gdk_quartz_window_get_nsview=yes
10938 echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10941 ac_cv_func_gdk_quartz_window_get_nsview=no
10944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10945 conftest$ac_exeext conftest.$ac_ext
10947 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
10948 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
10949 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
10953 cat >>confdefs.h <<\_ACEOF
10954 #define HAVE_GTK_OSX 1
10959 if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
10960 { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
10961 See \`config.log' for more details." >&5
10962 echo "$as_me: error: Unable to identify GTK platform
10963 See \`config.log' for more details." >&2;}
10964 { (exit 1); exit 1; }; }
10971 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
10972 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
10974 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
10975 pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
10976 elif test -n "$PKG_CONFIG"; then
10977 if test -n "$PKG_CONFIG" && \
10978 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10979 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; then
10983 pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10990 if test -n "$GLIB_FOR_BUILD_LIBS"; then
10991 pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
10992 elif test -n "$PKG_CONFIG"; then
10993 if test -n "$PKG_CONFIG" && \
10994 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10995 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; then
10999 pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
11009 if test $pkg_failed = yes; then
11011 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11012 _pkg_short_errors_supported=yes
11014 _pkg_short_errors_supported=no
11016 if test $_pkg_short_errors_supported = yes; then
11017 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
11019 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
11021 # Put the nasty error message in config.log where it belongs
11022 echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
11024 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
11026 $GLIB_FOR_BUILD_PKG_ERRORS
11028 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11029 installed software in a non-standard prefix.
11031 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11032 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11033 See the pkg-config man page for more details.
11035 echo "$as_me: error: Package requirements (glib-2.0) were not met:
11037 $GLIB_FOR_BUILD_PKG_ERRORS
11039 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11040 installed software in a non-standard prefix.
11042 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11043 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11044 See the pkg-config man page for more details.
11046 { (exit 1); exit 1; }; }
11047 elif test $pkg_failed = untried; then
11048 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11049 is in your PATH or set the PKG_CONFIG environment variable to the full
11050 path to pkg-config.
11052 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11053 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11054 See the pkg-config man page for more details.
11056 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11057 See \`config.log' for more details." >&5
11058 echo "$as_me: 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 GLIB_FOR_BUILD_CFLAGS
11063 and GLIB_FOR_BUILD_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." >&2;}
11068 { (exit 1); exit 1; }; }
11070 GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
11071 GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
11072 { echo "$as_me:$LINENO: result: yes" >&5
11073 echo "${ECHO_T}yes" >&6; }
11080 if test "$HAVE_GTK" = 'yes'; then
11091 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
11092 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
11094 if test -n "$LIBISOFS_CFLAGS"; then
11095 pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
11096 elif test -n "$PKG_CONFIG"; then
11097 if test -n "$PKG_CONFIG" && \
11098 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11099 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; then
11103 pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
11110 if test -n "$LIBISOFS_LIBS"; then
11111 pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
11112 elif test -n "$PKG_CONFIG"; then
11113 if test -n "$PKG_CONFIG" && \
11114 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11115 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; then
11119 pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
11129 if test $pkg_failed = yes; then
11131 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11132 _pkg_short_errors_supported=yes
11134 _pkg_short_errors_supported=no
11136 if test $_pkg_short_errors_supported = yes; then
11137 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
11139 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
11141 # Put the nasty error message in config.log where it belongs
11142 echo "$LIBISOFS_PKG_ERRORS" >&5
11144 { { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
11146 $LIBISOFS_PKG_ERRORS
11148 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11149 installed software in a non-standard prefix.
11151 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11152 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11153 See the pkg-config man page for more details.
11155 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
11157 $LIBISOFS_PKG_ERRORS
11159 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11160 installed software in a non-standard prefix.
11162 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11163 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11164 See the pkg-config man page for more details.
11166 { (exit 1); exit 1; }; }
11167 elif test $pkg_failed = untried; then
11168 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11169 is in your PATH or set the PKG_CONFIG environment variable to the full
11170 path to pkg-config.
11172 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11173 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11174 See the pkg-config man page for more details.
11176 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11177 See \`config.log' for more details." >&5
11178 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11179 is in your PATH or set the PKG_CONFIG environment variable to the full
11180 path to pkg-config.
11182 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11183 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11184 See the pkg-config man page for more details.
11186 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11187 See \`config.log' for more details." >&2;}
11188 { (exit 1); exit 1; }; }
11190 LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
11191 LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
11192 { echo "$as_me:$LINENO: result: yes" >&5
11193 echo "${ECHO_T}yes" >&6; }
11197 if test "x$with_osmesa" != xno; then
11201 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
11202 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
11203 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 ac_check_lib_save_LIBS=$LIBS
11207 LIBS="-lOSMesa $LIBS"
11208 cat >conftest.$ac_ext <<_ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11215 /* Override any GCC internal prototype to avoid an error.
11216 Use char because int might match the return type of a GCC
11217 builtin and then its argument prototype would still apply. */
11221 char OSMesaCreateContext ();
11225 return OSMesaCreateContext ();
11230 rm -f conftest.$ac_objext conftest$ac_exeext
11231 if { (ac_try="$ac_link"
11232 case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_link") 2>conftest.er1
11239 grep -v '^ *+' conftest.er1 >conftest.err
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } && {
11244 test -z "$ac_c_werror_flag" ||
11245 test ! -s conftest.err
11246 } && test -s conftest$ac_exeext &&
11247 $as_test_x conftest$ac_exeext; then
11248 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11253 ac_cv_lib_OSMesa_OSMesaCreateContext=no
11256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11257 conftest$ac_exeext conftest.$ac_ext
11258 LIBS=$ac_check_lib_save_LIBS
11260 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
11261 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
11262 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
11263 cat >>confdefs.h <<_ACEOF
11264 #define HAVE_LIBOSMESA 1
11267 LIBS="-lOSMesa $LIBS"
11270 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
11271 See \`config.log' for more details." >&5
11272 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
11273 See \`config.log' for more details." >&2;}
11274 { (exit 1); exit 1; }; }
11277 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11278 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11279 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11280 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11284 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11286 # Is the header compilable?
11287 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
11288 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
11289 cat >conftest.$ac_ext <<_ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 $ac_includes_default
11296 #include <GL/osmesa.h>
11298 rm -f conftest.$ac_objext
11299 if { (ac_try="$ac_compile"
11300 case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_compile") 2>conftest.er1
11307 grep -v '^ *+' conftest.er1 >conftest.err
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } && {
11312 test -z "$ac_c_werror_flag" ||
11313 test ! -s conftest.err
11314 } && test -s conftest.$ac_objext; then
11315 ac_header_compiler=yes
11317 echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11320 ac_header_compiler=no
11323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11325 echo "${ECHO_T}$ac_header_compiler" >&6; }
11327 # Is the header present?
11328 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
11329 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
11330 cat >conftest.$ac_ext <<_ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 #include <GL/osmesa.h>
11338 if { (ac_try="$ac_cpp conftest.$ac_ext"
11339 case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11346 grep -v '^ *+' conftest.er1 >conftest.err
11348 cat conftest.err >&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } >/dev/null && {
11351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11352 test ! -s conftest.err
11354 ac_header_preproc=yes
11356 echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11359 ac_header_preproc=no
11362 rm -f conftest.err conftest.$ac_ext
11363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11364 echo "${ECHO_T}$ac_header_preproc" >&6; }
11366 # So? What about this header?
11367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11369 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
11370 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
11372 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
11373 ac_header_preproc=yes
11376 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
11377 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
11379 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
11381 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
11383 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
11385 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
11387 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
11391 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11392 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11393 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11396 ac_cv_header_GL_osmesa_h=$ac_header_preproc
11398 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11399 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11402 if test $ac_cv_header_GL_osmesa_h = yes; then
11405 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
11406 See \`config.log' for more details." >&5
11407 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
11408 See \`config.log' for more details." >&2;}
11409 { (exit 1); exit 1; }; }
11414 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
11416 cat >>confdefs.h <<\_ACEOF
11417 #define HAVE_OSMESA 1
11423 if test "x$APPLE_BUILD" != 'xyes'; then
11426 { echo "$as_me:$LINENO: checking for LIBGL" >&5
11427 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
11429 if test -n "$LIBGL_CFLAGS"; then
11430 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
11431 elif test -n "$PKG_CONFIG"; then
11432 if test -n "$PKG_CONFIG" && \
11433 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11434 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; then
11438 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
11445 if test -n "$LIBGL_LIBS"; then
11446 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
11447 elif test -n "$PKG_CONFIG"; then
11448 if test -n "$PKG_CONFIG" && \
11449 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11450 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; then
11454 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
11464 if test $pkg_failed = yes; then
11466 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11467 _pkg_short_errors_supported=yes
11469 _pkg_short_errors_supported=no
11471 if test $_pkg_short_errors_supported = yes; then
11472 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
11474 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
11476 # Put the nasty error message in config.log where it belongs
11477 echo "$LIBGL_PKG_ERRORS" >&5
11479 { { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
11483 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11484 installed software in a non-standard prefix.
11486 Alternatively, you may set the environment variables LIBGL_CFLAGS
11487 and LIBGL_LIBS to avoid the need to call pkg-config.
11488 See the pkg-config man page for more details.
11490 echo "$as_me: error: Package requirements (gl ) were not met:
11494 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11495 installed software in a non-standard prefix.
11497 Alternatively, you may set the environment variables LIBGL_CFLAGS
11498 and LIBGL_LIBS to avoid the need to call pkg-config.
11499 See the pkg-config man page for more details.
11501 { (exit 1); exit 1; }; }
11502 elif test $pkg_failed = untried; then
11503 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11504 is in your PATH or set the PKG_CONFIG environment variable to the full
11505 path to pkg-config.
11507 Alternatively, you may set the environment variables LIBGL_CFLAGS
11508 and LIBGL_LIBS to avoid the need to call pkg-config.
11509 See the pkg-config man page for more details.
11511 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11512 See \`config.log' for more details." >&5
11513 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11514 is in your PATH or set the PKG_CONFIG environment variable to the full
11515 path to pkg-config.
11517 Alternatively, you may set the environment variables LIBGL_CFLAGS
11518 and LIBGL_LIBS to avoid the need to call pkg-config.
11519 See the pkg-config man page for more details.
11521 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11522 See \`config.log' for more details." >&2;}
11523 { (exit 1); exit 1; }; }
11525 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
11526 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
11527 { echo "$as_me:$LINENO: result: yes" >&5
11528 echo "${ECHO_T}yes" >&6; }
11531 LIBS="$LIBS $LIBGL_LIBS";
11532 CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
11534 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
11535 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
11536 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 cat >conftest.$ac_ext <<_ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
11546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11547 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
11549 /* System header to define __stub macros and hopefully few prototypes,
11550 which can conflict with char NSOpenGLGetVersion (); below.
11551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11552 <limits.h> exists even on freestanding compilers. */
11555 # include <limits.h>
11557 # include <assert.h>
11560 #undef NSOpenGLGetVersion
11562 /* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11568 char NSOpenGLGetVersion ();
11569 /* The GNU C library defines this for functions which it implements
11570 to always fail with ENOSYS. Some functions are actually named
11571 something starting with __ and the normal name is an alias. */
11572 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
11579 return NSOpenGLGetVersion ();
11584 rm -f conftest.$ac_objext conftest$ac_exeext
11585 if { (ac_try="$ac_link"
11586 case "(($ac_try" in
11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588 *) ac_try_echo=$ac_try;;
11590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591 (eval "$ac_link") 2>conftest.er1
11593 grep -v '^ *+' conftest.er1 >conftest.err
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } && {
11598 test -z "$ac_c_werror_flag" ||
11599 test ! -s conftest.err
11600 } && test -s conftest$ac_exeext &&
11601 $as_test_x conftest$ac_exeext; then
11602 ac_cv_func_NSOpenGLGetVersion=yes
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11607 ac_cv_func_NSOpenGLGetVersion=no
11610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11611 conftest$ac_exeext conftest.$ac_ext
11613 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
11614 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
11615 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
11618 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
11620 cat >>confdefs.h <<\_ACEOF
11621 #define HAVE_NSGL 1
11628 if test "x$HAVE_GTK_X11" = "xyes"; then
11629 if test "x$APPLE_BUILD" = "xyes"; then
11630 LIBS="$LIBS -L/usr/X11/lib -lGL"
11632 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
11633 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
11634 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 cat >conftest.$ac_ext <<_ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11643 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
11644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11645 #define glXQueryVersion innocuous_glXQueryVersion
11647 /* System header to define __stub macros and hopefully few prototypes,
11648 which can conflict with char glXQueryVersion (); below.
11649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11650 <limits.h> exists even on freestanding compilers. */
11653 # include <limits.h>
11655 # include <assert.h>
11658 #undef glXQueryVersion
11660 /* Override any GCC internal prototype to avoid an error.
11661 Use char because int might match the return type of a GCC
11662 builtin and then its argument prototype would still apply. */
11666 char glXQueryVersion ();
11667 /* The GNU C library defines this for functions which it implements
11668 to always fail with ENOSYS. Some functions are actually named
11669 something starting with __ and the normal name is an alias. */
11670 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
11677 return glXQueryVersion ();
11682 rm -f conftest.$ac_objext conftest$ac_exeext
11683 if { (ac_try="$ac_link"
11684 case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_link") 2>conftest.er1
11691 grep -v '^ *+' conftest.er1 >conftest.err
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } && {
11696 test -z "$ac_c_werror_flag" ||
11697 test ! -s conftest.err
11698 } && test -s conftest$ac_exeext &&
11699 $as_test_x conftest$ac_exeext; then
11700 ac_cv_func_glXQueryVersion=yes
11702 echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11705 ac_cv_func_glXQueryVersion=no
11708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11709 conftest$ac_exeext conftest.$ac_ext
11711 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
11712 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
11713 if test $ac_cv_func_glXQueryVersion = yes; then
11716 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
11718 cat >>confdefs.h <<\_ACEOF
11734 if test "x$HAVE_OSMESA" = "xyes"; then
11736 VIDEO_OSMESA_FALSE='#'
11738 VIDEO_OSMESA_TRUE='#'
11739 VIDEO_OSMESA_FALSE=
11744 if test "x$HAVE_GLX" = "xyes"; then
11746 VIDEO_GLX_FALSE='#'
11754 if test "x$HAVE_NSGL" = "xyes"; then
11756 VIDEO_NSGL_FALSE='#'
11758 VIDEO_NSGL_TRUE='#'
11763 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
11764 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
11765 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11768 cat >conftest.$ac_ext <<_ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
11775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11776 #define glGenFramebuffers innocuous_glGenFramebuffers
11778 /* System header to define __stub macros and hopefully few prototypes,
11779 which can conflict with char glGenFramebuffers (); below.
11780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11781 <limits.h> exists even on freestanding compilers. */
11784 # include <limits.h>
11786 # include <assert.h>
11789 #undef glGenFramebuffers
11791 /* Override any GCC internal prototype to avoid an error.
11792 Use char because int might match the return type of a GCC
11793 builtin and then its argument prototype would still apply. */
11797 char glGenFramebuffers ();
11798 /* The GNU C library defines this for functions which it implements
11799 to always fail with ENOSYS. Some functions are actually named
11800 something starting with __ and the normal name is an alias. */
11801 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
11808 return glGenFramebuffers ();
11813 rm -f conftest.$ac_objext conftest$ac_exeext
11814 if { (ac_try="$ac_link"
11815 case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_link") 2>conftest.er1
11822 grep -v '^ *+' conftest.er1 >conftest.err
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } && {
11827 test -z "$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11829 } && test -s conftest$ac_exeext &&
11830 $as_test_x conftest$ac_exeext; then
11831 ac_cv_func_glGenFramebuffers=yes
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 ac_cv_func_glGenFramebuffers=no
11839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11840 conftest$ac_exeext conftest.$ac_ext
11842 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
11843 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
11844 if test $ac_cv_func_glGenFramebuffers = yes; then
11846 cat >>confdefs.h <<\_ACEOF
11847 #define HAVE_OPENGL_FBO 1
11852 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
11853 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
11854 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 cat >conftest.$ac_ext <<_ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
11864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11865 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
11867 /* System header to define __stub macros and hopefully few prototypes,
11868 which can conflict with char glGenFramebuffersEXT (); below.
11869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11870 <limits.h> exists even on freestanding compilers. */
11873 # include <limits.h>
11875 # include <assert.h>
11878 #undef glGenFramebuffersEXT
11880 /* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11886 char glGenFramebuffersEXT ();
11887 /* The GNU C library defines this for functions which it implements
11888 to always fail with ENOSYS. Some functions are actually named
11889 something starting with __ and the normal name is an alias. */
11890 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
11897 return glGenFramebuffersEXT ();
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (ac_try="$ac_link"
11904 case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_link") 2>conftest.er1
11911 grep -v '^ *+' conftest.er1 >conftest.err
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } && {
11916 test -z "$ac_c_werror_flag" ||
11917 test ! -s conftest.err
11918 } && test -s conftest$ac_exeext &&
11919 $as_test_x conftest$ac_exeext; then
11920 ac_cv_func_glGenFramebuffersEXT=yes
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11925 ac_cv_func_glGenFramebuffersEXT=no
11928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11929 conftest$ac_exeext conftest.$ac_ext
11931 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
11932 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
11933 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
11935 cat >>confdefs.h <<\_ACEOF
11936 #define HAVE_OPENGL_FBO_EXT 1
11941 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
11942 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
11943 if test "${ac_cv_func_glCreateShader+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 cat >conftest.$ac_ext <<_ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
11953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11954 #define glCreateShader innocuous_glCreateShader
11956 /* System header to define __stub macros and hopefully few prototypes,
11957 which can conflict with char glCreateShader (); below.
11958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959 <limits.h> exists even on freestanding compilers. */
11962 # include <limits.h>
11964 # include <assert.h>
11967 #undef glCreateShader
11969 /* Override any GCC internal prototype to avoid an error.
11970 Use char because int might match the return type of a GCC
11971 builtin and then its argument prototype would still apply. */
11975 char glCreateShader ();
11976 /* The GNU C library defines this for functions which it implements
11977 to always fail with ENOSYS. Some functions are actually named
11978 something starting with __ and the normal name is an alias. */
11979 #if defined __stub_glCreateShader || defined __stub___glCreateShader
11986 return glCreateShader ();
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (ac_try="$ac_link"
11993 case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_link") 2>conftest.er1
12000 grep -v '^ *+' conftest.er1 >conftest.err
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } && {
12005 test -z "$ac_c_werror_flag" ||
12006 test ! -s conftest.err
12007 } && test -s conftest$ac_exeext &&
12008 $as_test_x conftest$ac_exeext; then
12009 ac_cv_func_glCreateShader=yes
12011 echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12014 ac_cv_func_glCreateShader=no
12017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12018 conftest$ac_exeext conftest.$ac_ext
12020 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
12021 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
12022 if test $ac_cv_func_glCreateShader = yes; then
12024 cat >>confdefs.h <<\_ACEOF
12025 #define HAVE_OPENGL_SHADER 1
12030 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
12031 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
12032 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 cat >conftest.$ac_ext <<_ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
12042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12043 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
12045 /* System header to define __stub macros and hopefully few prototypes,
12046 which can conflict with char glCreateShaderObjectARB (); below.
12047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12048 <limits.h> exists even on freestanding compilers. */
12051 # include <limits.h>
12053 # include <assert.h>
12056 #undef glCreateShaderObjectARB
12058 /* Override any GCC internal prototype to avoid an error.
12059 Use char because int might match the return type of a GCC
12060 builtin and then its argument prototype would still apply. */
12064 char glCreateShaderObjectARB ();
12065 /* The GNU C library defines this for functions which it implements
12066 to always fail with ENOSYS. Some functions are actually named
12067 something starting with __ and the normal name is an alias. */
12068 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
12075 return glCreateShaderObjectARB ();
12080 rm -f conftest.$ac_objext conftest$ac_exeext
12081 if { (ac_try="$ac_link"
12082 case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_link") 2>conftest.er1
12089 grep -v '^ *+' conftest.er1 >conftest.err
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } && {
12094 test -z "$ac_c_werror_flag" ||
12095 test ! -s conftest.err
12096 } && test -s conftest$ac_exeext &&
12097 $as_test_x conftest$ac_exeext; then
12098 ac_cv_func_glCreateShaderObjectARB=yes
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12103 ac_cv_func_glCreateShaderObjectARB=no
12106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12107 conftest$ac_exeext conftest.$ac_ext
12109 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
12110 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
12111 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
12113 cat >>confdefs.h <<\_ACEOF
12114 #define HAVE_OPENGL_SHADER_ARB 1
12119 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
12120 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
12121 if test "${ac_cv_func_glClampColorARB+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 cat >conftest.$ac_ext <<_ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12130 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
12131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12132 #define glClampColorARB innocuous_glClampColorARB
12134 /* System header to define __stub macros and hopefully few prototypes,
12135 which can conflict with char glClampColorARB (); below.
12136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12137 <limits.h> exists even on freestanding compilers. */
12140 # include <limits.h>
12142 # include <assert.h>
12145 #undef glClampColorARB
12147 /* Override any GCC internal prototype to avoid an error.
12148 Use char because int might match the return type of a GCC
12149 builtin and then its argument prototype would still apply. */
12153 char glClampColorARB ();
12154 /* The GNU C library defines this for functions which it implements
12155 to always fail with ENOSYS. Some functions are actually named
12156 something starting with __ and the normal name is an alias. */
12157 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
12164 return glClampColorARB ();
12169 rm -f conftest.$ac_objext conftest$ac_exeext
12170 if { (ac_try="$ac_link"
12171 case "(($ac_try" in
12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176 (eval "$ac_link") 2>conftest.er1
12178 grep -v '^ *+' conftest.er1 >conftest.err
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } && {
12183 test -z "$ac_c_werror_flag" ||
12184 test ! -s conftest.err
12185 } && test -s conftest$ac_exeext &&
12186 $as_test_x conftest$ac_exeext; then
12187 ac_cv_func_glClampColorARB=yes
12189 echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12192 ac_cv_func_glClampColorARB=no
12195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12196 conftest$ac_exeext conftest.$ac_ext
12198 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
12199 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
12200 if test $ac_cv_func_glClampColorARB = yes; then
12202 cat >>confdefs.h <<\_ACEOF
12203 #define HAVE_OPENGL_CLAMP_COLOR 1
12208 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
12209 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
12210 if test "${ac_cv_func_glClearDepthf+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 cat >conftest.$ac_ext <<_ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
12220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12221 #define glClearDepthf innocuous_glClearDepthf
12223 /* System header to define __stub macros and hopefully few prototypes,
12224 which can conflict with char glClearDepthf (); below.
12225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12226 <limits.h> exists even on freestanding compilers. */
12229 # include <limits.h>
12231 # include <assert.h>
12234 #undef glClearDepthf
12236 /* Override any GCC internal prototype to avoid an error.
12237 Use char because int might match the return type of a GCC
12238 builtin and then its argument prototype would still apply. */
12242 char glClearDepthf ();
12243 /* The GNU C library defines this for functions which it implements
12244 to always fail with ENOSYS. Some functions are actually named
12245 something starting with __ and the normal name is an alias. */
12246 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
12253 return glClearDepthf ();
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (ac_try="$ac_link"
12260 case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_link") 2>conftest.er1
12267 grep -v '^ *+' conftest.er1 >conftest.err
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest$ac_exeext &&
12275 $as_test_x conftest$ac_exeext; then
12276 ac_cv_func_glClearDepthf=yes
12278 echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12281 ac_cv_func_glClearDepthf=no
12284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12285 conftest$ac_exeext conftest.$ac_ext
12287 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
12288 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
12289 if test $ac_cv_func_glClearDepthf = yes; then
12291 cat >>confdefs.h <<\_ACEOF
12292 #define HAVE_OPENGL_CLEAR_DEPTHF 1
12297 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
12298 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
12299 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 cat >conftest.$ac_ext <<_ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12308 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
12309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12310 #define glAreTexturesResident innocuous_glAreTexturesResident
12312 /* System header to define __stub macros and hopefully few prototypes,
12313 which can conflict with char glAreTexturesResident (); below.
12314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12315 <limits.h> exists even on freestanding compilers. */
12318 # include <limits.h>
12320 # include <assert.h>
12323 #undef glAreTexturesResident
12325 /* Override any GCC internal prototype to avoid an error.
12326 Use char because int might match the return type of a GCC
12327 builtin and then its argument prototype would still apply. */
12331 char glAreTexturesResident ();
12332 /* The GNU C library defines this for functions which it implements
12333 to always fail with ENOSYS. Some functions are actually named
12334 something starting with __ and the normal name is an alias. */
12335 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
12342 return glAreTexturesResident ();
12347 rm -f conftest.$ac_objext conftest$ac_exeext
12348 if { (ac_try="$ac_link"
12349 case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_link") 2>conftest.er1
12356 grep -v '^ *+' conftest.er1 >conftest.err
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } && {
12361 test -z "$ac_c_werror_flag" ||
12362 test ! -s conftest.err
12363 } && test -s conftest$ac_exeext &&
12364 $as_test_x conftest$ac_exeext; then
12365 ac_cv_func_glAreTexturesResident=yes
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 ac_cv_func_glAreTexturesResident=no
12373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12374 conftest$ac_exeext conftest.$ac_ext
12376 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
12377 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
12378 if test $ac_cv_func_glAreTexturesResident = yes; then
12380 cat >>confdefs.h <<\_ACEOF
12381 #define HAVE_OPENGL_TEX_RESIDENT 1
12386 { echo "$as_me:$LINENO: checking for glDrawBuffer" >&5
12387 echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }
12388 if test "${ac_cv_func_glDrawBuffer+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 cat >conftest.$ac_ext <<_ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12397 /* Define glDrawBuffer to an innocuous variant, in case <limits.h> declares glDrawBuffer.
12398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12399 #define glDrawBuffer innocuous_glDrawBuffer
12401 /* System header to define __stub macros and hopefully few prototypes,
12402 which can conflict with char glDrawBuffer (); below.
12403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12404 <limits.h> exists even on freestanding compilers. */
12407 # include <limits.h>
12409 # include <assert.h>
12412 #undef glDrawBuffer
12414 /* Override any GCC internal prototype to avoid an error.
12415 Use char because int might match the return type of a GCC
12416 builtin and then its argument prototype would still apply. */
12420 char glDrawBuffer ();
12421 /* The GNU C library defines this for functions which it implements
12422 to always fail with ENOSYS. Some functions are actually named
12423 something starting with __ and the normal name is an alias. */
12424 #if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer
12431 return glDrawBuffer ();
12436 rm -f conftest.$ac_objext conftest$ac_exeext
12437 if { (ac_try="$ac_link"
12438 case "(($ac_try" in
12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440 *) ac_try_echo=$ac_try;;
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443 (eval "$ac_link") 2>conftest.er1
12445 grep -v '^ *+' conftest.er1 >conftest.err
12447 cat conftest.err >&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } && {
12450 test -z "$ac_c_werror_flag" ||
12451 test ! -s conftest.err
12452 } && test -s conftest$ac_exeext &&
12453 $as_test_x conftest$ac_exeext; then
12454 ac_cv_func_glDrawBuffer=yes
12456 echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12459 ac_cv_func_glDrawBuffer=no
12462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12463 conftest$ac_exeext conftest.$ac_ext
12465 { echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&5
12466 echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }
12467 if test $ac_cv_func_glDrawBuffer = yes; then
12469 cat >>confdefs.h <<\_ACEOF
12470 #define HAVE_OPENGL_DRAW_BUFFER 1
12475 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
12476 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
12477 if test "${ac_cv_func_glTexEnvi+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 cat >conftest.$ac_ext <<_ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12486 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
12487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12488 #define glTexEnvi innocuous_glTexEnvi
12490 /* System header to define __stub macros and hopefully few prototypes,
12491 which can conflict with char glTexEnvi (); below.
12492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12493 <limits.h> exists even on freestanding compilers. */
12496 # include <limits.h>
12498 # include <assert.h>
12503 /* Override any GCC internal prototype to avoid an error.
12504 Use char because int might match the return type of a GCC
12505 builtin and then its argument prototype would still apply. */
12510 /* The GNU C library defines this for functions which it implements
12511 to always fail with ENOSYS. Some functions are actually named
12512 something starting with __ and the normal name is an alias. */
12513 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
12520 return glTexEnvi ();
12525 rm -f conftest.$ac_objext conftest$ac_exeext
12526 if { (ac_try="$ac_link"
12527 case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_link") 2>conftest.er1
12534 grep -v '^ *+' conftest.er1 >conftest.err
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } && {
12539 test -z "$ac_c_werror_flag" ||
12540 test ! -s conftest.err
12541 } && test -s conftest$ac_exeext &&
12542 $as_test_x conftest$ac_exeext; then
12543 ac_cv_func_glTexEnvi=yes
12545 echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12548 ac_cv_func_glTexEnvi=no
12551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12552 conftest$ac_exeext conftest.$ac_ext
12554 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
12555 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
12556 if test $ac_cv_func_glTexEnvi = yes; then
12558 cat >>confdefs.h <<\_ACEOF
12559 #define HAVE_OPENGL_FIXEDFUNC 1
12567 if test "x$enable_translator" != "xno"; then
12569 i386|i486|i586|i686|x86_64)
12570 SH4_TRANSLATOR="x86"
12572 cat >>confdefs.h <<_ACEOF
12573 #define SH4_TRANSLATOR TARGET_X86
12580 if test "$SH4_TRANSLATOR" = "x86"; then
12582 BUILD_SH4X86_FALSE='#'
12584 BUILD_SH4X86_TRUE='#'
12585 BUILD_SH4X86_FALSE=
12589 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12590 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12591 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12592 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12596 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12598 # Is the header compilable?
12599 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
12600 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
12601 cat >conftest.$ac_ext <<_ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h. */
12607 $ac_includes_default
12608 #include <CoreAudio/CoreAudio.h>
12610 rm -f conftest.$ac_objext
12611 if { (ac_try="$ac_compile"
12612 case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_compile") 2>conftest.er1
12619 grep -v '^ *+' conftest.er1 >conftest.err
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest.$ac_objext; then
12627 ac_header_compiler=yes
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 ac_header_compiler=no
12635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12636 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12637 echo "${ECHO_T}$ac_header_compiler" >&6; }
12639 # Is the header present?
12640 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
12641 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
12642 cat >conftest.$ac_ext <<_ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12648 #include <CoreAudio/CoreAudio.h>
12650 if { (ac_try="$ac_cpp conftest.$ac_ext"
12651 case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12658 grep -v '^ *+' conftest.er1 >conftest.err
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } >/dev/null && {
12663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12664 test ! -s conftest.err
12666 ac_header_preproc=yes
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12671 ac_header_preproc=no
12674 rm -f conftest.err conftest.$ac_ext
12675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12676 echo "${ECHO_T}$ac_header_preproc" >&6; }
12678 # So? What about this header?
12679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12681 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12682 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
12684 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
12685 ac_header_preproc=yes
12688 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
12689 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
12690 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
12691 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
12693 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
12695 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12696 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
12697 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
12698 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
12699 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
12703 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12704 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12705 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12706 echo $ECHO_N "(cached) $ECHO_C" >&6
12708 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
12710 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12711 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12714 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
12716 HAVE_CORE_AUDIO=yes
12717 LIBS="$LIBS -framework CoreAudio"
12718 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_CORE_AUDIO 1
12731 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
12733 AUDIO_OSX_FALSE='#'
12740 if test "x$with_sdl" != "xno"; then
12743 { echo "$as_me:$LINENO: checking for SDL" >&5
12744 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
12746 if test -n "$SDL_CFLAGS"; then
12747 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12748 elif test -n "$PKG_CONFIG"; then
12749 if test -n "$PKG_CONFIG" && \
12750 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
12751 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; then
12755 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
12762 if test -n "$SDL_LIBS"; then
12763 pkg_cv_SDL_LIBS="$SDL_LIBS"
12764 elif test -n "$PKG_CONFIG"; then
12765 if test -n "$PKG_CONFIG" && \
12766 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
12767 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; then
12771 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
12781 if test $pkg_failed = yes; then
12783 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12784 _pkg_short_errors_supported=yes
12786 _pkg_short_errors_supported=no
12788 if test $_pkg_short_errors_supported = yes; then
12789 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
12791 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
12793 # Put the nasty error message in config.log where it belongs
12794 echo "$SDL_PKG_ERRORS" >&5
12796 { echo "$as_me:$LINENO: result: no" >&5
12797 echo "${ECHO_T}no" >&6; }
12799 if test "x$with_sdl" = "xyes"; then
12800 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
12801 See \`config.log' for more details." >&5
12802 echo "$as_me: error: \"SDL libraries could not be found (but were required)
12803 See \`config.log' for more details." >&2;}
12804 { (exit 1); exit 1; }; }
12807 elif test $pkg_failed = untried; then
12809 if test "x$with_sdl" = "xyes"; then
12810 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
12811 See \`config.log' for more details." >&5
12812 echo "$as_me: error: \"SDL libraries could not be found (but were required)
12813 See \`config.log' for more details." >&2;}
12814 { (exit 1); exit 1; }; }
12818 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12819 SDL_LIBS=$pkg_cv_SDL_LIBS
12820 { echo "$as_me:$LINENO: result: yes" >&5
12821 echo "${ECHO_T}yes" >&6; }
12824 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
12826 cat >>confdefs.h <<\_ACEOF
12835 if test "$HAVE_SDL" = 'yes' ; then
12837 AUDIO_SDL_FALSE='#'
12844 if test "x$with_pulse" != "xno"; then
12847 { echo "$as_me:$LINENO: checking for PULSE" >&5
12848 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
12850 if test -n "$PULSE_CFLAGS"; then
12851 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
12852 elif test -n "$PKG_CONFIG"; then
12853 if test -n "$PKG_CONFIG" && \
12854 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
12855 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; then
12859 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
12866 if test -n "$PULSE_LIBS"; then
12867 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
12868 elif test -n "$PKG_CONFIG"; then
12869 if test -n "$PKG_CONFIG" && \
12870 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
12871 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; then
12875 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
12885 if test $pkg_failed = yes; then
12887 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12888 _pkg_short_errors_supported=yes
12890 _pkg_short_errors_supported=no
12892 if test $_pkg_short_errors_supported = yes; then
12893 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
12895 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
12897 # Put the nasty error message in config.log where it belongs
12898 echo "$PULSE_PKG_ERRORS" >&5
12900 { echo "$as_me:$LINENO: result: no" >&5
12901 echo "${ECHO_T}no" >&6; }
12903 if test "x$with_pulse" = "xyes"; then
12904 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
12905 See \`config.log' for more details." >&5
12906 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
12907 See \`config.log' for more details." >&2;}
12908 { (exit 1); exit 1; }; }
12911 elif test $pkg_failed = untried; then
12913 if test "x$with_pulse" = "xyes"; then
12914 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
12915 See \`config.log' for more details." >&5
12916 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
12917 See \`config.log' for more details." >&2;}
12918 { (exit 1); exit 1; }; }
12922 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
12923 PULSE_LIBS=$pkg_cv_PULSE_LIBS
12924 { echo "$as_me:$LINENO: result: yes" >&5
12925 echo "${ECHO_T}yes" >&6; }
12928 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
12930 cat >>confdefs.h <<\_ACEOF
12931 #define HAVE_PULSE 1
12939 if test "$HAVE_PULSE" = 'yes' ; then
12941 AUDIO_PULSE_FALSE='#'
12943 AUDIO_PULSE_TRUE='#'
12948 if test "x$with_esd" != "xno"; then
12951 { echo "$as_me:$LINENO: checking for ESOUND" >&5
12952 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
12954 if test -n "$ESOUND_CFLAGS"; then
12955 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
12956 elif test -n "$PKG_CONFIG"; then
12957 if test -n "$PKG_CONFIG" && \
12958 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
12959 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; then
12963 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
12970 if test -n "$ESOUND_LIBS"; then
12971 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
12972 elif test -n "$PKG_CONFIG"; then
12973 if test -n "$PKG_CONFIG" && \
12974 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
12975 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; then
12979 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
12989 if test $pkg_failed = yes; then
12991 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12992 _pkg_short_errors_supported=yes
12994 _pkg_short_errors_supported=no
12996 if test $_pkg_short_errors_supported = yes; then
12997 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
12999 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
13001 # Put the nasty error message in config.log where it belongs
13002 echo "$ESOUND_PKG_ERRORS" >&5
13004 { echo "$as_me:$LINENO: result: no" >&5
13005 echo "${ECHO_T}no" >&6; }
13007 if test "x$with_esd" = "xyes"; then
13008 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13009 See \`config.log' for more details." >&5
13010 echo "$as_me: error: ESounD audio package could not be found (but was required)
13011 See \`config.log' for more details." >&2;}
13012 { (exit 1); exit 1; }; }
13015 elif test $pkg_failed = untried; then
13017 if test "x$with_esd" = "xyes"; then
13018 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13019 See \`config.log' for more details." >&5
13020 echo "$as_me: error: ESounD audio package could not be found (but was required)
13021 See \`config.log' for more details." >&2;}
13022 { (exit 1); exit 1; }; }
13026 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
13027 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
13028 { echo "$as_me:$LINENO: result: yes" >&5
13029 echo "${ECHO_T}yes" >&6; }
13032 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
13034 cat >>confdefs.h <<\_ACEOF
13035 #define HAVE_ESOUND 1
13043 if test "$HAVE_ESOUND" = 'yes' ; then
13045 AUDIO_ESOUND_FALSE='#'
13047 AUDIO_ESOUND_TRUE='#'
13048 AUDIO_ESOUND_FALSE=
13054 { echo "$as_me:$LINENO: checking for ALSA" >&5
13055 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
13057 if test -n "$ALSA_CFLAGS"; then
13058 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
13059 elif test -n "$PKG_CONFIG"; then
13060 if test -n "$PKG_CONFIG" && \
13061 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13062 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; then
13066 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
13073 if test -n "$ALSA_LIBS"; then
13074 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
13075 elif test -n "$PKG_CONFIG"; then
13076 if test -n "$PKG_CONFIG" && \
13077 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13078 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; then
13082 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
13092 if test $pkg_failed = yes; then
13094 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13095 _pkg_short_errors_supported=yes
13097 _pkg_short_errors_supported=no
13099 if test $_pkg_short_errors_supported = yes; then
13100 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
13102 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
13104 # Put the nasty error message in config.log where it belongs
13105 echo "$ALSA_PKG_ERRORS" >&5
13107 { echo "$as_me:$LINENO: result: no" >&5
13108 echo "${ECHO_T}no" >&6; }
13110 elif test $pkg_failed = untried; then
13113 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
13114 ALSA_LIBS=$pkg_cv_ALSA_LIBS
13115 { echo "$as_me:$LINENO: result: yes" >&5
13116 echo "${ECHO_T}yes" >&6; }
13119 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
13121 cat >>confdefs.h <<\_ACEOF
13122 #define HAVE_ALSA 1
13128 if test "$HAVE_ALSA" = 'yes' ; then
13130 AUDIO_ALSA_FALSE='#'
13132 AUDIO_ALSA_TRUE='#'
13138 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13139 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13140 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13141 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13145 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13147 # Is the header compilable?
13148 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
13149 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
13150 cat >conftest.$ac_ext <<_ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 $ac_includes_default
13157 #include <linux/cdrom.h>
13159 rm -f conftest.$ac_objext
13160 if { (ac_try="$ac_compile"
13161 case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_compile") 2>conftest.er1
13168 grep -v '^ *+' conftest.er1 >conftest.err
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } && {
13173 test -z "$ac_c_werror_flag" ||
13174 test ! -s conftest.err
13175 } && test -s conftest.$ac_objext; then
13176 ac_header_compiler=yes
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13181 ac_header_compiler=no
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13186 echo "${ECHO_T}$ac_header_compiler" >&6; }
13188 # Is the header present?
13189 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
13190 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
13191 cat >conftest.$ac_ext <<_ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13197 #include <linux/cdrom.h>
13199 if { (ac_try="$ac_cpp conftest.$ac_ext"
13200 case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13207 grep -v '^ *+' conftest.er1 >conftest.err
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } >/dev/null && {
13212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13213 test ! -s conftest.err
13215 ac_header_preproc=yes
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 ac_header_preproc=no
13223 rm -f conftest.err conftest.$ac_ext
13224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13225 echo "${ECHO_T}$ac_header_preproc" >&6; }
13227 # So? What about this header?
13228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13230 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
13231 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13232 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
13233 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
13234 ac_header_preproc=yes
13237 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
13238 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
13240 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
13241 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
13242 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
13243 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
13244 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
13245 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
13246 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
13248 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
13252 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13253 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13254 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13257 ac_cv_header_linux_cdrom_h=$ac_header_preproc
13259 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13260 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13263 if test $ac_cv_header_linux_cdrom_h = yes; then
13266 { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
13267 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
13268 old_CFLAGS="$CFLAGS"
13269 CFLAGS="$CFLAGS $STDCFLAG"
13270 cat >conftest.$ac_ext <<_ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276 #include <linux/cdrom.h>
13285 rm -f conftest.$ac_objext
13286 if { (ac_try="$ac_compile"
13287 case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_compile") 2>conftest.er1
13294 grep -v '^ *+' conftest.er1 >conftest.err
13296 cat conftest.err >&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } && {
13299 test -z "$ac_c_werror_flag" ||
13300 test ! -s conftest.err
13301 } && test -s conftest.$ac_objext; then
13302 { echo "$as_me:$LINENO: result: Yes" >&5
13303 echo "${ECHO_T}Yes" >&6; }
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13309 { echo "$as_me:$LINENO: result: No" >&5
13310 echo "${ECHO_T}No" >&6; }
13311 STDCFLAG="-std=gnu99"
13314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13315 CFLAGS="$old_CFLAGS"
13322 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13323 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13324 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13325 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13329 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13331 # Is the header compilable?
13332 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
13333 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
13334 cat >conftest.$ac_ext <<_ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h. */
13340 $ac_includes_default
13341 #include <IOKit/IOKitLib.h>
13343 rm -f conftest.$ac_objext
13344 if { (ac_try="$ac_compile"
13345 case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_compile") 2>conftest.er1
13352 grep -v '^ *+' conftest.er1 >conftest.err
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && {
13357 test -z "$ac_c_werror_flag" ||
13358 test ! -s conftest.err
13359 } && test -s conftest.$ac_objext; then
13360 ac_header_compiler=yes
13362 echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13365 ac_header_compiler=no
13368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13370 echo "${ECHO_T}$ac_header_compiler" >&6; }
13372 # Is the header present?
13373 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
13374 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
13375 cat >conftest.$ac_ext <<_ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 #include <IOKit/IOKitLib.h>
13383 if { (ac_try="$ac_cpp conftest.$ac_ext"
13384 case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13391 grep -v '^ *+' conftest.er1 >conftest.err
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } >/dev/null && {
13396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13397 test ! -s conftest.err
13399 ac_header_preproc=yes
13401 echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13404 ac_header_preproc=no
13407 rm -f conftest.err conftest.$ac_ext
13408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13409 echo "${ECHO_T}$ac_header_preproc" >&6; }
13411 # So? What about this header?
13412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13414 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13415 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
13417 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
13418 ac_header_preproc=yes
13421 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
13422 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
13423 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
13424 echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
13425 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
13426 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
13427 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
13428 echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13429 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
13430 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
13431 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
13432 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
13436 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13437 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13438 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
13443 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13444 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13447 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
13450 LIBS="$LIBS -framework IOKit"
13458 if test "x$CDROM_DRIVER" = "xlinux"; then
13460 CDROM_LINUX_FALSE='#'
13462 CDROM_LINUX_TRUE='#'
13468 if test "x$CDROM_DRIVER" = "xosx"; then
13470 CDROM_OSX_FALSE='#'
13478 if test "x$CDROM_DRIVER" = "x"; then
13480 CDROM_NONE_FALSE='#'
13482 CDROM_NONE_TRUE='#'
13486 if test "x$CDROM_DRIVER" = "xlinux"; then
13488 cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_LINUX_CDROM 1
13494 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13495 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13496 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13497 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13501 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13503 # Is the header compilable?
13504 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
13505 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
13506 cat >conftest.$ac_ext <<_ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h. */
13512 $ac_includes_default
13513 #include <linux/joystick.h>
13515 rm -f conftest.$ac_objext
13516 if { (ac_try="$ac_compile"
13517 case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_compile") 2>conftest.er1
13524 grep -v '^ *+' conftest.er1 >conftest.err
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } && {
13529 test -z "$ac_c_werror_flag" ||
13530 test ! -s conftest.err
13531 } && test -s conftest.$ac_objext; then
13532 ac_header_compiler=yes
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13537 ac_header_compiler=no
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13542 echo "${ECHO_T}$ac_header_compiler" >&6; }
13544 # Is the header present?
13545 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
13546 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
13547 cat >conftest.$ac_ext <<_ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13553 #include <linux/joystick.h>
13555 if { (ac_try="$ac_cpp conftest.$ac_ext"
13556 case "(($ac_try" in
13557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558 *) ac_try_echo=$ac_try;;
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13563 grep -v '^ *+' conftest.er1 >conftest.err
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } >/dev/null && {
13568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13569 test ! -s conftest.err
13571 ac_header_preproc=yes
13573 echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13576 ac_header_preproc=no
13579 rm -f conftest.err conftest.$ac_ext
13580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13581 echo "${ECHO_T}$ac_header_preproc" >&6; }
13583 # So? What about this header?
13584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13586 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
13587 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13588 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
13589 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
13590 ac_header_preproc=yes
13593 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
13594 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
13595 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
13596 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
13597 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
13598 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
13600 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
13601 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
13602 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
13603 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
13604 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
13608 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13609 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13610 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 ac_cv_header_linux_joystick_h=$ac_header_preproc
13615 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13616 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13619 if test $ac_cv_header_linux_joystick_h = yes; then
13621 HAVE_LINUX_JOYSTICK_H=yes
13623 cat >>confdefs.h <<\_ACEOF
13624 #define HAVE_LINUX_JOYSTICK 1
13627 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
13629 echo "Linux Joystick support not found, building without it."
13635 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
13637 JOY_LINUX_FALSE='#'
13644 if test "x$with_lirc" != "xno"; then
13645 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13646 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
13647 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
13648 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13651 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
13652 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
13654 # Is the header compilable?
13655 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
13656 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
13657 cat >conftest.$ac_ext <<_ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 $ac_includes_default
13664 #include <lirc/lirc_client.h>
13666 rm -f conftest.$ac_objext
13667 if { (ac_try="$ac_compile"
13668 case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_compile") 2>conftest.er1
13675 grep -v '^ *+' conftest.er1 >conftest.err
13677 cat conftest.err >&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } && {
13680 test -z "$ac_c_werror_flag" ||
13681 test ! -s conftest.err
13682 } && test -s conftest.$ac_objext; then
13683 ac_header_compiler=yes
13685 echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13688 ac_header_compiler=no
13691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13693 echo "${ECHO_T}$ac_header_compiler" >&6; }
13695 # Is the header present?
13696 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
13697 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
13698 cat >conftest.$ac_ext <<_ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h. */
13704 #include <lirc/lirc_client.h>
13706 if { (ac_try="$ac_cpp conftest.$ac_ext"
13707 case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13714 grep -v '^ *+' conftest.er1 >conftest.err
13716 cat conftest.err >&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } >/dev/null && {
13719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13720 test ! -s conftest.err
13722 ac_header_preproc=yes
13724 echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13727 ac_header_preproc=no
13730 rm -f conftest.err conftest.$ac_ext
13731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13732 echo "${ECHO_T}$ac_header_preproc" >&6; }
13734 # So? What about this header?
13735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13737 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
13738 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13739 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
13740 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
13741 ac_header_preproc=yes
13744 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
13745 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
13746 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
13747 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
13749 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
13750 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
13751 echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
13752 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
13753 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
13754 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
13755 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
13759 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
13760 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
13761 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
13764 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
13766 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
13767 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
13770 if test $ac_cv_header_lirc_lirc_client_h = yes; then
13772 HAVE_LIRC_CLIENT_H=yes
13774 cat >>confdefs.h <<\_ACEOF
13775 #define HAVE_LIRC 1
13778 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
13781 echo "LIRC support not found, building without it."
13788 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
13790 INPUT_LIRC_FALSE='#'
13792 INPUT_LIRC_TRUE='#'
13797 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
13798 set dummy sh-elf-gcc; ac_word=$2
13799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13801 if test "${ac_cv_path_SHCC+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13806 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
13809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810 for as_dir in $PATH
13813 test -z "$as_dir" && as_dir=.
13814 for ac_exec_ext in '' $ac_executable_extensions; do
13815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13816 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
13817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13827 SHCC=$ac_cv_path_SHCC
13828 if test -n "$SHCC"; then
13829 { echo "$as_me:$LINENO: result: $SHCC" >&5
13830 echo "${ECHO_T}$SHCC" >&6; }
13832 { echo "$as_me:$LINENO: result: no" >&5
13833 echo "${ECHO_T}no" >&6; }
13837 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
13838 set dummy sh-elf-ld; ac_word=$2
13839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13841 if test "${ac_cv_path_SHLD+set}" = set; then
13842 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
13849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850 for as_dir in $PATH
13853 test -z "$as_dir" && as_dir=.
13854 for ac_exec_ext in '' $ac_executable_extensions; do
13855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13856 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
13857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13867 SHLD=$ac_cv_path_SHLD
13868 if test -n "$SHLD"; then
13869 { echo "$as_me:$LINENO: result: $SHLD" >&5
13870 echo "${ECHO_T}$SHLD" >&6; }
13872 { echo "$as_me:$LINENO: result: no" >&5
13873 echo "${ECHO_T}no" >&6; }
13877 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
13878 set dummy sh-elf-objcopy; ac_word=$2
13879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13881 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
13889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890 for as_dir in $PATH
13893 test -z "$as_dir" && as_dir=.
13894 for ac_exec_ext in '' $ac_executable_extensions; do
13895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13896 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
13897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13907 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
13908 if test -n "$SHOBJCOPY"; then
13909 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
13910 echo "${ECHO_T}$SHOBJCOPY" >&6; }
13912 { echo "$as_me:$LINENO: result: no" >&5
13913 echo "${ECHO_T}no" >&6; }
13917 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
13918 set dummy arm-elf-gcc; ac_word=$2
13919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13921 if test "${ac_cv_path_ARMCC+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
13929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930 for as_dir in $PATH
13933 test -z "$as_dir" && as_dir=.
13934 for ac_exec_ext in '' $ac_executable_extensions; do
13935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13936 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
13937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13947 ARMCC=$ac_cv_path_ARMCC
13948 if test -n "$ARMCC"; then
13949 { echo "$as_me:$LINENO: result: $ARMCC" >&5
13950 echo "${ECHO_T}$ARMCC" >&6; }
13952 { echo "$as_me:$LINENO: result: no" >&5
13953 echo "${ECHO_T}no" >&6; }
13957 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
13958 set dummy arm-elf-ld; ac_word=$2
13959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13961 if test "${ac_cv_path_ARMLD+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13966 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
13969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13970 for as_dir in $PATH
13973 test -z "$as_dir" && as_dir=.
13974 for ac_exec_ext in '' $ac_executable_extensions; do
13975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13976 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
13977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13987 ARMLD=$ac_cv_path_ARMLD
13988 if test -n "$ARMLD"; then
13989 { echo "$as_me:$LINENO: result: $ARMLD" >&5
13990 echo "${ECHO_T}$ARMLD" >&6; }
13992 { echo "$as_me:$LINENO: result: no" >&5
13993 echo "${ECHO_T}no" >&6; }
13997 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
13998 set dummy arm-elf-objcopy; ac_word=$2
13999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14001 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 case $ARMOBJCOPY in
14006 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
14009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010 for as_dir in $PATH
14013 test -z "$as_dir" && as_dir=.
14014 for ac_exec_ext in '' $ac_executable_extensions; do
14015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14016 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
14017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14027 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
14028 if test -n "$ARMOBJCOPY"; then
14029 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
14030 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
14032 { echo "$as_me:$LINENO: result: no" >&5
14033 echo "${ECHO_T}no" >&6; }
14038 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
14040 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
14044 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
14046 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
14052 if test "$BUILD_SH" = "yes"; then
14053 BUILD_SYSTEST_TRUE=
14054 BUILD_SYSTEST_FALSE='#'
14056 BUILD_SYSTEST_TRUE='#'
14057 BUILD_SYSTEST_FALSE=
14062 if test "$BUILD_ARM" = "yes"; then
14063 BUILD_ARMTEST_TRUE=
14064 BUILD_ARMTEST_FALSE='#'
14066 BUILD_ARMTEST_TRUE='#'
14067 BUILD_ARMTEST_FALSE=
14071 CFLAGS="$CFLAGS $STDCFLAG"
14073 GETTEXT_PACKAGE=lxdream
14074 LXDREAM_LIBS="$LIBS"
14079 cat >>confdefs.h <<_ACEOF
14080 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
14084 ALL_LINGUAS="de es it nl pt_BR"
14087 for ac_header in locale.h
14089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 ac_res=`eval echo '${'$as_ac_Header'}'`
14097 { echo "$as_me:$LINENO: result: $ac_res" >&5
14098 echo "${ECHO_T}$ac_res" >&6; }
14100 # Is the header compilable?
14101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14103 cat >conftest.$ac_ext <<_ACEOF
14106 cat confdefs.h >>conftest.$ac_ext
14107 cat >>conftest.$ac_ext <<_ACEOF
14108 /* end confdefs.h. */
14109 $ac_includes_default
14110 #include <$ac_header>
14112 rm -f conftest.$ac_objext
14113 if { (ac_try="$ac_compile"
14114 case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_compile") 2>conftest.er1
14121 grep -v '^ *+' conftest.er1 >conftest.err
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } && {
14126 test -z "$ac_c_werror_flag" ||
14127 test ! -s conftest.err
14128 } && test -s conftest.$ac_objext; then
14129 ac_header_compiler=yes
14131 echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14134 ac_header_compiler=no
14137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14139 echo "${ECHO_T}$ac_header_compiler" >&6; }
14141 # Is the header present?
14142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14144 cat >conftest.$ac_ext <<_ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14150 #include <$ac_header>
14152 if { (ac_try="$ac_cpp conftest.$ac_ext"
14153 case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14160 grep -v '^ *+' conftest.er1 >conftest.err
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } >/dev/null && {
14165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14166 test ! -s conftest.err
14168 ac_header_preproc=yes
14170 echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14173 ac_header_preproc=no
14176 rm -f conftest.err conftest.$ac_ext
14177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14178 echo "${ECHO_T}$ac_header_preproc" >&6; }
14180 # So? What about this header?
14181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14187 ac_header_preproc=yes
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 eval "$as_ac_Header=\$ac_header_preproc"
14212 ac_res=`eval echo '${'$as_ac_Header'}'`
14213 { echo "$as_me:$LINENO: result: $ac_res" >&5
14214 echo "${ECHO_T}$ac_res" >&6; }
14217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14218 cat >>confdefs.h <<_ACEOF
14219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14226 if test $ac_cv_header_locale_h = yes; then
14227 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14228 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
14229 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 cat >conftest.$ac_ext <<_ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 #include <locale.h>
14247 rm -f conftest.$ac_objext conftest$ac_exeext
14248 if { (ac_try="$ac_link"
14249 case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_link") 2>conftest.er1
14256 grep -v '^ *+' conftest.er1 >conftest.err
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } && {
14261 test -z "$ac_c_werror_flag" ||
14262 test ! -s conftest.err
14263 } && test -s conftest$ac_exeext &&
14264 $as_test_x conftest$ac_exeext; then
14265 am_cv_val_LC_MESSAGES=yes
14267 echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14270 am_cv_val_LC_MESSAGES=no
14273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14274 conftest$ac_exeext conftest.$ac_ext
14276 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14277 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
14278 if test $am_cv_val_LC_MESSAGES = yes; then
14280 cat >>confdefs.h <<\_ACEOF
14281 #define HAVE_LC_MESSAGES 1
14289 gt_cv_have_gettext=no
14295 if test "${ac_cv_header_libintl_h+set}" = set; then
14296 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14297 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14298 if test "${ac_cv_header_libintl_h+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14301 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14302 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14304 # Is the header compilable?
14305 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
14306 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
14307 cat >conftest.$ac_ext <<_ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h. */
14313 $ac_includes_default
14314 #include <libintl.h>
14316 rm -f conftest.$ac_objext
14317 if { (ac_try="$ac_compile"
14318 case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_compile") 2>conftest.er1
14325 grep -v '^ *+' conftest.er1 >conftest.err
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest.$ac_objext; then
14333 ac_header_compiler=yes
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 ac_header_compiler=no
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14343 echo "${ECHO_T}$ac_header_compiler" >&6; }
14345 # Is the header present?
14346 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
14347 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
14348 cat >conftest.$ac_ext <<_ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 #include <libintl.h>
14356 if { (ac_try="$ac_cpp conftest.$ac_ext"
14357 case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14364 grep -v '^ *+' conftest.er1 >conftest.err
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } >/dev/null && {
14369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14370 test ! -s conftest.err
14372 ac_header_preproc=yes
14374 echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14377 ac_header_preproc=no
14380 rm -f conftest.err conftest.$ac_ext
14381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14382 echo "${ECHO_T}$ac_header_preproc" >&6; }
14384 # So? What about this header?
14385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14387 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14388 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14389 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
14390 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
14391 ac_header_preproc=yes
14394 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14395 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14396 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14397 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14398 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
14399 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
14400 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
14401 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14402 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14403 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
14405 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
14409 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14410 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14411 if test "${ac_cv_header_libintl_h+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 ac_cv_header_libintl_h=$ac_header_preproc
14416 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14417 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14420 if test $ac_cv_header_libintl_h = yes; then
14421 gt_cv_func_dgettext_libintl="no"
14422 libintl_extra_libs=""
14425 # First check in libc
14427 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
14428 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
14429 if test "${gt_cv_func_ngettext_libc+set}" = set; then
14430 echo $ECHO_N "(cached) $ECHO_C" >&6
14432 cat >conftest.$ac_ext <<_ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14439 #include <libintl.h>
14444 return !ngettext ("","", 1)
14449 rm -f conftest.$ac_objext conftest$ac_exeext
14450 if { (ac_try="$ac_link"
14451 case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_link") 2>conftest.er1
14458 grep -v '^ *+' conftest.er1 >conftest.err
14460 cat conftest.err >&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } && {
14463 test -z "$ac_c_werror_flag" ||
14464 test ! -s conftest.err
14465 } && test -s conftest$ac_exeext &&
14466 $as_test_x conftest$ac_exeext; then
14467 gt_cv_func_ngettext_libc=yes
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14472 gt_cv_func_ngettext_libc=no
14475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14476 conftest$ac_exeext conftest.$ac_ext
14479 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
14480 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
14482 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14483 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
14484 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
14485 if test "${gt_cv_func_dgettext_libc+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 cat >conftest.$ac_ext <<_ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14495 #include <libintl.h>
14500 return !dgettext ("","")
14505 rm -f conftest.$ac_objext conftest$ac_exeext
14506 if { (ac_try="$ac_link"
14507 case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_link") 2>conftest.er1
14514 grep -v '^ *+' conftest.er1 >conftest.err
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && {
14519 test -z "$ac_c_werror_flag" ||
14520 test ! -s conftest.err
14521 } && test -s conftest$ac_exeext &&
14522 $as_test_x conftest$ac_exeext; then
14523 gt_cv_func_dgettext_libc=yes
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14528 gt_cv_func_dgettext_libc=no
14531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14532 conftest$ac_exeext conftest.$ac_ext
14535 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
14536 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
14539 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14541 for ac_func in bind_textdomain_codeset
14543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 cat >conftest.$ac_ext <<_ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h. */
14555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14557 #define $ac_func innocuous_$ac_func
14559 /* System header to define __stub macros and hopefully few prototypes,
14560 which can conflict with char $ac_func (); below.
14561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14562 <limits.h> exists even on freestanding compilers. */
14565 # include <limits.h>
14567 # include <assert.h>
14572 /* Override any GCC internal prototype to avoid an error.
14573 Use char because int might match the return type of a GCC
14574 builtin and then its argument prototype would still apply. */
14579 /* The GNU C library defines this for functions which it implements
14580 to always fail with ENOSYS. Some functions are actually named
14581 something starting with __ and the normal name is an alias. */
14582 #if defined __stub_$ac_func || defined __stub___$ac_func
14589 return $ac_func ();
14594 rm -f conftest.$ac_objext conftest$ac_exeext
14595 if { (ac_try="$ac_link"
14596 case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_link") 2>conftest.er1
14603 grep -v '^ *+' conftest.er1 >conftest.err
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } && {
14608 test -z "$ac_c_werror_flag" ||
14609 test ! -s conftest.err
14610 } && test -s conftest$ac_exeext &&
14611 $as_test_x conftest$ac_exeext; then
14612 eval "$as_ac_var=yes"
14614 echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14617 eval "$as_ac_var=no"
14620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14621 conftest$ac_exeext conftest.$ac_ext
14623 ac_res=`eval echo '${'$as_ac_var'}'`
14624 { echo "$as_me:$LINENO: result: $ac_res" >&5
14625 echo "${ECHO_T}$ac_res" >&6; }
14626 if test `eval echo '${'$as_ac_var'}'` = yes; then
14627 cat >>confdefs.h <<_ACEOF
14628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14637 # If we don't have everything we want, check in libintl
14639 if test "$gt_cv_func_dgettext_libc" != "yes" \
14640 || test "$gt_cv_func_ngettext_libc" != "yes" \
14641 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
14643 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
14644 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
14645 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 ac_check_lib_save_LIBS=$LIBS
14649 LIBS="-lintl $LIBS"
14650 cat >conftest.$ac_ext <<_ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14657 /* Override any GCC internal prototype to avoid an error.
14658 Use char because int might match the return type of a GCC
14659 builtin and then its argument prototype would still apply. */
14663 char bindtextdomain ();
14667 return bindtextdomain ();
14672 rm -f conftest.$ac_objext conftest$ac_exeext
14673 if { (ac_try="$ac_link"
14674 case "(($ac_try" in
14675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676 *) ac_try_echo=$ac_try;;
14678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679 (eval "$ac_link") 2>conftest.er1
14681 grep -v '^ *+' conftest.er1 >conftest.err
14683 cat conftest.err >&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); } && {
14686 test -z "$ac_c_werror_flag" ||
14687 test ! -s conftest.err
14688 } && test -s conftest$ac_exeext &&
14689 $as_test_x conftest$ac_exeext; then
14690 ac_cv_lib_intl_bindtextdomain=yes
14692 echo "$as_me: failed program was:" >&5
14693 sed 's/^/| /' conftest.$ac_ext >&5
14695 ac_cv_lib_intl_bindtextdomain=no
14698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14699 conftest$ac_exeext conftest.$ac_ext
14700 LIBS=$ac_check_lib_save_LIBS
14702 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
14703 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
14704 if test $ac_cv_lib_intl_bindtextdomain = yes; then
14705 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
14706 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
14707 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 ac_check_lib_save_LIBS=$LIBS
14711 LIBS="-lintl $LIBS"
14712 cat >conftest.$ac_ext <<_ACEOF
14715 cat confdefs.h >>conftest.$ac_ext
14716 cat >>conftest.$ac_ext <<_ACEOF
14717 /* end confdefs.h. */
14719 /* Override any GCC internal prototype to avoid an error.
14720 Use char because int might match the return type of a GCC
14721 builtin and then its argument prototype would still apply. */
14729 return ngettext ();
14734 rm -f conftest.$ac_objext conftest$ac_exeext
14735 if { (ac_try="$ac_link"
14736 case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_link") 2>conftest.er1
14743 grep -v '^ *+' conftest.er1 >conftest.err
14745 cat conftest.err >&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } && {
14748 test -z "$ac_c_werror_flag" ||
14749 test ! -s conftest.err
14750 } && test -s conftest$ac_exeext &&
14751 $as_test_x conftest$ac_exeext; then
14752 ac_cv_lib_intl_ngettext=yes
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14757 ac_cv_lib_intl_ngettext=no
14760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14761 conftest$ac_exeext conftest.$ac_ext
14762 LIBS=$ac_check_lib_save_LIBS
14764 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
14765 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
14766 if test $ac_cv_lib_intl_ngettext = yes; then
14767 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14768 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
14769 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 ac_check_lib_save_LIBS=$LIBS
14773 LIBS="-lintl $LIBS"
14774 cat >conftest.$ac_ext <<_ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h. */
14781 /* Override any GCC internal prototype to avoid an error.
14782 Use char because int might match the return type of a GCC
14783 builtin and then its argument prototype would still apply. */
14791 return dgettext ();
14796 rm -f conftest.$ac_objext conftest$ac_exeext
14797 if { (ac_try="$ac_link"
14798 case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_link") 2>conftest.er1
14805 grep -v '^ *+' conftest.er1 >conftest.err
14807 cat conftest.err >&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } && {
14810 test -z "$ac_c_werror_flag" ||
14811 test ! -s conftest.err
14812 } && test -s conftest$ac_exeext &&
14813 $as_test_x conftest$ac_exeext; then
14814 ac_cv_lib_intl_dgettext=yes
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14819 ac_cv_lib_intl_dgettext=no
14822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14823 conftest$ac_exeext conftest.$ac_ext
14824 LIBS=$ac_check_lib_save_LIBS
14826 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14827 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
14828 if test $ac_cv_lib_intl_dgettext = yes; then
14829 gt_cv_func_dgettext_libintl=yes
14837 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
14838 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
14839 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
14840 { echo "$as_me:$LINENO: result: " >&5
14841 echo "${ECHO_T}" >&6; }
14842 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
14843 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
14844 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 ac_check_lib_save_LIBS=$LIBS
14848 LIBS="-lintl -liconv $LIBS"
14849 cat >conftest.$ac_ext <<_ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h. */
14856 /* Override any GCC internal prototype to avoid an error.
14857 Use char because int might match the return type of a GCC
14858 builtin and then its argument prototype would still apply. */
14866 return ngettext ();
14871 rm -f conftest.$ac_objext conftest$ac_exeext
14872 if { (ac_try="$ac_link"
14873 case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_link") 2>conftest.er1
14880 grep -v '^ *+' conftest.er1 >conftest.err
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest$ac_exeext &&
14888 $as_test_x conftest$ac_exeext; then
14889 ac_cv_lib_intl_ngettext=yes
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 ac_cv_lib_intl_ngettext=no
14897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14898 conftest$ac_exeext conftest.$ac_ext
14899 LIBS=$ac_check_lib_save_LIBS
14901 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
14902 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
14903 if test $ac_cv_lib_intl_ngettext = yes; then
14904 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
14905 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
14906 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 ac_check_lib_save_LIBS=$LIBS
14910 LIBS="-lintl -liconv $LIBS"
14911 cat >conftest.$ac_ext <<_ACEOF
14914 cat confdefs.h >>conftest.$ac_ext
14915 cat >>conftest.$ac_ext <<_ACEOF
14916 /* end confdefs.h. */
14918 /* Override any GCC internal prototype to avoid an error.
14919 Use char because int might match the return type of a GCC
14920 builtin and then its argument prototype would still apply. */
14928 return dcgettext ();
14933 rm -f conftest.$ac_objext conftest$ac_exeext
14934 if { (ac_try="$ac_link"
14935 case "(($ac_try" in
14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_link") 2>conftest.er1
14942 grep -v '^ *+' conftest.er1 >conftest.err
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } && {
14947 test -z "$ac_c_werror_flag" ||
14948 test ! -s conftest.err
14949 } && test -s conftest$ac_exeext &&
14950 $as_test_x conftest$ac_exeext; then
14951 ac_cv_lib_intl_dcgettext=yes
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14956 ac_cv_lib_intl_dcgettext=no
14959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14960 conftest$ac_exeext conftest.$ac_ext
14961 LIBS=$ac_check_lib_save_LIBS
14963 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
14964 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
14965 if test $ac_cv_lib_intl_dcgettext = yes; then
14966 gt_cv_func_dgettext_libintl=yes
14967 libintl_extra_libs=-liconv
14979 # If we found libintl, then check in it for bind_textdomain_codeset();
14980 # we'll prefer libc if neither have bind_textdomain_codeset(),
14981 # and both have dgettext and ngettext
14983 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
14984 glib_save_LIBS="$LIBS"
14985 LIBS="$LIBS -lintl $libintl_extra_libs"
14986 unset ac_cv_func_bind_textdomain_codeset
14988 for ac_func in bind_textdomain_codeset
14990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 cat >conftest.$ac_ext <<_ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15004 #define $ac_func innocuous_$ac_func
15006 /* System header to define __stub macros and hopefully few prototypes,
15007 which can conflict with char $ac_func (); below.
15008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15009 <limits.h> exists even on freestanding compilers. */
15012 # include <limits.h>
15014 # include <assert.h>
15019 /* Override any GCC internal prototype to avoid an error.
15020 Use char because int might match the return type of a GCC
15021 builtin and then its argument prototype would still apply. */
15026 /* The GNU C library defines this for functions which it implements
15027 to always fail with ENOSYS. Some functions are actually named
15028 something starting with __ and the normal name is an alias. */
15029 #if defined __stub_$ac_func || defined __stub___$ac_func
15036 return $ac_func ();
15041 rm -f conftest.$ac_objext conftest$ac_exeext
15042 if { (ac_try="$ac_link"
15043 case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_link") 2>conftest.er1
15050 grep -v '^ *+' conftest.er1 >conftest.err
15052 cat conftest.err >&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } && {
15055 test -z "$ac_c_werror_flag" ||
15056 test ! -s conftest.err
15057 } && test -s conftest$ac_exeext &&
15058 $as_test_x conftest$ac_exeext; then
15059 eval "$as_ac_var=yes"
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15064 eval "$as_ac_var=no"
15067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15068 conftest$ac_exeext conftest.$ac_ext
15070 ac_res=`eval echo '${'$as_ac_var'}'`
15071 { echo "$as_me:$LINENO: result: $ac_res" >&5
15072 echo "${ECHO_T}$ac_res" >&6; }
15073 if test `eval echo '${'$as_ac_var'}'` = yes; then
15074 cat >>confdefs.h <<_ACEOF
15075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15081 LIBS="$glib_save_LIBS"
15083 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
15084 gt_cv_func_dgettext_libc=no
15086 if test "$gt_cv_func_dgettext_libc" = "yes" \
15087 && test "$gt_cv_func_ngettext_libc" = "yes"; then
15088 gt_cv_func_dgettext_libintl=no
15094 if test "$gt_cv_func_dgettext_libc" = "yes" \
15095 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
15096 gt_cv_have_gettext=yes
15099 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
15100 INTLLIBS="-lintl $libintl_extra_libs"
15103 if test "$gt_cv_have_gettext" = "yes"; then
15105 cat >>confdefs.h <<\_ACEOF
15106 #define HAVE_GETTEXT 1
15109 # Extract the first word of "msgfmt", so it can be a program name with args.
15110 set dummy msgfmt; ac_word=$2
15111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15113 if test "${ac_cv_path_MSGFMT+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15122 for ac_dir in $PATH; do
15123 test -z "$ac_dir" && ac_dir=.
15124 if test -f $ac_dir/$ac_word; then
15125 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
15126 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15132 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
15136 MSGFMT="$ac_cv_path_MSGFMT"
15137 if test "$MSGFMT" != "no"; then
15138 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15139 echo "${ECHO_T}$MSGFMT" >&6; }
15141 { echo "$as_me:$LINENO: result: no" >&5
15142 echo "${ECHO_T}no" >&6; }
15144 if test "$MSGFMT" != "no"; then
15145 glib_save_LIBS="$LIBS"
15146 LIBS="$LIBS $INTLLIBS"
15148 for ac_func in dcgettext
15150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 cat >conftest.$ac_ext <<_ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15164 #define $ac_func innocuous_$ac_func
15166 /* System header to define __stub macros and hopefully few prototypes,
15167 which can conflict with char $ac_func (); below.
15168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15169 <limits.h> exists even on freestanding compilers. */
15172 # include <limits.h>
15174 # include <assert.h>
15179 /* Override any GCC internal prototype to avoid an error.
15180 Use char because int might match the return type of a GCC
15181 builtin and then its argument prototype would still apply. */
15186 /* The GNU C library defines this for functions which it implements
15187 to always fail with ENOSYS. Some functions are actually named
15188 something starting with __ and the normal name is an alias. */
15189 #if defined __stub_$ac_func || defined __stub___$ac_func
15196 return $ac_func ();
15201 rm -f conftest.$ac_objext conftest$ac_exeext
15202 if { (ac_try="$ac_link"
15203 case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208 (eval "$ac_link") 2>conftest.er1
15210 grep -v '^ *+' conftest.er1 >conftest.err
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } && {
15215 test -z "$ac_c_werror_flag" ||
15216 test ! -s conftest.err
15217 } && test -s conftest$ac_exeext &&
15218 $as_test_x conftest$ac_exeext; then
15219 eval "$as_ac_var=yes"
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15224 eval "$as_ac_var=no"
15227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15228 conftest$ac_exeext conftest.$ac_ext
15230 ac_res=`eval echo '${'$as_ac_var'}'`
15231 { echo "$as_me:$LINENO: result: $ac_res" >&5
15232 echo "${ECHO_T}$ac_res" >&6; }
15233 if test `eval echo '${'$as_ac_var'}'` = yes; then
15234 cat >>confdefs.h <<_ACEOF
15235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15242 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
15243 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
15244 cat >conftest.foo <<_ACEOF
15248 "Content-Type: text/plain; charset=UTF-8\n"
15249 "Project-Id-Version: test 1.0\n"
15250 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
15251 "Last-Translator: test <foo@bar.xx>\n"
15252 "Language-Team: C <LL@li.org>\n"
15253 "MIME-Version: 1.0\n"
15254 "Content-Transfer-Encoding: 8bit\n"
15257 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
15258 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; then
15262 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
15263 echo "${ECHO_T}yes" >&6; }
15264 else { echo "$as_me:$LINENO: result: no" >&5
15265 echo "${ECHO_T}no" >&6; }
15266 echo "$as_me: failed input was:" >&5
15267 sed 's/^/| /' conftest.foo >&5
15270 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15271 set dummy gmsgfmt; ac_word=$2
15272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15274 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15283 for as_dir in $PATH
15286 test -z "$as_dir" && as_dir=.
15287 for ac_exec_ext in '' $ac_executable_extensions; do
15288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15289 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15297 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15301 GMSGFMT=$ac_cv_path_GMSGFMT
15302 if test -n "$GMSGFMT"; then
15303 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15304 echo "${ECHO_T}$GMSGFMT" >&6; }
15306 { echo "$as_me:$LINENO: result: no" >&5
15307 echo "${ECHO_T}no" >&6; }
15311 # Extract the first word of "xgettext", so it can be a program name with args.
15312 set dummy xgettext; ac_word=$2
15313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15315 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15316 echo $ECHO_N "(cached) $ECHO_C" >&6
15318 case "$XGETTEXT" in
15320 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15324 for ac_dir in $PATH; do
15325 test -z "$ac_dir" && ac_dir=.
15326 if test -f $ac_dir/$ac_word; then
15327 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
15328 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15334 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15338 XGETTEXT="$ac_cv_path_XGETTEXT"
15339 if test "$XGETTEXT" != ":"; then
15340 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15341 echo "${ECHO_T}$XGETTEXT" >&6; }
15343 { echo "$as_me:$LINENO: result: no" >&5
15344 echo "${ECHO_T}no" >&6; }
15347 cat >conftest.$ac_ext <<_ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15357 extern int _nl_msg_cat_cntr;
15358 return _nl_msg_cat_cntr
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (ac_try="$ac_link"
15365 case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_link") 2>conftest.er1
15372 grep -v '^ *+' conftest.er1 >conftest.err
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } && {
15377 test -z "$ac_c_werror_flag" ||
15378 test ! -s conftest.err
15379 } && test -s conftest$ac_exeext &&
15380 $as_test_x conftest$ac_exeext; then
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15389 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
15390 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
15391 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 cat >conftest.$ac_ext <<_ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
15401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15402 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
15404 /* System header to define __stub macros and hopefully few prototypes,
15405 which can conflict with char bind_textdomain_codeset (); below.
15406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15407 <limits.h> exists even on freestanding compilers. */
15410 # include <limits.h>
15412 # include <assert.h>
15415 #undef bind_textdomain_codeset
15417 /* Override any GCC internal prototype to avoid an error.
15418 Use char because int might match the return type of a GCC
15419 builtin and then its argument prototype would still apply. */
15423 char bind_textdomain_codeset ();
15424 /* The GNU C library defines this for functions which it implements
15425 to always fail with ENOSYS. Some functions are actually named
15426 something starting with __ and the normal name is an alias. */
15427 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
15434 return bind_textdomain_codeset ();
15439 rm -f conftest.$ac_objext conftest$ac_exeext
15440 if { (ac_try="$ac_link"
15441 case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_link") 2>conftest.er1
15448 grep -v '^ *+' conftest.er1 >conftest.err
15450 cat conftest.err >&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } && {
15453 test -z "$ac_c_werror_flag" ||
15454 test ! -s conftest.err
15455 } && test -s conftest$ac_exeext &&
15456 $as_test_x conftest$ac_exeext; then
15457 ac_cv_func_bind_textdomain_codeset=yes
15459 echo "$as_me: failed program was:" >&5
15460 sed 's/^/| /' conftest.$ac_ext >&5
15462 ac_cv_func_bind_textdomain_codeset=no
15465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15466 conftest$ac_exeext conftest.$ac_ext
15468 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
15469 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
15470 if test $ac_cv_func_bind_textdomain_codeset = yes; then
15486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15487 conftest$ac_exeext conftest.$ac_ext
15488 LIBS="$glib_save_LIBS"
15491 gt_cv_have_gettext=no
15499 if test "$gt_cv_have_gettext" = "yes" ; then
15501 cat >>confdefs.h <<\_ACEOF
15502 #define ENABLE_NLS 1
15507 if test "$XGETTEXT" != ":"; then
15508 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
15511 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15512 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
15517 # We need to process the po/ directory.
15520 ac_config_commands="$ac_config_commands default-1"
15523 for lang in $ALL_LINGUAS; do
15524 GMOFILES="$GMOFILES $lang.gmo"
15525 POFILES="$POFILES $lang.po"
15540 if test "$gt_cv_have_gettext" = "yes"; then
15541 if test "x$ALL_LINGUAS" = "x"; then
15544 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15545 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
15547 for presentlang in $ALL_LINGUAS; do
15549 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
15550 desiredlanguages="$LINGUAS"
15552 desiredlanguages="$ALL_LINGUAS"
15554 for desiredlang in $desiredlanguages; do
15555 # Use the presentlang catalog if desiredlang is
15556 # a. equal to presentlang, or
15557 # b. a variant of presentlang (because in this case,
15558 # presentlang can be used as a fallback for messages
15559 # which are not translated in the desiredlang catalog).
15560 case "$desiredlang" in
15561 "$presentlang"*) useit=yes;;
15564 if test $useit = yes; then
15565 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15568 LINGUAS=$NEW_LINGUAS
15569 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
15570 echo "${ECHO_T}$LINGUAS" >&6; }
15573 if test -n "$LINGUAS"; then
15574 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15579 if test -n "$ac_aux_dir"; then
15580 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15582 if test -z "$MKINSTALLDIRS"; then
15583 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15587 test -d po || mkdir po
15588 if test "x$srcdir" != "x."; then
15589 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
15590 posrcprefix="$srcdir/"
15592 posrcprefix="../$srcdir/"
15598 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
15599 < $srcdir/po/POTFILES.in > po/POTFILES
15602 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
15604 cat >confcache <<\_ACEOF
15605 # This file is a shell script that caches the results of configure
15606 # tests run on this system so they can be shared between configure
15607 # scripts and configure runs, see configure's option --config-cache.
15608 # It is not useful on other systems. If it contains results you don't
15609 # want to keep, you may remove or edit it.
15611 # config.status only pays attention to the cache file if you give it
15612 # the --recheck option to rerun configure.
15614 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15615 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15616 # following values.
15620 # The following way of writing the cache mishandles newlines in values,
15621 # but we know of no workaround that is simple, portable, and efficient.
15622 # So, we kill variables containing newlines.
15623 # Ultrix sh set writes to stderr and can't be redirected directly,
15624 # and sets the high bit in the cache file unless we assign to the vars.
15626 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15627 eval ac_val=\$$ac_var
15631 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15632 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15635 _ | IFS | as_nl) ;; #(
15636 *) $as_unset $ac_var ;;
15642 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15643 *${as_nl}ac_space=\ *)
15644 # `set' does not quote correctly, so add quotes (double-quote
15645 # substitution turns \\\\ into \\, and sed turns \\ into \).
15648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15651 # `set' quotes correctly as required by POSIX, so do not add quotes.
15652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15661 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15663 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15665 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15666 if test -w "$cache_file"; then
15667 test "x$cache_file" != "x/dev/null" &&
15668 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15669 echo "$as_me: updating cache $cache_file" >&6;}
15670 cat confcache >$cache_file
15672 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15673 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15678 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15679 # Let make expand exec_prefix.
15680 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15682 DEFS=-DHAVE_CONFIG_H
15686 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15687 # 1. Remove the extension, and $U if already installed.
15688 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15689 ac_i=`echo "$ac_i" | sed "$ac_script"`
15690 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15691 # will be set to the directory where LIBOBJS objects are built.
15692 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15693 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15695 LIBOBJS=$ac_libobjs
15697 LTLIBOBJS=$ac_ltlibobjs
15700 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15701 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15702 Usually this means the macro was only invoked conditionally." >&5
15703 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15704 Usually this means the macro was only invoked conditionally." >&2;}
15705 { (exit 1); exit 1; }; }
15707 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15708 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15709 Usually this means the macro was only invoked conditionally." >&5
15710 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15711 Usually this means the macro was only invoked conditionally." >&2;}
15712 { (exit 1); exit 1; }; }
15714 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15715 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15716 Usually this means the macro was only invoked conditionally." >&5
15717 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15718 Usually this means the macro was only invoked conditionally." >&2;}
15719 { (exit 1); exit 1; }; }
15721 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15722 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15723 Usually this means the macro was only invoked conditionally." >&5
15724 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15725 Usually this means the macro was only invoked conditionally." >&2;}
15726 { (exit 1); exit 1; }; }
15728 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15729 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15730 Usually this means the macro was only invoked conditionally." >&5
15731 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15732 Usually this means the macro was only invoked conditionally." >&2;}
15733 { (exit 1); exit 1; }; }
15735 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
15736 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
15737 Usually this means the macro was only invoked conditionally." >&5
15738 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
15739 Usually this means the macro was only invoked conditionally." >&2;}
15740 { (exit 1); exit 1; }; }
15742 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
15743 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
15744 Usually this means the macro was only invoked conditionally." >&5
15745 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
15746 Usually this means the macro was only invoked conditionally." >&2;}
15747 { (exit 1); exit 1; }; }
15749 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
15750 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
15751 Usually this means the macro was only invoked conditionally." >&5
15752 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
15753 Usually this means the macro was only invoked conditionally." >&2;}
15754 { (exit 1); exit 1; }; }
15756 if test -z "${BUILD_PLUGINS_TRUE}" && test -z "${BUILD_PLUGINS_FALSE}"; then
15757 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PLUGINS\" was never defined.
15758 Usually this means the macro was only invoked conditionally." >&5
15759 echo "$as_me: error: conditional \"BUILD_PLUGINS\" was never defined.
15760 Usually this means the macro was only invoked conditionally." >&2;}
15761 { (exit 1); exit 1; }; }
15763 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
15764 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
15765 Usually this means the macro was only invoked conditionally." >&5
15766 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
15767 Usually this means the macro was only invoked conditionally." >&2;}
15768 { (exit 1); exit 1; }; }
15770 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
15771 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
15772 Usually this means the macro was only invoked conditionally." >&5
15773 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
15774 Usually this means the macro was only invoked conditionally." >&2;}
15775 { (exit 1); exit 1; }; }
15777 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
15778 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
15779 Usually this means the macro was only invoked conditionally." >&5
15780 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
15781 Usually this means the macro was only invoked conditionally." >&2;}
15782 { (exit 1); exit 1; }; }
15784 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
15785 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
15786 Usually this means the macro was only invoked conditionally." >&5
15787 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
15788 Usually this means the macro was only invoked conditionally." >&2;}
15789 { (exit 1); exit 1; }; }
15791 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
15792 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
15793 Usually this means the macro was only invoked conditionally." >&5
15794 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
15795 Usually this means the macro was only invoked conditionally." >&2;}
15796 { (exit 1); exit 1; }; }
15798 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
15799 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
15800 Usually this means the macro was only invoked conditionally." >&5
15801 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
15802 Usually this means the macro was only invoked conditionally." >&2;}
15803 { (exit 1); exit 1; }; }
15805 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
15806 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
15807 Usually this means the macro was only invoked conditionally." >&5
15808 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
15809 Usually this means the macro was only invoked conditionally." >&2;}
15810 { (exit 1); exit 1; }; }
15812 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
15813 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
15814 Usually this means the macro was only invoked conditionally." >&5
15815 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
15816 Usually this means the macro was only invoked conditionally." >&2;}
15817 { (exit 1); exit 1; }; }
15819 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
15820 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
15821 Usually this means the macro was only invoked conditionally." >&5
15822 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
15823 Usually this means the macro was only invoked conditionally." >&2;}
15824 { (exit 1); exit 1; }; }
15826 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
15827 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
15828 Usually this means the macro was only invoked conditionally." >&5
15829 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
15830 Usually this means the macro was only invoked conditionally." >&2;}
15831 { (exit 1); exit 1; }; }
15833 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
15834 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
15835 Usually this means the macro was only invoked conditionally." >&5
15836 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
15837 Usually this means the macro was only invoked conditionally." >&2;}
15838 { (exit 1); exit 1; }; }
15840 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
15841 { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
15842 Usually this means the macro was only invoked conditionally." >&5
15843 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
15844 Usually this means the macro was only invoked conditionally." >&2;}
15845 { (exit 1); exit 1; }; }
15847 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
15848 { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
15849 Usually this means the macro was only invoked conditionally." >&5
15850 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
15851 Usually this means the macro was only invoked conditionally." >&2;}
15852 { (exit 1); exit 1; }; }
15854 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
15855 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
15856 Usually this means the macro was only invoked conditionally." >&5
15857 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
15858 Usually this means the macro was only invoked conditionally." >&2;}
15859 { (exit 1); exit 1; }; }
15861 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
15862 { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
15863 Usually this means the macro was only invoked conditionally." >&5
15864 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
15865 Usually this means the macro was only invoked conditionally." >&2;}
15866 { (exit 1); exit 1; }; }
15868 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
15869 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
15870 Usually this means the macro was only invoked conditionally." >&5
15871 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
15872 Usually this means the macro was only invoked conditionally." >&2;}
15873 { (exit 1); exit 1; }; }
15875 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
15876 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
15877 Usually this means the macro was only invoked conditionally." >&5
15878 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
15879 Usually this means the macro was only invoked conditionally." >&2;}
15880 { (exit 1); exit 1; }; }
15883 : ${CONFIG_STATUS=./config.status}
15884 ac_clean_files_save=$ac_clean_files
15885 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15886 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15887 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15888 cat >$CONFIG_STATUS <<_ACEOF
15890 # Generated by $as_me.
15891 # Run this file to recreate the current configuration.
15892 # Compiler output produced by configure, useful for debugging
15893 # configure, is in config.log if it exists.
15896 ac_cs_recheck=false
15898 SHELL=\${CONFIG_SHELL-$SHELL}
15901 cat >>$CONFIG_STATUS <<\_ACEOF
15902 ## --------------------- ##
15903 ## M4sh Initialization. ##
15904 ## --------------------- ##
15906 # Be more Bourne compatible
15907 DUALCASE=1; export DUALCASE # for MKS sh
15908 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15911 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15912 # is contrary to our usage. Disable this feature.
15913 alias -g '${1+"$@"}'='"$@"'
15914 setopt NO_GLOB_SUBST
15916 case `(set -o) 2>/dev/null` in
15917 *posix*) set -o posix ;;
15926 # Avoid depending upon Character Ranges.
15927 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15928 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15929 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15930 as_cr_digits='0123456789'
15931 as_cr_alnum=$as_cr_Letters$as_cr_digits
15933 # The user is always right.
15934 if test "${PATH_SEPARATOR+set}" != set; then
15935 echo "#! /bin/sh" >conf$$.sh
15936 echo "exit 0" >>conf$$.sh
15938 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15946 # Support unset when possible.
15947 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15955 # We need space, tab and new line, in precisely that order. Quoting is
15956 # there to prevent editors from complaining about space-tab.
15957 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15958 # splitting by setting IFS to empty value.)
15963 # Find who we are. Look in the path if we contain no directory separator.
15965 *[\\/]* ) as_myself=$0 ;;
15966 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15967 for as_dir in $PATH
15970 test -z "$as_dir" && as_dir=.
15971 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15977 # We did not find ourselves, most probably we were run as `sh COMMAND'
15978 # in which case we are not to be found in the path.
15979 if test "x$as_myself" = x; then
15982 if test ! -f "$as_myself"; then
15983 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15984 { (exit 1); exit 1; }
15987 # Work around bugs in pre-3.0 UWIN ksh.
15988 for as_var in ENV MAIL MAILPATH
15989 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15997 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15998 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15999 LC_TELEPHONE LC_TIME
16001 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16002 eval $as_var=C; export $as_var
16004 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16008 # Required to use basename.
16009 if expr a : '\(a\)' >/dev/null 2>&1 &&
16010 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16016 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16017 as_basename=basename
16023 # Name of the executable.
16024 as_me=`$as_basename -- "$0" ||
16025 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16026 X"$0" : 'X\(//\)$' \| \
16027 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16029 sed '/^.*\/\([^/][^/]*\)\/*$/{
16048 as_lineno_1=$LINENO
16049 as_lineno_2=$LINENO
16050 test "x$as_lineno_1" != "x$as_lineno_2" &&
16051 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16053 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16054 # uniformly replaced by the line number. The first 'sed' inserts a
16055 # line-number line after each line using $LINENO; the second 'sed'
16056 # does the real work. The second script uses 'N' to pair each
16057 # line-number line with the line containing $LINENO, and appends
16058 # trailing '-' during substitution so that $LINENO is not a special
16059 # case at line end.
16060 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16061 # scripts with optimization help from Paolo Bonzini. Blame Lee
16062 # E. McMahon (1931-1989) for sed's syntax. :-)
16074 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16077 ' >$as_me.lineno &&
16078 chmod +x "$as_me.lineno" ||
16079 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16080 { (exit 1); exit 1; }; }
16082 # Don't try to exec as it changes $[0], causing all sort of problems
16083 # (the dirname of $[0] is not the place where we might find the
16084 # original and so on. Autoconf is especially sensitive to this).
16085 . "./$as_me.lineno"
16086 # Exit status is that of the last command.
16091 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16097 ECHO_C= ECHO_N= ECHO_T=
16098 case `echo -n x` in
16100 case `echo 'x\c'` in
16101 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16108 if expr a : '\(a\)' >/dev/null 2>&1 &&
16109 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16115 rm -f conf$$ conf$$.exe conf$$.file
16116 if test -d conf$$.dir; then
16117 rm -f conf$$.dir/conf$$.file
16123 if ln -s conf$$.file conf$$ 2>/dev/null; then
16125 # ... but there are two gotchas:
16126 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16127 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16128 # In both cases, we have to default to `cp -p'.
16129 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16131 elif ln conf$$.file conf$$ 2>/dev/null; then
16136 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16137 rmdir conf$$.dir 2>/dev/null
16139 if mkdir -p . 2>/dev/null; then
16142 test -d ./-p && rmdir ./-p
16146 if test -x / >/dev/null 2>&1; then
16147 as_test_x='test -x'
16149 if ls -dL / >/dev/null 2>&1; then
16156 if test -d "$1"; then
16162 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16163 ???[sx]*):;;*)false;;esac;fi
16167 as_executable_p=$as_test_x
16169 # Sed expression to map a string onto a valid CPP name.
16170 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16172 # Sed expression to map a string onto a valid variable name.
16173 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16178 # Save the log message, to keep $[0] and so on meaningful, and to
16179 # report actual input values of CONFIG_FILES etc. instead of their
16180 # values after options handling.
16182 This file was extended by $as_me, which was
16183 generated by GNU Autoconf 2.61. Invocation command line was
16185 CONFIG_FILES = $CONFIG_FILES
16186 CONFIG_HEADERS = $CONFIG_HEADERS
16187 CONFIG_LINKS = $CONFIG_LINKS
16188 CONFIG_COMMANDS = $CONFIG_COMMANDS
16191 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16196 cat >>$CONFIG_STATUS <<_ACEOF
16197 # Files that config.status was made for.
16198 config_files="$ac_config_files"
16199 config_headers="$ac_config_headers"
16200 config_commands="$ac_config_commands"
16204 cat >>$CONFIG_STATUS <<\_ACEOF
16206 \`$as_me' instantiates files from templates according to the
16207 current configuration.
16209 Usage: $0 [OPTIONS] [FILE]...
16211 -h, --help print this help, then exit
16212 -V, --version print version number and configuration settings, then exit
16213 -q, --quiet do not print progress messages
16214 -d, --debug don't remove temporary files
16215 --recheck update $as_me by reconfiguring in the same conditions
16216 --file=FILE[:TEMPLATE]
16217 instantiate the configuration file FILE
16218 --header=FILE[:TEMPLATE]
16219 instantiate the configuration header FILE
16221 Configuration files:
16224 Configuration headers:
16227 Configuration commands:
16230 Report bugs to <bug-autoconf@gnu.org>."
16233 cat >>$CONFIG_STATUS <<_ACEOF
16236 configured by $0, generated by GNU Autoconf 2.61,
16237 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16239 Copyright (C) 2006 Free Software Foundation, Inc.
16240 This config.status script is free software; the Free Software Foundation
16241 gives unlimited permission to copy, distribute and modify it."
16248 cat >>$CONFIG_STATUS <<\_ACEOF
16249 # If no file are specified by the user, then we need to provide default
16250 # value. By we need to know if files were specified by the user.
16256 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16257 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16268 # Handling of the options.
16269 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16271 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16272 echo "$ac_cs_version"; exit ;;
16273 --debug | --debu | --deb | --de | --d | -d )
16275 --file | --fil | --fi | --f )
16277 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16278 ac_need_defaults=false;;
16279 --header | --heade | --head | --hea )
16281 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16282 ac_need_defaults=false;;
16284 # Conflict between --help and --header
16285 { echo "$as_me: error: ambiguous option: $1
16286 Try \`$0 --help' for more information." >&2
16287 { (exit 1); exit 1; }; };;
16288 --help | --hel | -h )
16289 echo "$ac_cs_usage"; exit ;;
16290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16291 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16294 # This is an error.
16295 -*) { echo "$as_me: error: unrecognized option: $1
16296 Try \`$0 --help' for more information." >&2
16297 { (exit 1); exit 1; }; } ;;
16299 *) ac_config_targets="$ac_config_targets $1"
16300 ac_need_defaults=false ;;
16306 ac_configure_extra_args=
16308 if $ac_cs_silent; then
16310 ac_configure_extra_args="$ac_configure_extra_args --silent"
16314 cat >>$CONFIG_STATUS <<_ACEOF
16315 if \$ac_cs_recheck; then
16316 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16317 CONFIG_SHELL=$SHELL
16318 export CONFIG_SHELL
16319 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16323 cat >>$CONFIG_STATUS <<\_ACEOF
16327 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16328 ## Running $as_me. ##
16334 cat >>$CONFIG_STATUS <<_ACEOF
16338 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16343 cat >>$CONFIG_STATUS <<\_ACEOF
16345 # Handling of arguments.
16346 for ac_config_target in $ac_config_targets
16348 case $ac_config_target in
16349 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16350 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16351 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16352 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16353 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16354 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
16355 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16356 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16357 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
16359 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16360 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16361 { (exit 1); exit 1; }; };;
16366 # If the user did not use the arguments to specify the items to instantiate,
16367 # then the envvar interface is used. Set only those that are not.
16368 # We use the long form for the default assignment because of an extremely
16369 # bizarre bug on SunOS 4.1.3.
16370 if $ac_need_defaults; then
16371 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16372 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16373 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16376 # Have a temporary directory for convenience. Make it in the build tree
16377 # simply because there is no reason against having it here, and in addition,
16378 # creating and moving files from /tmp can sometimes cause problems.
16379 # Hook for its removal unless debugging.
16380 # Note that there is a small window in which the directory will not be cleaned:
16381 # after its creation but before its name has been assigned to `$tmp'.
16385 trap 'exit_status=$?
16386 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16388 trap '{ (exit 1); exit 1; }' 1 2 13 15
16390 # Create a (secure) tmp directory for tmp files.
16393 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16394 test -n "$tmp" && test -d "$tmp"
16397 tmp=./conf$$-$RANDOM
16398 (umask 077 && mkdir "$tmp")
16401 echo "$me: cannot create a temporary directory in ." >&2
16402 { (exit 1); exit 1; }
16406 # Set up the sed scripts for CONFIG_FILES section.
16409 # No need to generate the scripts if there are no CONFIG_FILES.
16410 # This happens for instance when ./config.status config.h
16411 if test -n "$CONFIG_FILES"; then
16418 for ac_last_try in false false false false false :; do
16419 cat >conf$$subs.sed <<_ACEOF
16420 SHELL!$SHELL$ac_delim
16421 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16422 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16423 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16424 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16425 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16426 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16427 exec_prefix!$exec_prefix$ac_delim
16428 prefix!$prefix$ac_delim
16429 program_transform_name!$program_transform_name$ac_delim
16430 bindir!$bindir$ac_delim
16431 sbindir!$sbindir$ac_delim
16432 libexecdir!$libexecdir$ac_delim
16433 datarootdir!$datarootdir$ac_delim
16434 datadir!$datadir$ac_delim
16435 sysconfdir!$sysconfdir$ac_delim
16436 sharedstatedir!$sharedstatedir$ac_delim
16437 localstatedir!$localstatedir$ac_delim
16438 includedir!$includedir$ac_delim
16439 oldincludedir!$oldincludedir$ac_delim
16440 docdir!$docdir$ac_delim
16441 infodir!$infodir$ac_delim
16442 htmldir!$htmldir$ac_delim
16443 dvidir!$dvidir$ac_delim
16444 pdfdir!$pdfdir$ac_delim
16445 psdir!$psdir$ac_delim
16446 libdir!$libdir$ac_delim
16447 localedir!$localedir$ac_delim
16448 mandir!$mandir$ac_delim
16449 DEFS!$DEFS$ac_delim
16450 ECHO_C!$ECHO_C$ac_delim
16451 ECHO_N!$ECHO_N$ac_delim
16452 ECHO_T!$ECHO_T$ac_delim
16453 LIBS!$LIBS$ac_delim
16454 build_alias!$build_alias$ac_delim
16455 host_alias!$host_alias$ac_delim
16456 target_alias!$target_alias$ac_delim
16457 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16458 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16459 INSTALL_DATA!$INSTALL_DATA$ac_delim
16460 CYGPATH_W!$CYGPATH_W$ac_delim
16461 PACKAGE!$PACKAGE$ac_delim
16462 VERSION!$VERSION$ac_delim
16463 ACLOCAL!$ACLOCAL$ac_delim
16464 AUTOCONF!$AUTOCONF$ac_delim
16465 AUTOMAKE!$AUTOMAKE$ac_delim
16466 AUTOHEADER!$AUTOHEADER$ac_delim
16467 MAKEINFO!$MAKEINFO$ac_delim
16468 install_sh!$install_sh$ac_delim
16469 STRIP!$STRIP$ac_delim
16470 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16471 mkdir_p!$mkdir_p$ac_delim
16473 SET_MAKE!$SET_MAKE$ac_delim
16474 am__leading_dot!$am__leading_dot$ac_delim
16475 AMTAR!$AMTAR$ac_delim
16476 am__tar!$am__tar$ac_delim
16477 am__untar!$am__untar$ac_delim
16478 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16479 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16480 MAINT!$MAINT$ac_delim
16481 build!$build$ac_delim
16482 build_cpu!$build_cpu$ac_delim
16483 build_vendor!$build_vendor$ac_delim
16484 build_os!$build_os$ac_delim
16485 host!$host$ac_delim
16486 host_cpu!$host_cpu$ac_delim
16487 host_vendor!$host_vendor$ac_delim
16488 host_os!$host_os$ac_delim
16490 CFLAGS!$CFLAGS$ac_delim
16491 LDFLAGS!$LDFLAGS$ac_delim
16492 CPPFLAGS!$CPPFLAGS$ac_delim
16493 ac_ct_CC!$ac_ct_CC$ac_delim
16494 EXEEXT!$EXEEXT$ac_delim
16495 OBJEXT!$OBJEXT$ac_delim
16496 DEPDIR!$DEPDIR$ac_delim
16497 am__include!$am__include$ac_delim
16498 am__quote!$am__quote$ac_delim
16499 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16500 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16501 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16502 CCDEPMODE!$CCDEPMODE$ac_delim
16503 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16504 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16507 CFLAGS!$CFLAGS$ac_delim
16508 CPPFLAGS!$CPPFLAGS$ac_delim
16509 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
16510 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
16511 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
16512 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
16513 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
16515 CPPFLAGS!$CPPFLAGS$ac_delim
16516 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
16519 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16521 elif $ac_last_try; then
16522 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16523 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16524 { (exit 1); exit 1; }; }
16526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16530 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16531 if test -n "$ac_eof"; then
16532 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16533 ac_eof=`expr $ac_eof + 1`
16536 cat >>$CONFIG_STATUS <<_ACEOF
16537 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16538 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16541 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16542 s/^/s,@/; s/!/@,|#_!!_#|/
16545 s/'"$ac_delim"'$/,g/; t
16547 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16548 ' >>$CONFIG_STATUS <conf$$subs.sed
16549 rm -f conf$$subs.sed
16550 cat >>$CONFIG_STATUS <<_ACEOF
16556 for ac_last_try in false false false false false :; do
16557 cat >conf$$subs.sed <<_ACEOF
16558 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
16559 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
16560 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
16561 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
16562 OBJC!$OBJC$ac_delim
16563 OBJCFLAGS!$OBJCFLAGS$ac_delim
16564 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
16566 CCAS!$CCAS$ac_delim
16567 CCASFLAGS!$CCASFLAGS$ac_delim
16568 RANLIB!$RANLIB$ac_delim
16569 GREP!$GREP$ac_delim
16570 EGREP!$EGREP$ac_delim
16571 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
16572 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
16573 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
16574 POD2MAN!$POD2MAN$ac_delim
16575 POD2HTML!$POD2HTML$ac_delim
16576 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
16577 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
16578 SOEXT!$SOEXT$ac_delim
16579 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
16580 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
16581 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
16582 BUILD_PLUGINS_TRUE!$BUILD_PLUGINS_TRUE$ac_delim
16583 BUILD_PLUGINS_FALSE!$BUILD_PLUGINS_FALSE$ac_delim
16584 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
16585 PKG_CONFIG!$PKG_CONFIG$ac_delim
16586 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
16587 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
16588 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
16589 GLIB_LIBS!$GLIB_LIBS$ac_delim
16590 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
16591 GTK_LIBS!$GTK_LIBS$ac_delim
16592 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
16593 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
16594 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
16595 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
16596 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
16597 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
16598 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
16599 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
16600 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
16601 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
16602 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
16603 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
16604 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
16605 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
16606 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
16607 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
16608 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
16609 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
16610 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
16611 SDL_LIBS!$SDL_LIBS$ac_delim
16612 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
16613 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
16614 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
16615 PULSE_LIBS!$PULSE_LIBS$ac_delim
16616 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
16617 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
16618 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
16619 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
16620 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
16621 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
16622 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
16623 ALSA_LIBS!$ALSA_LIBS$ac_delim
16624 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
16625 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
16626 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
16627 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
16628 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
16629 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
16630 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
16631 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
16632 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
16633 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
16634 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
16635 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
16636 SHCC!$SHCC$ac_delim
16637 SHLD!$SHLD$ac_delim
16638 SHOBJCOPY!$SHOBJCOPY$ac_delim
16639 ARMCC!$ARMCC$ac_delim
16640 ARMLD!$ARMLD$ac_delim
16641 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
16642 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
16643 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
16644 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
16645 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
16646 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
16647 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16648 USE_NLS!$USE_NLS$ac_delim
16649 MSGFMT!$MSGFMT$ac_delim
16650 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
16651 GMSGFMT!$GMSGFMT$ac_delim
16652 XGETTEXT!$XGETTEXT$ac_delim
16653 CATALOGS!$CATALOGS$ac_delim
16654 CATOBJEXT!$CATOBJEXT$ac_delim
16657 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16659 elif $ac_last_try; then
16660 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16661 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16662 { (exit 1); exit 1; }; }
16664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16668 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16669 if test -n "$ac_eof"; then
16670 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16671 ac_eof=`expr $ac_eof + 1`
16674 cat >>$CONFIG_STATUS <<_ACEOF
16675 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16679 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16680 s/^/s,@/; s/!/@,|#_!!_#|/
16683 s/'"$ac_delim"'$/,g/; t
16685 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16686 ' >>$CONFIG_STATUS <conf$$subs.sed
16687 rm -f conf$$subs.sed
16688 cat >>$CONFIG_STATUS <<_ACEOF
16694 for ac_last_try in false false false false false :; do
16695 cat >conf$$subs.sed <<_ACEOF
16696 DATADIRNAME!$DATADIRNAME$ac_delim
16697 GMOFILES!$GMOFILES$ac_delim
16698 INSTOBJEXT!$INSTOBJEXT$ac_delim
16699 INTLLIBS!$INTLLIBS$ac_delim
16700 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
16701 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
16702 POFILES!$POFILES$ac_delim
16703 POSUB!$POSUB$ac_delim
16704 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16705 LIBOBJS!$LIBOBJS$ac_delim
16706 LTLIBOBJS!$LTLIBOBJS$ac_delim
16709 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
16711 elif $ac_last_try; then
16712 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16713 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16714 { (exit 1); exit 1; }; }
16716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16720 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16721 if test -n "$ac_eof"; then
16722 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16723 ac_eof=`expr $ac_eof + 1`
16726 cat >>$CONFIG_STATUS <<_ACEOF
16727 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
16728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16731 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16732 s/^/s,@/; s/!/@,|#_!!_#|/
16735 s/'"$ac_delim"'$/,g/; t
16737 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16738 ' >>$CONFIG_STATUS <conf$$subs.sed
16739 rm -f conf$$subs.sed
16740 cat >>$CONFIG_STATUS <<_ACEOF
16747 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16748 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16749 # trailing colons and then remove the whole line if VPATH becomes empty
16750 # (actually we leave an empty line to preserve line numbers).
16751 if test "x$srcdir" = x.; then
16752 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16753 s/:*\$(srcdir):*/:/
16754 s/:*\${srcdir}:*/:/
16756 s/^\([^=]*=[ ]*\):*/\1/
16762 cat >>$CONFIG_STATUS <<\_ACEOF
16763 fi # test -n "$CONFIG_FILES"
16766 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
16769 :[FHLC]) ac_mode=$ac_tag; continue;;
16771 case $ac_mode$ac_tag in
16773 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16774 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16775 { (exit 1); exit 1; }; };;
16776 :[FH]-) ac_tag=-:-;;
16777 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16794 -) ac_f="$tmp/stdin";;
16795 *) # Look for the file first in the build tree, then in the source tree
16796 # (if the path is not absolute). The absolute path cannot be DOS-style,
16797 # because $ac_f cannot contain `:'.
16801 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16803 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16804 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16805 { (exit 1); exit 1; }; };;
16807 ac_file_inputs="$ac_file_inputs $ac_f"
16810 # Let's still pretend it is `configure' which instantiates (i.e., don't
16811 # use $as_me), people would be surprised to read:
16812 # /* config.h. Generated by config.status. */
16813 configure_input="Generated from "`IFS=:
16814 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16815 if test x"$ac_file" != x-; then
16816 configure_input="$ac_file. $configure_input"
16817 { echo "$as_me:$LINENO: creating $ac_file" >&5
16818 echo "$as_me: creating $ac_file" >&6;}
16822 *:-:* | *:-) cat >"$tmp/stdin";;
16827 ac_dir=`$as_dirname -- "$ac_file" ||
16828 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16829 X"$ac_file" : 'X\(//\)[^/]' \| \
16830 X"$ac_file" : 'X\(//\)$' \| \
16831 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16837 /^X\(\/\/\)[^/].*/{
16852 -*) as_dir=./$as_dir;;
16854 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16858 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16859 *) as_qdir=$as_dir;;
16861 as_dirs="'$as_qdir' $as_dirs"
16862 as_dir=`$as_dirname -- "$as_dir" ||
16863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16864 X"$as_dir" : 'X\(//\)[^/]' \| \
16865 X"$as_dir" : 'X\(//\)$' \| \
16866 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16872 /^X\(\/\/\)[^/].*/{
16885 test -d "$as_dir" && break
16887 test -z "$as_dirs" || eval "mkdir $as_dirs"
16888 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16889 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16890 { (exit 1); exit 1; }; }; }
16894 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16897 # A ".." for each directory in $ac_dir_suffix.
16898 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16899 case $ac_top_builddir_sub in
16900 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16901 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16904 ac_abs_top_builddir=$ac_pwd
16905 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16906 # for backward compatibility:
16907 ac_top_builddir=$ac_top_build_prefix
16910 .) # We are building in place.
16912 ac_top_srcdir=$ac_top_builddir_sub
16913 ac_abs_top_srcdir=$ac_pwd ;;
16914 [\\/]* | ?:[\\/]* ) # Absolute name.
16915 ac_srcdir=$srcdir$ac_dir_suffix;
16916 ac_top_srcdir=$srcdir
16917 ac_abs_top_srcdir=$srcdir ;;
16918 *) # Relative name.
16919 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16920 ac_top_srcdir=$ac_top_build_prefix$srcdir
16921 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16923 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16933 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16934 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16938 cat >>$CONFIG_STATUS <<\_ACEOF
16939 # If the template does not know about datarootdir, expand it.
16940 # FIXME: This hack should be removed a few years after 2.60.
16941 ac_datarootdir_hack=; ac_datarootdir_seen=
16943 case `sed -n '/datarootdir/ {
16952 ' $ac_file_inputs` in
16953 *datarootdir*) ac_datarootdir_seen=yes;;
16954 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16955 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16956 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16958 cat >>$CONFIG_STATUS <<_ACEOF
16959 ac_datarootdir_hack='
16960 s&@datadir@&$datadir&g
16961 s&@docdir@&$docdir&g
16962 s&@infodir@&$infodir&g
16963 s&@localedir@&$localedir&g
16964 s&@mandir@&$mandir&g
16965 s&\\\${datarootdir}&$datarootdir&g' ;;
16969 # Neutralize VPATH when `$srcdir' = `.'.
16970 # Shell code in configure.ac might set extrasub.
16971 # FIXME: do we really want to maintain this feature?
16972 cat >>$CONFIG_STATUS <<_ACEOF
16976 cat >>$CONFIG_STATUS <<\_ACEOF
16978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16979 s&@configure_input@&$configure_input&;t t
16980 s&@top_builddir@&$ac_top_builddir_sub&;t t
16981 s&@srcdir@&$ac_srcdir&;t t
16982 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16983 s&@top_srcdir@&$ac_top_srcdir&;t t
16984 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16985 s&@builddir@&$ac_builddir&;t t
16986 s&@abs_builddir@&$ac_abs_builddir&;t t
16987 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16988 s&@INSTALL@&$ac_INSTALL&;t t
16989 $ac_datarootdir_hack
16990 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
16992 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16993 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16994 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16995 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16996 which seems to be undefined. Please make sure it is defined." >&5
16997 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16998 which seems to be undefined. Please make sure it is defined." >&2;}
17002 -) cat "$tmp/out"; rm -f "$tmp/out";;
17003 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17012 # Transform confdefs.h into a sed script `conftest.defines', that
17013 # substitutes the proper values into config.h.in to produce config.h.
17014 rm -f conftest.defines conftest.tail
17015 # First, append a space to every undef/define line, to ease matching.
17016 echo 's/$/ /' >conftest.defines
17017 # Then, protect against being on the right side of a sed subst, or in
17018 # an unquoted here document, in config.status. If some macros were
17019 # called several times there might be several #defines for the same
17020 # symbol, which is useless. But do not sort them, since the last
17021 # AC_DEFINE must be honored.
17022 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17023 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17024 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17025 # PARAMS is the parameter list in the macro definition--in most cases, it's
17026 # just an empty string.
17027 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17028 ac_dB='\\)[ (].*,\\1define\\2'
17036 s/^[ ]*#[ ]*define[ ][ ]*//
17041 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17042 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17043 ' >>conftest.defines
17045 # Remove the space that was appended to ease matching.
17046 # Then replace #undef with comments. This is necessary, for
17047 # example, in the case of _POSIX_SOURCE, which is predefined and required
17048 # on some systems where configure will not decide to define it.
17049 # (The regexp can be short, since the line contains either #define or #undef.)
17051 s,^[ #]*u.*,/* & */,' >>conftest.defines
17053 # Break up conftest.defines:
17054 ac_max_sed_lines=50
17056 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17057 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17058 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17060 ac_in='$ac_file_inputs'
17061 ac_out='"$tmp/out1"'
17062 ac_nxt='"$tmp/out2"'
17066 # Write a here document:
17067 cat >>$CONFIG_STATUS <<_ACEOF
17068 # First, check the format of the line:
17069 cat >"\$tmp/defines.sed" <<\\CEOF
17070 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17071 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17075 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17077 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17078 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17079 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17080 grep . conftest.tail >/dev/null || break
17081 rm -f conftest.defines
17082 mv conftest.tail conftest.defines
17084 rm -f conftest.defines conftest.tail
17086 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17087 cat >>$CONFIG_STATUS <<\_ACEOF
17088 if test x"$ac_file" != x-; then
17089 echo "/* $configure_input */" >"$tmp/config.h"
17090 cat "$ac_result" >>"$tmp/config.h"
17091 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17092 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17093 echo "$as_me: $ac_file is unchanged" >&6;}
17096 mv "$tmp/config.h" $ac_file
17099 echo "/* $configure_input */"
17103 # Compute $ac_file's index in $config_headers.
17105 for _am_header in $config_headers :; do
17106 case $_am_header in
17107 $ac_file | $ac_file:* )
17110 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17113 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
17114 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17115 X$ac_file : 'X\(//\)[^/]' \| \
17116 X$ac_file : 'X\(//\)$' \| \
17117 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
17119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17123 /^X\(\/\/\)[^/].*/{
17135 s/.*/./; q'`/stamp-h$_am_stamp_count
17138 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17139 echo "$as_me: executing $ac_file commands" >&6;}
17144 case $ac_file$ac_mode in
17145 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17146 # Strip MF so we end up with the name of the file.
17147 mf=`echo "$mf" | sed -e 's/:.*$//'`
17148 # Check whether this is an Automake generated Makefile or not.
17149 # We used to match only the files named `Makefile.in', but
17150 # some people rename them; so instead we look at the file content.
17151 # Grep'ing the first line is not enough: some people post-process
17152 # each Makefile.in and add a new line on top of each file to say so.
17153 # So let's grep whole file.
17154 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17155 dirpart=`$as_dirname -- "$mf" ||
17156 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17157 X"$mf" : 'X\(//\)[^/]' \| \
17158 X"$mf" : 'X\(//\)$' \| \
17159 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17165 /^X\(\/\/\)[^/].*/{
17181 # Extract the definition of DEPDIR, am__include, and am__quote
17182 # from the Makefile without running `make'.
17183 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17184 test -z "$DEPDIR" && continue
17185 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17186 test -z "am__include" && continue
17187 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17188 # When using ansi2knr, U may be empty or an underscore; expand it
17189 U=`sed -n 's/^U = //p' < "$mf"`
17190 # Find all dependency output files, they are included files with
17191 # $(DEPDIR) in their names. We invoke sed twice because it is the
17192 # simplest approach to changing $(DEPDIR) to its actual value in the
17194 for file in `sed -n "
17195 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17196 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17197 # Make sure the directory exists.
17198 test -f "$dirpart/$file" && continue
17199 fdir=`$as_dirname -- "$file" ||
17200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17201 X"$file" : 'X\(//\)[^/]' \| \
17202 X"$file" : 'X\(//\)$' \| \
17203 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17209 /^X\(\/\/\)[^/].*/{
17222 { as_dir=$dirpart/$fdir
17224 -*) as_dir=./$as_dir;;
17226 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17230 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17231 *) as_qdir=$as_dir;;
17233 as_dirs="'$as_qdir' $as_dirs"
17234 as_dir=`$as_dirname -- "$as_dir" ||
17235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17236 X"$as_dir" : 'X\(//\)[^/]' \| \
17237 X"$as_dir" : 'X\(//\)$' \| \
17238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17244 /^X\(\/\/\)[^/].*/{
17257 test -d "$as_dir" && break
17259 test -z "$as_dirs" || eval "mkdir $as_dirs"
17260 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17261 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17262 { (exit 1); exit 1; }; }; }
17263 # echo "creating $dirpart/$file"
17264 echo '# dummy' > "$dirpart/$file"
17268 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17269 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17276 { (exit 0); exit 0; }
17278 chmod +x $CONFIG_STATUS
17279 ac_clean_files=$ac_clean_files_save
17282 # configure is writing to config.log, and then calls config.status.
17283 # config.status does its own redirection, appending to config.log.
17284 # Unfortunately, on DOS this fails, as config.log is still kept open
17285 # by configure, so config.status won't be able to write to it; its
17286 # output is simply discarded. So we exec the FD to /dev/null,
17287 # effectively closing config.log, so it can be properly (re)opened and
17288 # appended to by config.status. When coming back to configure, we
17289 # need to make the FD available again.
17290 if test "$no_create" != yes; then
17292 ac_config_status_args=
17293 test "$silent" = yes &&
17294 ac_config_status_args="$ac_config_status_args --quiet"
17296 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17298 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17299 # would make configure fail if this is the last instruction.
17300 $ac_cs_success || { (exit 1); exit 1; }
17305 -*) as_dir=./$as_dir;;
17307 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17311 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17312 *) as_qdir=$as_dir;;
17314 as_dirs="'$as_qdir' $as_dirs"
17315 as_dir=`$as_dirname -- "$as_dir" ||
17316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17317 X"$as_dir" : 'X\(//\)[^/]' \| \
17318 X"$as_dir" : 'X\(//\)$' \| \
17319 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17325 /^X\(\/\/\)[^/].*/{
17338 test -d "$as_dir" && break
17340 test -z "$as_dirs" || eval "mkdir $as_dirs"
17341 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17342 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17343 { (exit 1); exit 1; }; }; }
17347 echo "Configuration complete"
17350 if test "x$HAVE_GTK" = x; then
17351 if test "x$HAVE_COCOA" = x; then
17352 echo " User interface: none"
17354 echo " User interface: Cocoa"
17357 echo " User interface: GTK"
17360 if test "x$SH4_TRANSLATOR" = "x"; then
17361 echo " SH4 translator: None (emulation core only)"
17363 echo " SH4 translator: $SH4_TRANSLATOR"
17366 if test "x$VIDEO_DRIVERS" = "x"; then
17367 echo " Video drivers: none (no supported GL found)"
17369 echo " Video drivers: $VIDEO_DRIVERS"
17372 if test "x$AUDIO_DRIVERS" = "x"; then
17373 echo " Audio drivers: none (no supported output devices found)"
17375 echo " Audio drivers: $AUDIO_DRIVERS"
17378 if test "x$INPUT_DRIVERS" = "x"; then
17379 echo " Input drivers: none (no supported input devices found)"
17381 echo " Input drivers: $INPUT_DRIVERS"
17384 if test "x$CDROM_DRIVER" = "x"; then
17385 echo " CD-ROM driver: none (no supported cd-rom devices found)"
17387 echo " CD-ROM driver: $CDROM_DRIVER"
.