2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="configure.in"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
647 program_transform_name
688 INSTALL_STRIP_PROGRAM
697 MAINTAINER_MODE_FALSE
734 am__fastdepOBJC_FALSE
813 enable_option_checking
814 enable_maintainer_mode
815 enable_dependency_tracking
829 ac_precious_vars='build_alias
859 # Initialize some variables set by options.
861 ac_init_version=false
862 ac_unrecognized_opts=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
873 program_transform_name=s,x,x,
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 includedir='${prefix}/include'
896 oldincludedir='/usr/include'
897 docdir='${datarootdir}/doc/${PACKAGE}'
898 infodir='${datarootdir}/info'
903 libdir='${exec_prefix}/lib'
904 localedir='${datarootdir}/locale'
905 mandir='${datarootdir}/man'
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
919 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 # Accept the important Cygnus configure options, so we can diagnose typos.
925 case $ac_dashdash$ac_option in
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
947 cache_file=config.cache ;;
949 -datadir | --datadir | --datadi | --datad)
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
966 { (exit 1); exit 1; }; }
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
976 eval enable_$ac_useropt=no ;;
978 -docdir | --docdir | --docdi | --doc | --do)
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
993 { (exit 1); exit 1; }; }
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 htmldir=$ac_optarg ;;
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1048 -libdir | --libdir | --libdi | --libd)
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1139 -psdir | --psdir | --psdi | --psd | --ps)
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 sbindir=$ac_optarg ;;
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 sharedstatedir=$ac_optarg ;;
1165 -site | --site | --sit)
1167 -site=* | --site=* | --sit=*)
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1198 { (exit 1); exit 1; }; }
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1208 eval with_$ac_useropt=\$ac_optarg ;;
1210 -without-* | --without-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1215 { (exit 1); exit 1; }; }
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1225 eval with_$ac_useropt=no ;;
1228 # Obsolete; use --with-x.
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1245 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1246 Try \`$0 --help' for more information." >&2
1247 { (exit 1); exit 1; }; }
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1254 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1255 { (exit 1); exit 1; }; }
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1273 { (exit 1); exit 1; }; }
1276 if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1279 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1280 { (exit 1); exit 1; }; } ;;
1281 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1298 # Be sure to have absolute directory names.
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1304 { (exit 1); exit 1; }; }
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1312 target=$target_alias
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1319 If a cross compiler is detected then cross compile mode will be used." >&2
1320 elif test "x$build_alias" != "x$host_alias"; then
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328 test "$silent" = yes && exec 6>/dev/null
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1335 { (exit 1); exit 1; }; }
1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1338 { (exit 1); exit 1; }; }
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 $as_echo X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1373 ac_srcdir_defaulted=no
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1378 { (exit 1); exit 1; }; }
1380 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1383 { (exit 1); exit 1; }; }
1385 # When building in place, set srcdir=.
1386 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 # Remove unnecessary trailing slashes from srcdir.
1390 # Double slashes in file names in object file debugging info
1391 # mess up M-x gdb in Emacs.
1393 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 for ac_var in $ac_precious_vars; do
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_${ac_var}_value=\$${ac_var}
1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 # Report the --help message.
1405 if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1409 \`configure' configures this package to adapt to many kinds of systems.
1411 Usage: $0 [OPTION]... [VAR=VALUE]...
1413 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414 VAR=VALUE. See below for descriptions of some of the useful variables.
1416 Defaults for the options are specified in brackets.
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429 Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
1431 [$ac_default_prefix]
1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 By default, \`make install' will install all the files in
1436 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438 for instance \`--prefix=\$HOME'.
1440 For better control, use the options below.
1442 Fine tuning of the installation directories:
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --libdir=DIR object code libraries [EPREFIX/lib]
1450 --includedir=DIR C header files [PREFIX/include]
1451 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1454 --infodir=DIR info documentation [DATAROOTDIR/info]
1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1456 --mandir=DIR man documentation [DATAROOTDIR/man]
1457 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1458 --htmldir=DIR html documentation [DOCDIR]
1459 --dvidir=DIR dvi documentation [DOCDIR]
1460 --pdfdir=DIR pdf documentation [DOCDIR]
1461 --psdir=DIR ps documentation [DOCDIR]
1467 --program-prefix=PREFIX prepend PREFIX to installed program names
1468 --program-suffix=SUFFIX append SUFFIX to installed program names
1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 if test -n "$ac_init_help"; then
1482 --disable-option-checking ignore unrecognized --enable/--with options
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --enable-maintainer-mode enable make rules and dependencies not useful
1486 (and sometimes confusing) to the casual installer
1487 --disable-dependency-tracking speeds up one-time build
1488 --enable-dependency-tracking do not reject slow dependency extractors
1489 --enable-strict-warn Enable strict compilation warnings
1490 --disable-translator Disable the SH4 translator (Enabled by default)
1491 --disable-optimized Disable compile-time optimizations (Enabled by
1493 --enable-profiled Enable profiling build
1494 --enable-trace Enable generation of IO traces (warning: hurts
1496 --enable-watch Enable watchpoints in the debugger (warning: hurts
1498 --enable-sh4stats Enable statistics on executed sh4 instructions
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-osmesa Build with the osmesa GL library (software
1505 --with-gtk Build with the GTK UI. Default on X11 systems
1506 --with-esd Build with support for the ESounD audio system
1507 --with-pulse Build with support for the PulseAudio audio system
1508 --with-sdl Build with support for SDL audio
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 OBJC Objective C compiler command
1519 OBJCFLAGS Objective C compiler flags
1520 CCAS assembler compiler command (defaults to CC)
1521 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1523 PKG_CONFIG path to pkg-config utility
1525 C compiler flags for LIBPNG, overriding pkg-config
1526 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1527 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1528 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1529 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1530 GTK_LIBS linker flags for GTK, overriding pkg-config
1531 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1532 SDL_LIBS linker flags for SDL, overriding pkg-config
1534 C compiler flags for PULSE, overriding pkg-config
1535 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1537 C compiler flags for ESOUND, overriding pkg-config
1538 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1539 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1540 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1542 Use these variables to override the choices made by `configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1574 .) # We are building in place.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1608 generated by GNU Autoconf 2.62
1610 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1611 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1617 cat >config.log <<_ACEOF
1618 This file contains any messages produced by compilers while
1619 running configure, to aid debugging if configure makes a mistake.
1621 It was created by $as_me, which was
1622 generated by GNU Autoconf 2.62. Invocation command line was
1634 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1635 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1636 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1637 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1638 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1640 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1641 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1643 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1644 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1645 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1646 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1647 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1648 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1649 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 test -z "$as_dir" && as_dir=.
1658 $as_echo "PATH: $as_dir"
1674 # Keep a trace of the command line.
1675 # Strip out --no-create and --no-recursion so they do not pile up.
1676 # Strip out --silent because we don't want to record it for future runs.
1677 # Also quote any args containing shell meta-characters.
1678 # Make two passes to allow for proper duplicate-argument suppression.
1682 ac_must_keep_next=false
1688 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1690 | -silent | --silent | --silen | --sile | --sil)
1693 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1696 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1698 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1699 if test $ac_must_keep_next = true; then
1700 ac_must_keep_next=false # Got value, back to normal.
1703 *=* | --config-cache | -C | -disable-* | --disable-* \
1704 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1705 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1706 | -with-* | --with-* | -without-* | --without-* | --x)
1707 case "$ac_configure_args0 " in
1708 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1711 -* ) ac_must_keep_next=true ;;
1714 ac_configure_args="$ac_configure_args '$ac_arg'"
1719 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1720 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1722 # When interrupted or exit'd, cleanup temporary files, and complete
1723 # config.log. We remove comments because anyway the quotes in there
1724 # would cause problems or look ugly.
1725 # WARNING: Use '\'' to represent an apostrophe within the trap.
1726 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1727 trap 'exit_status=$?
1728 # Save into config.log some information that might help in debugging.
1733 ## ---------------- ##
1734 ## Cache variables. ##
1735 ## ---------------- ##
1738 # The following way of writing the cache mishandles newlines in values,
1740 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1741 eval ac_val=\$$ac_var
1745 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1746 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1749 _ | IFS | as_nl) ;; #(
1750 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1751 *) $as_unset $ac_var ;;
1756 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1757 *${as_nl}ac_space=\ *)
1759 "s/'\''/'\''\\\\'\'''\''/g;
1760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1763 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1771 ## ----------------- ##
1772 ## Output variables. ##
1773 ## ----------------- ##
1776 for ac_var in $ac_subst_vars
1778 eval ac_val=\$$ac_var
1780 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782 $as_echo "$ac_var='\''$ac_val'\''"
1786 if test -n "$ac_subst_files"; then
1788 ## ------------------- ##
1789 ## File substitutions. ##
1790 ## ------------------- ##
1793 for ac_var in $ac_subst_files
1795 eval ac_val=\$$ac_var
1797 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1799 $as_echo "$ac_var='\''$ac_val'\''"
1804 if test -s confdefs.h; then
1814 test "$ac_signal" != 0 &&
1815 $as_echo "$as_me: caught signal $ac_signal"
1816 $as_echo "$as_me: exit $exit_status"
1818 rm -f core *.core core.conftest.* &&
1819 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1822 for ac_signal in 1 2 13 15; do
1823 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1827 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1828 rm -f -r conftest* confdefs.h
1830 # Predefined preprocessor variables.
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_NAME "$PACKAGE_NAME"
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_STRING "$PACKAGE_STRING"
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1857 # Let the site file select an alternate cache file if it wants to.
1858 # Prefer an explicitly selected file to automatically selected ones.
1861 if test -n "$CONFIG_SITE"; then
1862 ac_site_file1=$CONFIG_SITE
1863 elif test "x$prefix" != xNONE; then
1864 ac_site_file1=$prefix/share/config.site
1865 ac_site_file2=$prefix/etc/config.site
1867 ac_site_file1=$ac_default_prefix/share/config.site
1868 ac_site_file2=$ac_default_prefix/etc/config.site
1870 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1872 test "x$ac_site_file" = xNONE && continue
1873 if test -r "$ac_site_file"; then
1874 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1875 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1876 sed 's/^/| /' "$ac_site_file" >&5
1881 if test -r "$cache_file"; then
1882 # Some versions of bash will fail to source /dev/null (special
1883 # files actually), so we avoid doing that.
1884 if test -f "$cache_file"; then
1885 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1886 $as_echo "$as_me: loading cache $cache_file" >&6;}
1888 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1889 *) . "./$cache_file";;
1893 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1894 $as_echo "$as_me: creating cache $cache_file" >&6;}
1898 # Check that the precious variables saved in the cache have kept the same
1900 ac_cache_corrupted=false
1901 for ac_var in $ac_precious_vars; do
1902 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1903 eval ac_new_set=\$ac_env_${ac_var}_set
1904 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1905 eval ac_new_val=\$ac_env_${ac_var}_value
1906 case $ac_old_set,$ac_new_set in
1908 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1909 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1910 ac_cache_corrupted=: ;;
1912 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1913 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1914 ac_cache_corrupted=: ;;
1917 if test "x$ac_old_val" != "x$ac_new_val"; then
1918 # differences in whitespace do not lead to failure.
1919 ac_old_val_w=`echo x $ac_old_val`
1920 ac_new_val_w=`echo x $ac_new_val`
1921 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1922 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1923 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1924 ac_cache_corrupted=:
1926 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1927 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1928 eval $ac_var=\$ac_old_val
1930 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1931 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1932 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1933 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1936 # Pass precious variables to config.status.
1937 if test "$ac_new_set" = set; then
1939 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 *) ac_arg=$ac_var=$ac_new_val ;;
1942 case " $ac_configure_args " in
1943 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1944 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1948 if $ac_cache_corrupted; then
1949 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1950 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1951 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1952 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1953 { (exit 1); exit 1; }; }
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 am__api_version="1.9"
1981 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1982 if test -f "$ac_dir/install-sh"; then
1984 ac_install_sh="$ac_aux_dir/install-sh -c"
1986 elif test -f "$ac_dir/install.sh"; then
1988 ac_install_sh="$ac_aux_dir/install.sh -c"
1990 elif test -f "$ac_dir/shtool"; then
1992 ac_install_sh="$ac_aux_dir/shtool install -c"
1996 if test -z "$ac_aux_dir"; then
1997 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1998 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1999 { (exit 1); exit 1; }; }
2002 # These three variables are undocumented and unsupported,
2003 # and are intended to be withdrawn in a future Autoconf release.
2004 # They can cause serious problems if a builder's source tree is in a directory
2005 # whose full name contains unusual characters.
2006 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2007 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2008 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2011 # Find a good install program. We prefer a C program (faster),
2012 # so one script is as good as another. But avoid the broken or
2013 # incompatible versions:
2014 # SysV /etc/install, /usr/sbin/install
2015 # SunOS /usr/etc/install
2016 # IRIX /sbin/install
2018 # AmigaOS /C/install, which installs bootblocks on floppy discs
2019 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2020 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2022 # OS/2's system install, which has a completely different semantic
2023 # ./install, which can be erroneously created by make from ./install.sh.
2024 # Reject install programs that cannot install multiple files.
2025 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2026 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2027 if test -z "$INSTALL"; then
2028 if test "${ac_cv_path_install+set}" = set; then
2029 $as_echo_n "(cached) " >&6
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 test -z "$as_dir" && as_dir=.
2036 # Account for people who put trailing slashes in PATH elements.
2038 ./ | .// | /cC/* | \
2039 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2040 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2043 # OSF1 and SCO ODT 3.0 have their own names for install.
2044 # Don't use installbsd from OSF since it installs stuff as root
2046 for ac_prog in ginstall scoinst install; do
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2049 if test $ac_prog = install &&
2050 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2051 # AIX install. It has an incompatible calling convention.
2053 elif test $ac_prog = install &&
2054 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2055 # program-specific install script used by HP pwplus--don't use.
2058 rm -rf conftest.one conftest.two conftest.dir
2059 echo one > conftest.one
2060 echo two > conftest.two
2062 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2063 test -s conftest.one && test -s conftest.two &&
2064 test -s conftest.dir/conftest.one &&
2065 test -s conftest.dir/conftest.two
2067 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2080 rm -rf conftest.one conftest.two conftest.dir
2083 if test "${ac_cv_path_install+set}" = set; then
2084 INSTALL=$ac_cv_path_install
2086 # As a last resort, use the slow shell script. Don't cache a
2087 # value for INSTALL within a source directory, because that will
2088 # break other packages using the cache if that directory is
2089 # removed, or if the value is a relative name.
2090 INSTALL=$ac_install_sh
2093 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2094 $as_echo "$INSTALL" >&6; }
2096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2097 # It thinks the first close brace ends the variable substitution.
2098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2104 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2105 $as_echo_n "checking whether build environment is sane... " >&6; }
2108 echo timestamp > conftest.file
2109 # Do `set' in a subshell so we don't clobber the current shell's
2110 # arguments. Must try -L first in case configure is actually a
2111 # symlink; some systems play weird games with the mod time of symlinks
2112 # (eg FreeBSD returns the mod time of the symlink's containing
2115 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2116 if test "$*" = "X"; then
2118 set X `ls -t $srcdir/configure conftest.file`
2121 if test "$*" != "X $srcdir/configure conftest.file" \
2122 && test "$*" != "X conftest.file $srcdir/configure"; then
2124 # If neither matched, then we have a broken ls. This can happen
2125 # if, for instance, CONFIG_SHELL is bash and it inherits a
2126 # broken ls alias from the environment. This has actually
2127 # happened. Such a system could not be considered "sane".
2128 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2129 alias in your environment" >&5
2130 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2131 alias in your environment" >&2;}
2132 { (exit 1); exit 1; }; }
2135 test "$2" = conftest.file
2141 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2142 Check your system clock" >&5
2143 $as_echo "$as_me: error: newly created file is older than distributed files!
2144 Check your system clock" >&2;}
2145 { (exit 1); exit 1; }; }
2147 { $as_echo "$as_me:$LINENO: result: yes" >&5
2148 $as_echo "yes" >&6; }
2149 test "$program_prefix" != NONE &&
2150 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2151 # Use a double $ so make ignores it.
2152 test "$program_suffix" != NONE &&
2153 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2154 # Double any \ or $.
2155 # By default was `s,x,x', remove it if useless.
2156 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2157 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2159 # expand $ac_aux_dir to an absolute path
2160 am_aux_dir=`cd $ac_aux_dir && pwd`
2162 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2163 # Use eval to expand $SHELL
2164 if eval "$MISSING --run true"; then
2165 am_missing_run="$MISSING --run "
2168 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2169 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2172 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2173 # We used to keeping the `.' as first argument, in order to
2174 # allow $(mkdir_p) to be used without argument. As in
2175 # $(mkdir_p) $(somedir)
2176 # where $(somedir) is conditionally defined. However this is wrong
2178 # 1. if the package is installed by a user who cannot write `.'
2179 # make install will fail,
2180 # 2. the above comment should most certainly read
2181 # $(mkdir_p) $(DESTDIR)$(somedir)
2182 # so it does not work when $(somedir) is undefined and
2183 # $(DESTDIR) is not.
2184 # To support the latter case, we have to write
2185 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2186 # so the `.' trick is pointless.
2187 mkdir_p='mkdir -p --'
2189 # On NextStep and OpenStep, the `mkdir' command does not
2190 # recognize any option. It will interpret all options as
2191 # directories to create, and then abort because `.' already
2193 for d in ./-p ./--version;
2195 test -d $d && rmdir $d
2197 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2198 if test -f "$ac_aux_dir/mkinstalldirs"; then
2199 mkdir_p='$(mkinstalldirs)'
2201 mkdir_p='$(install_sh) -d'
2205 for ac_prog in gawk mawk nawk awk
2207 # Extract the first word of "$ac_prog", so it can be a program name with args.
2208 set dummy $ac_prog; ac_word=$2
2209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 $as_echo_n "checking for $ac_word... " >&6; }
2211 if test "${ac_cv_prog_AWK+set}" = set; then
2212 $as_echo_n "(cached) " >&6
2214 if test -n "$AWK"; then
2215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2224 ac_cv_prog_AWK="$ac_prog"
2225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 if test -n "$AWK"; then
2236 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2237 $as_echo "$AWK" >&6; }
2239 { $as_echo "$as_me:$LINENO: result: no" >&5
2240 $as_echo "no" >&6; }
2244 test -n "$AWK" && break
2247 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2248 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2250 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2251 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2252 $as_echo_n "(cached) " >&6
2254 cat >conftest.make <<\_ACEOF
2257 @echo '@@@%%%=$(MAKE)=@@@%%%'
2259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2262 eval ac_cv_prog_make_${ac_make}_set=yes;;
2264 eval ac_cv_prog_make_${ac_make}_set=no;;
2268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2269 { $as_echo "$as_me:$LINENO: result: yes" >&5
2270 $as_echo "yes" >&6; }
2273 { $as_echo "$as_me:$LINENO: result: no" >&5
2274 $as_echo "no" >&6; }
2275 SET_MAKE="MAKE=${MAKE-make}"
2278 rm -rf .tst 2>/dev/null
2279 mkdir .tst 2>/dev/null
2280 if test -d .tst; then
2285 rmdir .tst 2>/dev/null
2287 # test to see if srcdir already configured
2288 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2289 test -f $srcdir/config.status; then
2290 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2291 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2292 { (exit 1); exit 1; }; }
2295 # test whether we have cygpath
2296 if test -z "$CYGPATH_W"; then
2297 if (cygpath --version) >/dev/null 2>/dev/null; then
2298 CYGPATH_W='cygpath -w'
2305 # Define the identity of the package.
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE "$PACKAGE"
2315 cat >>confdefs.h <<_ACEOF
2316 #define VERSION "$VERSION"
2319 # Some tools Automake needs.
2321 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2324 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2327 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2330 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2333 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2335 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2337 # Installed binaries are usually stripped using `strip' when the user
2338 # run `make install-strip'. However `strip' might not be the right
2339 # tool to use in cross-compilation environments, therefore Automake
2340 # will honor the `STRIP' environment variable to overrule this program.
2341 if test "$cross_compiling" != no; then
2342 if test -n "$ac_tool_prefix"; then
2343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2344 set dummy ${ac_tool_prefix}strip; ac_word=$2
2345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 $as_echo_n "checking for $ac_word... " >&6; }
2347 if test "${ac_cv_prog_STRIP+set}" = set; then
2348 $as_echo_n "(cached) " >&6
2350 if test -n "$STRIP"; then
2351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 STRIP=$ac_cv_prog_STRIP
2371 if test -n "$STRIP"; then
2372 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2373 $as_echo "$STRIP" >&6; }
2375 { $as_echo "$as_me:$LINENO: result: no" >&5
2376 $as_echo "no" >&6; }
2381 if test -z "$ac_cv_prog_STRIP"; then
2383 # Extract the first word of "strip", so it can be a program name with args.
2384 set dummy strip; ac_word=$2
2385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 $as_echo_n "checking for $ac_word... " >&6; }
2387 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2388 $as_echo_n "(cached) " >&6
2390 if test -n "$ac_ct_STRIP"; then
2391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400 ac_cv_prog_ac_ct_STRIP="strip"
2401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2411 if test -n "$ac_ct_STRIP"; then
2412 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2413 $as_echo "$ac_ct_STRIP" >&6; }
2415 { $as_echo "$as_me:$LINENO: result: no" >&5
2416 $as_echo "no" >&6; }
2419 if test "x$ac_ct_STRIP" = x; then
2422 case $cross_compiling:$ac_tool_warned in
2424 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2425 whose name does not start with the host triplet. If you think this
2426 configuration is useful to you, please write to autoconf@gnu.org." >&5
2427 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet. If you think this
2429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2430 ac_tool_warned=yes ;;
2435 STRIP="$ac_cv_prog_STRIP"
2439 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2441 # We need awk for the "check" target. The system "awk" is bad on
2443 # Always define AMTAR for backward compatibility.
2445 AMTAR=${AMTAR-"${am_missing_run}tar"}
2447 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2453 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2454 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2455 # Check whether --enable-maintainer-mode was given.
2456 if test "${enable_maintainer_mode+set}" = set; then
2457 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2459 USE_MAINTAINER_MODE=no
2462 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2463 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2466 if test $USE_MAINTAINER_MODE = yes; then
2467 MAINTAINER_MODE_TRUE=
2468 MAINTAINER_MODE_FALSE='#'
2470 MAINTAINER_MODE_TRUE='#'
2471 MAINTAINER_MODE_FALSE=
2474 MAINT=$MAINTAINER_MODE_TRUE
2477 ac_config_headers="$ac_config_headers config.h"
2480 DEPDIR="${am__leading_dot}deps"
2482 ac_config_commands="$ac_config_commands depfiles"
2485 am_make=${MAKE-make}
2486 cat > confinc << 'END'
2491 # If we don't find an include directive, just comment out the code.
2492 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2493 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2497 # First try GNU make style include.
2498 echo "include confinc" > confmf
2499 # We grep out `Entering directory' and `Leaving directory'
2500 # messages which can occur if `w' ends up in MAKEFLAGS.
2501 # In particular we don't look at `^make:' because GNU make might
2502 # be invoked under some other name (usually "gmake"), in which
2503 # case it prints its new name instead of `make'.
2504 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2509 # Now try BSD make style include.
2510 if test "$am__include" = "#"; then
2511 echo '.include "confinc"' > confmf
2512 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2513 am__include=.include
2520 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2521 $as_echo "$_am_result" >&6; }
2522 rm -f confinc confmf
2524 # Check whether --enable-dependency-tracking was given.
2525 if test "${enable_dependency_tracking+set}" = set; then
2526 enableval=$enable_dependency_tracking;
2529 if test "x$enable_dependency_tracking" != xno; then
2530 am_depcomp="$ac_aux_dir/depcomp"
2535 if test "x$enable_dependency_tracking" != xno; then
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 if test -n "$ac_tool_prefix"; then
2551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 $as_echo_n "(cached) " >&6
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 if test -n "$CC"; then
2580 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2581 $as_echo "$CC" >&6; }
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584 $as_echo "no" >&6; }
2589 if test -z "$ac_cv_prog_CC"; then
2591 # Extract the first word of "gcc", so it can be a program name with args.
2592 set dummy gcc; ac_word=$2
2593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2596 $as_echo_n "(cached) " >&6
2598 if test -n "$ac_ct_CC"; then
2599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_ac_ct_CC="gcc"
2609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2619 if test -n "$ac_ct_CC"; then
2620 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2621 $as_echo "$ac_ct_CC" >&6; }
2623 { $as_echo "$as_me:$LINENO: result: no" >&5
2624 $as_echo "no" >&6; }
2627 if test "x$ac_ct_CC" = x; then
2630 case $cross_compiling:$ac_tool_warned in
2632 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2633 whose name does not start with the host triplet. If you think this
2634 configuration is useful to you, please write to autoconf@gnu.org." >&5
2635 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2636 whose name does not start with the host triplet. If you think this
2637 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2638 ac_tool_warned=yes ;;
2646 if test -z "$CC"; then
2647 if test -n "$ac_tool_prefix"; then
2648 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2649 set dummy ${ac_tool_prefix}cc; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_CC+set}" = set; then
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_CC="${ac_tool_prefix}cc"
2666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 if test -n "$CC"; then
2677 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2678 $as_echo "$CC" >&6; }
2680 { $as_echo "$as_me:$LINENO: result: no" >&5
2681 $as_echo "no" >&6; }
2687 if test -z "$CC"; then
2688 # Extract the first word of "cc", so it can be a program name with args.
2689 set dummy cc; ac_word=$2
2690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_CC+set}" = set; then
2693 $as_echo_n "(cached) " >&6
2695 if test -n "$CC"; then
2696 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2707 ac_prog_rejected=yes
2711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test $ac_prog_rejected = yes; then
2719 # We found a bogon in the path, so make sure we never use it.
2720 set dummy $ac_cv_prog_CC
2722 if test $# != 0; then
2723 # We chose a different compiler from the bogus one.
2724 # However, it has the same basename, so the bogon will be chosen
2725 # first if we set CC to just the basename; use the full file name.
2727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2733 if test -n "$CC"; then
2734 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2735 $as_echo "$CC" >&6; }
2737 { $as_echo "$as_me:$LINENO: result: no" >&5
2738 $as_echo "no" >&6; }
2743 if test -z "$CC"; then
2744 if test -n "$ac_tool_prefix"; then
2745 for ac_prog in cl.exe
2747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if test "${ac_cv_prog_CC+set}" = set; then
2752 $as_echo_n "(cached) " >&6
2754 if test -n "$CC"; then
2755 ac_cv_prog_CC="$CC" # Let the user override the test.
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 if test -n "$CC"; then
2776 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2777 $as_echo "$CC" >&6; }
2779 { $as_echo "$as_me:$LINENO: result: no" >&5
2780 $as_echo "no" >&6; }
2784 test -n "$CC" && break
2787 if test -z "$CC"; then
2789 for ac_prog in cl.exe
2791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2792 set dummy $ac_prog; ac_word=$2
2793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2796 $as_echo_n "(cached) " >&6
2798 if test -n "$ac_ct_CC"; then
2799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_ac_ct_CC="$ac_prog"
2809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2819 if test -n "$ac_ct_CC"; then
2820 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2821 $as_echo "$ac_ct_CC" >&6; }
2823 { $as_echo "$as_me:$LINENO: result: no" >&5
2824 $as_echo "no" >&6; }
2828 test -n "$ac_ct_CC" && break
2831 if test "x$ac_ct_CC" = x; then
2834 case $cross_compiling:$ac_tool_warned in
2836 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2837 whose name does not start with the host triplet. If you think this
2838 configuration is useful to you, please write to autoconf@gnu.org." >&5
2839 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2840 whose name does not start with the host triplet. If you think this
2841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2842 ac_tool_warned=yes ;;
2851 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2852 See \`config.log' for more details." >&5
2853 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2854 See \`config.log' for more details." >&2;}
2855 { (exit 1); exit 1; }; }
2857 # Provide some information about the compiler.
2858 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2861 { (ac_try="$ac_compiler --version >&5"
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2867 $as_echo "$ac_try_echo") >&5
2868 (eval "$ac_compiler --version >&5") 2>&5
2870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }
2872 { (ac_try="$ac_compiler -v >&5"
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2878 $as_echo "$ac_try_echo") >&5
2879 (eval "$ac_compiler -v >&5") 2>&5
2881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883 { (ac_try="$ac_compiler -V >&5"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2889 $as_echo "$ac_try_echo") >&5
2890 (eval "$ac_compiler -V >&5") 2>&5
2892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2895 cat >conftest.$ac_ext <<_ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2910 ac_clean_files_save=$ac_clean_files
2911 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2912 # Try to create an executable without -o first, disregard a.out.
2913 # It will help us diagnose broken compilers, and finding out an intuition
2915 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2916 $as_echo_n "checking for C compiler default output file name... " >&6; }
2917 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2919 # The possible output files:
2920 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2923 for ac_file in $ac_files
2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2927 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2932 if { (ac_try="$ac_link_default"
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2938 $as_echo "$ac_try_echo") >&5
2939 (eval "$ac_link_default") 2>&5
2941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; then
2943 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2944 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2945 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2946 # so that the user can short-circuit this test for compilers unknown to
2948 for ac_file in $ac_files ''
2950 test -f "$ac_file" || continue
2952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2955 # We found the default executable, but exeext='' is most
2959 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2961 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2963 # We set ac_cv_exeext here because the later test for it is not
2964 # safe: cross compilers may not add the suffix if given an `-o'
2965 # argument, so we may need to know it at that point already.
2966 # Even if this section looks crufty: it has the advantage of
2973 test "$ac_cv_exeext" = no && ac_cv_exeext=
2979 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2980 $as_echo "$ac_file" >&6; }
2981 if test -z "$ac_file"; then
2982 $as_echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2985 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2986 See \`config.log' for more details." >&5
2987 $as_echo "$as_me: error: C compiler cannot create executables
2988 See \`config.log' for more details." >&2;}
2989 { (exit 77); exit 77; }; }
2992 ac_exeext=$ac_cv_exeext
2994 # Check that the compiler produces executables we can run. If not, either
2995 # the compiler is broken, or we cross compile.
2996 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2997 $as_echo_n "checking whether the C compiler works... " >&6; }
2998 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2999 # If not cross compiling, check that we can run a simple program.
3000 if test "$cross_compiling" != yes; then
3001 if { ac_try='./$ac_file'
3002 { (case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3007 $as_echo "$ac_try_echo") >&5
3008 (eval "$ac_try") 2>&5
3010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3014 if test "$cross_compiling" = maybe; then
3017 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3018 If you meant to cross compile, use \`--host'.
3019 See \`config.log' for more details." >&5
3020 $as_echo "$as_me: error: cannot run C compiled programs.
3021 If you meant to cross compile, use \`--host'.
3022 See \`config.log' for more details." >&2;}
3023 { (exit 1); exit 1; }; }
3027 { $as_echo "$as_me:$LINENO: result: yes" >&5
3028 $as_echo "yes" >&6; }
3030 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3031 ac_clean_files=$ac_clean_files_save
3032 # Check that the compiler produces executables we can run. If not, either
3033 # the compiler is broken, or we cross compile.
3034 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3035 $as_echo_n "checking whether we are cross compiling... " >&6; }
3036 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3037 $as_echo "$cross_compiling" >&6; }
3039 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3040 $as_echo_n "checking for suffix of executables... " >&6; }
3041 if { (ac_try="$ac_link"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3047 $as_echo "$ac_try_echo") >&5
3048 (eval "$ac_link") 2>&5
3050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; then
3052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3053 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3054 # work properly (i.e., refer to `conftest.exe'), while it won't with
3056 for ac_file in conftest.exe conftest conftest.*; do
3057 test -f "$ac_file" || continue
3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3060 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3067 See \`config.log' for more details." >&5
3068 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3073 rm -f conftest$ac_cv_exeext
3074 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3075 $as_echo "$ac_cv_exeext" >&6; }
3077 rm -f conftest.$ac_ext
3078 EXEEXT=$ac_cv_exeext
3080 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3081 $as_echo_n "checking for suffix of object files... " >&6; }
3082 if test "${ac_cv_objext+set}" = set; then
3083 $as_echo_n "(cached) " >&6
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3100 rm -f conftest.o conftest.obj
3101 if { (ac_try="$ac_compile"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3107 $as_echo "$ac_try_echo") >&5
3108 (eval "$ac_compile") 2>&5
3110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; then
3112 for ac_file in conftest.o conftest.obj conftest.*; do
3113 test -f "$ac_file" || continue;
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3125 See \`config.log' for more details." >&5
3126 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3131 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3133 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3134 $as_echo "$ac_cv_objext" >&6; }
3135 OBJEXT=$ac_cv_objext
3137 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3138 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3139 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3140 $as_echo_n "(cached) " >&6
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3160 rm -f conftest.$ac_objext
3161 if { (ac_try="$ac_compile"
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3167 $as_echo "$ac_try_echo") >&5
3168 (eval "$ac_compile") 2>conftest.er1
3170 grep -v '^ *+' conftest.er1 >conftest.err
3172 cat conftest.err >&5
3173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } && {
3175 test -z "$ac_c_werror_flag" ||
3176 test ! -s conftest.err
3177 } && test -s conftest.$ac_objext; then
3180 $as_echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3191 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3192 if test $ac_compiler_gnu = yes; then
3197 ac_test_CFLAGS=${CFLAGS+set}
3198 ac_save_CFLAGS=$CFLAGS
3199 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3200 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3201 if test "${ac_cv_prog_cc_g+set}" = set; then
3202 $as_echo_n "(cached) " >&6
3204 ac_save_c_werror_flag=$ac_c_werror_flag
3205 ac_c_werror_flag=yes
3208 cat >conftest.$ac_ext <<_ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3223 rm -f conftest.$ac_objext
3224 if { (ac_try="$ac_compile"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3230 $as_echo "$ac_try_echo") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } && {
3238 test -z "$ac_c_werror_flag" ||
3239 test ! -s conftest.err
3240 } && test -s conftest.$ac_objext; then
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3247 cat >conftest.$ac_ext <<_ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3262 rm -f conftest.$ac_objext
3263 if { (ac_try="$ac_compile"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3269 $as_echo "$ac_try_echo") >&5
3270 (eval "$ac_compile") 2>conftest.er1
3272 grep -v '^ *+' conftest.er1 >conftest.err
3274 cat conftest.err >&5
3275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } && {
3277 test -z "$ac_c_werror_flag" ||
3278 test ! -s conftest.err
3279 } && test -s conftest.$ac_objext; then
3282 $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 ac_c_werror_flag=$ac_save_c_werror_flag
3287 cat >conftest.$ac_ext <<_ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3302 rm -f conftest.$ac_objext
3303 if { (ac_try="$ac_compile"
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3309 $as_echo "$ac_try_echo") >&5
3310 (eval "$ac_compile") 2>conftest.er1
3312 grep -v '^ *+' conftest.er1 >conftest.err
3314 cat conftest.err >&5
3315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } && {
3317 test -z "$ac_c_werror_flag" ||
3318 test ! -s conftest.err
3319 } && test -s conftest.$ac_objext; then
3322 $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_c_werror_flag=$ac_save_c_werror_flag
3337 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3338 $as_echo "$ac_cv_prog_cc_g" >&6; }
3339 if test "$ac_test_CFLAGS" = set; then
3340 CFLAGS=$ac_save_CFLAGS
3341 elif test $ac_cv_prog_cc_g = yes; then
3342 if test "$GCC" = yes; then
3348 if test "$GCC" = yes; then
3354 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3355 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3356 if test "${ac_cv_prog_cc_c89+set}" = set; then
3357 $as_echo_n "(cached) " >&6
3359 ac_cv_prog_cc_c89=no
3361 cat >conftest.$ac_ext <<_ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3369 #include <sys/types.h>
3370 #include <sys/stat.h>
3371 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3372 struct buf { int x; };
3373 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3374 static char *e (p, i)
3380 static char *f (char * (*g) (char **, int), char **p, ...)
3385 s = g (p, va_arg (v,int));
3390 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3391 function prototypes and stuff, but not '\xHH' hex character constants.
3392 These don't provoke an error unfortunately, instead are silently treated
3393 as 'x'. The following induces an error, until -std is added to get
3394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3395 array size at least. It's necessary to write '\x00'==0 to get something
3396 that's true only with -std. */
3397 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3400 inside strings and character constants. */
3402 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3404 int test (int i, double x);
3405 struct s1 {int (*f) (int a);};
3406 struct s2 {int (*f) (double a);};
3407 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3413 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3418 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3419 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3421 CC="$ac_save_CC $ac_arg"
3422 rm -f conftest.$ac_objext
3423 if { (ac_try="$ac_compile"
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3429 $as_echo "$ac_try_echo") >&5
3430 (eval "$ac_compile") 2>conftest.er1
3432 grep -v '^ *+' conftest.er1 >conftest.err
3434 cat conftest.err >&5
3435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } && {
3437 test -z "$ac_c_werror_flag" ||
3438 test ! -s conftest.err
3439 } && test -s conftest.$ac_objext; then
3440 ac_cv_prog_cc_c89=$ac_arg
3442 $as_echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3448 rm -f core conftest.err conftest.$ac_objext
3449 test "x$ac_cv_prog_cc_c89" != "xno" && break
3451 rm -f conftest.$ac_ext
3456 case "x$ac_cv_prog_cc_c89" in
3458 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3459 $as_echo "none needed" >&6; } ;;
3461 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3462 $as_echo "unsupported" >&6; } ;;
3464 CC="$CC $ac_cv_prog_cc_c89"
3465 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3466 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476 depcc="$CC" am_compiler_list=
3478 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3479 $as_echo_n "checking dependency style of $depcc... " >&6; }
3480 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3481 $as_echo_n "(cached) " >&6
3483 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3484 # We make a subdir and do the tests there. Otherwise we can end up
3485 # making bogus files that we don't know about and never remove. For
3486 # instance it was reported that on HP-UX the gcc test will end up
3487 # making a dummy file named `D' -- because `-MD' means `put the output
3490 # Copy depcomp to subdir because otherwise we won't find it if we're
3491 # using a relative directory.
3492 cp "$am_depcomp" conftest.dir
3494 # We will build objects and dependencies in a subdirectory because
3495 # it helps to detect inapplicable dependency modes. For instance
3496 # both Tru64's cc and ICC support -MD to output dependencies as a
3497 # side effect of compilation, but ICC will put the dependencies in
3498 # the current directory while Tru64 will put them in the object
3502 am_cv_CC_dependencies_compiler_type=none
3503 if test "$am_compiler_list" = ""; then
3504 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3506 for depmode in $am_compiler_list; do
3507 # Setup a source with many dependencies, because some compilers
3508 # like to wrap large dependency lists on column 80 (with \), and
3509 # we should not choose a depcomp mode which is confused by this.
3511 # We need to recreate these files for each test, as the compiler may
3512 # overwrite some of them when testing with obscure command lines.
3513 # This happens at least with the AIX C compiler.
3515 for i in 1 2 3 4 5 6; do
3516 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3517 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3518 # Solaris 8's {/usr,}/bin/sh.
3519 touch sub/conftst$i.h
3521 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3525 # after this tag, mechanisms are not by side-effect, so they'll
3526 # only be used when explicitly requested
3527 if test "x$enable_dependency_tracking" = xyes; then
3535 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3536 # mode. It turns out that the SunPro C++ compiler does not properly
3537 # handle `-M -o', and we need to detect this.
3538 if depmode=$depmode \
3539 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3540 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3541 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3542 >/dev/null 2>conftest.err &&
3543 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3544 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3545 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3546 # icc doesn't choke on unknown options, it will just issue warnings
3547 # or remarks (even with -Werror). So we grep stderr for any message
3548 # that says an option was ignored or not supported.
3549 # When given -MP, icc 7.0 and 7.1 complain thusly:
3550 # icc: Command line warning: ignoring option '-M'; no argument required
3551 # The diagnosis changed in icc 8.0:
3552 # icc: Command line remark: option '-MP' not supported
3553 if (grep 'ignoring option' conftest.err ||
3554 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3555 am_cv_CC_dependencies_compiler_type=$depmode
3564 am_cv_CC_dependencies_compiler_type=none
3568 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3569 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3570 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3575 test "x$enable_dependency_tracking" != xno \
3576 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3578 am__fastdepCC_FALSE='#'
3580 am__fastdepCC_TRUE='#'
3581 am__fastdepCC_FALSE=
3587 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3588 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3589 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3590 $as_echo_n "(cached) " >&6
3592 ac_check_lib_save_LIBS=$LIBS
3593 LIBS="-lcposix $LIBS"
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3601 /* Override any GCC internal prototype to avoid an error.
3602 Use char because int might match the return type of a GCC
3603 builtin and then its argument prototype would still apply. */
3616 rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (ac_try="$ac_link"
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3623 $as_echo "$ac_try_echo") >&5
3624 (eval "$ac_link") 2>conftest.er1
3626 grep -v '^ *+' conftest.er1 >conftest.err
3628 cat conftest.err >&5
3629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } && {
3631 test -z "$ac_c_werror_flag" ||
3632 test ! -s conftest.err
3633 } && test -s conftest$ac_exeext && {
3634 test "$cross_compiling" = yes ||
3635 $as_test_x conftest$ac_exeext
3637 ac_cv_lib_cposix_strerror=yes
3639 $as_echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 ac_cv_lib_cposix_strerror=no
3645 rm -rf conftest.dSYM
3646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3647 conftest$ac_exeext conftest.$ac_ext
3648 LIBS=$ac_check_lib_save_LIBS
3650 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3651 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3652 if test $ac_cv_lib_cposix_strerror = yes; then
3653 LIBS="$LIBS -lcposix"
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 if test -n "$ac_tool_prefix"; then
3664 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3665 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_CC+set}" = set; then
3669 $as_echo_n "(cached) " >&6
3671 if test -n "$CC"; then
3672 ac_cv_prog_CC="$CC" # Let the user override the test.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 if test -n "$CC"; then
3693 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3694 $as_echo "$CC" >&6; }
3696 { $as_echo "$as_me:$LINENO: result: no" >&5
3697 $as_echo "no" >&6; }
3702 if test -z "$ac_cv_prog_CC"; then
3704 # Extract the first word of "gcc", so it can be a program name with args.
3705 set dummy gcc; ac_word=$2
3706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3709 $as_echo_n "(cached) " >&6
3711 if test -n "$ac_ct_CC"; then
3712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_ac_ct_CC="gcc"
3722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3732 if test -n "$ac_ct_CC"; then
3733 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3734 $as_echo "$ac_ct_CC" >&6; }
3736 { $as_echo "$as_me:$LINENO: result: no" >&5
3737 $as_echo "no" >&6; }
3740 if test "x$ac_ct_CC" = x; then
3743 case $cross_compiling:$ac_tool_warned in
3745 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3746 whose name does not start with the host triplet. If you think this
3747 configuration is useful to you, please write to autoconf@gnu.org." >&5
3748 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3749 whose name does not start with the host triplet. If you think this
3750 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3751 ac_tool_warned=yes ;;
3759 if test -z "$CC"; then
3760 if test -n "$ac_tool_prefix"; then
3761 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3762 set dummy ${ac_tool_prefix}cc; ac_word=$2
3763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if test "${ac_cv_prog_CC+set}" = set; then
3766 $as_echo_n "(cached) " >&6
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 ac_cv_prog_CC="${ac_tool_prefix}cc"
3779 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 if test -n "$CC"; then
3790 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3791 $as_echo "$CC" >&6; }
3793 { $as_echo "$as_me:$LINENO: result: no" >&5
3794 $as_echo "no" >&6; }
3800 if test -z "$CC"; then
3801 # Extract the first word of "cc", so it can be a program name with args.
3802 set dummy cc; ac_word=$2
3803 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if test "${ac_cv_prog_CC+set}" = set; then
3806 $as_echo_n "(cached) " >&6
3808 if test -n "$CC"; then
3809 ac_cv_prog_CC="$CC" # Let the user override the test.
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3820 ac_prog_rejected=yes
3824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 if test $ac_prog_rejected = yes; then
3832 # We found a bogon in the path, so make sure we never use it.
3833 set dummy $ac_cv_prog_CC
3835 if test $# != 0; then
3836 # We chose a different compiler from the bogus one.
3837 # However, it has the same basename, so the bogon will be chosen
3838 # first if we set CC to just the basename; use the full file name.
3840 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3846 if test -n "$CC"; then
3847 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3848 $as_echo "$CC" >&6; }
3850 { $as_echo "$as_me:$LINENO: result: no" >&5
3851 $as_echo "no" >&6; }
3856 if test -z "$CC"; then
3857 if test -n "$ac_tool_prefix"; then
3858 for ac_prog in cl.exe
3860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if test "${ac_cv_prog_CC+set}" = set; then
3865 $as_echo_n "(cached) " >&6
3867 if test -n "$CC"; then
3868 ac_cv_prog_CC="$CC" # Let the user override the test.
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3877 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 if test -n "$CC"; then
3889 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3890 $as_echo "$CC" >&6; }
3892 { $as_echo "$as_me:$LINENO: result: no" >&5
3893 $as_echo "no" >&6; }
3897 test -n "$CC" && break
3900 if test -z "$CC"; then
3902 for ac_prog in cl.exe
3904 # Extract the first word of "$ac_prog", so it can be a program name with args.
3905 set dummy $ac_prog; ac_word=$2
3906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3909 $as_echo_n "(cached) " >&6
3911 if test -n "$ac_ct_CC"; then
3912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 ac_cv_prog_ac_ct_CC="$ac_prog"
3922 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3932 if test -n "$ac_ct_CC"; then
3933 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3934 $as_echo "$ac_ct_CC" >&6; }
3936 { $as_echo "$as_me:$LINENO: result: no" >&5
3937 $as_echo "no" >&6; }
3941 test -n "$ac_ct_CC" && break
3944 if test "x$ac_ct_CC" = x; then
3947 case $cross_compiling:$ac_tool_warned in
3949 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3950 whose name does not start with the host triplet. If you think this
3951 configuration is useful to you, please write to autoconf@gnu.org." >&5
3952 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3953 whose name does not start with the host triplet. If you think this
3954 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3955 ac_tool_warned=yes ;;
3964 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3965 See \`config.log' for more details." >&5
3966 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3967 See \`config.log' for more details." >&2;}
3968 { (exit 1); exit 1; }; }
3970 # Provide some information about the compiler.
3971 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3974 { (ac_try="$ac_compiler --version >&5"
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3980 $as_echo "$ac_try_echo") >&5
3981 (eval "$ac_compiler --version >&5") 2>&5
3983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }
3985 { (ac_try="$ac_compiler -v >&5"
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3991 $as_echo "$ac_try_echo") >&5
3992 (eval "$ac_compiler -v >&5") 2>&5
3994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }
3996 { (ac_try="$ac_compiler -V >&5"
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4002 $as_echo "$ac_try_echo") >&5
4003 (eval "$ac_compiler -V >&5") 2>&5
4005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }
4008 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4009 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4010 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4011 $as_echo_n "(cached) " >&6
4013 cat >conftest.$ac_ext <<_ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4038 $as_echo "$ac_try_echo") >&5
4039 (eval "$ac_compile") 2>conftest.er1
4041 grep -v '^ *+' conftest.er1 >conftest.err
4043 cat conftest.err >&5
4044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } && {
4046 test -z "$ac_c_werror_flag" ||
4047 test ! -s conftest.err
4048 } && test -s conftest.$ac_objext; then
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4061 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4062 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4063 if test $ac_compiler_gnu = yes; then
4068 ac_test_CFLAGS=${CFLAGS+set}
4069 ac_save_CFLAGS=$CFLAGS
4070 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4071 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4072 if test "${ac_cv_prog_cc_g+set}" = set; then
4073 $as_echo_n "(cached) " >&6
4075 ac_save_c_werror_flag=$ac_c_werror_flag
4076 ac_c_werror_flag=yes
4079 cat >conftest.$ac_ext <<_ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4101 $as_echo "$ac_try_echo") >&5
4102 (eval "$ac_compile") 2>conftest.er1
4104 grep -v '^ *+' conftest.er1 >conftest.err
4106 cat conftest.err >&5
4107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } && {
4109 test -z "$ac_c_werror_flag" ||
4110 test ! -s conftest.err
4111 } && test -s conftest.$ac_objext; then
4114 $as_echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4118 cat >conftest.$ac_ext <<_ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4140 $as_echo "$ac_try_echo") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4153 $as_echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4156 ac_c_werror_flag=$ac_save_c_werror_flag
4158 cat >conftest.$ac_ext <<_ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4173 rm -f conftest.$ac_objext
4174 if { (ac_try="$ac_compile"
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4180 $as_echo "$ac_try_echo") >&5
4181 (eval "$ac_compile") 2>conftest.er1
4183 grep -v '^ *+' conftest.er1 >conftest.err
4185 cat conftest.err >&5
4186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } && {
4188 test -z "$ac_c_werror_flag" ||
4189 test ! -s conftest.err
4190 } && test -s conftest.$ac_objext; then
4193 $as_echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 ac_c_werror_flag=$ac_save_c_werror_flag
4208 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4209 $as_echo "$ac_cv_prog_cc_g" >&6; }
4210 if test "$ac_test_CFLAGS" = set; then
4211 CFLAGS=$ac_save_CFLAGS
4212 elif test $ac_cv_prog_cc_g = yes; then
4213 if test "$GCC" = yes; then
4219 if test "$GCC" = yes; then
4225 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4226 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4227 if test "${ac_cv_prog_cc_c89+set}" = set; then
4228 $as_echo_n "(cached) " >&6
4230 ac_cv_prog_cc_c89=no
4232 cat >conftest.$ac_ext <<_ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4240 #include <sys/types.h>
4241 #include <sys/stat.h>
4242 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4243 struct buf { int x; };
4244 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4245 static char *e (p, i)
4251 static char *f (char * (*g) (char **, int), char **p, ...)
4256 s = g (p, va_arg (v,int));
4261 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4262 function prototypes and stuff, but not '\xHH' hex character constants.
4263 These don't provoke an error unfortunately, instead are silently treated
4264 as 'x'. The following induces an error, until -std is added to get
4265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4266 array size at least. It's necessary to write '\x00'==0 to get something
4267 that's true only with -std. */
4268 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4270 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4271 inside strings and character constants. */
4273 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4275 int test (int i, double x);
4276 struct s1 {int (*f) (int a);};
4277 struct s2 {int (*f) (double a);};
4278 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4284 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4289 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4290 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4292 CC="$ac_save_CC $ac_arg"
4293 rm -f conftest.$ac_objext
4294 if { (ac_try="$ac_compile"
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4300 $as_echo "$ac_try_echo") >&5
4301 (eval "$ac_compile") 2>conftest.er1
4303 grep -v '^ *+' conftest.er1 >conftest.err
4305 cat conftest.err >&5
4306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } && {
4308 test -z "$ac_c_werror_flag" ||
4309 test ! -s conftest.err
4310 } && test -s conftest.$ac_objext; then
4311 ac_cv_prog_cc_c89=$ac_arg
4313 $as_echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4319 rm -f core conftest.err conftest.$ac_objext
4320 test "x$ac_cv_prog_cc_c89" != "xno" && break
4322 rm -f conftest.$ac_ext
4327 case "x$ac_cv_prog_cc_c89" in
4329 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4330 $as_echo "none needed" >&6; } ;;
4332 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4333 $as_echo "unsupported" >&6; } ;;
4335 CC="$CC $ac_cv_prog_cc_c89"
4336 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4337 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 depcc="$CC" am_compiler_list=
4349 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4350 $as_echo_n "checking dependency style of $depcc... " >&6; }
4351 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4352 $as_echo_n "(cached) " >&6
4354 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4355 # We make a subdir and do the tests there. Otherwise we can end up
4356 # making bogus files that we don't know about and never remove. For
4357 # instance it was reported that on HP-UX the gcc test will end up
4358 # making a dummy file named `D' -- because `-MD' means `put the output
4361 # Copy depcomp to subdir because otherwise we won't find it if we're
4362 # using a relative directory.
4363 cp "$am_depcomp" conftest.dir
4365 # We will build objects and dependencies in a subdirectory because
4366 # it helps to detect inapplicable dependency modes. For instance
4367 # both Tru64's cc and ICC support -MD to output dependencies as a
4368 # side effect of compilation, but ICC will put the dependencies in
4369 # the current directory while Tru64 will put them in the object
4373 am_cv_CC_dependencies_compiler_type=none
4374 if test "$am_compiler_list" = ""; then
4375 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4377 for depmode in $am_compiler_list; do
4378 # Setup a source with many dependencies, because some compilers
4379 # like to wrap large dependency lists on column 80 (with \), and
4380 # we should not choose a depcomp mode which is confused by this.
4382 # We need to recreate these files for each test, as the compiler may
4383 # overwrite some of them when testing with obscure command lines.
4384 # This happens at least with the AIX C compiler.
4386 for i in 1 2 3 4 5 6; do
4387 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4388 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4389 # Solaris 8's {/usr,}/bin/sh.
4390 touch sub/conftst$i.h
4392 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4396 # after this tag, mechanisms are not by side-effect, so they'll
4397 # only be used when explicitly requested
4398 if test "x$enable_dependency_tracking" = xyes; then
4406 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4407 # mode. It turns out that the SunPro C++ compiler does not properly
4408 # handle `-M -o', and we need to detect this.
4409 if depmode=$depmode \
4410 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4411 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4412 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4413 >/dev/null 2>conftest.err &&
4414 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4415 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4417 # icc doesn't choke on unknown options, it will just issue warnings
4418 # or remarks (even with -Werror). So we grep stderr for any message
4419 # that says an option was ignored or not supported.
4420 # When given -MP, icc 7.0 and 7.1 complain thusly:
4421 # icc: Command line warning: ignoring option '-M'; no argument required
4422 # The diagnosis changed in icc 8.0:
4423 # icc: Command line remark: option '-MP' not supported
4424 if (grep 'ignoring option' conftest.err ||
4425 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4426 am_cv_CC_dependencies_compiler_type=$depmode
4435 am_cv_CC_dependencies_compiler_type=none
4439 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4440 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4441 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4446 test "x$enable_dependency_tracking" != xno \
4447 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4449 am__fastdepCC_FALSE='#'
4451 am__fastdepCC_TRUE='#'
4452 am__fastdepCC_FALSE=
4457 ac_cpp='$CPP $CPPFLAGS'
4458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461 if test -n "$ac_tool_prefix"; then
4462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4463 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if test "${ac_cv_prog_CC+set}" = set; then
4467 $as_echo_n "(cached) " >&6
4469 if test -n "$CC"; then
4470 ac_cv_prog_CC="$CC" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 if test -n "$CC"; then
4491 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4492 $as_echo "$CC" >&6; }
4494 { $as_echo "$as_me:$LINENO: result: no" >&5
4495 $as_echo "no" >&6; }
4500 if test -z "$ac_cv_prog_CC"; then
4502 # Extract the first word of "gcc", so it can be a program name with args.
4503 set dummy gcc; ac_word=$2
4504 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 $as_echo_n "checking for $ac_word... " >&6; }
4506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4507 $as_echo_n "(cached) " >&6
4509 if test -n "$ac_ct_CC"; then
4510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_prog_ac_ct_CC="gcc"
4520 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4530 if test -n "$ac_ct_CC"; then
4531 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4532 $as_echo "$ac_ct_CC" >&6; }
4534 { $as_echo "$as_me:$LINENO: result: no" >&5
4535 $as_echo "no" >&6; }
4538 if test "x$ac_ct_CC" = x; then
4541 case $cross_compiling:$ac_tool_warned in
4543 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4544 whose name does not start with the host triplet. If you think this
4545 configuration is useful to you, please write to autoconf@gnu.org." >&5
4546 $as_echo "$as_me: 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." >&2;}
4549 ac_tool_warned=yes ;;
4557 if test -z "$CC"; then
4558 if test -n "$ac_tool_prefix"; then
4559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4560 set dummy ${ac_tool_prefix}cc; ac_word=$2
4561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_CC+set}" = set; then
4564 $as_echo_n "(cached) " >&6
4566 if test -n "$CC"; then
4567 ac_cv_prog_CC="$CC" # Let the user override the test.
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_CC="${ac_tool_prefix}cc"
4577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 if test -n "$CC"; then
4588 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4589 $as_echo "$CC" >&6; }
4591 { $as_echo "$as_me:$LINENO: result: no" >&5
4592 $as_echo "no" >&6; }
4598 if test -z "$CC"; then
4599 # Extract the first word of "cc", so it can be a program name with args.
4600 set dummy cc; ac_word=$2
4601 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if test "${ac_cv_prog_CC+set}" = set; then
4604 $as_echo_n "(cached) " >&6
4606 if test -n "$CC"; then
4607 ac_cv_prog_CC="$CC" # Let the user override the test.
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4618 ac_prog_rejected=yes
4622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 if test $ac_prog_rejected = yes; then
4630 # We found a bogon in the path, so make sure we never use it.
4631 set dummy $ac_cv_prog_CC
4633 if test $# != 0; then
4634 # We chose a different compiler from the bogus one.
4635 # However, it has the same basename, so the bogon will be chosen
4636 # first if we set CC to just the basename; use the full file name.
4638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4644 if test -n "$CC"; then
4645 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4646 $as_echo "$CC" >&6; }
4648 { $as_echo "$as_me:$LINENO: result: no" >&5
4649 $as_echo "no" >&6; }
4654 if test -z "$CC"; then
4655 if test -n "$ac_tool_prefix"; then
4656 for ac_prog in cl.exe
4658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4660 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_CC+set}" = set; then
4663 $as_echo_n "(cached) " >&6
4665 if test -n "$CC"; then
4666 ac_cv_prog_CC="$CC" # Let the user override the test.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 if test -n "$CC"; then
4687 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4688 $as_echo "$CC" >&6; }
4690 { $as_echo "$as_me:$LINENO: result: no" >&5
4691 $as_echo "no" >&6; }
4695 test -n "$CC" && break
4698 if test -z "$CC"; then
4700 for ac_prog in cl.exe
4702 # Extract the first word of "$ac_prog", so it can be a program name with args.
4703 set dummy $ac_prog; ac_word=$2
4704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4705 $as_echo_n "checking for $ac_word... " >&6; }
4706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4707 $as_echo_n "(cached) " >&6
4709 if test -n "$ac_ct_CC"; then
4710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719 ac_cv_prog_ac_ct_CC="$ac_prog"
4720 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4730 if test -n "$ac_ct_CC"; then
4731 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4732 $as_echo "$ac_ct_CC" >&6; }
4734 { $as_echo "$as_me:$LINENO: result: no" >&5
4735 $as_echo "no" >&6; }
4739 test -n "$ac_ct_CC" && break
4742 if test "x$ac_ct_CC" = x; then
4745 case $cross_compiling:$ac_tool_warned in
4747 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4748 whose name does not start with the host triplet. If you think this
4749 configuration is useful to you, please write to autoconf@gnu.org." >&5
4750 $as_echo "$as_me: 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." >&2;}
4753 ac_tool_warned=yes ;;
4762 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4763 See \`config.log' for more details." >&5
4764 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4765 See \`config.log' for more details." >&2;}
4766 { (exit 1); exit 1; }; }
4768 # Provide some information about the compiler.
4769 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4772 { (ac_try="$ac_compiler --version >&5"
4774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775 *) ac_try_echo=$ac_try;;
4777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4778 $as_echo "$ac_try_echo") >&5
4779 (eval "$ac_compiler --version >&5") 2>&5
4781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }
4783 { (ac_try="$ac_compiler -v >&5"
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4789 $as_echo "$ac_try_echo") >&5
4790 (eval "$ac_compiler -v >&5") 2>&5
4792 $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4800 $as_echo "$ac_try_echo") >&5
4801 (eval "$ac_compiler -V >&5") 2>&5
4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }
4806 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4807 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4808 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4809 $as_echo_n "(cached) " >&6
4811 cat >conftest.$ac_ext <<_ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4829 rm -f conftest.$ac_objext
4830 if { (ac_try="$ac_compile"
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836 $as_echo "$ac_try_echo") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
4849 $as_echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4859 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4860 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4861 if test $ac_compiler_gnu = yes; then
4866 ac_test_CFLAGS=${CFLAGS+set}
4867 ac_save_CFLAGS=$CFLAGS
4868 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4869 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4870 if test "${ac_cv_prog_cc_g+set}" = set; then
4871 $as_echo_n "(cached) " >&6
4873 ac_save_c_werror_flag=$ac_c_werror_flag
4874 ac_c_werror_flag=yes
4877 cat >conftest.$ac_ext <<_ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4892 rm -f conftest.$ac_objext
4893 if { (ac_try="$ac_compile"
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4899 $as_echo "$ac_try_echo") >&5
4900 (eval "$ac_compile") 2>conftest.er1
4902 grep -v '^ *+' conftest.er1 >conftest.err
4904 cat conftest.err >&5
4905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } && {
4907 test -z "$ac_c_werror_flag" ||
4908 test ! -s conftest.err
4909 } && test -s conftest.$ac_objext; then
4912 $as_echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4916 cat >conftest.$ac_ext <<_ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4938 $as_echo "$ac_try_echo") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4941 grep -v '^ *+' conftest.er1 >conftest.err
4943 cat conftest.err >&5
4944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.$ac_objext; then
4951 $as_echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4954 ac_c_werror_flag=$ac_save_c_werror_flag
4956 cat >conftest.$ac_ext <<_ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4971 rm -f conftest.$ac_objext
4972 if { (ac_try="$ac_compile"
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4978 $as_echo "$ac_try_echo") >&5
4979 (eval "$ac_compile") 2>conftest.er1
4981 grep -v '^ *+' conftest.er1 >conftest.err
4983 cat conftest.err >&5
4984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && {
4986 test -z "$ac_c_werror_flag" ||
4987 test ! -s conftest.err
4988 } && test -s conftest.$ac_objext; then
4991 $as_echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 ac_c_werror_flag=$ac_save_c_werror_flag
5006 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5007 $as_echo "$ac_cv_prog_cc_g" >&6; }
5008 if test "$ac_test_CFLAGS" = set; then
5009 CFLAGS=$ac_save_CFLAGS
5010 elif test $ac_cv_prog_cc_g = yes; then
5011 if test "$GCC" = yes; then
5017 if test "$GCC" = yes; then
5023 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5024 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5025 if test "${ac_cv_prog_cc_c89+set}" = set; then
5026 $as_echo_n "(cached) " >&6
5028 ac_cv_prog_cc_c89=no
5030 cat >conftest.$ac_ext <<_ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5038 #include <sys/types.h>
5039 #include <sys/stat.h>
5040 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5041 struct buf { int x; };
5042 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5043 static char *e (p, i)
5049 static char *f (char * (*g) (char **, int), char **p, ...)
5054 s = g (p, va_arg (v,int));
5059 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5060 function prototypes and stuff, but not '\xHH' hex character constants.
5061 These don't provoke an error unfortunately, instead are silently treated
5062 as 'x'. The following induces an error, until -std is added to get
5063 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5064 array size at least. It's necessary to write '\x00'==0 to get something
5065 that's true only with -std. */
5066 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5068 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5069 inside strings and character constants. */
5071 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5073 int test (int i, double x);
5074 struct s1 {int (*f) (int a);};
5075 struct s2 {int (*f) (double a);};
5076 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5082 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5087 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5088 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5090 CC="$ac_save_CC $ac_arg"
5091 rm -f conftest.$ac_objext
5092 if { (ac_try="$ac_compile"
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5098 $as_echo "$ac_try_echo") >&5
5099 (eval "$ac_compile") 2>conftest.er1
5101 grep -v '^ *+' conftest.er1 >conftest.err
5103 cat conftest.err >&5
5104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } && {
5106 test -z "$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 } && test -s conftest.$ac_objext; then
5109 ac_cv_prog_cc_c89=$ac_arg
5111 $as_echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5117 rm -f core conftest.err conftest.$ac_objext
5118 test "x$ac_cv_prog_cc_c89" != "xno" && break
5120 rm -f conftest.$ac_ext
5125 case "x$ac_cv_prog_cc_c89" in
5127 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5128 $as_echo "none needed" >&6; } ;;
5130 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5131 $as_echo "unsupported" >&6; } ;;
5133 CC="$CC $ac_cv_prog_cc_c89"
5134 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5135 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5140 ac_cpp='$CPP $CPPFLAGS'
5141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145 depcc="$CC" am_compiler_list=
5147 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5148 $as_echo_n "checking dependency style of $depcc... " >&6; }
5149 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5150 $as_echo_n "(cached) " >&6
5152 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5153 # We make a subdir and do the tests there. Otherwise we can end up
5154 # making bogus files that we don't know about and never remove. For
5155 # instance it was reported that on HP-UX the gcc test will end up
5156 # making a dummy file named `D' -- because `-MD' means `put the output
5159 # Copy depcomp to subdir because otherwise we won't find it if we're
5160 # using a relative directory.
5161 cp "$am_depcomp" conftest.dir
5163 # We will build objects and dependencies in a subdirectory because
5164 # it helps to detect inapplicable dependency modes. For instance
5165 # both Tru64's cc and ICC support -MD to output dependencies as a
5166 # side effect of compilation, but ICC will put the dependencies in
5167 # the current directory while Tru64 will put them in the object
5171 am_cv_CC_dependencies_compiler_type=none
5172 if test "$am_compiler_list" = ""; then
5173 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5175 for depmode in $am_compiler_list; do
5176 # Setup a source with many dependencies, because some compilers
5177 # like to wrap large dependency lists on column 80 (with \), and
5178 # we should not choose a depcomp mode which is confused by this.
5180 # We need to recreate these files for each test, as the compiler may
5181 # overwrite some of them when testing with obscure command lines.
5182 # This happens at least with the AIX C compiler.
5184 for i in 1 2 3 4 5 6; do
5185 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5186 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5187 # Solaris 8's {/usr,}/bin/sh.
5188 touch sub/conftst$i.h
5190 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5194 # after this tag, mechanisms are not by side-effect, so they'll
5195 # only be used when explicitly requested
5196 if test "x$enable_dependency_tracking" = xyes; then
5204 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5205 # mode. It turns out that the SunPro C++ compiler does not properly
5206 # handle `-M -o', and we need to detect this.
5207 if depmode=$depmode \
5208 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5210 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5211 >/dev/null 2>conftest.err &&
5212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5215 # icc doesn't choke on unknown options, it will just issue warnings
5216 # or remarks (even with -Werror). So we grep stderr for any message
5217 # that says an option was ignored or not supported.
5218 # When given -MP, icc 7.0 and 7.1 complain thusly:
5219 # icc: Command line warning: ignoring option '-M'; no argument required
5220 # The diagnosis changed in icc 8.0:
5221 # icc: Command line remark: option '-MP' not supported
5222 if (grep 'ignoring option' conftest.err ||
5223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5224 am_cv_CC_dependencies_compiler_type=$depmode
5233 am_cv_CC_dependencies_compiler_type=none
5237 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5238 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5239 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5244 test "x$enable_dependency_tracking" != xno \
5245 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5247 am__fastdepCC_FALSE='#'
5249 am__fastdepCC_TRUE='#'
5250 am__fastdepCC_FALSE=
5255 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5258 ac_cpp='$OBJCPP $CPPFLAGS'
5259 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5262 if test -n "$ac_tool_prefix"; then
5263 for ac_prog in gcc objcc objc cc CC
5265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_OBJC+set}" = set; then
5270 $as_echo_n "(cached) " >&6
5272 if test -n "$OBJC"; then
5273 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 OBJC=$ac_cv_prog_OBJC
5293 if test -n "$OBJC"; then
5294 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
5295 $as_echo "$OBJC" >&6; }
5297 { $as_echo "$as_me:$LINENO: result: no" >&5
5298 $as_echo "no" >&6; }
5302 test -n "$OBJC" && break
5305 if test -z "$OBJC"; then
5307 for ac_prog in gcc objcc objc cc CC
5309 # Extract the first word of "$ac_prog", so it can be a program name with args.
5310 set dummy $ac_prog; ac_word=$2
5311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
5314 $as_echo_n "(cached) " >&6
5316 if test -n "$ac_ct_OBJC"; then
5317 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_ac_ct_OBJC="$ac_prog"
5327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5337 if test -n "$ac_ct_OBJC"; then
5338 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
5339 $as_echo "$ac_ct_OBJC" >&6; }
5341 { $as_echo "$as_me:$LINENO: result: no" >&5
5342 $as_echo "no" >&6; }
5346 test -n "$ac_ct_OBJC" && break
5349 if test "x$ac_ct_OBJC" = x; then
5352 case $cross_compiling:$ac_tool_warned in
5354 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5355 whose name does not start with the host triplet. If you think this
5356 configuration is useful to you, please write to autoconf@gnu.org." >&5
5357 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5358 whose name does not start with the host triplet. If you think this
5359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5360 ac_tool_warned=yes ;;
5366 # Provide some information about the compiler.
5367 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
5370 { (ac_try="$ac_compiler --version >&5"
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5376 $as_echo "$ac_try_echo") >&5
5377 (eval "$ac_compiler --version >&5") 2>&5
5379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }
5381 { (ac_try="$ac_compiler -v >&5"
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5387 $as_echo "$ac_try_echo") >&5
5388 (eval "$ac_compiler -v >&5") 2>&5
5390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }
5392 { (ac_try="$ac_compiler -V >&5"
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5398 $as_echo "$ac_try_echo") >&5
5399 (eval "$ac_compiler -V >&5") 2>&5
5401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }
5404 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
5405 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5406 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
5407 $as_echo_n "(cached) " >&6
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5427 rm -f conftest.$ac_objext
5428 if { (ac_try="$ac_compile"
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5434 $as_echo "$ac_try_echo") >&5
5435 (eval "$ac_compile") 2>conftest.er1
5437 grep -v '^ *+' conftest.er1 >conftest.err
5439 cat conftest.err >&5
5440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && {
5442 test -z "$ac_objc_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest.$ac_objext; then
5447 $as_echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5457 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
5458 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5459 if test $ac_compiler_gnu = yes; then
5464 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5465 ac_save_OBJCFLAGS=$OBJCFLAGS
5466 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
5467 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5468 if test "${ac_cv_prog_objc_g+set}" = set; then
5469 $as_echo_n "(cached) " >&6
5471 ac_save_objc_werror_flag=$ac_objc_werror_flag
5472 ac_objc_werror_flag=yes
5473 ac_cv_prog_objc_g=no
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5490 rm -f conftest.$ac_objext
5491 if { (ac_try="$ac_compile"
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5497 $as_echo "$ac_try_echo") >&5
5498 (eval "$ac_compile") 2>conftest.er1
5500 grep -v '^ *+' conftest.er1 >conftest.err
5502 cat conftest.err >&5
5503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && {
5505 test -z "$ac_objc_werror_flag" ||
5506 test ! -s conftest.err
5507 } && test -s conftest.$ac_objext; then
5508 ac_cv_prog_objc_g=yes
5510 $as_echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5529 rm -f conftest.$ac_objext
5530 if { (ac_try="$ac_compile"
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5536 $as_echo "$ac_try_echo") >&5
5537 (eval "$ac_compile") 2>conftest.er1
5539 grep -v '^ *+' conftest.er1 >conftest.err
5541 cat conftest.err >&5
5542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && {
5544 test -z "$ac_objc_werror_flag" ||
5545 test ! -s conftest.err
5546 } && test -s conftest.$ac_objext; then
5549 $as_echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5552 ac_objc_werror_flag=$ac_save_objc_werror_flag
5554 cat >conftest.$ac_ext <<_ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5576 $as_echo "$ac_try_echo") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5579 grep -v '^ *+' conftest.er1 >conftest.err
5581 cat conftest.err >&5
5582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_objc_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
5587 ac_cv_prog_objc_g=yes
5589 $as_echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602 ac_objc_werror_flag=$ac_save_objc_werror_flag
5604 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
5605 $as_echo "$ac_cv_prog_objc_g" >&6; }
5606 if test "$ac_test_OBJCFLAGS" = set; then
5607 OBJCFLAGS=$ac_save_OBJCFLAGS
5608 elif test $ac_cv_prog_objc_g = yes; then
5609 if test "$GOBJC" = yes; then
5615 if test "$GOBJC" = yes; then
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5627 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5628 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5629 if test "${ac_cv_path_SED+set}" = set; then
5630 $as_echo_n "(cached) " >&6
5632 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5633 for ac_i in 1 2 3 4 5 6 7; do
5634 ac_script="$ac_script$as_nl$ac_script"
5636 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5637 $as_unset ac_script || ac_script=
5638 if test -z "$SED"; then
5639 ac_path_SED_found=false
5640 # Loop through the user's path and test for each of PROGNAME-LIST
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 test -z "$as_dir" && as_dir=.
5646 for ac_prog in sed gsed; do
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5649 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5650 # Check for GNU ac_path_SED and select it if it is found.
5651 # Check for GNU $ac_path_SED
5652 case `"$ac_path_SED" --version 2>&1` in
5654 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5657 $as_echo_n 0123456789 >"conftest.in"
5660 cat "conftest.in" "conftest.in" >"conftest.tmp"
5661 mv "conftest.tmp" "conftest.in"
5662 cp "conftest.in" "conftest.nl"
5663 $as_echo '' >> "conftest.nl"
5664 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5666 ac_count=`expr $ac_count + 1`
5667 if test $ac_count -gt ${ac_path_SED_max-0}; then
5668 # Best one so far, save it but keep looking for a better one
5669 ac_cv_path_SED="$ac_path_SED"
5670 ac_path_SED_max=$ac_count
5672 # 10*(2^10) chars as input seems more than enough
5673 test $ac_count -gt 10 && break
5675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5678 $ac_path_SED_found && break 3
5683 if test -z "$ac_cv_path_SED"; then
5684 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5685 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5686 { (exit 1); exit 1; }; }
5693 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5694 $as_echo "$ac_cv_path_SED" >&6; }
5695 SED="$ac_cv_path_SED"
5698 # By default we simply use the C compiler to build assembly code.
5700 test "${CCAS+set}" = set || CCAS=$CC
5701 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5706 ac_cpp='$CPP $CPPFLAGS'
5707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5711 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5712 # On Suns, sometimes $CPP names a directory.
5713 if test -n "$CPP" && test -d "$CPP"; then
5716 if test -z "$CPP"; then
5717 if test "${ac_cv_prog_CPP+set}" = set; then
5718 $as_echo_n "(cached) " >&6
5720 # Double quotes because CPP needs to be expanded
5721 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5724 for ac_c_preproc_warn_flag in '' yes
5726 # Use a header file that comes with gcc, so configuring glibc
5727 # with a fresh cross-compiler works.
5728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5729 # <limits.h> exists even on freestanding compilers.
5730 # On the NeXT, cc -E runs the code through the compiler's parser,
5731 # not just through cpp. "Syntax error" is here to catch this case.
5732 cat >conftest.$ac_ext <<_ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5739 # include <limits.h>
5741 # include <assert.h>
5745 if { (ac_try="$ac_cpp conftest.$ac_ext"
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5751 $as_echo "$ac_try_echo") >&5
5752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5754 grep -v '^ *+' conftest.er1 >conftest.err
5756 cat conftest.err >&5
5757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } >/dev/null && {
5759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5760 test ! -s conftest.err
5764 $as_echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 # Broken: fails on valid input.
5771 rm -f conftest.err conftest.$ac_ext
5773 # OK, works on sane cases. Now check whether nonexistent headers
5774 # can be detected and how.
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 #include <ac_nonexistent.h>
5783 if { (ac_try="$ac_cpp conftest.$ac_ext"
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5789 $as_echo "$ac_try_echo") >&5
5790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5792 grep -v '^ *+' conftest.er1 >conftest.err
5794 cat conftest.err >&5
5795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } >/dev/null && {
5797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5800 # Broken: success on invalid input.
5803 $as_echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5806 # Passes both tests.
5811 rm -f conftest.err conftest.$ac_ext
5814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5815 rm -f conftest.err conftest.$ac_ext
5816 if $ac_preproc_ok; then
5828 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5829 $as_echo "$CPP" >&6; }
5831 for ac_c_preproc_warn_flag in '' yes
5833 # Use a header file that comes with gcc, so configuring glibc
5834 # with a fresh cross-compiler works.
5835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5836 # <limits.h> exists even on freestanding compilers.
5837 # On the NeXT, cc -E runs the code through the compiler's parser,
5838 # not just through cpp. "Syntax error" is here to catch this case.
5839 cat >conftest.$ac_ext <<_ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5846 # include <limits.h>
5848 # include <assert.h>
5852 if { (ac_try="$ac_cpp conftest.$ac_ext"
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5858 $as_echo "$ac_try_echo") >&5
5859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5861 grep -v '^ *+' conftest.er1 >conftest.err
5863 cat conftest.err >&5
5864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } >/dev/null && {
5866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5867 test ! -s conftest.err
5871 $as_echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 # Broken: fails on valid input.
5878 rm -f conftest.err conftest.$ac_ext
5880 # OK, works on sane cases. Now check whether nonexistent headers
5881 # can be detected and how.
5882 cat >conftest.$ac_ext <<_ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888 #include <ac_nonexistent.h>
5890 if { (ac_try="$ac_cpp conftest.$ac_ext"
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5896 $as_echo "$ac_try_echo") >&5
5897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5899 grep -v '^ *+' conftest.er1 >conftest.err
5901 cat conftest.err >&5
5902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } >/dev/null && {
5904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5907 # Broken: success on invalid input.
5910 $as_echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 # Passes both tests.
5918 rm -f conftest.err conftest.$ac_ext
5921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5922 rm -f conftest.err conftest.$ac_ext
5923 if $ac_preproc_ok; then
5926 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5927 See \`config.log' for more details." >&5
5928 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5929 See \`config.log' for more details." >&2;}
5930 { (exit 1); exit 1; }; }
5934 ac_cpp='$CPP $CPPFLAGS'
5935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5940 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5941 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5942 if test "${ac_cv_path_GREP+set}" = set; then
5943 $as_echo_n "(cached) " >&6
5945 if test -z "$GREP"; then
5946 ac_path_GREP_found=false
5947 # Loop through the user's path and test for each of PROGNAME-LIST
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5952 test -z "$as_dir" && as_dir=.
5953 for ac_prog in grep ggrep; do
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5956 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5957 # Check for GNU ac_path_GREP and select it if it is found.
5958 # Check for GNU $ac_path_GREP
5959 case `"$ac_path_GREP" --version 2>&1` in
5961 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5964 $as_echo_n 0123456789 >"conftest.in"
5967 cat "conftest.in" "conftest.in" >"conftest.tmp"
5968 mv "conftest.tmp" "conftest.in"
5969 cp "conftest.in" "conftest.nl"
5970 $as_echo 'GREP' >> "conftest.nl"
5971 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5973 ac_count=`expr $ac_count + 1`
5974 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5975 # Best one so far, save it but keep looking for a better one
5976 ac_cv_path_GREP="$ac_path_GREP"
5977 ac_path_GREP_max=$ac_count
5979 # 10*(2^10) chars as input seems more than enough
5980 test $ac_count -gt 10 && break
5982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5985 $ac_path_GREP_found && break 3
5990 if test -z "$ac_cv_path_GREP"; then
5991 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5992 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5993 { (exit 1); exit 1; }; }
5996 ac_cv_path_GREP=$GREP
6000 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6001 $as_echo "$ac_cv_path_GREP" >&6; }
6002 GREP="$ac_cv_path_GREP"
6005 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6006 $as_echo_n "checking for egrep... " >&6; }
6007 if test "${ac_cv_path_EGREP+set}" = set; then
6008 $as_echo_n "(cached) " >&6
6010 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6011 then ac_cv_path_EGREP="$GREP -E"
6013 if test -z "$EGREP"; then
6014 ac_path_EGREP_found=false
6015 # Loop through the user's path and test for each of PROGNAME-LIST
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6020 test -z "$as_dir" && as_dir=.
6021 for ac_prog in egrep; do
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6024 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6025 # Check for GNU ac_path_EGREP and select it if it is found.
6026 # Check for GNU $ac_path_EGREP
6027 case `"$ac_path_EGREP" --version 2>&1` in
6029 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6032 $as_echo_n 0123456789 >"conftest.in"
6035 cat "conftest.in" "conftest.in" >"conftest.tmp"
6036 mv "conftest.tmp" "conftest.in"
6037 cp "conftest.in" "conftest.nl"
6038 $as_echo 'EGREP' >> "conftest.nl"
6039 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6041 ac_count=`expr $ac_count + 1`
6042 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6043 # Best one so far, save it but keep looking for a better one
6044 ac_cv_path_EGREP="$ac_path_EGREP"
6045 ac_path_EGREP_max=$ac_count
6047 # 10*(2^10) chars as input seems more than enough
6048 test $ac_count -gt 10 && break
6050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6053 $ac_path_EGREP_found && break 3
6058 if test -z "$ac_cv_path_EGREP"; then
6059 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6060 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6061 { (exit 1); exit 1; }; }
6064 ac_cv_path_EGREP=$EGREP
6069 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6070 $as_echo "$ac_cv_path_EGREP" >&6; }
6071 EGREP="$ac_cv_path_EGREP"
6074 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6075 $as_echo_n "checking for ANSI C header files... " >&6; }
6076 if test "${ac_cv_header_stdc+set}" = set; then
6077 $as_echo_n "(cached) " >&6
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6098 rm -f conftest.$ac_objext
6099 if { (ac_try="$ac_compile"
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6105 $as_echo "$ac_try_echo") >&5
6106 (eval "$ac_compile") 2>conftest.er1
6108 grep -v '^ *+' conftest.er1 >conftest.err
6110 cat conftest.err >&5
6111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } && {
6113 test -z "$ac_c_werror_flag" ||
6114 test ! -s conftest.err
6115 } && test -s conftest.$ac_objext; then
6116 ac_cv_header_stdc=yes
6118 $as_echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6121 ac_cv_header_stdc=no
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 if test $ac_cv_header_stdc = yes; then
6127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6128 cat >conftest.$ac_ext <<_ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6138 $EGREP "memchr" >/dev/null 2>&1; then
6141 ac_cv_header_stdc=no
6147 if test $ac_cv_header_stdc = yes; then
6148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6149 cat >conftest.$ac_ext <<_ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6159 $EGREP "free" >/dev/null 2>&1; then
6162 ac_cv_header_stdc=no
6168 if test $ac_cv_header_stdc = yes; then
6169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6170 if test "$cross_compiling" = yes; then
6173 cat >conftest.$ac_ext <<_ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6181 #if ((' ' & 0x0FF) == 0x020)
6182 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6183 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6185 # define ISLOWER(c) \
6186 (('a' <= (c) && (c) <= 'i') \
6187 || ('j' <= (c) && (c) <= 'r') \
6188 || ('s' <= (c) && (c) <= 'z'))
6189 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6192 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6197 for (i = 0; i < 256; i++)
6198 if (XOR (islower (i), ISLOWER (i))
6199 || toupper (i) != TOUPPER (i))
6204 rm -f conftest$ac_exeext
6205 if { (ac_try="$ac_link"
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6211 $as_echo "$ac_try_echo") >&5
6212 (eval "$ac_link") 2>&5
6214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6216 { (case "(($ac_try" in
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6221 $as_echo "$ac_try_echo") >&5
6222 (eval "$ac_try") 2>&5
6224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6228 $as_echo "$as_me: program exited with status $ac_status" >&5
6229 $as_echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6233 ac_cv_header_stdc=no
6235 rm -rf conftest.dSYM
6236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6242 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6243 $as_echo "$ac_cv_header_stdc" >&6; }
6244 if test $ac_cv_header_stdc = yes; then
6246 cat >>confdefs.h <<\_ACEOF
6247 #define STDC_HEADERS 1
6252 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6262 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6263 inttypes.h stdint.h unistd.h
6265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6267 $as_echo_n "checking for $ac_header... " >&6; }
6268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6269 $as_echo_n "(cached) " >&6
6271 cat >conftest.$ac_ext <<_ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 $ac_includes_default
6279 #include <$ac_header>
6281 rm -f conftest.$ac_objext
6282 if { (ac_try="$ac_compile"
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6288 $as_echo "$ac_try_echo") >&5
6289 (eval "$ac_compile") 2>conftest.er1
6291 grep -v '^ *+' conftest.er1 >conftest.err
6293 cat conftest.err >&5
6294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_objext; then
6299 eval "$as_ac_Header=yes"
6301 $as_echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 eval "$as_ac_Header=no"
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 ac_res=`eval 'as_val=${'$as_ac_Header'}
6310 $as_echo "$as_val"'`
6311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6312 $as_echo "$ac_res" >&6; }
6313 if test `eval 'as_val=${'$as_ac_Header'}
6314 $as_echo "$as_val"'` = yes; then
6315 cat >>confdefs.h <<_ACEOF
6316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6324 # The cast to long int works around a bug in the HP C Compiler
6325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6327 # This bug is HP SR number 8606223364.
6328 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
6329 $as_echo_n "checking size of void *... " >&6; }
6330 if test "${ac_cv_sizeof_void_p+set}" = set; then
6331 $as_echo_n "(cached) " >&6
6333 if test "$cross_compiling" = yes; then
6334 # Depending upon the size, compute the lo and hi bounds.
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6345 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
6352 rm -f conftest.$ac_objext
6353 if { (ac_try="$ac_compile"
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6359 $as_echo "$ac_try_echo") >&5
6360 (eval "$ac_compile") 2>conftest.er1
6362 grep -v '^ *+' conftest.er1 >conftest.err
6364 cat conftest.err >&5
6365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } && {
6367 test -z "$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 } && test -s conftest.$ac_objext; then
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 $ac_includes_default
6382 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6389 rm -f conftest.$ac_objext
6390 if { (ac_try="$ac_compile"
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6396 $as_echo "$ac_try_echo") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6399 grep -v '^ *+' conftest.er1 >conftest.err
6401 cat conftest.err >&5
6402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && {
6404 test -z "$ac_c_werror_flag" ||
6405 test ! -s conftest.err
6406 } && test -s conftest.$ac_objext; then
6407 ac_hi=$ac_mid; break
6409 $as_echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 ac_lo=`expr $ac_mid + 1`
6413 if test $ac_lo -le $ac_mid; then
6417 ac_mid=`expr 2 '*' $ac_mid + 1`
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 $as_echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 cat >conftest.$ac_ext <<_ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 $ac_includes_default
6436 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
6443 rm -f conftest.$ac_objext
6444 if { (ac_try="$ac_compile"
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6450 $as_echo "$ac_try_echo") >&5
6451 (eval "$ac_compile") 2>conftest.er1
6453 grep -v '^ *+' conftest.er1 >conftest.err
6455 cat conftest.err >&5
6456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } && {
6458 test -z "$ac_c_werror_flag" ||
6459 test ! -s conftest.err
6460 } && test -s conftest.$ac_objext; then
6463 cat >conftest.$ac_ext <<_ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6473 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6487 $as_echo "$ac_try_echo") >&5
6488 (eval "$ac_compile") 2>conftest.er1
6490 grep -v '^ *+' conftest.er1 >conftest.err
6492 cat conftest.err >&5
6493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } && {
6495 test -z "$ac_c_werror_flag" ||
6496 test ! -s conftest.err
6497 } && test -s conftest.$ac_objext; then
6498 ac_lo=$ac_mid; break
6500 $as_echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6503 ac_hi=`expr '(' $ac_mid ')' - 1`
6504 if test $ac_mid -le $ac_hi; then
6508 ac_mid=`expr 2 '*' $ac_mid`
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 $as_echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 # Binary search between lo and hi bounds.
6525 while test "x$ac_lo" != "x$ac_hi"; do
6526 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6527 cat >conftest.$ac_ext <<_ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 $ac_includes_default
6537 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551 $as_echo "$ac_try_echo") >&5
6552 (eval "$ac_compile") 2>conftest.er1
6554 grep -v '^ *+' conftest.er1 >conftest.err
6556 cat conftest.err >&5
6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest.$ac_objext; then
6564 $as_echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_lo=`expr '(' $ac_mid ')' + 1`
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6574 '') if test "$ac_cv_type_void_p" = yes; then
6575 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6576 See \`config.log' for more details." >&5
6577 $as_echo "$as_me: error: cannot compute sizeof (void *)
6578 See \`config.log' for more details." >&2;}
6579 { (exit 77); exit 77; }; }
6581 ac_cv_sizeof_void_p=0
6585 cat >conftest.$ac_ext <<_ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6591 $ac_includes_default
6592 static long int longval () { return (long int) (sizeof (void *)); }
6593 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6600 FILE *f = fopen ("conftest.val", "w");
6603 if (((long int) (sizeof (void *))) < 0)
6605 long int i = longval ();
6606 if (i != ((long int) (sizeof (void *))))
6608 fprintf (f, "%ld", i);
6612 unsigned long int i = ulongval ();
6613 if (i != ((long int) (sizeof (void *))))
6615 fprintf (f, "%lu", i);
6617 /* Do not output a trailing newline, as this causes \r\n confusion
6618 on some platforms. */
6619 return ferror (f) || fclose (f) != 0;
6625 rm -f conftest$ac_exeext
6626 if { (ac_try="$ac_link"
6628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6632 $as_echo "$ac_try_echo") >&5
6633 (eval "$ac_link") 2>&5
6635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6637 { (case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6642 $as_echo "$ac_try_echo") >&5
6643 (eval "$ac_try") 2>&5
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_sizeof_void_p=`cat conftest.val`
6649 $as_echo "$as_me: program exited with status $ac_status" >&5
6650 $as_echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6654 if test "$ac_cv_type_void_p" = yes; then
6655 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6656 See \`config.log' for more details." >&5
6657 $as_echo "$as_me: error: cannot compute sizeof (void *)
6658 See \`config.log' for more details." >&2;}
6659 { (exit 77); exit 77; }; }
6661 ac_cv_sizeof_void_p=0
6664 rm -rf conftest.dSYM
6665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6669 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6670 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6674 cat >>confdefs.h <<_ACEOF
6675 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6679 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6680 $as_echo_n "checking for ANSI C header files... " >&6; }
6681 if test "${ac_cv_header_stdc+set}" = set; then
6682 $as_echo_n "(cached) " >&6
6684 cat >conftest.$ac_ext <<_ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6703 rm -f conftest.$ac_objext
6704 if { (ac_try="$ac_compile"
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6710 $as_echo "$ac_try_echo") >&5
6711 (eval "$ac_compile") 2>conftest.er1
6713 grep -v '^ *+' conftest.er1 >conftest.err
6715 cat conftest.err >&5
6716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } && {
6718 test -z "$ac_c_werror_flag" ||
6719 test ! -s conftest.err
6720 } && test -s conftest.$ac_objext; then
6721 ac_cv_header_stdc=yes
6723 $as_echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 ac_cv_header_stdc=no
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 if test $ac_cv_header_stdc = yes; then
6732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6733 cat >conftest.$ac_ext <<_ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6743 $EGREP "memchr" >/dev/null 2>&1; then
6746 ac_cv_header_stdc=no
6752 if test $ac_cv_header_stdc = yes; then
6753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6754 cat >conftest.$ac_ext <<_ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6764 $EGREP "free" >/dev/null 2>&1; then
6767 ac_cv_header_stdc=no
6773 if test $ac_cv_header_stdc = yes; then
6774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6775 if test "$cross_compiling" = yes; then
6778 cat >conftest.$ac_ext <<_ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6786 #if ((' ' & 0x0FF) == 0x020)
6787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6790 # define ISLOWER(c) \
6791 (('a' <= (c) && (c) <= 'i') \
6792 || ('j' <= (c) && (c) <= 'r') \
6793 || ('s' <= (c) && (c) <= 'z'))
6794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6802 for (i = 0; i < 256; i++)
6803 if (XOR (islower (i), ISLOWER (i))
6804 || toupper (i) != TOUPPER (i))
6809 rm -f conftest$ac_exeext
6810 if { (ac_try="$ac_link"
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6816 $as_echo "$ac_try_echo") >&5
6817 (eval "$ac_link") 2>&5
6819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6821 { (case "(($ac_try" in
6822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6823 *) ac_try_echo=$ac_try;;
6825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6826 $as_echo "$ac_try_echo") >&5
6827 (eval "$ac_try") 2>&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6833 $as_echo "$as_me: program exited with status $ac_status" >&5
6834 $as_echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6838 ac_cv_header_stdc=no
6840 rm -rf conftest.dSYM
6841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6847 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6848 $as_echo "$ac_cv_header_stdc" >&6; }
6849 if test $ac_cv_header_stdc = yes; then
6851 cat >>confdefs.h <<\_ACEOF
6852 #define STDC_HEADERS 1
6857 # Make sure we can run config.sub.
6858 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6859 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6860 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6861 { (exit 1); exit 1; }; }
6863 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6864 $as_echo_n "checking build system type... " >&6; }
6865 if test "${ac_cv_build+set}" = set; then
6866 $as_echo_n "(cached) " >&6
6868 ac_build_alias=$build_alias
6869 test "x$ac_build_alias" = x &&
6870 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6871 test "x$ac_build_alias" = x &&
6872 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6873 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6874 { (exit 1); exit 1; }; }
6875 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6876 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6877 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6878 { (exit 1); exit 1; }; }
6881 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6882 $as_echo "$ac_cv_build" >&6; }
6883 case $ac_cv_build in
6885 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6886 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6887 { (exit 1); exit 1; }; };;
6890 ac_save_IFS=$IFS; IFS='-'
6896 # Remember, the first character of IFS is used to create $*,
6897 # except with old shells:
6900 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6903 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6904 $as_echo_n "checking host system type... " >&6; }
6905 if test "${ac_cv_host+set}" = set; then
6906 $as_echo_n "(cached) " >&6
6908 if test "x$host_alias" = x; then
6909 ac_cv_host=$ac_cv_build
6911 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6912 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6913 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6914 { (exit 1); exit 1; }; }
6918 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6919 $as_echo "$ac_cv_host" >&6; }
6922 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6923 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6924 { (exit 1); exit 1; }; };;
6927 ac_save_IFS=$IFS; IFS='-'
6933 # Remember, the first character of IFS is used to create $*,
6934 # except with old shells:
6937 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6942 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6944 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6945 $as_echo_n "checking dependency style of $depcc... " >&6; }
6946 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
6947 $as_echo_n "(cached) " >&6
6949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6950 # We make a subdir and do the tests there. Otherwise we can end up
6951 # making bogus files that we don't know about and never remove. For
6952 # instance it was reported that on HP-UX the gcc test will end up
6953 # making a dummy file named `D' -- because `-MD' means `put the output
6956 # Copy depcomp to subdir because otherwise we won't find it if we're
6957 # using a relative directory.
6958 cp "$am_depcomp" conftest.dir
6960 # We will build objects and dependencies in a subdirectory because
6961 # it helps to detect inapplicable dependency modes. For instance
6962 # both Tru64's cc and ICC support -MD to output dependencies as a
6963 # side effect of compilation, but ICC will put the dependencies in
6964 # the current directory while Tru64 will put them in the object
6968 am_cv_OBJC_dependencies_compiler_type=none
6969 if test "$am_compiler_list" = ""; then
6970 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6972 for depmode in $am_compiler_list; do
6973 # Setup a source with many dependencies, because some compilers
6974 # like to wrap large dependency lists on column 80 (with \), and
6975 # we should not choose a depcomp mode which is confused by this.
6977 # We need to recreate these files for each test, as the compiler may
6978 # overwrite some of them when testing with obscure command lines.
6979 # This happens at least with the AIX C compiler.
6981 for i in 1 2 3 4 5 6; do
6982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6983 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6984 # Solaris 8's {/usr,}/bin/sh.
6985 touch sub/conftst$i.h
6987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6991 # after this tag, mechanisms are not by side-effect, so they'll
6992 # only be used when explicitly requested
6993 if test "x$enable_dependency_tracking" = xyes; then
7001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7002 # mode. It turns out that the SunPro C++ compiler does not properly
7003 # handle `-M -o', and we need to detect this.
7004 if depmode=$depmode \
7005 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7007 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7008 >/dev/null 2>conftest.err &&
7009 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7010 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7011 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7012 # icc doesn't choke on unknown options, it will just issue warnings
7013 # or remarks (even with -Werror). So we grep stderr for any message
7014 # that says an option was ignored or not supported.
7015 # When given -MP, icc 7.0 and 7.1 complain thusly:
7016 # icc: Command line warning: ignoring option '-M'; no argument required
7017 # The diagnosis changed in icc 8.0:
7018 # icc: Command line remark: option '-MP' not supported
7019 if (grep 'ignoring option' conftest.err ||
7020 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7021 am_cv_OBJC_dependencies_compiler_type=$depmode
7030 am_cv_OBJC_dependencies_compiler_type=none
7034 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
7035 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
7036 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
7041 test "x$enable_dependency_tracking" != xno \
7042 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
7043 am__fastdepOBJC_TRUE=
7044 am__fastdepOBJC_FALSE='#'
7046 am__fastdepOBJC_TRUE='#'
7047 am__fastdepOBJC_FALSE=
7052 # Extract the first word of "pod2man", so it can be a program name with args.
7053 set dummy pod2man; ac_word=$2
7054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if test "${ac_cv_path_POD2MAN+set}" = set; then
7057 $as_echo_n "(cached) " >&6
7061 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 POD2MAN=$ac_cv_path_POD2MAN
7083 if test -n "$POD2MAN"; then
7084 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
7085 $as_echo "$POD2MAN" >&6; }
7087 { $as_echo "$as_me:$LINENO: result: no" >&5
7088 $as_echo "no" >&6; }
7092 # Extract the first word of "pod2html", so it can be a program name with args.
7093 set dummy pod2html; ac_word=$2
7094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if test "${ac_cv_path_POD2HTML+set}" = set; then
7097 $as_echo_n "(cached) " >&6
7101 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7112 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 POD2HTML=$ac_cv_path_POD2HTML
7123 if test -n "$POD2HTML"; then
7124 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
7125 $as_echo "$POD2HTML" >&6; }
7127 { $as_echo "$as_me:$LINENO: result: no" >&5
7128 $as_echo "no" >&6; }
7134 # Check whether --enable-strict-warn was given.
7135 if test "${enable_strict_warn+set}" = set; then
7136 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
7137 enable_strictwarn=yes
7141 # Check whether --enable-translator was given.
7142 if test "${enable_translator+set}" = set; then
7143 enableval=$enable_translator; true
7145 enable_translator=yes
7148 # Check whether --enable-optimized was given.
7149 if test "${enable_optimized+set}" = set; then
7150 enableval=$enable_optimized; true
7152 enable_optimized=yes
7155 # Check whether --enable-profiled was given.
7156 if test "${enable_profiled+set}" = set; then
7157 enableval=$enable_profiled; if test "$enableval" == "yes"; then
7158 enable_profiled=yes;
7162 # Check whether --enable-trace was given.
7163 if test "${enable_trace+set}" = set; then
7164 enableval=$enable_trace; if test "$enableval" == "yes"; then
7166 cat >>confdefs.h <<\_ACEOF
7167 #define ENABLE_TRACE_IO 1
7173 # Check whether --enable-watch was given.
7174 if test "${enable_watch+set}" = set; then
7175 enableval=$enable_watch; if test "$enableval" == "yes"; then
7177 cat >>confdefs.h <<\_ACEOF
7178 #define ENABLE_WATCH 1
7184 # Check whether --enable-sh4stats was given.
7185 if test "${enable_sh4stats+set}" = set; then
7186 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
7188 cat >>confdefs.h <<\_ACEOF
7189 #define ENABLE_SH4STATS 1
7196 # Check whether --with-osmesa was given.
7197 if test "${with_osmesa+set}" = set; then
7198 withval=$with_osmesa;
7204 # Check whether --with-gtk was given.
7205 if test "${with_gtk+set}" = set; then
7206 withval=$with_gtk; with_gtk=yes
7212 # Check whether --with-esd was given.
7213 if test "${with_esd+set}" = set; then
7218 # Check whether --with-pulse was given.
7219 if test "${with_pulse+set}" = set; then
7220 withval=$with_pulse;
7224 # Check whether --with-sdl was given.
7225 if test "${with_sdl+set}" = set; then
7235 ac_cpp='$OBJCPP $CPPFLAGS'
7236 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7237 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7238 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7239 if test -n "$ac_tool_prefix"; then
7240 for ac_prog in gcc objcc objc cc CC
7242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7244 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if test "${ac_cv_prog_OBJC+set}" = set; then
7247 $as_echo_n "(cached) " >&6
7249 if test -n "$OBJC"; then
7250 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7260 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 OBJC=$ac_cv_prog_OBJC
7270 if test -n "$OBJC"; then
7271 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
7272 $as_echo "$OBJC" >&6; }
7274 { $as_echo "$as_me:$LINENO: result: no" >&5
7275 $as_echo "no" >&6; }
7279 test -n "$OBJC" && break
7282 if test -z "$OBJC"; then
7284 for ac_prog in gcc objcc objc cc CC
7286 # Extract the first word of "$ac_prog", so it can be a program name with args.
7287 set dummy $ac_prog; ac_word=$2
7288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7291 $as_echo_n "(cached) " >&6
7293 if test -n "$ac_ct_OBJC"; then
7294 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7314 if test -n "$ac_ct_OBJC"; then
7315 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7316 $as_echo "$ac_ct_OBJC" >&6; }
7318 { $as_echo "$as_me:$LINENO: result: no" >&5
7319 $as_echo "no" >&6; }
7323 test -n "$ac_ct_OBJC" && break
7326 if test "x$ac_ct_OBJC" = x; then
7329 case $cross_compiling:$ac_tool_warned in
7331 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7332 whose name does not start with the host triplet. If you think this
7333 configuration is useful to you, please write to autoconf@gnu.org." >&5
7334 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7335 whose name does not start with the host triplet. If you think this
7336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7337 ac_tool_warned=yes ;;
7343 # Provide some information about the compiler.
7344 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7347 { (ac_try="$ac_compiler --version >&5"
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7353 $as_echo "$ac_try_echo") >&5
7354 (eval "$ac_compiler --version >&5") 2>&5
7356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }
7358 { (ac_try="$ac_compiler -v >&5"
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7364 $as_echo "$ac_try_echo") >&5
7365 (eval "$ac_compiler -v >&5") 2>&5
7367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }
7369 { (ac_try="$ac_compiler -V >&5"
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7375 $as_echo "$ac_try_echo") >&5
7376 (eval "$ac_compiler -V >&5") 2>&5
7378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }
7381 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7382 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
7383 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7384 $as_echo_n "(cached) " >&6
7386 cat >conftest.$ac_ext <<_ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7404 rm -f conftest.$ac_objext
7405 if { (ac_try="$ac_compile"
7407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7411 $as_echo "$ac_try_echo") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7414 grep -v '^ *+' conftest.er1 >conftest.err
7416 cat conftest.err >&5
7417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_objc_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.$ac_objext; then
7424 $as_echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7434 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7435 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
7436 if test $ac_compiler_gnu = yes; then
7441 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7442 ac_save_OBJCFLAGS=$OBJCFLAGS
7443 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7444 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
7445 if test "${ac_cv_prog_objc_g+set}" = set; then
7446 $as_echo_n "(cached) " >&6
7448 ac_save_objc_werror_flag=$ac_objc_werror_flag
7449 ac_objc_werror_flag=yes
7450 ac_cv_prog_objc_g=no
7452 cat >conftest.$ac_ext <<_ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7467 rm -f conftest.$ac_objext
7468 if { (ac_try="$ac_compile"
7470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7471 *) ac_try_echo=$ac_try;;
7473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7474 $as_echo "$ac_try_echo") >&5
7475 (eval "$ac_compile") 2>conftest.er1
7477 grep -v '^ *+' conftest.er1 >conftest.err
7479 cat conftest.err >&5
7480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && {
7482 test -z "$ac_objc_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest.$ac_objext; then
7485 ac_cv_prog_objc_g=yes
7487 $as_echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7491 cat >conftest.$ac_ext <<_ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7506 rm -f conftest.$ac_objext
7507 if { (ac_try="$ac_compile"
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7513 $as_echo "$ac_try_echo") >&5
7514 (eval "$ac_compile") 2>conftest.er1
7516 grep -v '^ *+' conftest.er1 >conftest.err
7518 cat conftest.err >&5
7519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } && {
7521 test -z "$ac_objc_werror_flag" ||
7522 test ! -s conftest.err
7523 } && test -s conftest.$ac_objext; then
7526 $as_echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7529 ac_objc_werror_flag=$ac_save_objc_werror_flag
7531 cat >conftest.$ac_ext <<_ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7546 rm -f conftest.$ac_objext
7547 if { (ac_try="$ac_compile"
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553 $as_echo "$ac_try_echo") >&5
7554 (eval "$ac_compile") 2>conftest.er1
7556 grep -v '^ *+' conftest.er1 >conftest.err
7558 cat conftest.err >&5
7559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_objc_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest.$ac_objext; then
7564 ac_cv_prog_objc_g=yes
7566 $as_echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 ac_objc_werror_flag=$ac_save_objc_werror_flag
7581 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7582 $as_echo "$ac_cv_prog_objc_g" >&6; }
7583 if test "$ac_test_OBJCFLAGS" = set; then
7584 OBJCFLAGS=$ac_save_OBJCFLAGS
7585 elif test $ac_cv_prog_objc_g = yes; then
7586 if test "$GOBJC" = yes; then
7592 if test "$GOBJC" = yes; then
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7604 { $as_echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
7605 $as_echo_n "checking for a working Objective-C compiler... " >&6; }
7607 ac_cpp='$OBJCPP $CPPFLAGS'
7608 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7626 rm -f conftest.$ac_objext
7627 if { (ac_try="$ac_compile"
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7633 $as_echo "$ac_try_echo") >&5
7634 (eval "$ac_compile") 2>conftest.er1
7636 grep -v '^ *+' conftest.er1 >conftest.err
7638 cat conftest.err >&5
7639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && {
7641 test -z "$ac_objc_werror_flag" ||
7642 test ! -s conftest.err
7643 } && test -s conftest.$ac_objext; then
7644 { $as_echo "$as_me:$LINENO: result: yes" >&5
7645 $as_echo "yes" >&6; }
7647 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7648 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7649 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7650 $as_echo_n "(cached) " >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 $ac_includes_default
7660 #include <Cocoa/Cocoa.h>
7662 rm -f conftest.$ac_objext
7663 if { (ac_try="$ac_compile"
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7669 $as_echo "$ac_try_echo") >&5
7670 (eval "$ac_compile") 2>conftest.er1
7672 grep -v '^ *+' conftest.er1 >conftest.err
7674 cat conftest.err >&5
7675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && {
7677 test -z "$ac_objc_werror_flag" ||
7678 test ! -s conftest.err
7679 } && test -s conftest.$ac_objext; then
7680 ac_cv_header_Cocoa_Cocoa_h=yes
7682 $as_echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7685 ac_cv_header_Cocoa_Cocoa_h=no
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7691 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7692 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
7696 LIBS="$LIBS -framework AppKit"
7697 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"
7698 CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
7699 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
7701 cat >>confdefs.h <<\_ACEOF
7702 #define HAVE_COCOA 1
7706 cat >>confdefs.h <<\_ACEOF
7707 #define APPLE_BUILD 1
7710 if test "x$with_gtk" = "xx11"; then
7719 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
7720 $as_echo_n "checking OBJC version... " >&6; }
7721 if test -n "$OBJC"; then
7722 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
7723 if test -n "$_GOBJC_VERSION"; then
7724 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7725 $as_echo "GCC" >&6; }
7726 OBJCOPT="-O2 -msse2 -mfpmath=sse"
7727 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
7729 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7730 $as_echo "Unknown" >&6; }
7734 { $as_echo "$as_me:$LINENO: result: None" >&5
7735 $as_echo "None" >&6; }
7741 $as_echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7744 { $as_echo "$as_me:$LINENO: result: No" >&5
7745 $as_echo "No" >&6; }
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
7751 ac_cpp='$CPP $CPPFLAGS'
7752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7760 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
7768 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
7770 cat >>confdefs.h <<\_ACEOF
7771 #define OSX_BUNDLE 1
7776 CFLAGS="-g -fexceptions"
7777 OBJCFLAGS="-g -fexceptions"
7779 cat >>confdefs.h <<\_ACEOF
7780 #define HAVE_EXCEPTIONS 1
7786 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
7787 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
7788 { $as_echo "$as_me:$LINENO: checking CC version" >&5
7789 $as_echo_n "checking CC version... " >&6; }
7790 if test -n "$_ICC_VERSION"; then
7791 { $as_echo "$as_me:$LINENO: result: ICC" >&5
7792 $as_echo "ICC" >&6; }
7793 CCOPT="$CFLAGS -fast"
7794 CFLAGS="$CFLAGS -fno-strict-aliasing"
7795 elif test -n "$_GCC_VERSION"; then
7796 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7797 $as_echo "GCC" >&6; }
7798 CCOPT="-O2 -msse2 -mfpmath=sse"
7799 CFLAGS="$CFLAGS -fno-strict-aliasing"
7801 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7802 $as_echo "Unknown" >&6; }
7807 if test "x$enable_optimized" = "xyes"; then
7808 CFLAGS="$CFLAGS $CCOPT"
7809 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
7810 if test "x$enable_profiled" != "xyes"; then
7811 CFLAGS="$CFLAGS -fomit-frame-pointer"
7812 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
7815 CFLAGS="$CFLAGS -g3"
7816 OBJCFLAGS="$OBJCFLAGS -g3"
7819 if test "x$enable_profiled" = "xyes"; then
7820 CFLAGS="$CFLAGS -pg"
7821 LDFLAGS="$LDFLAGS -pg";
7822 OBJCFLAGS="$OBJCFLAGS -pg";
7825 if test "x$enable_strictwarn" = "xyes"; then
7826 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
7827 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
7831 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
7832 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
7833 if test "$cross_compiling" = yes; then
7834 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7835 See \`config.log' for more details." >&5
7836 $as_echo "$as_me: error: cannot run test program while cross compiling
7837 See \`config.log' for more details." >&2;}
7838 { (exit 1); exit 1; }; }
7840 cat >conftest.$ac_ext <<_ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7848 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
7850 int main(int argc, char *argv[])
7852 return foo( 1, 2 ) == 3 ? 0 : 1;
7855 rm -f conftest$ac_exeext
7856 if { (ac_try="$ac_link"
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7862 $as_echo "$ac_try_echo") >&5
7863 (eval "$ac_link") 2>&5
7865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7867 { (case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7872 $as_echo "$ac_try_echo") >&5
7873 (eval "$ac_try") 2>&5
7875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7878 { $as_echo "$as_me:$LINENO: result: yes" >&5
7879 $as_echo "yes" >&6; }
7882 cat >>confdefs.h <<\_ACEOF
7883 #define HAVE_FASTCALL 1
7888 $as_echo "$as_me: program exited with status $ac_status" >&5
7889 $as_echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7894 { $as_echo "$as_me:$LINENO: result: no" >&5
7895 $as_echo "no" >&6; }
7898 rm -rf conftest.dSYM
7899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7905 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
7906 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
7907 if test "$cross_compiling" = yes; then
7908 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7909 See \`config.log' for more details." >&5
7910 $as_echo "$as_me: error: cannot run test program while cross compiling
7911 See \`config.log' for more details." >&2;}
7912 { (exit 1); exit 1; }; }
7914 cat >conftest.$ac_ext <<_ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7922 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
7923 int __attribute__((noinline)) foo( int arg, void *exc )
7926 *(((void **)__builtin_frame_address(0))+1) = exc;
7931 int main(int argc, char *argv[])
7933 goto *first_arg(&&start, &&except);
7936 return foo( argc, &&except ) + 1;
7942 rm -f conftest$ac_exeext
7943 if { (ac_try="$ac_link"
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7949 $as_echo "$ac_try_echo") >&5
7950 (eval "$ac_link") 2>&5
7952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7954 { (case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7959 $as_echo "$ac_try_echo") >&5
7960 (eval "$ac_try") 2>&5
7962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7965 { $as_echo "$as_me:$LINENO: result: yes" >&5
7966 $as_echo "yes" >&6; }
7969 cat >>confdefs.h <<\_ACEOF
7970 #define HAVE_FRAME_ADDRESS 1
7975 $as_echo "$as_me: program exited with status $ac_status" >&5
7976 $as_echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7981 { $as_echo "$as_me:$LINENO: result: no" >&5
7982 $as_echo "no" >&6; }
7983 { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
7984 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
7986 rm -rf conftest.dSYM
7987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7997 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7998 if test -n "$ac_tool_prefix"; then
7999 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8000 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8002 $as_echo_n "checking for $ac_word... " >&6; }
8003 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8004 $as_echo_n "(cached) " >&6
8008 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8019 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8030 if test -n "$PKG_CONFIG"; then
8031 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8032 $as_echo "$PKG_CONFIG" >&6; }
8034 { $as_echo "$as_me:$LINENO: result: no" >&5
8035 $as_echo "no" >&6; }
8040 if test -z "$ac_cv_path_PKG_CONFIG"; then
8041 ac_pt_PKG_CONFIG=$PKG_CONFIG
8042 # Extract the first word of "pkg-config", so it can be a program name with args.
8043 set dummy pkg-config; ac_word=$2
8044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8045 $as_echo_n "checking for $ac_word... " >&6; }
8046 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8047 $as_echo_n "(cached) " >&6
8049 case $ac_pt_PKG_CONFIG in
8051 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8061 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8062 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8073 if test -n "$ac_pt_PKG_CONFIG"; then
8074 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8075 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8077 { $as_echo "$as_me:$LINENO: result: no" >&5
8078 $as_echo "no" >&6; }
8081 if test "x$ac_pt_PKG_CONFIG" = x; then
8084 case $cross_compiling:$ac_tool_warned in
8086 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8087 whose name does not start with the host triplet. If you think this
8088 configuration is useful to you, please write to autoconf@gnu.org." >&5
8089 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8090 whose name does not start with the host triplet. If you think this
8091 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8092 ac_tool_warned=yes ;;
8094 PKG_CONFIG=$ac_pt_PKG_CONFIG
8097 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8101 if test -n "$PKG_CONFIG"; then
8102 _pkg_min_version=0.9.0
8103 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8104 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8105 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8106 { $as_echo "$as_me:$LINENO: result: yes" >&5
8107 $as_echo "yes" >&6; }
8109 { $as_echo "$as_me:$LINENO: result: no" >&5
8110 $as_echo "no" >&6; }
8117 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
8118 $as_echo_n "checking for LIBPNG... " >&6; }
8120 if test -n "$LIBPNG_CFLAGS"; then
8121 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
8122 elif test -n "$PKG_CONFIG"; then
8123 if test -n "$PKG_CONFIG" && \
8124 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8125 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; then
8129 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
8136 if test -n "$LIBPNG_LIBS"; then
8137 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8138 elif test -n "$PKG_CONFIG"; then
8139 if test -n "$PKG_CONFIG" && \
8140 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8141 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; then
8145 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
8155 if test $pkg_failed = yes; then
8157 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8158 _pkg_short_errors_supported=yes
8160 _pkg_short_errors_supported=no
8162 if test $_pkg_short_errors_supported = yes; then
8163 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
8165 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
8167 # Put the nasty error message in config.log where it belongs
8168 echo "$LIBPNG_PKG_ERRORS" >&5
8170 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
8174 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8175 installed software in a non-standard prefix.
8177 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8178 and LIBPNG_LIBS to avoid the need to call pkg-config.
8179 See the pkg-config man page for more details.
8181 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
8185 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8186 installed software in a non-standard prefix.
8188 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8189 and LIBPNG_LIBS to avoid the need to call pkg-config.
8190 See the pkg-config man page for more details.
8192 { (exit 1); exit 1; }; }
8193 elif test $pkg_failed = untried; then
8194 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8195 is in your PATH or set the PKG_CONFIG environment variable to the full
8198 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8199 and LIBPNG_LIBS to avoid the need to call pkg-config.
8200 See the pkg-config man page for more details.
8202 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8203 See \`config.log' for more details." >&5
8204 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8205 is in your PATH or set the PKG_CONFIG environment variable to the full
8208 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8209 and LIBPNG_LIBS to avoid the need to call pkg-config.
8210 See the pkg-config man page for more details.
8212 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8213 See \`config.log' for more details." >&2;}
8214 { (exit 1); exit 1; }; }
8216 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8217 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8218 { $as_echo "$as_me:$LINENO: result: yes" >&5
8219 $as_echo "yes" >&6; }
8224 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
8225 $as_echo_n "checking for uncompress in -lz... " >&6; }
8226 if test "${ac_cv_lib_z_uncompress+set}" = set; then
8227 $as_echo_n "(cached) " >&6
8229 ac_check_lib_save_LIBS=$LIBS
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8238 /* Override any GCC internal prototype to avoid an error.
8239 Use char because int might match the return type of a GCC
8240 builtin and then its argument prototype would still apply. */
8248 return uncompress ();
8253 rm -f conftest.$ac_objext conftest$ac_exeext
8254 if { (ac_try="$ac_link"
8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257 *) ac_try_echo=$ac_try;;
8259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8260 $as_echo "$ac_try_echo") >&5
8261 (eval "$ac_link") 2>conftest.er1
8263 grep -v '^ *+' conftest.er1 >conftest.err
8265 cat conftest.err >&5
8266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } && {
8268 test -z "$ac_c_werror_flag" ||
8269 test ! -s conftest.err
8270 } && test -s conftest$ac_exeext && {
8271 test "$cross_compiling" = yes ||
8272 $as_test_x conftest$ac_exeext
8274 ac_cv_lib_z_uncompress=yes
8276 $as_echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8279 ac_cv_lib_z_uncompress=no
8282 rm -rf conftest.dSYM
8283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8284 conftest$ac_exeext conftest.$ac_ext
8285 LIBS=$ac_check_lib_save_LIBS
8287 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
8288 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
8289 if test $ac_cv_lib_z_uncompress = yes; then
8290 cat >>confdefs.h <<_ACEOF
8298 echo "Zlib (libz.so) could not be found, but is required."
8303 if test "x$with_gtk" = "xno"; then
8306 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
8307 $as_echo_n "checking for GLIB... " >&6; }
8309 if test -n "$GLIB_CFLAGS"; then
8310 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8311 elif test -n "$PKG_CONFIG"; then
8312 if test -n "$PKG_CONFIG" && \
8313 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8314 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; then
8318 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
8325 if test -n "$GLIB_LIBS"; then
8326 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8327 elif test -n "$PKG_CONFIG"; then
8328 if test -n "$PKG_CONFIG" && \
8329 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8330 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; then
8334 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
8344 if test $pkg_failed = yes; then
8346 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8347 _pkg_short_errors_supported=yes
8349 _pkg_short_errors_supported=no
8351 if test $_pkg_short_errors_supported = yes; then
8352 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
8354 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
8356 # Put the nasty error message in config.log where it belongs
8357 echo "$GLIB_PKG_ERRORS" >&5
8359 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
8363 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8364 installed software in a non-standard prefix.
8366 Alternatively, you may set the environment variables GLIB_CFLAGS
8367 and GLIB_LIBS to avoid the need to call pkg-config.
8368 See the pkg-config man page for more details.
8370 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
8374 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8375 installed software in a non-standard prefix.
8377 Alternatively, you may set the environment variables GLIB_CFLAGS
8378 and GLIB_LIBS to avoid the need to call pkg-config.
8379 See the pkg-config man page for more details.
8381 { (exit 1); exit 1; }; }
8382 elif test $pkg_failed = untried; then
8383 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8384 is in your PATH or set the PKG_CONFIG environment variable to the full
8387 Alternatively, you may set the environment variables GLIB_CFLAGS
8388 and GLIB_LIBS to avoid the need to call pkg-config.
8389 See the pkg-config man page for more details.
8391 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8392 See \`config.log' for more details." >&5
8393 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8394 is in your PATH or set the PKG_CONFIG environment variable to the full
8397 Alternatively, you may set the environment variables GLIB_CFLAGS
8398 and GLIB_LIBS to avoid the need to call pkg-config.
8399 See the pkg-config man page for more details.
8401 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8402 See \`config.log' for more details." >&2;}
8403 { (exit 1); exit 1; }; }
8405 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8406 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8407 { $as_echo "$as_me:$LINENO: result: yes" >&5
8408 $as_echo "yes" >&6; }
8414 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
8415 $as_echo_n "checking for GTK... " >&6; }
8417 if test -n "$GTK_CFLAGS"; then
8418 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8419 elif test -n "$PKG_CONFIG"; then
8420 if test -n "$PKG_CONFIG" && \
8421 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8422 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; then
8426 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
8433 if test -n "$GTK_LIBS"; then
8434 pkg_cv_GTK_LIBS="$GTK_LIBS"
8435 elif test -n "$PKG_CONFIG"; then
8436 if test -n "$PKG_CONFIG" && \
8437 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8438 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; then
8442 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
8452 if test $pkg_failed = yes; then
8454 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8455 _pkg_short_errors_supported=yes
8457 _pkg_short_errors_supported=no
8459 if test $_pkg_short_errors_supported = yes; then
8460 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
8462 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
8464 # Put the nasty error message in config.log where it belongs
8465 echo "$GTK_PKG_ERRORS" >&5
8467 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
8471 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8472 installed software in a non-standard prefix.
8474 Alternatively, you may set the environment variables GTK_CFLAGS
8475 and GTK_LIBS to avoid the need to call pkg-config.
8476 See the pkg-config man page for more details.
8478 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
8482 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8483 installed software in a non-standard prefix.
8485 Alternatively, you may set the environment variables GTK_CFLAGS
8486 and GTK_LIBS to avoid the need to call pkg-config.
8487 See the pkg-config man page for more details.
8489 { (exit 1); exit 1; }; }
8490 elif test $pkg_failed = untried; then
8491 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8492 is in your PATH or set the PKG_CONFIG environment variable to the full
8495 Alternatively, you may set the environment variables GTK_CFLAGS
8496 and GTK_LIBS to avoid the need to call pkg-config.
8497 See the pkg-config man page for more details.
8499 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8500 See \`config.log' for more details." >&5
8501 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8502 is in your PATH or set the PKG_CONFIG environment variable to the full
8505 Alternatively, you may set the environment variables GTK_CFLAGS
8506 and GTK_LIBS to avoid the need to call pkg-config.
8507 See the pkg-config man page for more details.
8509 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8510 See \`config.log' for more details." >&2;}
8511 { (exit 1); exit 1; }; }
8513 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
8514 GTK_LIBS=$pkg_cv_GTK_LIBS
8515 { $as_echo "$as_me:$LINENO: result: yes" >&5
8516 $as_echo "yes" >&6; }
8520 cat >>confdefs.h <<\_ACEOF
8527 LIBS="$LIBS $GTK_LIBS"
8528 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
8529 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
8530 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
8531 $as_echo_n "(cached) " >&6
8533 cat >conftest.$ac_ext <<_ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
8540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8541 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
8543 /* System header to define __stub macros and hopefully few prototypes,
8544 which can conflict with char gdk_x11_display_get_xdisplay (); below.
8545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8546 <limits.h> exists even on freestanding compilers. */
8549 # include <limits.h>
8551 # include <assert.h>
8554 #undef gdk_x11_display_get_xdisplay
8556 /* Override any GCC internal prototype to avoid an error.
8557 Use char because int might match the return type of a GCC
8558 builtin and then its argument prototype would still apply. */
8562 char gdk_x11_display_get_xdisplay ();
8563 /* The GNU C library defines this for functions which it implements
8564 to always fail with ENOSYS. Some functions are actually named
8565 something starting with __ and the normal name is an alias. */
8566 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
8573 return gdk_x11_display_get_xdisplay ();
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (ac_try="$ac_link"
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8585 $as_echo "$ac_try_echo") >&5
8586 (eval "$ac_link") 2>conftest.er1
8588 grep -v '^ *+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } && {
8593 test -z "$ac_c_werror_flag" ||
8594 test ! -s conftest.err
8595 } && test -s conftest$ac_exeext && {
8596 test "$cross_compiling" = yes ||
8597 $as_test_x conftest$ac_exeext
8599 ac_cv_func_gdk_x11_display_get_xdisplay=yes
8601 $as_echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 ac_cv_func_gdk_x11_display_get_xdisplay=no
8607 rm -rf conftest.dSYM
8608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8609 conftest$ac_exeext conftest.$ac_ext
8611 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
8612 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
8613 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
8617 cat >>confdefs.h <<\_ACEOF
8618 #define HAVE_GTK_X11 1
8623 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
8624 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
8625 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
8626 $as_echo_n "(cached) " >&6
8628 cat >conftest.$ac_ext <<_ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8634 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
8635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8636 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
8638 /* System header to define __stub macros and hopefully few prototypes,
8639 which can conflict with char gdk_quartz_window_get_nsview (); below.
8640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8641 <limits.h> exists even on freestanding compilers. */
8644 # include <limits.h>
8646 # include <assert.h>
8649 #undef gdk_quartz_window_get_nsview
8651 /* Override any GCC internal prototype to avoid an error.
8652 Use char because int might match the return type of a GCC
8653 builtin and then its argument prototype would still apply. */
8657 char gdk_quartz_window_get_nsview ();
8658 /* The GNU C library defines this for functions which it implements
8659 to always fail with ENOSYS. Some functions are actually named
8660 something starting with __ and the normal name is an alias. */
8661 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
8668 return gdk_quartz_window_get_nsview ();
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (ac_try="$ac_link"
8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8680 $as_echo "$ac_try_echo") >&5
8681 (eval "$ac_link") 2>conftest.er1
8683 grep -v '^ *+' conftest.er1 >conftest.err
8685 cat conftest.err >&5
8686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && {
8688 test -z "$ac_c_werror_flag" ||
8689 test ! -s conftest.err
8690 } && test -s conftest$ac_exeext && {
8691 test "$cross_compiling" = yes ||
8692 $as_test_x conftest$ac_exeext
8694 ac_cv_func_gdk_quartz_window_get_nsview=yes
8696 $as_echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_cv_func_gdk_quartz_window_get_nsview=no
8702 rm -rf conftest.dSYM
8703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8704 conftest$ac_exeext conftest.$ac_ext
8706 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
8707 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
8708 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
8712 cat >>confdefs.h <<\_ACEOF
8713 #define HAVE_GTK_OSX 1
8722 if test "$HAVE_GTK" = 'yes'; then
8731 if test "x$with_osmesa" != xno; then
8735 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
8736 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
8737 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
8738 $as_echo_n "(cached) " >&6
8740 ac_check_lib_save_LIBS=$LIBS
8741 LIBS="-lOSMesa $LIBS"
8742 cat >conftest.$ac_ext <<_ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8749 /* Override any GCC internal prototype to avoid an error.
8750 Use char because int might match the return type of a GCC
8751 builtin and then its argument prototype would still apply. */
8755 char OSMesaCreateContext ();
8759 return OSMesaCreateContext ();
8764 rm -f conftest.$ac_objext conftest$ac_exeext
8765 if { (ac_try="$ac_link"
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8771 $as_echo "$ac_try_echo") >&5
8772 (eval "$ac_link") 2>conftest.er1
8774 grep -v '^ *+' conftest.er1 >conftest.err
8776 cat conftest.err >&5
8777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } && {
8779 test -z "$ac_c_werror_flag" ||
8780 test ! -s conftest.err
8781 } && test -s conftest$ac_exeext && {
8782 test "$cross_compiling" = yes ||
8783 $as_test_x conftest$ac_exeext
8785 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
8787 $as_echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8790 ac_cv_lib_OSMesa_OSMesaCreateContext=no
8793 rm -rf conftest.dSYM
8794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8795 conftest$ac_exeext conftest.$ac_ext
8796 LIBS=$ac_check_lib_save_LIBS
8798 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
8799 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
8800 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
8801 cat >>confdefs.h <<_ACEOF
8802 #define HAVE_LIBOSMESA 1
8805 LIBS="-lOSMesa $LIBS"
8808 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
8809 See \`config.log' for more details." >&5
8810 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
8811 See \`config.log' for more details." >&2;}
8812 { (exit 1); exit 1; }; }
8815 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8816 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
8817 $as_echo_n "checking for GL/osmesa.h... " >&6; }
8818 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8819 $as_echo_n "(cached) " >&6
8821 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
8822 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
8824 # Is the header compilable?
8825 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
8826 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
8827 cat >conftest.$ac_ext <<_ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h. */
8833 $ac_includes_default
8834 #include <GL/osmesa.h>
8836 rm -f conftest.$ac_objext
8837 if { (ac_try="$ac_compile"
8839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840 *) ac_try_echo=$ac_try;;
8842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8843 $as_echo "$ac_try_echo") >&5
8844 (eval "$ac_compile") 2>conftest.er1
8846 grep -v '^ *+' conftest.er1 >conftest.err
8848 cat conftest.err >&5
8849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } && {
8851 test -z "$ac_c_werror_flag" ||
8852 test ! -s conftest.err
8853 } && test -s conftest.$ac_objext; then
8854 ac_header_compiler=yes
8856 $as_echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8859 ac_header_compiler=no
8862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8864 $as_echo "$ac_header_compiler" >&6; }
8866 # Is the header present?
8867 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
8868 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
8869 cat >conftest.$ac_ext <<_ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8875 #include <GL/osmesa.h>
8877 if { (ac_try="$ac_cpp conftest.$ac_ext"
8879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8880 *) ac_try_echo=$ac_try;;
8882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8883 $as_echo "$ac_try_echo") >&5
8884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8886 grep -v '^ *+' conftest.er1 >conftest.err
8888 cat conftest.err >&5
8889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } >/dev/null && {
8891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8892 test ! -s conftest.err
8894 ac_header_preproc=yes
8896 $as_echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8899 ac_header_preproc=no
8902 rm -f conftest.err conftest.$ac_ext
8903 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8904 $as_echo "$ac_header_preproc" >&6; }
8906 # So? What about this header?
8907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8909 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
8910 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8911 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
8912 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
8913 ac_header_preproc=yes
8916 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
8917 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
8918 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
8919 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
8920 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
8921 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
8922 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
8923 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
8924 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
8925 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
8926 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
8927 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
8931 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
8932 $as_echo_n "checking for GL/osmesa.h... " >&6; }
8933 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8934 $as_echo_n "(cached) " >&6
8936 ac_cv_header_GL_osmesa_h=$ac_header_preproc
8938 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
8939 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
8942 if test $ac_cv_header_GL_osmesa_h = yes; then
8945 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
8946 See \`config.log' for more details." >&5
8947 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
8948 See \`config.log' for more details." >&2;}
8949 { (exit 1); exit 1; }; }
8954 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
8956 cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_OSMESA 1
8963 if test "x$APPLE_BUILD" != 'xyes'; then
8965 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
8966 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
8967 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
8968 $as_echo_n "(cached) " >&6
8970 ac_check_lib_save_LIBS=$LIBS
8972 cat >conftest.$ac_ext <<_ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8979 /* Override any GCC internal prototype to avoid an error.
8980 Use char because int might match the return type of a GCC
8981 builtin and then its argument prototype would still apply. */
8989 return glVertex3f ();
8994 rm -f conftest.$ac_objext conftest$ac_exeext
8995 if { (ac_try="$ac_link"
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
9000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9001 $as_echo "$ac_try_echo") >&5
9002 (eval "$ac_link") 2>conftest.er1
9004 grep -v '^ *+' conftest.er1 >conftest.err
9006 cat conftest.err >&5
9007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } && {
9009 test -z "$ac_c_werror_flag" ||
9010 test ! -s conftest.err
9011 } && test -s conftest$ac_exeext && {
9012 test "$cross_compiling" = yes ||
9013 $as_test_x conftest$ac_exeext
9015 ac_cv_lib_GL_glVertex3f=yes
9017 $as_echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 ac_cv_lib_GL_glVertex3f=no
9023 rm -rf conftest.dSYM
9024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9025 conftest$ac_exeext conftest.$ac_ext
9026 LIBS=$ac_check_lib_save_LIBS
9028 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
9029 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
9030 if test $ac_cv_lib_GL_glVertex3f = yes; then
9031 cat >>confdefs.h <<_ACEOF
9032 #define HAVE_LIBGL 1
9039 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9040 See \`config.log' for more details." >&5
9041 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9042 See \`config.log' for more details." >&2;}
9043 { (exit 1); exit 1; }; }
9046 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9047 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9048 $as_echo_n "checking for GL/gl.h... " >&6; }
9049 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9050 $as_echo_n "(cached) " >&6
9052 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9053 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9055 # Is the header compilable?
9056 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
9057 $as_echo_n "checking GL/gl.h usability... " >&6; }
9058 cat >conftest.$ac_ext <<_ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064 $ac_includes_default
9067 rm -f conftest.$ac_objext
9068 if { (ac_try="$ac_compile"
9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071 *) ac_try_echo=$ac_try;;
9073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9074 $as_echo "$ac_try_echo") >&5
9075 (eval "$ac_compile") 2>conftest.er1
9077 grep -v '^ *+' conftest.er1 >conftest.err
9079 cat conftest.err >&5
9080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } && {
9082 test -z "$ac_c_werror_flag" ||
9083 test ! -s conftest.err
9084 } && test -s conftest.$ac_objext; then
9085 ac_header_compiler=yes
9087 $as_echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9090 ac_header_compiler=no
9093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9094 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9095 $as_echo "$ac_header_compiler" >&6; }
9097 # Is the header present?
9098 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
9099 $as_echo_n "checking GL/gl.h presence... " >&6; }
9100 cat >conftest.$ac_ext <<_ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9108 if { (ac_try="$ac_cpp conftest.$ac_ext"
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9114 $as_echo "$ac_try_echo") >&5
9115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9117 grep -v '^ *+' conftest.er1 >conftest.err
9119 cat conftest.err >&5
9120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } >/dev/null && {
9122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9123 test ! -s conftest.err
9125 ac_header_preproc=yes
9127 $as_echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9130 ac_header_preproc=no
9133 rm -f conftest.err conftest.$ac_ext
9134 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9135 $as_echo "$ac_header_preproc" >&6; }
9137 # So? What about this header?
9138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9140 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9141 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9142 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
9143 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
9144 ac_header_preproc=yes
9147 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
9148 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
9149 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
9150 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
9151 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
9152 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
9153 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
9154 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9155 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
9156 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
9157 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
9158 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
9162 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9163 $as_echo_n "checking for GL/gl.h... " >&6; }
9164 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9165 $as_echo_n "(cached) " >&6
9167 ac_cv_header_GL_gl_h=$ac_header_preproc
9169 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9170 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9173 if test $ac_cv_header_GL_gl_h = yes; then
9177 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9178 See \`config.log' for more details." >&5
9179 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9180 See \`config.log' for more details." >&2;}
9181 { (exit 1); exit 1; }; }
9186 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
9187 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
9188 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
9189 $as_echo_n "(cached) " >&6
9191 cat >conftest.$ac_ext <<_ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
9198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9199 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
9201 /* System header to define __stub macros and hopefully few prototypes,
9202 which can conflict with char NSOpenGLGetVersion (); below.
9203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9204 <limits.h> exists even on freestanding compilers. */
9207 # include <limits.h>
9209 # include <assert.h>
9212 #undef NSOpenGLGetVersion
9214 /* Override any GCC internal prototype to avoid an error.
9215 Use char because int might match the return type of a GCC
9216 builtin and then its argument prototype would still apply. */
9220 char NSOpenGLGetVersion ();
9221 /* The GNU C library defines this for functions which it implements
9222 to always fail with ENOSYS. Some functions are actually named
9223 something starting with __ and the normal name is an alias. */
9224 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
9231 return NSOpenGLGetVersion ();
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (ac_try="$ac_link"
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9243 $as_echo "$ac_try_echo") >&5
9244 (eval "$ac_link") 2>conftest.er1
9246 grep -v '^ *+' conftest.er1 >conftest.err
9248 cat conftest.err >&5
9249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_c_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest$ac_exeext && {
9254 test "$cross_compiling" = yes ||
9255 $as_test_x conftest$ac_exeext
9257 ac_cv_func_NSOpenGLGetVersion=yes
9259 $as_echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9262 ac_cv_func_NSOpenGLGetVersion=no
9265 rm -rf conftest.dSYM
9266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9267 conftest$ac_exeext conftest.$ac_ext
9269 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
9270 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
9271 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
9274 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
9276 cat >>confdefs.h <<\_ACEOF
9284 if test "x$HAVE_GTK_X11" = "xyes"; then
9285 if test "x$APPLE_BUILD" = "xyes"; then
9286 LIBS="$LIBS -L/usr/X11/lib -lGL"
9288 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
9289 $as_echo_n "checking for glXQueryVersion... " >&6; }
9290 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
9291 $as_echo_n "(cached) " >&6
9293 cat >conftest.$ac_ext <<_ACEOF
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h. */
9299 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
9300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9301 #define glXQueryVersion innocuous_glXQueryVersion
9303 /* System header to define __stub macros and hopefully few prototypes,
9304 which can conflict with char glXQueryVersion (); below.
9305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9306 <limits.h> exists even on freestanding compilers. */
9309 # include <limits.h>
9311 # include <assert.h>
9314 #undef glXQueryVersion
9316 /* Override any GCC internal prototype to avoid an error.
9317 Use char because int might match the return type of a GCC
9318 builtin and then its argument prototype would still apply. */
9322 char glXQueryVersion ();
9323 /* The GNU C library defines this for functions which it implements
9324 to always fail with ENOSYS. Some functions are actually named
9325 something starting with __ and the normal name is an alias. */
9326 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
9333 return glXQueryVersion ();
9338 rm -f conftest.$ac_objext conftest$ac_exeext
9339 if { (ac_try="$ac_link"
9341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342 *) ac_try_echo=$ac_try;;
9344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9345 $as_echo "$ac_try_echo") >&5
9346 (eval "$ac_link") 2>conftest.er1
9348 grep -v '^ *+' conftest.er1 >conftest.err
9350 cat conftest.err >&5
9351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } && {
9353 test -z "$ac_c_werror_flag" ||
9354 test ! -s conftest.err
9355 } && test -s conftest$ac_exeext && {
9356 test "$cross_compiling" = yes ||
9357 $as_test_x conftest$ac_exeext
9359 ac_cv_func_glXQueryVersion=yes
9361 $as_echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9364 ac_cv_func_glXQueryVersion=no
9367 rm -rf conftest.dSYM
9368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9369 conftest$ac_exeext conftest.$ac_ext
9371 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
9372 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
9373 if test $ac_cv_func_glXQueryVersion = yes; then
9376 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
9378 cat >>confdefs.h <<\_ACEOF
9394 if test "x$HAVE_OSMESA" = "xyes"; then
9396 VIDEO_OSMESA_FALSE='#'
9398 VIDEO_OSMESA_TRUE='#'
9404 if test "x$HAVE_GLX" = "xyes"; then
9414 if test "x$HAVE_NSGL" = "xyes"; then
9416 VIDEO_NSGL_FALSE='#'
9423 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
9424 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
9425 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
9426 $as_echo_n "(cached) " >&6
9428 cat >conftest.$ac_ext <<_ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
9435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9436 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
9438 /* System header to define __stub macros and hopefully few prototypes,
9439 which can conflict with char glGenFramebuffersEXT (); below.
9440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9441 <limits.h> exists even on freestanding compilers. */
9444 # include <limits.h>
9446 # include <assert.h>
9449 #undef glGenFramebuffersEXT
9451 /* Override any GCC internal prototype to avoid an error.
9452 Use char because int might match the return type of a GCC
9453 builtin and then its argument prototype would still apply. */
9457 char glGenFramebuffersEXT ();
9458 /* The GNU C library defines this for functions which it implements
9459 to always fail with ENOSYS. Some functions are actually named
9460 something starting with __ and the normal name is an alias. */
9461 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
9468 return glGenFramebuffersEXT ();
9473 rm -f conftest.$ac_objext conftest$ac_exeext
9474 if { (ac_try="$ac_link"
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9480 $as_echo "$ac_try_echo") >&5
9481 (eval "$ac_link") 2>conftest.er1
9483 grep -v '^ *+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } && {
9488 test -z "$ac_c_werror_flag" ||
9489 test ! -s conftest.err
9490 } && test -s conftest$ac_exeext && {
9491 test "$cross_compiling" = yes ||
9492 $as_test_x conftest$ac_exeext
9494 ac_cv_func_glGenFramebuffersEXT=yes
9496 $as_echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9499 ac_cv_func_glGenFramebuffersEXT=no
9502 rm -rf conftest.dSYM
9503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9504 conftest$ac_exeext conftest.$ac_ext
9506 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
9507 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
9508 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
9510 cat >>confdefs.h <<\_ACEOF
9511 #define HAVE_OPENGL_FBO 1
9516 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
9517 $as_echo_n "checking for glCreateShader... " >&6; }
9518 if test "${ac_cv_func_glCreateShader+set}" = set; then
9519 $as_echo_n "(cached) " >&6
9521 cat >conftest.$ac_ext <<_ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
9528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9529 #define glCreateShader innocuous_glCreateShader
9531 /* System header to define __stub macros and hopefully few prototypes,
9532 which can conflict with char glCreateShader (); below.
9533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9534 <limits.h> exists even on freestanding compilers. */
9537 # include <limits.h>
9539 # include <assert.h>
9542 #undef glCreateShader
9544 /* Override any GCC internal prototype to avoid an error.
9545 Use char because int might match the return type of a GCC
9546 builtin and then its argument prototype would still apply. */
9550 char glCreateShader ();
9551 /* The GNU C library defines this for functions which it implements
9552 to always fail with ENOSYS. Some functions are actually named
9553 something starting with __ and the normal name is an alias. */
9554 #if defined __stub_glCreateShader || defined __stub___glCreateShader
9561 return glCreateShader ();
9566 rm -f conftest.$ac_objext conftest$ac_exeext
9567 if { (ac_try="$ac_link"
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9573 $as_echo "$ac_try_echo") >&5
9574 (eval "$ac_link") 2>conftest.er1
9576 grep -v '^ *+' conftest.er1 >conftest.err
9578 cat conftest.err >&5
9579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest$ac_exeext && {
9584 test "$cross_compiling" = yes ||
9585 $as_test_x conftest$ac_exeext
9587 ac_cv_func_glCreateShader=yes
9589 $as_echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9592 ac_cv_func_glCreateShader=no
9595 rm -rf conftest.dSYM
9596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9597 conftest$ac_exeext conftest.$ac_ext
9599 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
9600 $as_echo "$ac_cv_func_glCreateShader" >&6; }
9601 if test $ac_cv_func_glCreateShader = yes; then
9603 cat >>confdefs.h <<\_ACEOF
9604 #define HAVE_OPENGL_SHADER 1
9609 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
9610 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
9611 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
9612 $as_echo_n "(cached) " >&6
9614 cat >conftest.$ac_ext <<_ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
9621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9622 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
9624 /* System header to define __stub macros and hopefully few prototypes,
9625 which can conflict with char glCreateShaderObjectARB (); below.
9626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9627 <limits.h> exists even on freestanding compilers. */
9630 # include <limits.h>
9632 # include <assert.h>
9635 #undef glCreateShaderObjectARB
9637 /* Override any GCC internal prototype to avoid an error.
9638 Use char because int might match the return type of a GCC
9639 builtin and then its argument prototype would still apply. */
9643 char glCreateShaderObjectARB ();
9644 /* The GNU C library defines this for functions which it implements
9645 to always fail with ENOSYS. Some functions are actually named
9646 something starting with __ and the normal name is an alias. */
9647 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
9654 return glCreateShaderObjectARB ();
9659 rm -f conftest.$ac_objext conftest$ac_exeext
9660 if { (ac_try="$ac_link"
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9666 $as_echo "$ac_try_echo") >&5
9667 (eval "$ac_link") 2>conftest.er1
9669 grep -v '^ *+' conftest.er1 >conftest.err
9671 cat conftest.err >&5
9672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } && {
9674 test -z "$ac_c_werror_flag" ||
9675 test ! -s conftest.err
9676 } && test -s conftest$ac_exeext && {
9677 test "$cross_compiling" = yes ||
9678 $as_test_x conftest$ac_exeext
9680 ac_cv_func_glCreateShaderObjectARB=yes
9682 $as_echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 ac_cv_func_glCreateShaderObjectARB=no
9688 rm -rf conftest.dSYM
9689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690 conftest$ac_exeext conftest.$ac_ext
9692 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
9693 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
9694 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
9696 cat >>confdefs.h <<\_ACEOF
9697 #define HAVE_OPENGL_SHADER_ARB 1
9702 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
9703 $as_echo_n "checking for glClampColorARB... " >&6; }
9704 if test "${ac_cv_func_glClampColorARB+set}" = set; then
9705 $as_echo_n "(cached) " >&6
9707 cat >conftest.$ac_ext <<_ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9713 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
9714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9715 #define glClampColorARB innocuous_glClampColorARB
9717 /* System header to define __stub macros and hopefully few prototypes,
9718 which can conflict with char glClampColorARB (); below.
9719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9720 <limits.h> exists even on freestanding compilers. */
9723 # include <limits.h>
9725 # include <assert.h>
9728 #undef glClampColorARB
9730 /* Override any GCC internal prototype to avoid an error.
9731 Use char because int might match the return type of a GCC
9732 builtin and then its argument prototype would still apply. */
9736 char glClampColorARB ();
9737 /* The GNU C library defines this for functions which it implements
9738 to always fail with ENOSYS. Some functions are actually named
9739 something starting with __ and the normal name is an alias. */
9740 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
9747 return glClampColorARB ();
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9759 $as_echo "$ac_try_echo") >&5
9760 (eval "$ac_link") 2>conftest.er1
9762 grep -v '^ *+' conftest.er1 >conftest.err
9764 cat conftest.err >&5
9765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest$ac_exeext && {
9770 test "$cross_compiling" = yes ||
9771 $as_test_x conftest$ac_exeext
9773 ac_cv_func_glClampColorARB=yes
9775 $as_echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9778 ac_cv_func_glClampColorARB=no
9781 rm -rf conftest.dSYM
9782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9783 conftest$ac_exeext conftest.$ac_ext
9785 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
9786 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
9787 if test $ac_cv_func_glClampColorARB = yes; then
9789 cat >>confdefs.h <<\_ACEOF
9790 #define HAVE_OPENGL_CLAMP_COLOR 1
9798 if test "x$enable_translator" != "xno"; then
9800 i386|i486|i586|i686|x86_64)
9801 SH4_TRANSLATOR="x86"
9803 cat >>confdefs.h <<_ACEOF
9804 #define SH4_TRANSLATOR TARGET_X86
9811 if test "$SH4_TRANSLATOR" = "x86"; then
9813 BUILD_SH4X86_FALSE='#'
9815 BUILD_SH4X86_TRUE='#'
9820 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9821 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
9822 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
9823 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9824 $as_echo_n "(cached) " >&6
9826 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
9827 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
9829 # Is the header compilable?
9830 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
9831 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
9832 cat >conftest.$ac_ext <<_ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838 $ac_includes_default
9839 #include <CoreAudio/CoreAudio.h>
9841 rm -f conftest.$ac_objext
9842 if { (ac_try="$ac_compile"
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9848 $as_echo "$ac_try_echo") >&5
9849 (eval "$ac_compile") 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } && {
9856 test -z "$ac_c_werror_flag" ||
9857 test ! -s conftest.err
9858 } && test -s conftest.$ac_objext; then
9859 ac_header_compiler=yes
9861 $as_echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 ac_header_compiler=no
9867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9868 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9869 $as_echo "$ac_header_compiler" >&6; }
9871 # Is the header present?
9872 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
9873 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
9874 cat >conftest.$ac_ext <<_ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 #include <CoreAudio/CoreAudio.h>
9882 if { (ac_try="$ac_cpp conftest.$ac_ext"
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9888 $as_echo "$ac_try_echo") >&5
9889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9891 grep -v '^ *+' conftest.er1 >conftest.err
9893 cat conftest.err >&5
9894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } >/dev/null && {
9896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9899 ac_header_preproc=yes
9901 $as_echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_header_preproc=no
9907 rm -f conftest.err conftest.$ac_ext
9908 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9909 $as_echo "$ac_header_preproc" >&6; }
9911 # So? What about this header?
9912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9914 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9915 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9916 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
9917 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
9918 ac_header_preproc=yes
9921 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
9922 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
9923 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
9924 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
9925 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
9926 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
9927 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
9928 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
9929 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
9930 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
9931 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
9932 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
9936 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
9937 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
9938 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9939 $as_echo_n "(cached) " >&6
9941 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
9943 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
9944 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
9947 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
9950 LIBS="$LIBS -framework CoreAudio"
9951 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
9953 cat >>confdefs.h <<\_ACEOF
9954 #define HAVE_CORE_AUDIO 1
9964 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
9973 if test "x$with_sdl" != "xno"; then
9976 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
9977 $as_echo_n "checking for SDL... " >&6; }
9979 if test -n "$SDL_CFLAGS"; then
9980 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
9981 elif test -n "$PKG_CONFIG"; then
9982 if test -n "$PKG_CONFIG" && \
9983 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
9984 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
9986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; then
9988 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
9995 if test -n "$SDL_LIBS"; then
9996 pkg_cv_SDL_LIBS="$SDL_LIBS"
9997 elif test -n "$PKG_CONFIG"; then
9998 if test -n "$PKG_CONFIG" && \
9999 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10000 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; then
10004 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
10014 if test $pkg_failed = yes; then
10016 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10017 _pkg_short_errors_supported=yes
10019 _pkg_short_errors_supported=no
10021 if test $_pkg_short_errors_supported = yes; then
10022 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
10024 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
10026 # Put the nasty error message in config.log where it belongs
10027 echo "$SDL_PKG_ERRORS" >&5
10029 { $as_echo "$as_me:$LINENO: result: no" >&5
10030 $as_echo "no" >&6; }
10032 if test "x$with_sdl" = "xyes"; then
10033 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10034 See \`config.log' for more details." >&5
10035 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10036 See \`config.log' for more details." >&2;}
10037 { (exit 1); exit 1; }; }
10040 elif test $pkg_failed = untried; then
10042 if test "x$with_sdl" = "xyes"; then
10043 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10044 See \`config.log' for more details." >&5
10045 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10046 See \`config.log' for more details." >&2;}
10047 { (exit 1); exit 1; }; }
10051 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
10052 SDL_LIBS=$pkg_cv_SDL_LIBS
10053 { $as_echo "$as_me:$LINENO: result: yes" >&5
10054 $as_echo "yes" >&6; }
10057 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
10059 cat >>confdefs.h <<\_ACEOF
10068 if test "$HAVE_SDL" = 'yes' ; then
10070 AUDIO_SDL_FALSE='#'
10077 if test "x$with_pulse" != "xno"; then
10080 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
10081 $as_echo_n "checking for PULSE... " >&6; }
10083 if test -n "$PULSE_CFLAGS"; then
10084 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
10085 elif test -n "$PKG_CONFIG"; then
10086 if test -n "$PKG_CONFIG" && \
10087 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10088 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; then
10092 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
10099 if test -n "$PULSE_LIBS"; then
10100 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
10101 elif test -n "$PKG_CONFIG"; then
10102 if test -n "$PKG_CONFIG" && \
10103 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10104 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; then
10108 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
10118 if test $pkg_failed = yes; then
10120 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10121 _pkg_short_errors_supported=yes
10123 _pkg_short_errors_supported=no
10125 if test $_pkg_short_errors_supported = yes; then
10126 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
10128 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
10130 # Put the nasty error message in config.log where it belongs
10131 echo "$PULSE_PKG_ERRORS" >&5
10133 { $as_echo "$as_me:$LINENO: result: no" >&5
10134 $as_echo "no" >&6; }
10136 if test "x$with_pulse" = "xyes"; then
10137 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10138 See \`config.log' for more details." >&5
10139 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10140 See \`config.log' for more details." >&2;}
10141 { (exit 1); exit 1; }; }
10144 elif test $pkg_failed = untried; then
10146 if test "x$with_pulse" = "xyes"; then
10147 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10148 See \`config.log' for more details." >&5
10149 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10150 See \`config.log' for more details." >&2;}
10151 { (exit 1); exit 1; }; }
10155 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
10156 PULSE_LIBS=$pkg_cv_PULSE_LIBS
10157 { $as_echo "$as_me:$LINENO: result: yes" >&5
10158 $as_echo "yes" >&6; }
10161 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
10163 cat >>confdefs.h <<\_ACEOF
10164 #define HAVE_PULSE 1
10172 if test "$HAVE_PULSE" = 'yes' ; then
10174 AUDIO_PULSE_FALSE='#'
10176 AUDIO_PULSE_TRUE='#'
10181 if test "x$with_esd" != "xno"; then
10184 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
10185 $as_echo_n "checking for ESOUND... " >&6; }
10187 if test -n "$ESOUND_CFLAGS"; then
10188 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
10189 elif test -n "$PKG_CONFIG"; then
10190 if test -n "$PKG_CONFIG" && \
10191 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10192 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; then
10196 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
10203 if test -n "$ESOUND_LIBS"; then
10204 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
10205 elif test -n "$PKG_CONFIG"; then
10206 if test -n "$PKG_CONFIG" && \
10207 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10208 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; then
10212 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
10222 if test $pkg_failed = yes; then
10224 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10225 _pkg_short_errors_supported=yes
10227 _pkg_short_errors_supported=no
10229 if test $_pkg_short_errors_supported = yes; then
10230 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
10232 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
10234 # Put the nasty error message in config.log where it belongs
10235 echo "$ESOUND_PKG_ERRORS" >&5
10237 { $as_echo "$as_me:$LINENO: result: no" >&5
10238 $as_echo "no" >&6; }
10240 if test "x$with_esd" = "xyes"; then
10241 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10242 See \`config.log' for more details." >&5
10243 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10244 See \`config.log' for more details." >&2;}
10245 { (exit 1); exit 1; }; }
10248 elif test $pkg_failed = untried; then
10250 if test "x$with_esd" = "xyes"; then
10251 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10252 See \`config.log' for more details." >&5
10253 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10254 See \`config.log' for more details." >&2;}
10255 { (exit 1); exit 1; }; }
10259 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
10260 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
10261 { $as_echo "$as_me:$LINENO: result: yes" >&5
10262 $as_echo "yes" >&6; }
10265 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
10267 cat >>confdefs.h <<\_ACEOF
10268 #define HAVE_ESOUND 1
10276 if test "$HAVE_ESOUND" = 'yes' ; then
10278 AUDIO_ESOUND_FALSE='#'
10280 AUDIO_ESOUND_TRUE='#'
10281 AUDIO_ESOUND_FALSE=
10287 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
10288 $as_echo_n "checking for ALSA... " >&6; }
10290 if test -n "$ALSA_CFLAGS"; then
10291 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
10292 elif test -n "$PKG_CONFIG"; then
10293 if test -n "$PKG_CONFIG" && \
10294 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10295 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; then
10299 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
10306 if test -n "$ALSA_LIBS"; then
10307 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
10308 elif test -n "$PKG_CONFIG"; then
10309 if test -n "$PKG_CONFIG" && \
10310 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10311 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; then
10315 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
10325 if test $pkg_failed = yes; then
10327 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10328 _pkg_short_errors_supported=yes
10330 _pkg_short_errors_supported=no
10332 if test $_pkg_short_errors_supported = yes; then
10333 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
10335 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
10337 # Put the nasty error message in config.log where it belongs
10338 echo "$ALSA_PKG_ERRORS" >&5
10340 { $as_echo "$as_me:$LINENO: result: no" >&5
10341 $as_echo "no" >&6; }
10343 elif test $pkg_failed = untried; then
10346 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
10347 ALSA_LIBS=$pkg_cv_ALSA_LIBS
10348 { $as_echo "$as_me:$LINENO: result: yes" >&5
10349 $as_echo "yes" >&6; }
10352 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
10354 cat >>confdefs.h <<\_ACEOF
10355 #define HAVE_ALSA 1
10361 if test "$HAVE_ALSA" = 'yes' ; then
10363 AUDIO_ALSA_FALSE='#'
10365 AUDIO_ALSA_TRUE='#'
10371 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10372 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10373 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10374 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10375 $as_echo_n "(cached) " >&6
10377 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10378 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10380 # Is the header compilable?
10381 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
10382 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
10383 cat >conftest.$ac_ext <<_ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h. */
10389 $ac_includes_default
10390 #include <linux/cdrom.h>
10392 rm -f conftest.$ac_objext
10393 if { (ac_try="$ac_compile"
10394 case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10399 $as_echo "$ac_try_echo") >&5
10400 (eval "$ac_compile") 2>conftest.er1
10402 grep -v '^ *+' conftest.er1 >conftest.err
10404 cat conftest.err >&5
10405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && {
10407 test -z "$ac_c_werror_flag" ||
10408 test ! -s conftest.err
10409 } && test -s conftest.$ac_objext; then
10410 ac_header_compiler=yes
10412 $as_echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 ac_header_compiler=no
10418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10420 $as_echo "$ac_header_compiler" >&6; }
10422 # Is the header present?
10423 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
10424 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
10425 cat >conftest.$ac_ext <<_ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431 #include <linux/cdrom.h>
10433 if { (ac_try="$ac_cpp conftest.$ac_ext"
10434 case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10439 $as_echo "$ac_try_echo") >&5
10440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10442 grep -v '^ *+' conftest.er1 >conftest.err
10444 cat conftest.err >&5
10445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } >/dev/null && {
10447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10448 test ! -s conftest.err
10450 ac_header_preproc=yes
10452 $as_echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10455 ac_header_preproc=no
10458 rm -f conftest.err conftest.$ac_ext
10459 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10460 $as_echo "$ac_header_preproc" >&6; }
10462 # So? What about this header?
10463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10465 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
10466 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10467 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
10468 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
10469 ac_header_preproc=yes
10472 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
10473 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
10474 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
10475 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
10476 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
10477 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
10478 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
10479 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
10480 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
10481 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
10482 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
10483 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
10487 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10488 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10489 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10490 $as_echo_n "(cached) " >&6
10492 ac_cv_header_linux_cdrom_h=$ac_header_preproc
10494 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10495 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10498 if test $ac_cv_header_linux_cdrom_h = yes; then
10501 { $as_echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
10502 $as_echo_n "checking C99 compliant kernel headers... " >&6; }
10503 old_CFLAGS="$CFLAGS"
10504 CFLAGS="$CFLAGS $STDCFLAG"
10505 cat >conftest.$ac_ext <<_ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10511 #include <linux/cdrom.h>
10520 rm -f conftest.$ac_objext
10521 if { (ac_try="$ac_compile"
10522 case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10527 $as_echo "$ac_try_echo") >&5
10528 (eval "$ac_compile") 2>conftest.er1
10530 grep -v '^ *+' conftest.er1 >conftest.err
10532 cat conftest.err >&5
10533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } && {
10535 test -z "$ac_c_werror_flag" ||
10536 test ! -s conftest.err
10537 } && test -s conftest.$ac_objext; then
10538 { $as_echo "$as_me:$LINENO: result: Yes" >&5
10539 $as_echo "Yes" >&6; }
10541 $as_echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10545 { $as_echo "$as_me:$LINENO: result: No" >&5
10546 $as_echo "No" >&6; }
10547 STDCFLAG="-std=gnu99"
10550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10551 CFLAGS="$old_CFLAGS"
10558 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10559 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10560 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
10561 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10562 $as_echo_n "(cached) " >&6
10564 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10565 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10567 # Is the header compilable?
10568 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
10569 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
10570 cat >conftest.$ac_ext <<_ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10576 $ac_includes_default
10577 #include <IOKit/IOKitLib.h>
10579 rm -f conftest.$ac_objext
10580 if { (ac_try="$ac_compile"
10581 case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10586 $as_echo "$ac_try_echo") >&5
10587 (eval "$ac_compile") 2>conftest.er1
10589 grep -v '^ *+' conftest.er1 >conftest.err
10591 cat conftest.err >&5
10592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } && {
10594 test -z "$ac_c_werror_flag" ||
10595 test ! -s conftest.err
10596 } && test -s conftest.$ac_objext; then
10597 ac_header_compiler=yes
10599 $as_echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 ac_header_compiler=no
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10607 $as_echo "$ac_header_compiler" >&6; }
10609 # Is the header present?
10610 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
10611 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
10612 cat >conftest.$ac_ext <<_ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 #include <IOKit/IOKitLib.h>
10620 if { (ac_try="$ac_cpp conftest.$ac_ext"
10621 case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10626 $as_echo "$ac_try_echo") >&5
10627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10629 grep -v '^ *+' conftest.er1 >conftest.err
10631 cat conftest.err >&5
10632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } >/dev/null && {
10634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10635 test ! -s conftest.err
10637 ac_header_preproc=yes
10639 $as_echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10642 ac_header_preproc=no
10645 rm -f conftest.err conftest.$ac_ext
10646 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10647 $as_echo "$ac_header_preproc" >&6; }
10649 # So? What about this header?
10650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10652 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10653 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10654 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
10655 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
10656 ac_header_preproc=yes
10659 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
10660 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
10661 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
10662 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
10663 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
10664 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
10665 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
10666 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10667 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
10668 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
10669 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
10670 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
10674 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10675 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
10676 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10677 $as_echo_n "(cached) " >&6
10679 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
10681 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10682 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10685 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
10688 LIBS="$LIBS -framework IOKit"
10696 if test "x$CDROM_DRIVER" = "xlinux"; then
10698 CDROM_LINUX_FALSE='#'
10700 CDROM_LINUX_TRUE='#'
10706 if test "x$CDROM_DRIVER" = "xosx"; then
10708 CDROM_OSX_FALSE='#'
10716 if test "x$CDROM_DRIVER" = "x"; then
10718 CDROM_NONE_FALSE='#'
10720 CDROM_NONE_TRUE='#'
10725 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10726 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
10727 $as_echo_n "checking for linux/joystick.h... " >&6; }
10728 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10729 $as_echo_n "(cached) " >&6
10731 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
10732 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
10734 # Is the header compilable?
10735 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
10736 $as_echo_n "checking linux/joystick.h usability... " >&6; }
10737 cat >conftest.$ac_ext <<_ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 $ac_includes_default
10744 #include <linux/joystick.h>
10746 rm -f conftest.$ac_objext
10747 if { (ac_try="$ac_compile"
10748 case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10753 $as_echo "$ac_try_echo") >&5
10754 (eval "$ac_compile") 2>conftest.er1
10756 grep -v '^ *+' conftest.er1 >conftest.err
10758 cat conftest.err >&5
10759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest.$ac_objext; then
10764 ac_header_compiler=yes
10766 $as_echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10769 ac_header_compiler=no
10772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10774 $as_echo "$ac_header_compiler" >&6; }
10776 # Is the header present?
10777 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
10778 $as_echo_n "checking linux/joystick.h presence... " >&6; }
10779 cat >conftest.$ac_ext <<_ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 #include <linux/joystick.h>
10787 if { (ac_try="$ac_cpp conftest.$ac_ext"
10788 case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10793 $as_echo "$ac_try_echo") >&5
10794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10796 grep -v '^ *+' conftest.er1 >conftest.err
10798 cat conftest.err >&5
10799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } >/dev/null && {
10801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10804 ac_header_preproc=yes
10806 $as_echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10809 ac_header_preproc=no
10812 rm -f conftest.err conftest.$ac_ext
10813 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10814 $as_echo "$ac_header_preproc" >&6; }
10816 # So? What about this header?
10817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10819 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
10820 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10821 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
10822 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
10823 ac_header_preproc=yes
10826 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
10827 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
10828 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
10829 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
10830 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
10831 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
10832 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
10833 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
10834 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
10835 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
10836 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
10837 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
10841 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
10842 $as_echo_n "checking for linux/joystick.h... " >&6; }
10843 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10844 $as_echo_n "(cached) " >&6
10846 ac_cv_header_linux_joystick_h=$ac_header_preproc
10848 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
10849 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
10852 if test $ac_cv_header_linux_joystick_h = yes; then
10854 HAVE_LINUX_JOYSTICK_H=yes
10856 cat >>confdefs.h <<\_ACEOF
10857 #define HAVE_LINUX_JOYSTICK 1
10861 echo "Linux Joystick support not found, building without it."
10867 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
10869 JOY_LINUX_FALSE='#'
10876 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
10877 set dummy sh-elf-gcc; ac_word=$2
10878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10879 $as_echo_n "checking for $ac_word... " >&6; }
10880 if test "${ac_cv_path_SHCC+set}" = set; then
10881 $as_echo_n "(cached) " >&6
10885 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
10888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10895 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
10896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10906 SHCC=$ac_cv_path_SHCC
10907 if test -n "$SHCC"; then
10908 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
10909 $as_echo "$SHCC" >&6; }
10911 { $as_echo "$as_me:$LINENO: result: no" >&5
10912 $as_echo "no" >&6; }
10916 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
10917 set dummy sh-elf-ld; ac_word=$2
10918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10919 $as_echo_n "checking for $ac_word... " >&6; }
10920 if test "${ac_cv_path_SHLD+set}" = set; then
10921 $as_echo_n "(cached) " >&6
10925 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
10928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10929 for as_dir in $PATH
10932 test -z "$as_dir" && as_dir=.
10933 for ac_exec_ext in '' $ac_executable_extensions; do
10934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10935 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
10936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946 SHLD=$ac_cv_path_SHLD
10947 if test -n "$SHLD"; then
10948 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
10949 $as_echo "$SHLD" >&6; }
10951 { $as_echo "$as_me:$LINENO: result: no" >&5
10952 $as_echo "no" >&6; }
10956 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
10957 set dummy sh-elf-objcopy; ac_word=$2
10958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10959 $as_echo_n "checking for $ac_word... " >&6; }
10960 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
10961 $as_echo_n "(cached) " >&6
10965 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10975 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
10976 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
10987 if test -n "$SHOBJCOPY"; then
10988 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
10989 $as_echo "$SHOBJCOPY" >&6; }
10991 { $as_echo "$as_me:$LINENO: result: no" >&5
10992 $as_echo "no" >&6; }
10996 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
10997 set dummy arm-elf-gcc; ac_word=$2
10998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10999 $as_echo_n "checking for $ac_word... " >&6; }
11000 if test "${ac_cv_path_ARMCC+set}" = set; then
11001 $as_echo_n "(cached) " >&6
11005 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
11008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009 for as_dir in $PATH
11012 test -z "$as_dir" && as_dir=.
11013 for ac_exec_ext in '' $ac_executable_extensions; do
11014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11015 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
11016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11026 ARMCC=$ac_cv_path_ARMCC
11027 if test -n "$ARMCC"; then
11028 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
11029 $as_echo "$ARMCC" >&6; }
11031 { $as_echo "$as_me:$LINENO: result: no" >&5
11032 $as_echo "no" >&6; }
11036 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
11037 set dummy arm-elf-ld; ac_word=$2
11038 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11039 $as_echo_n "checking for $ac_word... " >&6; }
11040 if test "${ac_cv_path_ARMLD+set}" = set; then
11041 $as_echo_n "(cached) " >&6
11045 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
11048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11055 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
11056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11066 ARMLD=$ac_cv_path_ARMLD
11067 if test -n "$ARMLD"; then
11068 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
11069 $as_echo "$ARMLD" >&6; }
11071 { $as_echo "$as_me:$LINENO: result: no" >&5
11072 $as_echo "no" >&6; }
11076 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
11077 set dummy arm-elf-objcopy; ac_word=$2
11078 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11079 $as_echo_n "checking for $ac_word... " >&6; }
11080 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
11081 $as_echo_n "(cached) " >&6
11083 case $ARMOBJCOPY in
11085 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
11088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089 for as_dir in $PATH
11092 test -z "$as_dir" && as_dir=.
11093 for ac_exec_ext in '' $ac_executable_extensions; do
11094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11095 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11096 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
11107 if test -n "$ARMOBJCOPY"; then
11108 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
11109 $as_echo "$ARMOBJCOPY" >&6; }
11111 { $as_echo "$as_me:$LINENO: result: no" >&5
11112 $as_echo "no" >&6; }
11117 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
11119 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
11123 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
11125 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
11131 if test "$BUILD_SH" = "yes"; then
11132 BUILD_SYSTEST_TRUE=
11133 BUILD_SYSTEST_FALSE='#'
11135 BUILD_SYSTEST_TRUE='#'
11136 BUILD_SYSTEST_FALSE=
11141 if test "$BUILD_ARM" = "yes"; then
11142 BUILD_ARMTEST_TRUE=
11143 BUILD_ARMTEST_FALSE='#'
11145 BUILD_ARMTEST_TRUE='#'
11146 BUILD_ARMTEST_FALSE=
11150 CFLAGS="$CFLAGS $STDCFLAG"
11152 GETTEXT_PACKAGE=lxdream
11155 cat >>confdefs.h <<_ACEOF
11156 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11160 ALL_LINGUAS="de es it pt_BR"
11163 for ac_header in locale.h
11165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11167 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11168 $as_echo_n "checking for $ac_header... " >&6; }
11169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11170 $as_echo_n "(cached) " >&6
11172 ac_res=`eval 'as_val=${'$as_ac_Header'}
11173 $as_echo "$as_val"'`
11174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11175 $as_echo "$ac_res" >&6; }
11177 # Is the header compilable?
11178 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11179 $as_echo_n "checking $ac_header usability... " >&6; }
11180 cat >conftest.$ac_ext <<_ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186 $ac_includes_default
11187 #include <$ac_header>
11189 rm -f conftest.$ac_objext
11190 if { (ac_try="$ac_compile"
11191 case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11196 $as_echo "$ac_try_echo") >&5
11197 (eval "$ac_compile") 2>conftest.er1
11199 grep -v '^ *+' conftest.er1 >conftest.err
11201 cat conftest.err >&5
11202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } && {
11204 test -z "$ac_c_werror_flag" ||
11205 test ! -s conftest.err
11206 } && test -s conftest.$ac_objext; then
11207 ac_header_compiler=yes
11209 $as_echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 ac_header_compiler=no
11215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11217 $as_echo "$ac_header_compiler" >&6; }
11219 # Is the header present?
11220 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11221 $as_echo_n "checking $ac_header presence... " >&6; }
11222 cat >conftest.$ac_ext <<_ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h. */
11228 #include <$ac_header>
11230 if { (ac_try="$ac_cpp conftest.$ac_ext"
11231 case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11236 $as_echo "$ac_try_echo") >&5
11237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11239 grep -v '^ *+' conftest.er1 >conftest.err
11241 cat conftest.err >&5
11242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } >/dev/null && {
11244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11245 test ! -s conftest.err
11247 ac_header_preproc=yes
11249 $as_echo "$as_me: failed program was:" >&5
11250 sed 's/^/| /' conftest.$ac_ext >&5
11252 ac_header_preproc=no
11255 rm -f conftest.err conftest.$ac_ext
11256 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11257 $as_echo "$ac_header_preproc" >&6; }
11259 # So? What about this header?
11260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11263 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11265 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11266 ac_header_preproc=yes
11269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11270 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11272 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11274 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11276 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11278 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11280 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11284 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11285 $as_echo_n "checking for $ac_header... " >&6; }
11286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11287 $as_echo_n "(cached) " >&6
11289 eval "$as_ac_Header=\$ac_header_preproc"
11291 ac_res=`eval 'as_val=${'$as_ac_Header'}
11292 $as_echo "$as_val"'`
11293 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11294 $as_echo "$ac_res" >&6; }
11297 if test `eval 'as_val=${'$as_ac_Header'}
11298 $as_echo "$as_val"'` = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11307 if test $ac_cv_header_locale_h = yes; then
11308 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11309 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11310 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11311 $as_echo_n "(cached) " >&6
11313 cat >conftest.$ac_ext <<_ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 #include <locale.h>
11328 rm -f conftest.$ac_objext conftest$ac_exeext
11329 if { (ac_try="$ac_link"
11330 case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11335 $as_echo "$ac_try_echo") >&5
11336 (eval "$ac_link") 2>conftest.er1
11338 grep -v '^ *+' conftest.er1 >conftest.err
11340 cat conftest.err >&5
11341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } && {
11343 test -z "$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11345 } && test -s conftest$ac_exeext && {
11346 test "$cross_compiling" = yes ||
11347 $as_test_x conftest$ac_exeext
11349 am_cv_val_LC_MESSAGES=yes
11351 $as_echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11354 am_cv_val_LC_MESSAGES=no
11357 rm -rf conftest.dSYM
11358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11359 conftest$ac_exeext conftest.$ac_ext
11361 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11362 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11363 if test $am_cv_val_LC_MESSAGES = yes; then
11365 cat >>confdefs.h <<\_ACEOF
11366 #define HAVE_LC_MESSAGES 1
11374 gt_cv_have_gettext=no
11380 if test "${ac_cv_header_libintl_h+set}" = set; then
11381 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
11382 $as_echo_n "checking for libintl.h... " >&6; }
11383 if test "${ac_cv_header_libintl_h+set}" = set; then
11384 $as_echo_n "(cached) " >&6
11386 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11387 $as_echo "$ac_cv_header_libintl_h" >&6; }
11389 # Is the header compilable?
11390 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
11391 $as_echo_n "checking libintl.h usability... " >&6; }
11392 cat >conftest.$ac_ext <<_ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11398 $ac_includes_default
11399 #include <libintl.h>
11401 rm -f conftest.$ac_objext
11402 if { (ac_try="$ac_compile"
11403 case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11408 $as_echo "$ac_try_echo") >&5
11409 (eval "$ac_compile") 2>conftest.er1
11411 grep -v '^ *+' conftest.er1 >conftest.err
11413 cat conftest.err >&5
11414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } && {
11416 test -z "$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11418 } && test -s conftest.$ac_objext; then
11419 ac_header_compiler=yes
11421 $as_echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11424 ac_header_compiler=no
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11429 $as_echo "$ac_header_compiler" >&6; }
11431 # Is the header present?
11432 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
11433 $as_echo_n "checking libintl.h presence... " >&6; }
11434 cat >conftest.$ac_ext <<_ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11440 #include <libintl.h>
11442 if { (ac_try="$ac_cpp conftest.$ac_ext"
11443 case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11448 $as_echo "$ac_try_echo") >&5
11449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11451 grep -v '^ *+' conftest.er1 >conftest.err
11453 cat conftest.err >&5
11454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } >/dev/null && {
11456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11457 test ! -s conftest.err
11459 ac_header_preproc=yes
11461 $as_echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 ac_header_preproc=no
11467 rm -f conftest.err conftest.$ac_ext
11468 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11469 $as_echo "$ac_header_preproc" >&6; }
11471 # So? What about this header?
11472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11474 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11475 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11476 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
11477 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
11478 ac_header_preproc=yes
11481 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
11482 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
11483 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
11484 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
11485 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
11486 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
11487 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
11488 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11489 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
11490 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
11491 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
11492 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
11496 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
11497 $as_echo_n "checking for libintl.h... " >&6; }
11498 if test "${ac_cv_header_libintl_h+set}" = set; then
11499 $as_echo_n "(cached) " >&6
11501 ac_cv_header_libintl_h=$ac_header_preproc
11503 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11504 $as_echo "$ac_cv_header_libintl_h" >&6; }
11507 if test $ac_cv_header_libintl_h = yes; then
11508 gt_cv_func_dgettext_libintl="no"
11509 libintl_extra_libs=""
11512 # First check in libc
11514 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
11515 $as_echo_n "checking for ngettext in libc... " >&6; }
11516 if test "${gt_cv_func_ngettext_libc+set}" = set; then
11517 $as_echo_n "(cached) " >&6
11519 cat >conftest.$ac_ext <<_ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11526 #include <libintl.h>
11531 return !ngettext ("","", 1)
11536 rm -f conftest.$ac_objext conftest$ac_exeext
11537 if { (ac_try="$ac_link"
11538 case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11543 $as_echo "$ac_try_echo") >&5
11544 (eval "$ac_link") 2>conftest.er1
11546 grep -v '^ *+' conftest.er1 >conftest.err
11548 cat conftest.err >&5
11549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } && {
11551 test -z "$ac_c_werror_flag" ||
11552 test ! -s conftest.err
11553 } && test -s conftest$ac_exeext && {
11554 test "$cross_compiling" = yes ||
11555 $as_test_x conftest$ac_exeext
11557 gt_cv_func_ngettext_libc=yes
11559 $as_echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11562 gt_cv_func_ngettext_libc=no
11565 rm -rf conftest.dSYM
11566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11567 conftest$ac_exeext conftest.$ac_ext
11570 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
11571 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
11573 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11574 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
11575 $as_echo_n "checking for dgettext in libc... " >&6; }
11576 if test "${gt_cv_func_dgettext_libc+set}" = set; then
11577 $as_echo_n "(cached) " >&6
11579 cat >conftest.$ac_ext <<_ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11586 #include <libintl.h>
11591 return !dgettext ("","")
11596 rm -f conftest.$ac_objext conftest$ac_exeext
11597 if { (ac_try="$ac_link"
11598 case "(($ac_try" in
11599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600 *) ac_try_echo=$ac_try;;
11602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11603 $as_echo "$ac_try_echo") >&5
11604 (eval "$ac_link") 2>conftest.er1
11606 grep -v '^ *+' conftest.er1 >conftest.err
11608 cat conftest.err >&5
11609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } && {
11611 test -z "$ac_c_werror_flag" ||
11612 test ! -s conftest.err
11613 } && test -s conftest$ac_exeext && {
11614 test "$cross_compiling" = yes ||
11615 $as_test_x conftest$ac_exeext
11617 gt_cv_func_dgettext_libc=yes
11619 $as_echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11622 gt_cv_func_dgettext_libc=no
11625 rm -rf conftest.dSYM
11626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11627 conftest$ac_exeext conftest.$ac_ext
11630 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
11631 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
11634 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11636 for ac_func in bind_textdomain_codeset
11638 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11639 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11640 $as_echo_n "checking for $ac_func... " >&6; }
11641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11642 $as_echo_n "(cached) " >&6
11644 cat >conftest.$ac_ext <<_ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11652 #define $ac_func innocuous_$ac_func
11654 /* System header to define __stub macros and hopefully few prototypes,
11655 which can conflict with char $ac_func (); below.
11656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11657 <limits.h> exists even on freestanding compilers. */
11660 # include <limits.h>
11662 # include <assert.h>
11667 /* Override any GCC internal prototype to avoid an error.
11668 Use char because int might match the return type of a GCC
11669 builtin and then its argument prototype would still apply. */
11674 /* The GNU C library defines this for functions which it implements
11675 to always fail with ENOSYS. Some functions are actually named
11676 something starting with __ and the normal name is an alias. */
11677 #if defined __stub_$ac_func || defined __stub___$ac_func
11684 return $ac_func ();
11689 rm -f conftest.$ac_objext conftest$ac_exeext
11690 if { (ac_try="$ac_link"
11691 case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11696 $as_echo "$ac_try_echo") >&5
11697 (eval "$ac_link") 2>conftest.er1
11699 grep -v '^ *+' conftest.er1 >conftest.err
11701 cat conftest.err >&5
11702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } && {
11704 test -z "$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 } && test -s conftest$ac_exeext && {
11707 test "$cross_compiling" = yes ||
11708 $as_test_x conftest$ac_exeext
11710 eval "$as_ac_var=yes"
11712 $as_echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 eval "$as_ac_var=no"
11718 rm -rf conftest.dSYM
11719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11720 conftest$ac_exeext conftest.$ac_ext
11722 ac_res=`eval 'as_val=${'$as_ac_var'}
11723 $as_echo "$as_val"'`
11724 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11725 $as_echo "$ac_res" >&6; }
11726 if test `eval 'as_val=${'$as_ac_var'}
11727 $as_echo "$as_val"'` = yes; then
11728 cat >>confdefs.h <<_ACEOF
11729 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11738 # If we don't have everything we want, check in libintl
11740 if test "$gt_cv_func_dgettext_libc" != "yes" \
11741 || test "$gt_cv_func_ngettext_libc" != "yes" \
11742 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
11744 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
11745 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
11746 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
11747 $as_echo_n "(cached) " >&6
11749 ac_check_lib_save_LIBS=$LIBS
11750 LIBS="-lintl $LIBS"
11751 cat >conftest.$ac_ext <<_ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11758 /* Override any GCC internal prototype to avoid an error.
11759 Use char because int might match the return type of a GCC
11760 builtin and then its argument prototype would still apply. */
11764 char bindtextdomain ();
11768 return bindtextdomain ();
11773 rm -f conftest.$ac_objext conftest$ac_exeext
11774 if { (ac_try="$ac_link"
11775 case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11780 $as_echo "$ac_try_echo") >&5
11781 (eval "$ac_link") 2>conftest.er1
11783 grep -v '^ *+' conftest.er1 >conftest.err
11785 cat conftest.err >&5
11786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } && {
11788 test -z "$ac_c_werror_flag" ||
11789 test ! -s conftest.err
11790 } && test -s conftest$ac_exeext && {
11791 test "$cross_compiling" = yes ||
11792 $as_test_x conftest$ac_exeext
11794 ac_cv_lib_intl_bindtextdomain=yes
11796 $as_echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11799 ac_cv_lib_intl_bindtextdomain=no
11802 rm -rf conftest.dSYM
11803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11804 conftest$ac_exeext conftest.$ac_ext
11805 LIBS=$ac_check_lib_save_LIBS
11807 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
11808 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
11809 if test $ac_cv_lib_intl_bindtextdomain = yes; then
11810 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
11811 $as_echo_n "checking for ngettext in -lintl... " >&6; }
11812 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
11813 $as_echo_n "(cached) " >&6
11815 ac_check_lib_save_LIBS=$LIBS
11816 LIBS="-lintl $LIBS"
11817 cat >conftest.$ac_ext <<_ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11824 /* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
11834 return ngettext ();
11839 rm -f conftest.$ac_objext conftest$ac_exeext
11840 if { (ac_try="$ac_link"
11841 case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11846 $as_echo "$ac_try_echo") >&5
11847 (eval "$ac_link") 2>conftest.er1
11849 grep -v '^ *+' conftest.er1 >conftest.err
11851 cat conftest.err >&5
11852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } && {
11854 test -z "$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 } && test -s conftest$ac_exeext && {
11857 test "$cross_compiling" = yes ||
11858 $as_test_x conftest$ac_exeext
11860 ac_cv_lib_intl_ngettext=yes
11862 $as_echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ac_cv_lib_intl_ngettext=no
11868 rm -rf conftest.dSYM
11869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11870 conftest$ac_exeext conftest.$ac_ext
11871 LIBS=$ac_check_lib_save_LIBS
11873 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
11874 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11875 if test $ac_cv_lib_intl_ngettext = yes; then
11876 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
11877 $as_echo_n "checking for dgettext in -lintl... " >&6; }
11878 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11879 $as_echo_n "(cached) " >&6
11881 ac_check_lib_save_LIBS=$LIBS
11882 LIBS="-lintl $LIBS"
11883 cat >conftest.$ac_ext <<_ACEOF
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11890 /* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11900 return dgettext ();
11905 rm -f conftest.$ac_objext conftest$ac_exeext
11906 if { (ac_try="$ac_link"
11907 case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11912 $as_echo "$ac_try_echo") >&5
11913 (eval "$ac_link") 2>conftest.er1
11915 grep -v '^ *+' conftest.er1 >conftest.err
11917 cat conftest.err >&5
11918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } && {
11920 test -z "$ac_c_werror_flag" ||
11921 test ! -s conftest.err
11922 } && test -s conftest$ac_exeext && {
11923 test "$cross_compiling" = yes ||
11924 $as_test_x conftest$ac_exeext
11926 ac_cv_lib_intl_dgettext=yes
11928 $as_echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11931 ac_cv_lib_intl_dgettext=no
11934 rm -rf conftest.dSYM
11935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11936 conftest$ac_exeext conftest.$ac_ext
11937 LIBS=$ac_check_lib_save_LIBS
11939 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
11940 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
11941 if test $ac_cv_lib_intl_dgettext = yes; then
11942 gt_cv_func_dgettext_libintl=yes
11950 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
11951 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
11952 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
11953 { $as_echo "$as_me:$LINENO: result: " >&5
11955 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
11956 $as_echo_n "checking for ngettext in -lintl... " >&6; }
11957 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
11958 $as_echo_n "(cached) " >&6
11960 ac_check_lib_save_LIBS=$LIBS
11961 LIBS="-lintl -liconv $LIBS"
11962 cat >conftest.$ac_ext <<_ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
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. */
11979 return ngettext ();
11984 rm -f conftest.$ac_objext conftest$ac_exeext
11985 if { (ac_try="$ac_link"
11986 case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11991 $as_echo "$ac_try_echo") >&5
11992 (eval "$ac_link") 2>conftest.er1
11994 grep -v '^ *+' conftest.er1 >conftest.err
11996 cat conftest.err >&5
11997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } && {
11999 test -z "$ac_c_werror_flag" ||
12000 test ! -s conftest.err
12001 } && test -s conftest$ac_exeext && {
12002 test "$cross_compiling" = yes ||
12003 $as_test_x conftest$ac_exeext
12005 ac_cv_lib_intl_ngettext=yes
12007 $as_echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 ac_cv_lib_intl_ngettext=no
12013 rm -rf conftest.dSYM
12014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12015 conftest$ac_exeext conftest.$ac_ext
12016 LIBS=$ac_check_lib_save_LIBS
12018 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12019 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12020 if test $ac_cv_lib_intl_ngettext = yes; then
12021 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
12022 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
12023 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
12024 $as_echo_n "(cached) " >&6
12026 ac_check_lib_save_LIBS=$LIBS
12027 LIBS="-lintl -liconv $LIBS"
12028 cat >conftest.$ac_ext <<_ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12035 /* Override any GCC internal prototype to avoid an error.
12036 Use char because int might match the return type of a GCC
12037 builtin and then its argument prototype would still apply. */
12045 return dcgettext ();
12050 rm -f conftest.$ac_objext conftest$ac_exeext
12051 if { (ac_try="$ac_link"
12052 case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12057 $as_echo "$ac_try_echo") >&5
12058 (eval "$ac_link") 2>conftest.er1
12060 grep -v '^ *+' conftest.er1 >conftest.err
12062 cat conftest.err >&5
12063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } && {
12065 test -z "$ac_c_werror_flag" ||
12066 test ! -s conftest.err
12067 } && test -s conftest$ac_exeext && {
12068 test "$cross_compiling" = yes ||
12069 $as_test_x conftest$ac_exeext
12071 ac_cv_lib_intl_dcgettext=yes
12073 $as_echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 ac_cv_lib_intl_dcgettext=no
12079 rm -rf conftest.dSYM
12080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12081 conftest$ac_exeext conftest.$ac_ext
12082 LIBS=$ac_check_lib_save_LIBS
12084 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
12085 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
12086 if test $ac_cv_lib_intl_dcgettext = yes; then
12087 gt_cv_func_dgettext_libintl=yes
12088 libintl_extra_libs=-liconv
12100 # If we found libintl, then check in it for bind_textdomain_codeset();
12101 # we'll prefer libc if neither have bind_textdomain_codeset(),
12102 # and both have dgettext and ngettext
12104 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
12105 glib_save_LIBS="$LIBS"
12106 LIBS="$LIBS -lintl $libintl_extra_libs"
12107 unset ac_cv_func_bind_textdomain_codeset
12109 for ac_func in bind_textdomain_codeset
12111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12112 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12113 $as_echo_n "checking for $ac_func... " >&6; }
12114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12115 $as_echo_n "(cached) " >&6
12117 cat >conftest.$ac_ext <<_ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12125 #define $ac_func innocuous_$ac_func
12127 /* System header to define __stub macros and hopefully few prototypes,
12128 which can conflict with char $ac_func (); below.
12129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12130 <limits.h> exists even on freestanding compilers. */
12133 # include <limits.h>
12135 # include <assert.h>
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12147 /* The GNU C library defines this for functions which it implements
12148 to always fail with ENOSYS. Some functions are actually named
12149 something starting with __ and the normal name is an alias. */
12150 #if defined __stub_$ac_func || defined __stub___$ac_func
12157 return $ac_func ();
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (ac_try="$ac_link"
12164 case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12169 $as_echo "$ac_try_echo") >&5
12170 (eval "$ac_link") 2>conftest.er1
12172 grep -v '^ *+' conftest.er1 >conftest.err
12174 cat conftest.err >&5
12175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } && {
12177 test -z "$ac_c_werror_flag" ||
12178 test ! -s conftest.err
12179 } && test -s conftest$ac_exeext && {
12180 test "$cross_compiling" = yes ||
12181 $as_test_x conftest$ac_exeext
12183 eval "$as_ac_var=yes"
12185 $as_echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 eval "$as_ac_var=no"
12191 rm -rf conftest.dSYM
12192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12193 conftest$ac_exeext conftest.$ac_ext
12195 ac_res=`eval 'as_val=${'$as_ac_var'}
12196 $as_echo "$as_val"'`
12197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12198 $as_echo "$ac_res" >&6; }
12199 if test `eval 'as_val=${'$as_ac_var'}
12200 $as_echo "$as_val"'` = yes; then
12201 cat >>confdefs.h <<_ACEOF
12202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12208 LIBS="$glib_save_LIBS"
12210 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
12211 gt_cv_func_dgettext_libc=no
12213 if test "$gt_cv_func_dgettext_libc" = "yes" \
12214 && test "$gt_cv_func_ngettext_libc" = "yes"; then
12215 gt_cv_func_dgettext_libintl=no
12221 if test "$gt_cv_func_dgettext_libc" = "yes" \
12222 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
12223 gt_cv_have_gettext=yes
12226 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
12227 INTLLIBS="-lintl $libintl_extra_libs"
12230 if test "$gt_cv_have_gettext" = "yes"; then
12232 cat >>confdefs.h <<\_ACEOF
12233 #define HAVE_GETTEXT 1
12236 # Extract the first word of "msgfmt", so it can be a program name with args.
12237 set dummy msgfmt; ac_word=$2
12238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12239 $as_echo_n "checking for $ac_word... " >&6; }
12240 if test "${ac_cv_path_MSGFMT+set}" = set; then
12241 $as_echo_n "(cached) " >&6
12245 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12249 for ac_dir in $PATH; do
12250 test -z "$ac_dir" && ac_dir=.
12251 if test -f $ac_dir/$ac_word; then
12252 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12253 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12259 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
12263 MSGFMT="$ac_cv_path_MSGFMT"
12264 if test "$MSGFMT" != "no"; then
12265 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
12266 $as_echo "$MSGFMT" >&6; }
12268 { $as_echo "$as_me:$LINENO: result: no" >&5
12269 $as_echo "no" >&6; }
12271 if test "$MSGFMT" != "no"; then
12272 glib_save_LIBS="$LIBS"
12273 LIBS="$LIBS $INTLLIBS"
12275 for ac_func in dcgettext
12277 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12278 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12279 $as_echo_n "checking for $ac_func... " >&6; }
12280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12281 $as_echo_n "(cached) " >&6
12283 cat >conftest.$ac_ext <<_ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12291 #define $ac_func innocuous_$ac_func
12293 /* System header to define __stub macros and hopefully few prototypes,
12294 which can conflict with char $ac_func (); below.
12295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12296 <limits.h> exists even on freestanding compilers. */
12299 # include <limits.h>
12301 # include <assert.h>
12306 /* Override any GCC internal prototype to avoid an error.
12307 Use char because int might match the return type of a GCC
12308 builtin and then its argument prototype would still apply. */
12313 /* The GNU C library defines this for functions which it implements
12314 to always fail with ENOSYS. Some functions are actually named
12315 something starting with __ and the normal name is an alias. */
12316 #if defined __stub_$ac_func || defined __stub___$ac_func
12323 return $ac_func ();
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (ac_try="$ac_link"
12330 case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12335 $as_echo "$ac_try_echo") >&5
12336 (eval "$ac_link") 2>conftest.er1
12338 grep -v '^ *+' conftest.er1 >conftest.err
12340 cat conftest.err >&5
12341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } && {
12343 test -z "$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12345 } && test -s conftest$ac_exeext && {
12346 test "$cross_compiling" = yes ||
12347 $as_test_x conftest$ac_exeext
12349 eval "$as_ac_var=yes"
12351 $as_echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12354 eval "$as_ac_var=no"
12357 rm -rf conftest.dSYM
12358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12359 conftest$ac_exeext conftest.$ac_ext
12361 ac_res=`eval 'as_val=${'$as_ac_var'}
12362 $as_echo "$as_val"'`
12363 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12364 $as_echo "$ac_res" >&6; }
12365 if test `eval 'as_val=${'$as_ac_var'}
12366 $as_echo "$as_val"'` = yes; then
12367 cat >>confdefs.h <<_ACEOF
12368 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12375 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
12376 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
12377 cat >conftest.foo <<_ACEOF
12381 "Content-Type: text/plain; charset=UTF-8\n"
12382 "Project-Id-Version: test 1.0\n"
12383 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
12384 "Last-Translator: test <foo@bar.xx>\n"
12385 "Language-Team: C <LL@li.org>\n"
12386 "MIME-Version: 1.0\n"
12387 "Content-Transfer-Encoding: 8bit\n"
12390 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
12391 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
12393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; then
12395 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
12396 $as_echo "yes" >&6; }
12397 else { $as_echo "$as_me:$LINENO: result: no" >&5
12398 $as_echo "no" >&6; }
12399 echo "$as_me: failed input was:" >&5
12400 sed 's/^/| /' conftest.foo >&5
12403 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12404 set dummy gmsgfmt; ac_word=$2
12405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12406 $as_echo_n "checking for $ac_word... " >&6; }
12407 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12408 $as_echo_n "(cached) " >&6
12412 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416 for as_dir in $PATH
12419 test -z "$as_dir" && as_dir=.
12420 for ac_exec_ext in '' $ac_executable_extensions; do
12421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12422 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12430 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12434 GMSGFMT=$ac_cv_path_GMSGFMT
12435 if test -n "$GMSGFMT"; then
12436 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12437 $as_echo "$GMSGFMT" >&6; }
12439 { $as_echo "$as_me:$LINENO: result: no" >&5
12440 $as_echo "no" >&6; }
12444 # Extract the first word of "xgettext", so it can be a program name with args.
12445 set dummy xgettext; ac_word=$2
12446 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12447 $as_echo_n "checking for $ac_word... " >&6; }
12448 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12449 $as_echo_n "(cached) " >&6
12451 case "$XGETTEXT" in
12453 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12457 for ac_dir in $PATH; do
12458 test -z "$ac_dir" && ac_dir=.
12459 if test -f $ac_dir/$ac_word; then
12460 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
12461 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12467 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12471 XGETTEXT="$ac_cv_path_XGETTEXT"
12472 if test "$XGETTEXT" != ":"; then
12473 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12474 $as_echo "$XGETTEXT" >&6; }
12476 { $as_echo "$as_me:$LINENO: result: no" >&5
12477 $as_echo "no" >&6; }
12480 cat >conftest.$ac_ext <<_ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12490 extern int _nl_msg_cat_cntr;
12491 return _nl_msg_cat_cntr
12496 rm -f conftest.$ac_objext conftest$ac_exeext
12497 if { (ac_try="$ac_link"
12498 case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12503 $as_echo "$ac_try_echo") >&5
12504 (eval "$ac_link") 2>conftest.er1
12506 grep -v '^ *+' conftest.er1 >conftest.err
12508 cat conftest.err >&5
12509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest$ac_exeext && {
12514 test "$cross_compiling" = yes ||
12515 $as_test_x conftest$ac_exeext
12520 $as_echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12525 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
12526 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
12527 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
12528 $as_echo_n "(cached) " >&6
12530 cat >conftest.$ac_ext <<_ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h. */
12536 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
12537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12538 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
12540 /* System header to define __stub macros and hopefully few prototypes,
12541 which can conflict with char bind_textdomain_codeset (); below.
12542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12543 <limits.h> exists even on freestanding compilers. */
12546 # include <limits.h>
12548 # include <assert.h>
12551 #undef bind_textdomain_codeset
12553 /* Override any GCC internal prototype to avoid an error.
12554 Use char because int might match the return type of a GCC
12555 builtin and then its argument prototype would still apply. */
12559 char bind_textdomain_codeset ();
12560 /* The GNU C library defines this for functions which it implements
12561 to always fail with ENOSYS. Some functions are actually named
12562 something starting with __ and the normal name is an alias. */
12563 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
12570 return bind_textdomain_codeset ();
12575 rm -f conftest.$ac_objext conftest$ac_exeext
12576 if { (ac_try="$ac_link"
12577 case "(($ac_try" in
12578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579 *) ac_try_echo=$ac_try;;
12581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12582 $as_echo "$ac_try_echo") >&5
12583 (eval "$ac_link") 2>conftest.er1
12585 grep -v '^ *+' conftest.er1 >conftest.err
12587 cat conftest.err >&5
12588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } && {
12590 test -z "$ac_c_werror_flag" ||
12591 test ! -s conftest.err
12592 } && test -s conftest$ac_exeext && {
12593 test "$cross_compiling" = yes ||
12594 $as_test_x conftest$ac_exeext
12596 ac_cv_func_bind_textdomain_codeset=yes
12598 $as_echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12601 ac_cv_func_bind_textdomain_codeset=no
12604 rm -rf conftest.dSYM
12605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12606 conftest$ac_exeext conftest.$ac_ext
12608 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
12609 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
12610 if test $ac_cv_func_bind_textdomain_codeset = yes; then
12626 rm -rf conftest.dSYM
12627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12628 conftest$ac_exeext conftest.$ac_ext
12629 LIBS="$glib_save_LIBS"
12632 gt_cv_have_gettext=no
12640 if test "$gt_cv_have_gettext" = "yes" ; then
12642 cat >>confdefs.h <<\_ACEOF
12643 #define ENABLE_NLS 1
12648 if test "$XGETTEXT" != ":"; then
12649 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12652 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12653 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12658 # We need to process the po/ directory.
12661 ac_config_commands="$ac_config_commands default-1"
12664 for lang in $ALL_LINGUAS; do
12665 GMOFILES="$GMOFILES $lang.gmo"
12666 POFILES="$POFILES $lang.po"
12681 if test "$gt_cv_have_gettext" = "yes"; then
12682 if test "x$ALL_LINGUAS" = "x"; then
12685 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12686 $as_echo_n "checking for catalogs to be installed... " >&6; }
12688 for presentlang in $ALL_LINGUAS; do
12690 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
12691 desiredlanguages="$LINGUAS"
12693 desiredlanguages="$ALL_LINGUAS"
12695 for desiredlang in $desiredlanguages; do
12696 # Use the presentlang catalog if desiredlang is
12697 # a. equal to presentlang, or
12698 # b. a variant of presentlang (because in this case,
12699 # presentlang can be used as a fallback for messages
12700 # which are not translated in the desiredlang catalog).
12701 case "$desiredlang" in
12702 "$presentlang"*) useit=yes;;
12705 if test $useit = yes; then
12706 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
12709 LINGUAS=$NEW_LINGUAS
12710 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
12711 $as_echo "$LINGUAS" >&6; }
12714 if test -n "$LINGUAS"; then
12715 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
12720 if test -n "$ac_aux_dir"; then
12721 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12723 if test -z "$MKINSTALLDIRS"; then
12724 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12728 test -d po || mkdir po
12729 if test "x$srcdir" != "x."; then
12730 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
12731 posrcprefix="$srcdir/"
12733 posrcprefix="../$srcdir/"
12739 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
12740 < $srcdir/po/POTFILES.in > po/POTFILES
12743 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
12745 cat >confcache <<\_ACEOF
12746 # This file is a shell script that caches the results of configure
12747 # tests run on this system so they can be shared between configure
12748 # scripts and configure runs, see configure's option --config-cache.
12749 # It is not useful on other systems. If it contains results you don't
12750 # want to keep, you may remove or edit it.
12752 # config.status only pays attention to the cache file if you give it
12753 # the --recheck option to rerun configure.
12755 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12756 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12757 # following values.
12761 # The following way of writing the cache mishandles newlines in values,
12762 # but we know of no workaround that is simple, portable, and efficient.
12763 # So, we kill variables containing newlines.
12764 # Ultrix sh set writes to stderr and can't be redirected directly,
12765 # and sets the high bit in the cache file unless we assign to the vars.
12767 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12768 eval ac_val=\$$ac_var
12772 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12773 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12776 _ | IFS | as_nl) ;; #(
12777 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12778 *) $as_unset $ac_var ;;
12784 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12785 *${as_nl}ac_space=\ *)
12786 # `set' does not quote correctly, so add quotes (double-quote
12787 # substitution turns \\\\ into \\, and sed turns \\ into \).
12790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12793 # `set' quotes correctly as required by POSIX, so do not add quotes.
12794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12803 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12805 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12807 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12808 if test -w "$cache_file"; then
12809 test "x$cache_file" != "x/dev/null" &&
12810 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12811 $as_echo "$as_me: updating cache $cache_file" >&6;}
12812 cat confcache >$cache_file
12814 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12815 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12820 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12821 # Let make expand exec_prefix.
12822 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12824 DEFS=-DHAVE_CONFIG_H
12828 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12829 # 1. Remove the extension, and $U if already installed.
12830 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12831 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12832 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12833 # will be set to the directory where LIBOBJS objects are built.
12834 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12835 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12837 LIBOBJS=$ac_libobjs
12839 LTLIBOBJS=$ac_ltlibobjs
12842 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12843 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12844 Usually this means the macro was only invoked conditionally." >&5
12845 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12846 Usually this means the macro was only invoked conditionally." >&2;}
12847 { (exit 1); exit 1; }; }
12849 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12850 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12851 Usually this means the macro was only invoked conditionally." >&5
12852 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12853 Usually this means the macro was only invoked conditionally." >&2;}
12854 { (exit 1); exit 1; }; }
12856 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12857 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12858 Usually this means the macro was only invoked conditionally." >&5
12859 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12860 Usually this means the macro was only invoked conditionally." >&2;}
12861 { (exit 1); exit 1; }; }
12863 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12864 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12865 Usually this means the macro was only invoked conditionally." >&5
12866 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12867 Usually this means the macro was only invoked conditionally." >&2;}
12868 { (exit 1); exit 1; }; }
12870 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12871 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12872 Usually this means the macro was only invoked conditionally." >&5
12873 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12874 Usually this means the macro was only invoked conditionally." >&2;}
12875 { (exit 1); exit 1; }; }
12877 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
12878 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
12879 Usually this means the macro was only invoked conditionally." >&5
12880 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
12881 Usually this means the macro was only invoked conditionally." >&2;}
12882 { (exit 1); exit 1; }; }
12884 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
12885 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
12886 Usually this means the macro was only invoked conditionally." >&5
12887 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
12888 Usually this means the macro was only invoked conditionally." >&2;}
12889 { (exit 1); exit 1; }; }
12891 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
12892 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
12893 Usually this means the macro was only invoked conditionally." >&5
12894 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
12895 Usually this means the macro was only invoked conditionally." >&2;}
12896 { (exit 1); exit 1; }; }
12898 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
12899 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
12900 Usually this means the macro was only invoked conditionally." >&5
12901 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
12902 Usually this means the macro was only invoked conditionally." >&2;}
12903 { (exit 1); exit 1; }; }
12905 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
12906 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
12907 Usually this means the macro was only invoked conditionally." >&5
12908 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
12909 Usually this means the macro was only invoked conditionally." >&2;}
12910 { (exit 1); exit 1; }; }
12912 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
12913 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
12914 Usually this means the macro was only invoked conditionally." >&5
12915 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
12916 Usually this means the macro was only invoked conditionally." >&2;}
12917 { (exit 1); exit 1; }; }
12919 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
12920 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
12921 Usually this means the macro was only invoked conditionally." >&5
12922 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
12923 Usually this means the macro was only invoked conditionally." >&2;}
12924 { (exit 1); exit 1; }; }
12926 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
12927 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
12928 Usually this means the macro was only invoked conditionally." >&5
12929 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
12930 Usually this means the macro was only invoked conditionally." >&2;}
12931 { (exit 1); exit 1; }; }
12933 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
12934 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
12935 Usually this means the macro was only invoked conditionally." >&5
12936 $as_echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
12937 Usually this means the macro was only invoked conditionally." >&2;}
12938 { (exit 1); exit 1; }; }
12940 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
12941 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
12942 Usually this means the macro was only invoked conditionally." >&5
12943 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
12944 Usually this means the macro was only invoked conditionally." >&2;}
12945 { (exit 1); exit 1; }; }
12947 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
12948 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
12949 Usually this means the macro was only invoked conditionally." >&5
12950 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
12951 Usually this means the macro was only invoked conditionally." >&2;}
12952 { (exit 1); exit 1; }; }
12954 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
12955 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
12956 Usually this means the macro was only invoked conditionally." >&5
12957 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
12958 Usually this means the macro was only invoked conditionally." >&2;}
12959 { (exit 1); exit 1; }; }
12961 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
12962 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
12963 Usually this means the macro was only invoked conditionally." >&5
12964 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
12965 Usually this means the macro was only invoked conditionally." >&2;}
12966 { (exit 1); exit 1; }; }
12968 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
12969 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
12970 Usually this means the macro was only invoked conditionally." >&5
12971 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
12972 Usually this means the macro was only invoked conditionally." >&2;}
12973 { (exit 1); exit 1; }; }
12975 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
12976 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
12977 Usually this means the macro was only invoked conditionally." >&5
12978 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
12979 Usually this means the macro was only invoked conditionally." >&2;}
12980 { (exit 1); exit 1; }; }
12982 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
12983 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
12984 Usually this means the macro was only invoked conditionally." >&5
12985 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
12986 Usually this means the macro was only invoked conditionally." >&2;}
12987 { (exit 1); exit 1; }; }
12989 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
12990 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
12991 Usually this means the macro was only invoked conditionally." >&5
12992 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
12993 Usually this means the macro was only invoked conditionally." >&2;}
12994 { (exit 1); exit 1; }; }
12996 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
12997 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
12998 Usually this means the macro was only invoked conditionally." >&5
12999 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
13000 Usually this means the macro was only invoked conditionally." >&2;}
13001 { (exit 1); exit 1; }; }
13004 : ${CONFIG_STATUS=./config.status}
13006 ac_clean_files_save=$ac_clean_files
13007 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13008 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13009 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13010 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13012 # Generated by $as_me.
13013 # Run this file to recreate the current configuration.
13014 # Compiler output produced by configure, useful for debugging
13015 # configure, is in config.log if it exists.
13018 ac_cs_recheck=false
13020 SHELL=\${CONFIG_SHELL-$SHELL}
13023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13024 ## --------------------- ##
13025 ## M4sh Initialization. ##
13026 ## --------------------- ##
13028 # Be more Bourne compatible
13029 DUALCASE=1; export DUALCASE # for MKS sh
13030 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13033 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13034 # is contrary to our usage. Disable this feature.
13035 alias -g '${1+"$@"}'='"$@"'
13036 setopt NO_GLOB_SUBST
13038 case `(set -o) 2>/dev/null` in
13039 *posix*) set -o posix ;;
13048 # Avoid depending upon Character Ranges.
13049 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13050 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13051 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13052 as_cr_digits='0123456789'
13053 as_cr_alnum=$as_cr_Letters$as_cr_digits
13058 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13059 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13060 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13061 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13062 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13063 as_echo='printf %s\n'
13064 as_echo_n='printf %s'
13066 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13067 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13068 as_echo_n='/usr/ucb/echo -n'
13070 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13071 as_echo_n_body='eval
13075 expr "X$arg" : "X\\(.*\\)$as_nl";
13076 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13078 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13080 export as_echo_n_body
13081 as_echo_n='sh -c $as_echo_n_body as_echo'
13083 export as_echo_body
13084 as_echo='sh -c $as_echo_body as_echo'
13087 # The user is always right.
13088 if test "${PATH_SEPARATOR+set}" != set; then
13090 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13091 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13096 # Support unset when possible.
13097 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13105 # We need space, tab and new line, in precisely that order. Quoting is
13106 # there to prevent editors from complaining about space-tab.
13107 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13108 # splitting by setting IFS to empty value.)
13111 # Find who we are. Look in the path if we contain no directory separator.
13113 *[\\/]* ) as_myself=$0 ;;
13114 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115 for as_dir in $PATH
13118 test -z "$as_dir" && as_dir=.
13119 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13125 # We did not find ourselves, most probably we were run as `sh COMMAND'
13126 # in which case we are not to be found in the path.
13127 if test "x$as_myself" = x; then
13130 if test ! -f "$as_myself"; then
13131 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13132 { (exit 1); exit 1; }
13135 # Work around bugs in pre-3.0 UWIN ksh.
13136 for as_var in ENV MAIL MAILPATH
13137 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13149 # Required to use basename.
13150 if expr a : '\(a\)' >/dev/null 2>&1 &&
13151 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13157 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13158 as_basename=basename
13164 # Name of the executable.
13165 as_me=`$as_basename -- "$0" ||
13166 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13167 X"$0" : 'X\(//\)$' \| \
13168 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13170 sed '/^.*\/\([^/][^/]*\)\/*$/{
13189 as_lineno_1=$LINENO
13190 as_lineno_2=$LINENO
13191 test "x$as_lineno_1" != "x$as_lineno_2" &&
13192 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13194 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13195 # uniformly replaced by the line number. The first 'sed' inserts a
13196 # line-number line after each line using $LINENO; the second 'sed'
13197 # does the real work. The second script uses 'N' to pair each
13198 # line-number line with the line containing $LINENO, and appends
13199 # trailing '-' during substitution so that $LINENO is not a special
13200 # case at line end.
13201 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13202 # scripts with optimization help from Paolo Bonzini. Blame Lee
13203 # E. McMahon (1931-1989) for sed's syntax. :-)
13215 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13218 ' >$as_me.lineno &&
13219 chmod +x "$as_me.lineno" ||
13220 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13221 { (exit 1); exit 1; }; }
13223 # Don't try to exec as it changes $[0], causing all sort of problems
13224 # (the dirname of $[0] is not the place where we might find the
13225 # original and so on. Autoconf is especially sensitive to this).
13226 . "./$as_me.lineno"
13227 # Exit status is that of the last command.
13232 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13238 ECHO_C= ECHO_N= ECHO_T=
13239 case `echo -n x` in
13241 case `echo 'x\c'` in
13242 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13248 if expr a : '\(a\)' >/dev/null 2>&1 &&
13249 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13255 rm -f conf$$ conf$$.exe conf$$.file
13256 if test -d conf$$.dir; then
13257 rm -f conf$$.dir/conf$$.file
13260 mkdir conf$$.dir 2>/dev/null
13262 if (echo >conf$$.file) 2>/dev/null; then
13263 if ln -s conf$$.file conf$$ 2>/dev/null; then
13265 # ... but there are two gotchas:
13266 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13267 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13268 # In both cases, we have to default to `cp -p'.
13269 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13271 elif ln conf$$.file conf$$ 2>/dev/null; then
13279 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13280 rmdir conf$$.dir 2>/dev/null
13282 if mkdir -p . 2>/dev/null; then
13285 test -d ./-p && rmdir ./-p
13289 if test -x / >/dev/null 2>&1; then
13290 as_test_x='test -x'
13292 if ls -dL / >/dev/null 2>&1; then
13299 if test -d "$1"; then
13305 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13306 ???[sx]*):;;*)false;;esac;fi
13310 as_executable_p=$as_test_x
13312 # Sed expression to map a string onto a valid CPP name.
13313 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13315 # Sed expression to map a string onto a valid variable name.
13316 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13321 # Save the log message, to keep $[0] and so on meaningful, and to
13322 # report actual input values of CONFIG_FILES etc. instead of their
13323 # values after options handling.
13325 This file was extended by $as_me, which was
13326 generated by GNU Autoconf 2.62. Invocation command line was
13328 CONFIG_FILES = $CONFIG_FILES
13329 CONFIG_HEADERS = $CONFIG_HEADERS
13330 CONFIG_LINKS = $CONFIG_LINKS
13331 CONFIG_COMMANDS = $CONFIG_COMMANDS
13334 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13340 # Files that config.status was made for.
13341 config_files="$ac_config_files"
13342 config_headers="$ac_config_headers"
13343 config_commands="$ac_config_commands"
13347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13349 \`$as_me' instantiates files from templates according to the
13350 current configuration.
13352 Usage: $0 [OPTIONS] [FILE]...
13354 -h, --help print this help, then exit
13355 -V, --version print version number and configuration settings, then exit
13356 -q, --quiet do not print progress messages
13357 -d, --debug don't remove temporary files
13358 --recheck update $as_me by reconfiguring in the same conditions
13359 --file=FILE[:TEMPLATE]
13360 instantiate the configuration file FILE
13361 --header=FILE[:TEMPLATE]
13362 instantiate the configuration header FILE
13364 Configuration files:
13367 Configuration headers:
13370 Configuration commands:
13373 Report bugs to <bug-autoconf@gnu.org>."
13376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13379 configured by $0, generated by GNU Autoconf 2.62,
13380 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13382 Copyright (C) 2008 Free Software Foundation, Inc.
13383 This config.status script is free software; the Free Software Foundation
13384 gives unlimited permission to copy, distribute and modify it."
13390 test -n "\$AWK" || AWK=awk
13393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13394 # The default lists apply if the user does not specify any file.
13400 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13401 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13412 # Handling of the options.
13413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13415 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13416 $as_echo "$ac_cs_version"; exit ;;
13417 --debug | --debu | --deb | --de | --d | -d )
13419 --file | --fil | --fi | --f )
13422 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13424 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13425 ac_need_defaults=false;;
13426 --header | --heade | --head | --hea )
13429 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13431 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13432 ac_need_defaults=false;;
13434 # Conflict between --help and --header
13435 { $as_echo "$as_me: error: ambiguous option: $1
13436 Try \`$0 --help' for more information." >&2
13437 { (exit 1); exit 1; }; };;
13438 --help | --hel | -h )
13439 $as_echo "$ac_cs_usage"; exit ;;
13440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13441 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13444 # This is an error.
13445 -*) { $as_echo "$as_me: error: unrecognized option: $1
13446 Try \`$0 --help' for more information." >&2
13447 { (exit 1); exit 1; }; } ;;
13449 *) ac_config_targets="$ac_config_targets $1"
13450 ac_need_defaults=false ;;
13456 ac_configure_extra_args=
13458 if $ac_cs_silent; then
13460 ac_configure_extra_args="$ac_configure_extra_args --silent"
13464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13465 if \$ac_cs_recheck; then
13466 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13468 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13469 CONFIG_SHELL='$SHELL'
13470 export CONFIG_SHELL
13475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13479 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13480 ## Running $as_me. ##
13486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13490 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13497 # Handling of arguments.
13498 for ac_config_target in $ac_config_targets
13500 case $ac_config_target in
13501 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13502 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13503 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13504 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13505 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13506 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13507 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13508 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
13510 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13511 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13512 { (exit 1); exit 1; }; };;
13517 # If the user did not use the arguments to specify the items to instantiate,
13518 # then the envvar interface is used. Set only those that are not.
13519 # We use the long form for the default assignment because of an extremely
13520 # bizarre bug on SunOS 4.1.3.
13521 if $ac_need_defaults; then
13522 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13523 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13524 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13527 # Have a temporary directory for convenience. Make it in the build tree
13528 # simply because there is no reason against having it here, and in addition,
13529 # creating and moving files from /tmp can sometimes cause problems.
13530 # Hook for its removal unless debugging.
13531 # Note that there is a small window in which the directory will not be cleaned:
13532 # after its creation but before its name has been assigned to `$tmp'.
13536 trap 'exit_status=$?
13537 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13539 trap '{ (exit 1); exit 1; }' 1 2 13 15
13541 # Create a (secure) tmp directory for tmp files.
13544 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13545 test -n "$tmp" && test -d "$tmp"
13548 tmp=./conf$$-$RANDOM
13549 (umask 077 && mkdir "$tmp")
13552 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13553 { (exit 1); exit 1; }
13556 # Set up the scripts for CONFIG_FILES section.
13557 # No need to generate them if there are no CONFIG_FILES.
13558 # This happens for instance with `./config.status config.h'.
13559 if test -n "$CONFIG_FILES"; then
13564 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13565 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13568 ac_cs_awk_cr=$ac_cr
13571 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13576 echo "cat >conf$$subs.awk <<_ACEOF" &&
13577 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13579 } >conf$$subs.sh ||
13580 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13581 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13582 { (exit 1); exit 1; }; }
13583 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13585 for ac_last_try in false false false false false :; do
13586 . ./conf$$subs.sh ||
13587 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13588 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13589 { (exit 1); exit 1; }; }
13591 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
13593 elif $ac_last_try; then
13594 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13595 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13596 { (exit 1); exit 1; }; }
13598 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13601 rm -f conf$$subs.sh
13603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13604 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13608 s/^/S["/; s/!.*/"]=/
13618 s/\(.\{148\}\).*/\1/
13620 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13625 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13632 s/\(.\{148\}\).*/\1/
13634 s/["\\]/\\&/g; s/^/"/; s/$/"/
13638 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13643 ' <conf$$subs.awk | sed '
13648 ' >>$CONFIG_STATUS || ac_write_fail=1
13649 rm -f conf$$subs.awk
13650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13652 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13653 for (key in S) S_is_set[key] = 1
13659 nfields = split(line, field, "@")
13661 len = length(field[1])
13662 for (i = 2; i < nfields; i++) {
13664 keylen = length(key)
13665 if (S_is_set[key]) {
13667 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13668 len += length(value) + length(field[++i])
13679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13680 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13681 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13684 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13685 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13686 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13687 { (exit 1); exit 1; }; }
13690 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13691 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13692 # trailing colons and then remove the whole line if VPATH becomes empty
13693 # (actually we leave an empty line to preserve line numbers).
13694 if test "x$srcdir" = x.; then
13695 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13696 s/:*\$(srcdir):*/:/
13697 s/:*\${srcdir}:*/:/
13699 s/^\([^=]*=[ ]*\):*/\1/
13705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13706 fi # test -n "$CONFIG_FILES"
13708 # Set up the scripts for CONFIG_HEADERS section.
13709 # No need to generate them if there are no CONFIG_HEADERS.
13710 # This happens for instance with `./config.status Makefile'.
13711 if test -n "$CONFIG_HEADERS"; then
13712 cat >"$tmp/defines.awk" <<\_ACAWK ||
13716 # Transform confdefs.h into an awk script `defines.awk', embedded as
13717 # here-document in config.status, that substitutes the proper values into
13718 # config.h.in to produce config.h.
13720 # Create a delimiter string that does not exist in confdefs.h, to ease
13721 # handling of long lines.
13723 for ac_last_try in false false :; do
13724 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13725 if test -z "$ac_t"; then
13727 elif $ac_last_try; then
13728 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13729 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13730 { (exit 1); exit 1; }; }
13732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13736 # For the awk script, D is an array of macro values keyed by name,
13737 # likewise P contains macro parameters if any. Preserve backslash
13738 # newline sequences.
13740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13742 s/.\{148\}/&'"$ac_delim"'/g
13745 s/^[ ]*#[ ]*define[ ][ ]*/ /
13752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13754 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13759 D["\1"]=" \3\\\\\\n"\\/p
13761 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13766 s/.\{148\}/&'"$ac_delim"'/g
13771 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13774 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13776 ' <confdefs.h | sed '
13777 s/'"$ac_delim"'/"\\\
13778 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13781 for (key in D) D_is_set[key] = 1
13784 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13786 split(line, arg, " ")
13787 if (arg[1] == "#") {
13791 defundef = substr(arg[1], 2)
13794 split(mac1, mac2, "(") #)
13796 if (D_is_set[macro]) {
13797 # Preserve the white space surrounding the "#".
13798 prefix = substr(line, 1, index(line, defundef) - 1)
13799 print prefix "define", macro P[macro] D[macro]
13802 # Replace #undef with comments. This is necessary, for example,
13803 # in the case of _POSIX_SOURCE, which is predefined and required
13804 # on some systems where configure will not decide to define it.
13805 if (defundef == "undef") {
13806 print "/*", line, "*/"
13814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13815 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13816 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13817 { (exit 1); exit 1; }; }
13818 fi # test -n "$CONFIG_HEADERS"
13821 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13826 :[FHLC]) ac_mode=$ac_tag; continue;;
13828 case $ac_mode$ac_tag in
13830 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13831 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13832 { (exit 1); exit 1; }; };;
13833 :[FH]-) ac_tag=-:-;;
13834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13851 -) ac_f="$tmp/stdin";;
13852 *) # Look for the file first in the build tree, then in the source tree
13853 # (if the path is not absolute). The absolute path cannot be DOS-style,
13854 # because $ac_f cannot contain `:'.
13858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13860 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13861 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13862 { (exit 1); exit 1; }; };;
13864 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13865 ac_file_inputs="$ac_file_inputs '$ac_f'"
13868 # Let's still pretend it is `configure' which instantiates (i.e., don't
13869 # use $as_me), people would be surprised to read:
13870 # /* config.h. Generated by config.status. */
13871 configure_input='Generated from '`
13872 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13874 if test x"$ac_file" != x-; then
13875 configure_input="$ac_file. $configure_input"
13876 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13877 $as_echo "$as_me: creating $ac_file" >&6;}
13879 # Neutralize special characters interpreted by sed in replacement strings.
13880 case $configure_input in #(
13881 *\&* | *\|* | *\\* )
13882 ac_sed_conf_input=`$as_echo "$configure_input" |
13883 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13884 *) ac_sed_conf_input=$configure_input;;
13888 *:-:* | *:-) cat >"$tmp/stdin" \
13889 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13890 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13891 { (exit 1); exit 1; }; } ;;
13896 ac_dir=`$as_dirname -- "$ac_file" ||
13897 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13898 X"$ac_file" : 'X\(//\)[^/]' \| \
13899 X"$ac_file" : 'X\(//\)$' \| \
13900 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13901 $as_echo X"$ac_file" |
13902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13906 /^X\(\/\/\)[^/].*/{
13921 -*) as_dir=./$as_dir;;
13923 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13927 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13928 *) as_qdir=$as_dir;;
13930 as_dirs="'$as_qdir' $as_dirs"
13931 as_dir=`$as_dirname -- "$as_dir" ||
13932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13933 X"$as_dir" : 'X\(//\)[^/]' \| \
13934 X"$as_dir" : 'X\(//\)$' \| \
13935 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13936 $as_echo X"$as_dir" |
13937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13941 /^X\(\/\/\)[^/].*/{
13954 test -d "$as_dir" && break
13956 test -z "$as_dirs" || eval "mkdir $as_dirs"
13957 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13958 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13959 { (exit 1); exit 1; }; }; }
13963 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13965 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13966 # A ".." for each directory in $ac_dir_suffix.
13967 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13968 case $ac_top_builddir_sub in
13969 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13970 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13973 ac_abs_top_builddir=$ac_pwd
13974 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13975 # for backward compatibility:
13976 ac_top_builddir=$ac_top_build_prefix
13979 .) # We are building in place.
13981 ac_top_srcdir=$ac_top_builddir_sub
13982 ac_abs_top_srcdir=$ac_pwd ;;
13983 [\\/]* | ?:[\\/]* ) # Absolute name.
13984 ac_srcdir=$srcdir$ac_dir_suffix;
13985 ac_top_srcdir=$srcdir
13986 ac_abs_top_srcdir=$srcdir ;;
13987 *) # Relative name.
13988 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13989 ac_top_srcdir=$ac_top_build_prefix$srcdir
13990 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13992 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14002 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14003 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14008 # If the template does not know about datarootdir, expand it.
14009 # FIXME: This hack should be removed a few years after 2.60.
14010 ac_datarootdir_hack=; ac_datarootdir_seen=
14023 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14024 *datarootdir*) ac_datarootdir_seen=yes;;
14025 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14026 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14027 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14030 ac_datarootdir_hack='
14031 s&@datadir@&$datadir&g
14032 s&@docdir@&$docdir&g
14033 s&@infodir@&$infodir&g
14034 s&@localedir@&$localedir&g
14035 s&@mandir@&$mandir&g
14036 s&\\\${datarootdir}&$datarootdir&g' ;;
14040 # Neutralize VPATH when `$srcdir' = `.'.
14041 # Shell code in configure.ac might set extrasub.
14042 # FIXME: do we really want to maintain this feature?
14043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14044 ac_sed_extra="$ac_vpsub
14047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14050 s|@configure_input@|$ac_sed_conf_input|;t t
14051 s&@top_builddir@&$ac_top_builddir_sub&;t t
14052 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14053 s&@srcdir@&$ac_srcdir&;t t
14054 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14055 s&@top_srcdir@&$ac_top_srcdir&;t t
14056 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14057 s&@builddir@&$ac_builddir&;t t
14058 s&@abs_builddir@&$ac_abs_builddir&;t t
14059 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14060 s&@INSTALL@&$ac_INSTALL&;t t
14061 $ac_datarootdir_hack
14063 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14064 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14065 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14066 { (exit 1); exit 1; }; }
14068 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14069 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14070 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14071 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14072 which seems to be undefined. Please make sure it is defined." >&5
14073 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14074 which seems to be undefined. Please make sure it is defined." >&2;}
14078 -) cat "$tmp/out" && rm -f "$tmp/out";;
14079 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14081 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14082 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14083 { (exit 1); exit 1; }; }
14089 if test x"$ac_file" != x-; then
14091 $as_echo "/* $configure_input */" \
14092 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14093 } >"$tmp/config.h" \
14094 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14095 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14096 { (exit 1); exit 1; }; }
14097 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14098 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14099 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14102 mv "$tmp/config.h" "$ac_file" \
14103 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14104 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14105 { (exit 1); exit 1; }; }
14108 $as_echo "/* $configure_input */" \
14109 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14110 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14111 $as_echo "$as_me: error: could not create -" >&2;}
14112 { (exit 1); exit 1; }; }
14114 # Compute "$ac_file"'s index in $config_headers.
14116 for _am_header in $config_headers :; do
14117 case $_am_header in
14118 "$ac_file" | "$ac_file":* )
14121 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14124 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
14125 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14126 X"$ac_file" : 'X\(//\)[^/]' \| \
14127 X"$ac_file" : 'X\(//\)$' \| \
14128 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14129 $as_echo X"$ac_file" |
14130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14134 /^X\(\/\/\)[^/].*/{
14146 s/.*/./; q'`/stamp-h$_am_stamp_count
14149 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14150 $as_echo "$as_me: executing $ac_file commands" >&6;}
14155 case $ac_file$ac_mode in
14156 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14157 # Strip MF so we end up with the name of the file.
14158 mf=`echo "$mf" | sed -e 's/:.*$//'`
14159 # Check whether this is an Automake generated Makefile or not.
14160 # We used to match only the files named `Makefile.in', but
14161 # some people rename them; so instead we look at the file content.
14162 # Grep'ing the first line is not enough: some people post-process
14163 # each Makefile.in and add a new line on top of each file to say so.
14164 # So let's grep whole file.
14165 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14166 dirpart=`$as_dirname -- "$mf" ||
14167 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14168 X"$mf" : 'X\(//\)[^/]' \| \
14169 X"$mf" : 'X\(//\)$' \| \
14170 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14176 /^X\(\/\/\)[^/].*/{
14192 # Extract the definition of DEPDIR, am__include, and am__quote
14193 # from the Makefile without running `make'.
14194 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14195 test -z "$DEPDIR" && continue
14196 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14197 test -z "am__include" && continue
14198 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14199 # When using ansi2knr, U may be empty or an underscore; expand it
14200 U=`sed -n 's/^U = //p' < "$mf"`
14201 # Find all dependency output files, they are included files with
14202 # $(DEPDIR) in their names. We invoke sed twice because it is the
14203 # simplest approach to changing $(DEPDIR) to its actual value in the
14205 for file in `sed -n "
14206 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14207 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14208 # Make sure the directory exists.
14209 test -f "$dirpart/$file" && continue
14210 fdir=`$as_dirname -- "$file" ||
14211 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14212 X"$file" : 'X\(//\)[^/]' \| \
14213 X"$file" : 'X\(//\)$' \| \
14214 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14215 $as_echo X"$file" |
14216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14220 /^X\(\/\/\)[^/].*/{
14233 { as_dir=$dirpart/$fdir
14235 -*) as_dir=./$as_dir;;
14237 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14241 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14242 *) as_qdir=$as_dir;;
14244 as_dirs="'$as_qdir' $as_dirs"
14245 as_dir=`$as_dirname -- "$as_dir" ||
14246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14247 X"$as_dir" : 'X\(//\)[^/]' \| \
14248 X"$as_dir" : 'X\(//\)$' \| \
14249 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14250 $as_echo X"$as_dir" |
14251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14255 /^X\(\/\/\)[^/].*/{
14268 test -d "$as_dir" && break
14270 test -z "$as_dirs" || eval "mkdir $as_dirs"
14271 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14272 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14273 { (exit 1); exit 1; }; }; }
14274 # echo "creating $dirpart/$file"
14275 echo '# dummy' > "$dirpart/$file"
14279 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
14280 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14287 { (exit 0); exit 0; }
14289 chmod +x $CONFIG_STATUS
14290 ac_clean_files=$ac_clean_files_save
14292 test $ac_write_fail = 0 ||
14293 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14294 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14295 { (exit 1); exit 1; }; }
14298 # configure is writing to config.log, and then calls config.status.
14299 # config.status does its own redirection, appending to config.log.
14300 # Unfortunately, on DOS this fails, as config.log is still kept open
14301 # by configure, so config.status won't be able to write to it; its
14302 # output is simply discarded. So we exec the FD to /dev/null,
14303 # effectively closing config.log, so it can be properly (re)opened and
14304 # appended to by config.status. When coming back to configure, we
14305 # need to make the FD available again.
14306 if test "$no_create" != yes; then
14308 ac_config_status_args=
14309 test "$silent" = yes &&
14310 ac_config_status_args="$ac_config_status_args --quiet"
14312 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14314 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14315 # would make configure fail if this is the last instruction.
14316 $ac_cs_success || { (exit 1); exit 1; }
14318 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14319 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
14320 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
14325 -*) as_dir=./$as_dir;;
14327 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14331 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14332 *) as_qdir=$as_dir;;
14334 as_dirs="'$as_qdir' $as_dirs"
14335 as_dir=`$as_dirname -- "$as_dir" ||
14336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14337 X"$as_dir" : 'X\(//\)[^/]' \| \
14338 X"$as_dir" : 'X\(//\)$' \| \
14339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14340 $as_echo X"$as_dir" |
14341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14345 /^X\(\/\/\)[^/].*/{
14358 test -d "$as_dir" && break
14360 test -z "$as_dirs" || eval "mkdir $as_dirs"
14361 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14362 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14363 { (exit 1); exit 1; }; }; }
14367 echo "Configuration complete"
14370 if test "x$HAVE_GTK" = x; then
14371 if test "x$HAVE_COCOA" = x; then
14372 echo " User interface: none"
14374 echo " User interface: Cocoa"
14377 echo " User interface: GTK"
14380 if test "x$SH4_TRANSLATOR" = "x"; then
14381 echo " SH4 translator: None (emulation core only)"
14383 echo " SH4 translator: $SH4_TRANSLATOR"
14386 if test "x$VIDEO_DRIVERS" = "x"; then
14387 echo " Video drivers: none (no supported GL found)"
14389 echo " Video drivers: $VIDEO_DRIVERS"
14392 if test "x$AUDIO_DRIVERS" = "x"; then
14393 echo " Audio drivers: none (no supported output devices found)"
14395 echo " Audio drivers: $AUDIO_DRIVERS"
14398 if test "x$CDROM_DRIVER" = "x"; then
14399 echo " CD-ROM driver: none (no supported cd-rom devices found)"
14401 echo " CD-ROM driver: $CDROM_DRIVER"
.