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
810 enable_option_checking
811 enable_maintainer_mode
812 enable_dependency_tracking
825 ac_precious_vars='build_alias
854 # Initialize some variables set by options.
856 ac_init_version=false
857 ac_unrecognized_opts=
859 # The variables have the same names as the options, with
860 # dashes changed to underlines.
868 program_transform_name=s,x,x,
876 # Installation directory options.
877 # These are left unexpanded so users can "make install exec_prefix=/foo"
878 # and all the variables that are supposed to be based on exec_prefix
879 # by default will actually change.
880 # Use braces instead of parens because sh, perl, etc. also accept them.
881 # (The list follows the same order as the GNU Coding Standards.)
882 bindir='${exec_prefix}/bin'
883 sbindir='${exec_prefix}/sbin'
884 libexecdir='${exec_prefix}/libexec'
885 datarootdir='${prefix}/share'
886 datadir='${datarootdir}'
887 sysconfdir='${prefix}/etc'
888 sharedstatedir='${prefix}/com'
889 localstatedir='${prefix}/var'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE}'
893 infodir='${datarootdir}/info'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
914 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 # Accept the important Cygnus configure options, so we can diagnose typos.
920 case $ac_dashdash$ac_option in
924 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 -build | --build | --buil | --bui | --bu)
930 ac_prev=build_alias ;;
931 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932 build_alias=$ac_optarg ;;
934 -cache-file | --cache-file | --cache-fil | --cache-fi \
935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936 ac_prev=cache_file ;;
937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939 cache_file=$ac_optarg ;;
942 cache_file=config.cache ;;
944 -datadir | --datadir | --datadi | --datad)
946 -datadir=* | --datadir=* | --datadi=* | --datad=*)
947 datadir=$ac_optarg ;;
949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950 | --dataroo | --dataro | --datar)
951 ac_prev=datarootdir ;;
952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954 datarootdir=$ac_optarg ;;
956 -disable-* | --disable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
961 { (exit 1); exit 1; }; }
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
971 eval enable_$ac_useropt=no ;;
973 -docdir | --docdir | --docdi | --doc | --do)
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
988 { (exit 1); exit 1; }; }
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
998 eval enable_$ac_useropt=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1162 -site=* | --site=* | --sit=*)
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1203 eval with_$ac_useropt=\$ac_optarg ;;
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1210 { (exit 1); exit 1; }; }
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1220 eval with_$ac_useropt=no ;;
1223 # Obsolete; use --with-x.
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1240 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1241 Try \`$0 --help' for more information." >&2
1242 { (exit 1); exit 1; }; }
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1249 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1250 { (exit 1); exit 1; }; }
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1255 # FIXME: should be removed in autoconf 3.0.
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1265 if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1268 { (exit 1); exit 1; }; }
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1274 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1275 { (exit 1); exit 1; }; } ;;
1276 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1293 # Be sure to have absolute directory names.
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1299 { (exit 1); exit 1; }; }
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1314 If a cross compiler is detected then cross compile mode will be used." >&2
1315 elif test "x$build_alias" != "x$host_alias"; then
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323 test "$silent" = yes && exec 6>/dev/null
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1330 { (exit 1); exit 1; }; }
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1333 { (exit 1); exit 1; }; }
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 $as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1368 ac_srcdir_defaulted=no
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1373 { (exit 1); exit 1; }; }
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1378 { (exit 1); exit 1; }; }
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 # Report the --help message.
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1404 \`configure' configures this package to adapt to many kinds of systems.
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1411 Defaults for the options are specified in brackets.
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1435 For better control, use the options below.
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 if test -n "$ac_init_help"; then
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-maintainer-mode enable make rules and dependencies not useful
1481 (and sometimes confusing) to the casual installer
1482 --disable-dependency-tracking speeds up one-time build
1483 --enable-dependency-tracking do not reject slow dependency extractors
1484 --enable-strict-warn Enable strict compilation warnings
1485 --disable-translator Disable the SH4 translator (Enabled by default)
1486 --disable-optimized Disable compile-time optimizations (Enabled by
1488 --enable-profiled Enable profiling build
1489 --enable-trace Enable generation of IO traces (warning: hurts
1491 --enable-watch Enable watchpoints in the debugger (warning: hurts
1493 --enable-sh4stats Enable statistics on executed sh4 instructions
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-osmesa Build with the osmesa GL library (software
1500 --with-gtk Build with the GTK UI. Default on X11 systems
1501 --with-esd Build with support for the ESounD audio system
1502 --with-pulse Build with support for the PulseAudio audio system
1504 Some influential environment variables:
1505 CC C compiler command
1506 CFLAGS C compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 OBJC Objective C compiler command
1513 OBJCFLAGS Objective C compiler flags
1514 CCAS assembler compiler command (defaults to CC)
1515 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1517 OBJCPP Objective C preprocessor
1518 PKG_CONFIG path to pkg-config utility
1520 C compiler flags for LIBPNG, overriding pkg-config
1521 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1522 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1523 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1524 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1525 GTK_LIBS linker flags for GTK, overriding pkg-config
1527 C compiler flags for PULSE, overriding pkg-config
1528 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1530 C compiler flags for ESOUND, overriding pkg-config
1531 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1532 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1533 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1567 .) # We are building in place.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1601 generated by GNU Autoconf 2.62
1603 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1604 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1610 cat >config.log <<_ACEOF
1611 This file contains any messages produced by compilers while
1612 running configure, to aid debugging if configure makes a mistake.
1614 It was created by $as_me, which was
1615 generated by GNU Autoconf 2.62. Invocation command line was
1627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1634 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1636 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1637 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1639 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1640 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1641 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1642 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 $as_echo "PATH: $as_dir"
1667 # Keep a trace of the command line.
1668 # Strip out --no-create and --no-recursion so they do not pile up.
1669 # Strip out --silent because we don't want to record it for future runs.
1670 # Also quote any args containing shell meta-characters.
1671 # Make two passes to allow for proper duplicate-argument suppression.
1675 ac_must_keep_next=false
1681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1683 | -silent | --silent | --silen | --sile | --sil)
1686 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1689 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1691 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1692 if test $ac_must_keep_next = true; then
1693 ac_must_keep_next=false # Got value, back to normal.
1696 *=* | --config-cache | -C | -disable-* | --disable-* \
1697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1699 | -with-* | --with-* | -without-* | --without-* | --x)
1700 case "$ac_configure_args0 " in
1701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704 -* ) ac_must_keep_next=true ;;
1707 ac_configure_args="$ac_configure_args '$ac_arg'"
1712 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1713 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1715 # When interrupted or exit'd, cleanup temporary files, and complete
1716 # config.log. We remove comments because anyway the quotes in there
1717 # would cause problems or look ugly.
1718 # WARNING: Use '\'' to represent an apostrophe within the trap.
1719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1720 trap 'exit_status=$?
1721 # Save into config.log some information that might help in debugging.
1726 ## ---------------- ##
1727 ## Cache variables. ##
1728 ## ---------------- ##
1731 # The following way of writing the cache mishandles newlines in values,
1733 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1734 eval ac_val=\$$ac_var
1738 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1739 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1742 _ | IFS | as_nl) ;; #(
1743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1744 *) $as_unset $ac_var ;;
1749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1750 *${as_nl}ac_space=\ *)
1752 "s/'\''/'\''\\\\'\'''\''/g;
1753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1764 ## ----------------- ##
1765 ## Output variables. ##
1766 ## ----------------- ##
1769 for ac_var in $ac_subst_vars
1771 eval ac_val=\$$ac_var
1773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775 $as_echo "$ac_var='\''$ac_val'\''"
1779 if test -n "$ac_subst_files"; then
1781 ## ------------------- ##
1782 ## File substitutions. ##
1783 ## ------------------- ##
1786 for ac_var in $ac_subst_files
1788 eval ac_val=\$$ac_var
1790 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792 $as_echo "$ac_var='\''$ac_val'\''"
1797 if test -s confdefs.h; then
1807 test "$ac_signal" != 0 &&
1808 $as_echo "$as_me: caught signal $ac_signal"
1809 $as_echo "$as_me: exit $exit_status"
1811 rm -f core *.core core.conftest.* &&
1812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1815 for ac_signal in 1 2 13 15; do
1816 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1821 rm -f -r conftest* confdefs.h
1823 # Predefined preprocessor variables.
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_NAME "$PACKAGE_NAME"
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_STRING "$PACKAGE_STRING"
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1850 # Let the site file select an alternate cache file if it wants to.
1851 # Prefer an explicitly selected file to automatically selected ones.
1854 if test -n "$CONFIG_SITE"; then
1855 ac_site_file1=$CONFIG_SITE
1856 elif test "x$prefix" != xNONE; then
1857 ac_site_file1=$prefix/share/config.site
1858 ac_site_file2=$prefix/etc/config.site
1860 ac_site_file1=$ac_default_prefix/share/config.site
1861 ac_site_file2=$ac_default_prefix/etc/config.site
1863 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1865 test "x$ac_site_file" = xNONE && continue
1866 if test -r "$ac_site_file"; then
1867 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1868 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1869 sed 's/^/| /' "$ac_site_file" >&5
1874 if test -r "$cache_file"; then
1875 # Some versions of bash will fail to source /dev/null (special
1876 # files actually), so we avoid doing that.
1877 if test -f "$cache_file"; then
1878 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1879 $as_echo "$as_me: loading cache $cache_file" >&6;}
1881 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1882 *) . "./$cache_file";;
1886 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1887 $as_echo "$as_me: creating cache $cache_file" >&6;}
1891 # Check that the precious variables saved in the cache have kept the same
1893 ac_cache_corrupted=false
1894 for ac_var in $ac_precious_vars; do
1895 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1896 eval ac_new_set=\$ac_env_${ac_var}_set
1897 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1898 eval ac_new_val=\$ac_env_${ac_var}_value
1899 case $ac_old_set,$ac_new_set in
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1902 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1905 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1906 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1907 ac_cache_corrupted=: ;;
1910 if test "x$ac_old_val" != "x$ac_new_val"; then
1911 # differences in whitespace do not lead to failure.
1912 ac_old_val_w=`echo x $ac_old_val`
1913 ac_new_val_w=`echo x $ac_new_val`
1914 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1915 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1916 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1917 ac_cache_corrupted=:
1919 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1920 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1921 eval $ac_var=\$ac_old_val
1923 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1924 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1925 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1926 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1929 # Pass precious variables to config.status.
1930 if test "$ac_new_set" = set; then
1932 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 *) ac_arg=$ac_var=$ac_new_val ;;
1935 case " $ac_configure_args " in
1936 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1937 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1941 if $ac_cache_corrupted; then
1942 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1945 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1946 { (exit 1); exit 1; }; }
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972 am__api_version="1.9"
1974 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1975 if test -f "$ac_dir/install-sh"; then
1977 ac_install_sh="$ac_aux_dir/install-sh -c"
1979 elif test -f "$ac_dir/install.sh"; then
1981 ac_install_sh="$ac_aux_dir/install.sh -c"
1983 elif test -f "$ac_dir/shtool"; then
1985 ac_install_sh="$ac_aux_dir/shtool install -c"
1989 if test -z "$ac_aux_dir"; then
1990 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1991 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1992 { (exit 1); exit 1; }; }
1995 # These three variables are undocumented and unsupported,
1996 # and are intended to be withdrawn in a future Autoconf release.
1997 # They can cause serious problems if a builder's source tree is in a directory
1998 # whose full name contains unusual characters.
1999 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2000 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2001 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2004 # Find a good install program. We prefer a C program (faster),
2005 # so one script is as good as another. But avoid the broken or
2006 # incompatible versions:
2007 # SysV /etc/install, /usr/sbin/install
2008 # SunOS /usr/etc/install
2009 # IRIX /sbin/install
2011 # AmigaOS /C/install, which installs bootblocks on floppy discs
2012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2015 # OS/2's system install, which has a completely different semantic
2016 # ./install, which can be erroneously created by make from ./install.sh.
2017 # Reject install programs that cannot install multiple files.
2018 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2019 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2020 if test -z "$INSTALL"; then
2021 if test "${ac_cv_path_install+set}" = set; then
2022 $as_echo_n "(cached) " >&6
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 # Account for people who put trailing slashes in PATH elements.
2031 ./ | .// | /cC/* | \
2032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2036 # OSF1 and SCO ODT 3.0 have their own names for install.
2037 # Don't use installbsd from OSF since it installs stuff as root
2039 for ac_prog in ginstall scoinst install; do
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2042 if test $ac_prog = install &&
2043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044 # AIX install. It has an incompatible calling convention.
2046 elif test $ac_prog = install &&
2047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048 # program-specific install script used by HP pwplus--don't use.
2051 rm -rf conftest.one conftest.two conftest.dir
2052 echo one > conftest.one
2053 echo two > conftest.two
2055 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2056 test -s conftest.one && test -s conftest.two &&
2057 test -s conftest.dir/conftest.one &&
2058 test -s conftest.dir/conftest.two
2060 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2073 rm -rf conftest.one conftest.two conftest.dir
2076 if test "${ac_cv_path_install+set}" = set; then
2077 INSTALL=$ac_cv_path_install
2079 # As a last resort, use the slow shell script. Don't cache a
2080 # value for INSTALL within a source directory, because that will
2081 # break other packages using the cache if that directory is
2082 # removed, or if the value is a relative name.
2083 INSTALL=$ac_install_sh
2086 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2087 $as_echo "$INSTALL" >&6; }
2089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2090 # It thinks the first close brace ends the variable substitution.
2091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2097 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2098 $as_echo_n "checking whether build environment is sane... " >&6; }
2101 echo timestamp > conftest.file
2102 # Do `set' in a subshell so we don't clobber the current shell's
2103 # arguments. Must try -L first in case configure is actually a
2104 # symlink; some systems play weird games with the mod time of symlinks
2105 # (eg FreeBSD returns the mod time of the symlink's containing
2108 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2109 if test "$*" = "X"; then
2111 set X `ls -t $srcdir/configure conftest.file`
2114 if test "$*" != "X $srcdir/configure conftest.file" \
2115 && test "$*" != "X conftest.file $srcdir/configure"; then
2117 # If neither matched, then we have a broken ls. This can happen
2118 # if, for instance, CONFIG_SHELL is bash and it inherits a
2119 # broken ls alias from the environment. This has actually
2120 # happened. Such a system could not be considered "sane".
2121 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2122 alias in your environment" >&5
2123 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2124 alias in your environment" >&2;}
2125 { (exit 1); exit 1; }; }
2128 test "$2" = conftest.file
2134 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2135 Check your system clock" >&5
2136 $as_echo "$as_me: error: newly created file is older than distributed files!
2137 Check your system clock" >&2;}
2138 { (exit 1); exit 1; }; }
2140 { $as_echo "$as_me:$LINENO: result: yes" >&5
2141 $as_echo "yes" >&6; }
2142 test "$program_prefix" != NONE &&
2143 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2144 # Use a double $ so make ignores it.
2145 test "$program_suffix" != NONE &&
2146 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2147 # Double any \ or $.
2148 # By default was `s,x,x', remove it if useless.
2149 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2150 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2152 # expand $ac_aux_dir to an absolute path
2153 am_aux_dir=`cd $ac_aux_dir && pwd`
2155 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2156 # Use eval to expand $SHELL
2157 if eval "$MISSING --run true"; then
2158 am_missing_run="$MISSING --run "
2161 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2162 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2165 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2166 # We used to keeping the `.' as first argument, in order to
2167 # allow $(mkdir_p) to be used without argument. As in
2168 # $(mkdir_p) $(somedir)
2169 # where $(somedir) is conditionally defined. However this is wrong
2171 # 1. if the package is installed by a user who cannot write `.'
2172 # make install will fail,
2173 # 2. the above comment should most certainly read
2174 # $(mkdir_p) $(DESTDIR)$(somedir)
2175 # so it does not work when $(somedir) is undefined and
2176 # $(DESTDIR) is not.
2177 # To support the latter case, we have to write
2178 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2179 # so the `.' trick is pointless.
2180 mkdir_p='mkdir -p --'
2182 # On NextStep and OpenStep, the `mkdir' command does not
2183 # recognize any option. It will interpret all options as
2184 # directories to create, and then abort because `.' already
2186 for d in ./-p ./--version;
2188 test -d $d && rmdir $d
2190 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2191 if test -f "$ac_aux_dir/mkinstalldirs"; then
2192 mkdir_p='$(mkinstalldirs)'
2194 mkdir_p='$(install_sh) -d'
2198 for ac_prog in gawk mawk nawk awk
2200 # Extract the first word of "$ac_prog", so it can be a program name with args.
2201 set dummy $ac_prog; ac_word=$2
2202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 $as_echo_n "checking for $ac_word... " >&6; }
2204 if test "${ac_cv_prog_AWK+set}" = set; then
2205 $as_echo_n "(cached) " >&6
2207 if test -n "$AWK"; then
2208 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 test -z "$as_dir" && as_dir=.
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_prog_AWK="$ac_prog"
2218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 if test -n "$AWK"; then
2229 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2230 $as_echo "$AWK" >&6; }
2232 { $as_echo "$as_me:$LINENO: result: no" >&5
2233 $as_echo "no" >&6; }
2237 test -n "$AWK" && break
2240 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2241 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2243 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2244 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2245 $as_echo_n "(cached) " >&6
2247 cat >conftest.make <<\_ACEOF
2250 @echo '@@@%%%=$(MAKE)=@@@%%%'
2252 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2253 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2255 eval ac_cv_prog_make_${ac_make}_set=yes;;
2257 eval ac_cv_prog_make_${ac_make}_set=no;;
2261 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2262 { $as_echo "$as_me:$LINENO: result: yes" >&5
2263 $as_echo "yes" >&6; }
2266 { $as_echo "$as_me:$LINENO: result: no" >&5
2267 $as_echo "no" >&6; }
2268 SET_MAKE="MAKE=${MAKE-make}"
2271 rm -rf .tst 2>/dev/null
2272 mkdir .tst 2>/dev/null
2273 if test -d .tst; then
2278 rmdir .tst 2>/dev/null
2280 # test to see if srcdir already configured
2281 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2282 test -f $srcdir/config.status; then
2283 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2284 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2285 { (exit 1); exit 1; }; }
2288 # test whether we have cygpath
2289 if test -z "$CYGPATH_W"; then
2290 if (cygpath --version) >/dev/null 2>/dev/null; then
2291 CYGPATH_W='cygpath -w'
2298 # Define the identity of the package.
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE "$PACKAGE"
2308 cat >>confdefs.h <<_ACEOF
2309 #define VERSION "$VERSION"
2312 # Some tools Automake needs.
2314 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2317 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2320 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2323 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2326 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2328 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2330 # Installed binaries are usually stripped using `strip' when the user
2331 # run `make install-strip'. However `strip' might not be the right
2332 # tool to use in cross-compilation environments, therefore Automake
2333 # will honor the `STRIP' environment variable to overrule this program.
2334 if test "$cross_compiling" != no; then
2335 if test -n "$ac_tool_prefix"; then
2336 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2337 set dummy ${ac_tool_prefix}strip; ac_word=$2
2338 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 $as_echo_n "checking for $ac_word... " >&6; }
2340 if test "${ac_cv_prog_STRIP+set}" = set; then
2341 $as_echo_n "(cached) " >&6
2343 if test -n "$STRIP"; then
2344 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2354 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 STRIP=$ac_cv_prog_STRIP
2364 if test -n "$STRIP"; then
2365 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2366 $as_echo "$STRIP" >&6; }
2368 { $as_echo "$as_me:$LINENO: result: no" >&5
2369 $as_echo "no" >&6; }
2374 if test -z "$ac_cv_prog_STRIP"; then
2376 # Extract the first word of "strip", so it can be a program name with args.
2377 set dummy strip; ac_word=$2
2378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2381 $as_echo_n "(cached) " >&6
2383 if test -n "$ac_ct_STRIP"; then
2384 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393 ac_cv_prog_ac_ct_STRIP="strip"
2394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2404 if test -n "$ac_ct_STRIP"; then
2405 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2406 $as_echo "$ac_ct_STRIP" >&6; }
2408 { $as_echo "$as_me:$LINENO: result: no" >&5
2409 $as_echo "no" >&6; }
2412 if test "x$ac_ct_STRIP" = x; then
2415 case $cross_compiling:$ac_tool_warned in
2417 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2418 whose name does not start with the host triplet. If you think this
2419 configuration is useful to you, please write to autoconf@gnu.org." >&5
2420 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet. If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2423 ac_tool_warned=yes ;;
2428 STRIP="$ac_cv_prog_STRIP"
2432 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2434 # We need awk for the "check" target. The system "awk" is bad on
2436 # Always define AMTAR for backward compatibility.
2438 AMTAR=${AMTAR-"${am_missing_run}tar"}
2440 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2446 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2447 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2448 # Check whether --enable-maintainer-mode was given.
2449 if test "${enable_maintainer_mode+set}" = set; then
2450 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2452 USE_MAINTAINER_MODE=no
2455 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2456 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2459 if test $USE_MAINTAINER_MODE = yes; then
2460 MAINTAINER_MODE_TRUE=
2461 MAINTAINER_MODE_FALSE='#'
2463 MAINTAINER_MODE_TRUE='#'
2464 MAINTAINER_MODE_FALSE=
2467 MAINT=$MAINTAINER_MODE_TRUE
2470 ac_config_headers="$ac_config_headers config.h"
2473 DEPDIR="${am__leading_dot}deps"
2475 ac_config_commands="$ac_config_commands depfiles"
2478 am_make=${MAKE-make}
2479 cat > confinc << 'END'
2484 # If we don't find an include directive, just comment out the code.
2485 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2486 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2490 # First try GNU make style include.
2491 echo "include confinc" > confmf
2492 # We grep out `Entering directory' and `Leaving directory'
2493 # messages which can occur if `w' ends up in MAKEFLAGS.
2494 # In particular we don't look at `^make:' because GNU make might
2495 # be invoked under some other name (usually "gmake"), in which
2496 # case it prints its new name instead of `make'.
2497 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2502 # Now try BSD make style include.
2503 if test "$am__include" = "#"; then
2504 echo '.include "confinc"' > confmf
2505 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2506 am__include=.include
2513 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2514 $as_echo "$_am_result" >&6; }
2515 rm -f confinc confmf
2517 # Check whether --enable-dependency-tracking was given.
2518 if test "${enable_dependency_tracking+set}" = set; then
2519 enableval=$enable_dependency_tracking;
2522 if test "x$enable_dependency_tracking" != xno; then
2523 am_depcomp="$ac_aux_dir/depcomp"
2528 if test "x$enable_dependency_tracking" != xno; then
2539 ac_cpp='$CPP $CPPFLAGS'
2540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2543 if test -n "$ac_tool_prefix"; then
2544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if test "${ac_cv_prog_CC+set}" = set; then
2549 $as_echo_n "(cached) " >&6
2551 if test -n "$CC"; then
2552 ac_cv_prog_CC="$CC" # Let the user override the test.
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2562 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 if test -n "$CC"; then
2573 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2574 $as_echo "$CC" >&6; }
2576 { $as_echo "$as_me:$LINENO: result: no" >&5
2577 $as_echo "no" >&6; }
2582 if test -z "$ac_cv_prog_CC"; then
2584 # Extract the first word of "gcc", so it can be a program name with args.
2585 set dummy gcc; ac_word=$2
2586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2589 $as_echo_n "(cached) " >&6
2591 if test -n "$ac_ct_CC"; then
2592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_ac_ct_CC="gcc"
2602 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2612 if test -n "$ac_ct_CC"; then
2613 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2614 $as_echo "$ac_ct_CC" >&6; }
2616 { $as_echo "$as_me:$LINENO: result: no" >&5
2617 $as_echo "no" >&6; }
2620 if test "x$ac_ct_CC" = x; then
2623 case $cross_compiling:$ac_tool_warned in
2625 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet. If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&5
2628 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2629 whose name does not start with the host triplet. If you think this
2630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2631 ac_tool_warned=yes ;;
2639 if test -z "$CC"; then
2640 if test -n "$ac_tool_prefix"; then
2641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2642 set dummy ${ac_tool_prefix}cc; ac_word=$2
2643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if test "${ac_cv_prog_CC+set}" = set; then
2646 $as_echo_n "(cached) " >&6
2648 if test -n "$CC"; then
2649 ac_cv_prog_CC="$CC" # Let the user override the test.
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_CC="${ac_tool_prefix}cc"
2659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 if test -n "$CC"; then
2670 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2671 $as_echo "$CC" >&6; }
2673 { $as_echo "$as_me:$LINENO: result: no" >&5
2674 $as_echo "no" >&6; }
2680 if test -z "$CC"; then
2681 # Extract the first word of "cc", so it can be a program name with args.
2682 set dummy cc; ac_word=$2
2683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if test "${ac_cv_prog_CC+set}" = set; then
2686 $as_echo_n "(cached) " >&6
2688 if test -n "$CC"; then
2689 ac_cv_prog_CC="$CC" # Let the user override the test.
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2700 ac_prog_rejected=yes
2704 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 if test $ac_prog_rejected = yes; then
2712 # We found a bogon in the path, so make sure we never use it.
2713 set dummy $ac_cv_prog_CC
2715 if test $# != 0; then
2716 # We chose a different compiler from the bogus one.
2717 # However, it has the same basename, so the bogon will be chosen
2718 # first if we set CC to just the basename; use the full file name.
2720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2726 if test -n "$CC"; then
2727 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2728 $as_echo "$CC" >&6; }
2730 { $as_echo "$as_me:$LINENO: result: no" >&5
2731 $as_echo "no" >&6; }
2736 if test -z "$CC"; then
2737 if test -n "$ac_tool_prefix"; then
2738 for ac_prog in cl.exe
2740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745 $as_echo_n "(cached) " >&6
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 if test -n "$CC"; then
2769 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2770 $as_echo "$CC" >&6; }
2772 { $as_echo "$as_me:$LINENO: result: no" >&5
2773 $as_echo "no" >&6; }
2777 test -n "$CC" && break
2780 if test -z "$CC"; then
2782 for ac_prog in cl.exe
2784 # Extract the first word of "$ac_prog", so it can be a program name with args.
2785 set dummy $ac_prog; ac_word=$2
2786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2789 $as_echo_n "(cached) " >&6
2791 if test -n "$ac_ct_CC"; then
2792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_ac_ct_CC="$ac_prog"
2802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812 if test -n "$ac_ct_CC"; then
2813 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2814 $as_echo "$ac_ct_CC" >&6; }
2816 { $as_echo "$as_me:$LINENO: result: no" >&5
2817 $as_echo "no" >&6; }
2821 test -n "$ac_ct_CC" && break
2824 if test "x$ac_ct_CC" = x; then
2827 case $cross_compiling:$ac_tool_warned in
2829 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2830 whose name does not start with the host triplet. If you think this
2831 configuration is useful to you, please write to autoconf@gnu.org." >&5
2832 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2833 whose name does not start with the host triplet. If you think this
2834 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2835 ac_tool_warned=yes ;;
2844 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2845 See \`config.log' for more details." >&5
2846 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2847 See \`config.log' for more details." >&2;}
2848 { (exit 1); exit 1; }; }
2850 # Provide some information about the compiler.
2851 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2854 { (ac_try="$ac_compiler --version >&5"
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2860 $as_echo "$ac_try_echo") >&5
2861 (eval "$ac_compiler --version >&5") 2>&5
2863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }
2865 { (ac_try="$ac_compiler -v >&5"
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2871 $as_echo "$ac_try_echo") >&5
2872 (eval "$ac_compiler -v >&5") 2>&5
2874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }
2876 { (ac_try="$ac_compiler -V >&5"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2882 $as_echo "$ac_try_echo") >&5
2883 (eval "$ac_compiler -V >&5") 2>&5
2885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 ac_clean_files_save=$ac_clean_files
2904 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2905 # Try to create an executable without -o first, disregard a.out.
2906 # It will help us diagnose broken compilers, and finding out an intuition
2908 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2909 $as_echo_n "checking for C compiler default output file name... " >&6; }
2910 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2912 # The possible output files:
2913 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2916 for ac_file in $ac_files
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2920 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2925 if { (ac_try="$ac_link_default"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2931 $as_echo "$ac_try_echo") >&5
2932 (eval "$ac_link_default") 2>&5
2934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; then
2936 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2937 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2938 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2939 # so that the user can short-circuit this test for compilers unknown to
2941 for ac_file in $ac_files ''
2943 test -f "$ac_file" || continue
2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2948 # We found the default executable, but exeext='' is most
2952 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2954 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2956 # We set ac_cv_exeext here because the later test for it is not
2957 # safe: cross compilers may not add the suffix if given an `-o'
2958 # argument, so we may need to know it at that point already.
2959 # Even if this section looks crufty: it has the advantage of
2966 test "$ac_cv_exeext" = no && ac_cv_exeext=
2972 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2973 $as_echo "$ac_file" >&6; }
2974 if test -z "$ac_file"; then
2975 $as_echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2979 See \`config.log' for more details." >&5
2980 $as_echo "$as_me: error: C compiler cannot create executables
2981 See \`config.log' for more details." >&2;}
2982 { (exit 77); exit 77; }; }
2985 ac_exeext=$ac_cv_exeext
2987 # Check that the compiler produces executables we can run. If not, either
2988 # the compiler is broken, or we cross compile.
2989 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2990 $as_echo_n "checking whether the C compiler works... " >&6; }
2991 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2992 # If not cross compiling, check that we can run a simple program.
2993 if test "$cross_compiling" != yes; then
2994 if { ac_try='./$ac_file'
2995 { (case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3000 $as_echo "$ac_try_echo") >&5
3001 (eval "$ac_try") 2>&5
3003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3007 if test "$cross_compiling" = maybe; then
3010 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3011 If you meant to cross compile, use \`--host'.
3012 See \`config.log' for more details." >&5
3013 $as_echo "$as_me: error: cannot run C compiled programs.
3014 If you meant to cross compile, use \`--host'.
3015 See \`config.log' for more details." >&2;}
3016 { (exit 1); exit 1; }; }
3020 { $as_echo "$as_me:$LINENO: result: yes" >&5
3021 $as_echo "yes" >&6; }
3023 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3024 ac_clean_files=$ac_clean_files_save
3025 # Check that the compiler produces executables we can run. If not, either
3026 # the compiler is broken, or we cross compile.
3027 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3028 $as_echo_n "checking whether we are cross compiling... " >&6; }
3029 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3030 $as_echo "$cross_compiling" >&6; }
3032 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3033 $as_echo_n "checking for suffix of executables... " >&6; }
3034 if { (ac_try="$ac_link"
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3040 $as_echo "$ac_try_echo") >&5
3041 (eval "$ac_link") 2>&5
3043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; then
3045 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3046 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3047 # work properly (i.e., refer to `conftest.exe'), while it won't with
3049 for ac_file in conftest.exe conftest conftest.*; do
3050 test -f "$ac_file" || continue
3052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3053 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3060 See \`config.log' for more details." >&5
3061 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3062 See \`config.log' for more details." >&2;}
3063 { (exit 1); exit 1; }; }
3066 rm -f conftest$ac_cv_exeext
3067 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3068 $as_echo "$ac_cv_exeext" >&6; }
3070 rm -f conftest.$ac_ext
3071 EXEEXT=$ac_cv_exeext
3073 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3074 $as_echo_n "checking for suffix of object files... " >&6; }
3075 if test "${ac_cv_objext+set}" = set; then
3076 $as_echo_n "(cached) " >&6
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3093 rm -f conftest.o conftest.obj
3094 if { (ac_try="$ac_compile"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3100 $as_echo "$ac_try_echo") >&5
3101 (eval "$ac_compile") 2>&5
3103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; then
3105 for ac_file in conftest.o conftest.obj conftest.*; do
3106 test -f "$ac_file" || continue;
3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3109 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3114 $as_echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3118 See \`config.log' for more details." >&5
3119 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3124 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3126 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3127 $as_echo "$ac_cv_objext" >&6; }
3128 OBJEXT=$ac_cv_objext
3130 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3131 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3132 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3133 $as_echo_n "(cached) " >&6
3135 cat >conftest.$ac_ext <<_ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3153 rm -f conftest.$ac_objext
3154 if { (ac_try="$ac_compile"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3160 $as_echo "$ac_try_echo") >&5
3161 (eval "$ac_compile") 2>conftest.er1
3163 grep -v '^ *+' conftest.er1 >conftest.err
3165 cat conftest.err >&5
3166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } && {
3168 test -z "$ac_c_werror_flag" ||
3169 test ! -s conftest.err
3170 } && test -s conftest.$ac_objext; then
3173 $as_echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3183 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3184 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3185 if test $ac_compiler_gnu = yes; then
3190 ac_test_CFLAGS=${CFLAGS+set}
3191 ac_save_CFLAGS=$CFLAGS
3192 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3193 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3194 if test "${ac_cv_prog_cc_g+set}" = set; then
3195 $as_echo_n "(cached) " >&6
3197 ac_save_c_werror_flag=$ac_c_werror_flag
3198 ac_c_werror_flag=yes
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3223 $as_echo "$ac_try_echo") >&5
3224 (eval "$ac_compile") 2>conftest.er1
3226 grep -v '^ *+' conftest.er1 >conftest.err
3228 cat conftest.err >&5
3229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } && {
3231 test -z "$ac_c_werror_flag" ||
3232 test ! -s conftest.err
3233 } && test -s conftest.$ac_objext; then
3236 $as_echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3240 cat >conftest.$ac_ext <<_ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3255 rm -f conftest.$ac_objext
3256 if { (ac_try="$ac_compile"
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3262 $as_echo "$ac_try_echo") >&5
3263 (eval "$ac_compile") 2>conftest.er1
3265 grep -v '^ *+' conftest.er1 >conftest.err
3267 cat conftest.err >&5
3268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } && {
3270 test -z "$ac_c_werror_flag" ||
3271 test ! -s conftest.err
3272 } && test -s conftest.$ac_objext; then
3275 $as_echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 ac_c_werror_flag=$ac_save_c_werror_flag
3280 cat >conftest.$ac_ext <<_ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3302 $as_echo "$ac_try_echo") >&5
3303 (eval "$ac_compile") 2>conftest.er1
3305 grep -v '^ *+' conftest.er1 >conftest.err
3307 cat conftest.err >&5
3308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } && {
3310 test -z "$ac_c_werror_flag" ||
3311 test ! -s conftest.err
3312 } && test -s conftest.$ac_objext; then
3315 $as_echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 ac_c_werror_flag=$ac_save_c_werror_flag
3330 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3331 $as_echo "$ac_cv_prog_cc_g" >&6; }
3332 if test "$ac_test_CFLAGS" = set; then
3333 CFLAGS=$ac_save_CFLAGS
3334 elif test $ac_cv_prog_cc_g = yes; then
3335 if test "$GCC" = yes; then
3341 if test "$GCC" = yes; then
3347 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3348 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3349 if test "${ac_cv_prog_cc_c89+set}" = set; then
3350 $as_echo_n "(cached) " >&6
3352 ac_cv_prog_cc_c89=no
3354 cat >conftest.$ac_ext <<_ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3362 #include <sys/types.h>
3363 #include <sys/stat.h>
3364 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3365 struct buf { int x; };
3366 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3367 static char *e (p, i)
3373 static char *f (char * (*g) (char **, int), char **p, ...)
3378 s = g (p, va_arg (v,int));
3383 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3384 function prototypes and stuff, but not '\xHH' hex character constants.
3385 These don't provoke an error unfortunately, instead are silently treated
3386 as 'x'. The following induces an error, until -std is added to get
3387 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3388 array size at least. It's necessary to write '\x00'==0 to get something
3389 that's true only with -std. */
3390 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3392 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3393 inside strings and character constants. */
3395 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3397 int test (int i, double x);
3398 struct s1 {int (*f) (int a);};
3399 struct s2 {int (*f) (double a);};
3400 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3406 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3411 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3412 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3414 CC="$ac_save_CC $ac_arg"
3415 rm -f conftest.$ac_objext
3416 if { (ac_try="$ac_compile"
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423 (eval "$ac_compile") 2>conftest.er1
3425 grep -v '^ *+' conftest.er1 >conftest.err
3427 cat conftest.err >&5
3428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } && {
3430 test -z "$ac_c_werror_flag" ||
3431 test ! -s conftest.err
3432 } && test -s conftest.$ac_objext; then
3433 ac_cv_prog_cc_c89=$ac_arg
3435 $as_echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3441 rm -f core conftest.err conftest.$ac_objext
3442 test "x$ac_cv_prog_cc_c89" != "xno" && break
3444 rm -f conftest.$ac_ext
3449 case "x$ac_cv_prog_cc_c89" in
3451 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3452 $as_echo "none needed" >&6; } ;;
3454 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3455 $as_echo "unsupported" >&6; } ;;
3457 CC="$CC $ac_cv_prog_cc_c89"
3458 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3459 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3464 ac_cpp='$CPP $CPPFLAGS'
3465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469 depcc="$CC" am_compiler_list=
3471 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3472 $as_echo_n "checking dependency style of $depcc... " >&6; }
3473 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3474 $as_echo_n "(cached) " >&6
3476 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3477 # We make a subdir and do the tests there. Otherwise we can end up
3478 # making bogus files that we don't know about and never remove. For
3479 # instance it was reported that on HP-UX the gcc test will end up
3480 # making a dummy file named `D' -- because `-MD' means `put the output
3483 # Copy depcomp to subdir because otherwise we won't find it if we're
3484 # using a relative directory.
3485 cp "$am_depcomp" conftest.dir
3487 # We will build objects and dependencies in a subdirectory because
3488 # it helps to detect inapplicable dependency modes. For instance
3489 # both Tru64's cc and ICC support -MD to output dependencies as a
3490 # side effect of compilation, but ICC will put the dependencies in
3491 # the current directory while Tru64 will put them in the object
3495 am_cv_CC_dependencies_compiler_type=none
3496 if test "$am_compiler_list" = ""; then
3497 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3499 for depmode in $am_compiler_list; do
3500 # Setup a source with many dependencies, because some compilers
3501 # like to wrap large dependency lists on column 80 (with \), and
3502 # we should not choose a depcomp mode which is confused by this.
3504 # We need to recreate these files for each test, as the compiler may
3505 # overwrite some of them when testing with obscure command lines.
3506 # This happens at least with the AIX C compiler.
3508 for i in 1 2 3 4 5 6; do
3509 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3510 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3511 # Solaris 8's {/usr,}/bin/sh.
3512 touch sub/conftst$i.h
3514 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3518 # after this tag, mechanisms are not by side-effect, so they'll
3519 # only be used when explicitly requested
3520 if test "x$enable_dependency_tracking" = xyes; then
3528 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3529 # mode. It turns out that the SunPro C++ compiler does not properly
3530 # handle `-M -o', and we need to detect this.
3531 if depmode=$depmode \
3532 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3533 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3534 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3535 >/dev/null 2>conftest.err &&
3536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3537 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3539 # icc doesn't choke on unknown options, it will just issue warnings
3540 # or remarks (even with -Werror). So we grep stderr for any message
3541 # that says an option was ignored or not supported.
3542 # When given -MP, icc 7.0 and 7.1 complain thusly:
3543 # icc: Command line warning: ignoring option '-M'; no argument required
3544 # The diagnosis changed in icc 8.0:
3545 # icc: Command line remark: option '-MP' not supported
3546 if (grep 'ignoring option' conftest.err ||
3547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3548 am_cv_CC_dependencies_compiler_type=$depmode
3557 am_cv_CC_dependencies_compiler_type=none
3561 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3562 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3563 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3568 test "x$enable_dependency_tracking" != xno \
3569 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3571 am__fastdepCC_FALSE='#'
3573 am__fastdepCC_TRUE='#'
3574 am__fastdepCC_FALSE=
3580 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3581 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3582 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3583 $as_echo_n "(cached) " >&6
3585 ac_check_lib_save_LIBS=$LIBS
3586 LIBS="-lcposix $LIBS"
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3594 /* Override any GCC internal prototype to avoid an error.
3595 Use char because int might match the return type of a GCC
3596 builtin and then its argument prototype would still apply. */
3609 rm -f conftest.$ac_objext conftest$ac_exeext
3610 if { (ac_try="$ac_link"
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3616 $as_echo "$ac_try_echo") >&5
3617 (eval "$ac_link") 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } && {
3624 test -z "$ac_c_werror_flag" ||
3625 test ! -s conftest.err
3626 } && test -s conftest$ac_exeext && {
3627 test "$cross_compiling" = yes ||
3628 $as_test_x conftest$ac_exeext
3630 ac_cv_lib_cposix_strerror=yes
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ac_cv_lib_cposix_strerror=no
3638 rm -rf conftest.dSYM
3639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3640 conftest$ac_exeext conftest.$ac_ext
3641 LIBS=$ac_check_lib_save_LIBS
3643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3644 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3645 if test $ac_cv_lib_cposix_strerror = yes; then
3646 LIBS="$LIBS -lcposix"
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656 if test -n "$ac_tool_prefix"; then
3657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3660 $as_echo_n "checking for $ac_word... " >&6; }
3661 if test "${ac_cv_prog_CC+set}" = set; then
3662 $as_echo_n "(cached) " >&6
3664 if test -n "$CC"; then
3665 ac_cv_prog_CC="$CC" # Let the user override the test.
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 if test -n "$CC"; then
3686 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3687 $as_echo "$CC" >&6; }
3689 { $as_echo "$as_me:$LINENO: result: no" >&5
3690 $as_echo "no" >&6; }
3695 if test -z "$ac_cv_prog_CC"; then
3697 # Extract the first word of "gcc", so it can be a program name with args.
3698 set dummy gcc; ac_word=$2
3699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3702 $as_echo_n "(cached) " >&6
3704 if test -n "$ac_ct_CC"; then
3705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3714 ac_cv_prog_ac_ct_CC="gcc"
3715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3725 if test -n "$ac_ct_CC"; then
3726 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3727 $as_echo "$ac_ct_CC" >&6; }
3729 { $as_echo "$as_me:$LINENO: result: no" >&5
3730 $as_echo "no" >&6; }
3733 if test "x$ac_ct_CC" = x; then
3736 case $cross_compiling:$ac_tool_warned in
3738 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3739 whose name does not start with the host triplet. If you think this
3740 configuration is useful to you, please write to autoconf@gnu.org." >&5
3741 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3742 whose name does not start with the host triplet. If you think this
3743 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3744 ac_tool_warned=yes ;;
3752 if test -z "$CC"; then
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}cc; ac_word=$2
3756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_CC+set}" = set; then
3759 $as_echo_n "(cached) " >&6
3761 if test -n "$CC"; then
3762 ac_cv_prog_CC="$CC" # Let the user override the test.
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_CC="${ac_tool_prefix}cc"
3772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 if test -n "$CC"; then
3783 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3784 $as_echo "$CC" >&6; }
3786 { $as_echo "$as_me:$LINENO: result: no" >&5
3787 $as_echo "no" >&6; }
3793 if test -z "$CC"; then
3794 # Extract the first word of "cc", so it can be a program name with args.
3795 set dummy cc; ac_word=$2
3796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_CC+set}" = set; then
3799 $as_echo_n "(cached) " >&6
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3813 ac_prog_rejected=yes
3817 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 if test $ac_prog_rejected = yes; then
3825 # We found a bogon in the path, so make sure we never use it.
3826 set dummy $ac_cv_prog_CC
3828 if test $# != 0; then
3829 # We chose a different compiler from the bogus one.
3830 # However, it has the same basename, so the bogon will be chosen
3831 # first if we set CC to just the basename; use the full file name.
3833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3839 if test -n "$CC"; then
3840 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3841 $as_echo "$CC" >&6; }
3843 { $as_echo "$as_me:$LINENO: result: no" >&5
3844 $as_echo "no" >&6; }
3849 if test -z "$CC"; then
3850 if test -n "$ac_tool_prefix"; then
3851 for ac_prog in cl.exe
3853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3855 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if test "${ac_cv_prog_CC+set}" = set; then
3858 $as_echo_n "(cached) " >&6
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3871 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 if test -n "$CC"; then
3882 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3885 { $as_echo "$as_me:$LINENO: result: no" >&5
3886 $as_echo "no" >&6; }
3890 test -n "$CC" && break
3893 if test -z "$CC"; then
3895 for ac_prog in cl.exe
3897 # Extract the first word of "$ac_prog", so it can be a program name with args.
3898 set dummy $ac_prog; ac_word=$2
3899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 $as_echo_n "checking for $ac_word... " >&6; }
3901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3902 $as_echo_n "(cached) " >&6
3904 if test -n "$ac_ct_CC"; then
3905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914 ac_cv_prog_ac_ct_CC="$ac_prog"
3915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3925 if test -n "$ac_ct_CC"; then
3926 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3927 $as_echo "$ac_ct_CC" >&6; }
3929 { $as_echo "$as_me:$LINENO: result: no" >&5
3930 $as_echo "no" >&6; }
3934 test -n "$ac_ct_CC" && break
3937 if test "x$ac_ct_CC" = x; then
3940 case $cross_compiling:$ac_tool_warned in
3942 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3943 whose name does not start with the host triplet. If you think this
3944 configuration is useful to you, please write to autoconf@gnu.org." >&5
3945 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3946 whose name does not start with the host triplet. If you think this
3947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3948 ac_tool_warned=yes ;;
3957 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3958 See \`config.log' for more details." >&5
3959 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3960 See \`config.log' for more details." >&2;}
3961 { (exit 1); exit 1; }; }
3963 # Provide some information about the compiler.
3964 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3967 { (ac_try="$ac_compiler --version >&5"
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3973 $as_echo "$ac_try_echo") >&5
3974 (eval "$ac_compiler --version >&5") 2>&5
3976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }
3978 { (ac_try="$ac_compiler -v >&5"
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_compiler -v >&5") 2>&5
3987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }
3989 { (ac_try="$ac_compiler -V >&5"
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3995 $as_echo "$ac_try_echo") >&5
3996 (eval "$ac_compiler -V >&5") 2>&5
3998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }
4001 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4004 $as_echo_n "(cached) " >&6
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4024 rm -f conftest.$ac_objext
4025 if { (ac_try="$ac_compile"
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4031 $as_echo "$ac_try_echo") >&5
4032 (eval "$ac_compile") 2>conftest.er1
4034 grep -v '^ *+' conftest.er1 >conftest.err
4036 cat conftest.err >&5
4037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } && {
4039 test -z "$ac_c_werror_flag" ||
4040 test ! -s conftest.err
4041 } && test -s conftest.$ac_objext; then
4044 $as_echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4054 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4055 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4056 if test $ac_compiler_gnu = yes; then
4061 ac_test_CFLAGS=${CFLAGS+set}
4062 ac_save_CFLAGS=$CFLAGS
4063 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4064 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4065 if test "${ac_cv_prog_cc_g+set}" = set; then
4066 $as_echo_n "(cached) " >&6
4068 ac_save_c_werror_flag=$ac_c_werror_flag
4069 ac_c_werror_flag=yes
4072 cat >conftest.$ac_ext <<_ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4087 rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4094 $as_echo "$ac_try_echo") >&5
4095 (eval "$ac_compile") 2>conftest.er1
4097 grep -v '^ *+' conftest.er1 >conftest.err
4099 cat conftest.err >&5
4100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } && {
4102 test -z "$ac_c_werror_flag" ||
4103 test ! -s conftest.err
4104 } && test -s conftest.$ac_objext; then
4107 $as_echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4111 cat >conftest.$ac_ext <<_ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4126 rm -f conftest.$ac_objext
4127 if { (ac_try="$ac_compile"
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4133 $as_echo "$ac_try_echo") >&5
4134 (eval "$ac_compile") 2>conftest.er1
4136 grep -v '^ *+' conftest.er1 >conftest.err
4138 cat conftest.err >&5
4139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } && {
4141 test -z "$ac_c_werror_flag" ||
4142 test ! -s conftest.err
4143 } && test -s conftest.$ac_objext; then
4146 $as_echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4173 $as_echo "$ac_try_echo") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4176 grep -v '^ *+' conftest.er1 >conftest.err
4178 cat conftest.err >&5
4179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } && {
4181 test -z "$ac_c_werror_flag" ||
4182 test ! -s conftest.err
4183 } && test -s conftest.$ac_objext; then
4186 $as_echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 ac_c_werror_flag=$ac_save_c_werror_flag
4201 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4202 $as_echo "$ac_cv_prog_cc_g" >&6; }
4203 if test "$ac_test_CFLAGS" = set; then
4204 CFLAGS=$ac_save_CFLAGS
4205 elif test $ac_cv_prog_cc_g = yes; then
4206 if test "$GCC" = yes; then
4212 if test "$GCC" = yes; then
4218 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4219 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4220 if test "${ac_cv_prog_cc_c89+set}" = set; then
4221 $as_echo_n "(cached) " >&6
4223 ac_cv_prog_cc_c89=no
4225 cat >conftest.$ac_ext <<_ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4233 #include <sys/types.h>
4234 #include <sys/stat.h>
4235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4236 struct buf { int x; };
4237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4238 static char *e (p, i)
4244 static char *f (char * (*g) (char **, int), char **p, ...)
4249 s = g (p, va_arg (v,int));
4254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4255 function prototypes and stuff, but not '\xHH' hex character constants.
4256 These don't provoke an error unfortunately, instead are silently treated
4257 as 'x'. The following induces an error, until -std is added to get
4258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4259 array size at least. It's necessary to write '\x00'==0 to get something
4260 that's true only with -std. */
4261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4264 inside strings and character constants. */
4266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4268 int test (int i, double x);
4269 struct s1 {int (*f) (int a);};
4270 struct s2 {int (*f) (double a);};
4271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4285 CC="$ac_save_CC $ac_arg"
4286 rm -f conftest.$ac_objext
4287 if { (ac_try="$ac_compile"
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4293 $as_echo "$ac_try_echo") >&5
4294 (eval "$ac_compile") 2>conftest.er1
4296 grep -v '^ *+' conftest.er1 >conftest.err
4298 cat conftest.err >&5
4299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } && {
4301 test -z "$ac_c_werror_flag" ||
4302 test ! -s conftest.err
4303 } && test -s conftest.$ac_objext; then
4304 ac_cv_prog_cc_c89=$ac_arg
4306 $as_echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4312 rm -f core conftest.err conftest.$ac_objext
4313 test "x$ac_cv_prog_cc_c89" != "xno" && break
4315 rm -f conftest.$ac_ext
4320 case "x$ac_cv_prog_cc_c89" in
4322 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4323 $as_echo "none needed" >&6; } ;;
4325 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4326 $as_echo "unsupported" >&6; } ;;
4328 CC="$CC $ac_cv_prog_cc_c89"
4329 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4330 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 depcc="$CC" am_compiler_list=
4342 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4343 $as_echo_n "checking dependency style of $depcc... " >&6; }
4344 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4345 $as_echo_n "(cached) " >&6
4347 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4348 # We make a subdir and do the tests there. Otherwise we can end up
4349 # making bogus files that we don't know about and never remove. For
4350 # instance it was reported that on HP-UX the gcc test will end up
4351 # making a dummy file named `D' -- because `-MD' means `put the output
4354 # Copy depcomp to subdir because otherwise we won't find it if we're
4355 # using a relative directory.
4356 cp "$am_depcomp" conftest.dir
4358 # We will build objects and dependencies in a subdirectory because
4359 # it helps to detect inapplicable dependency modes. For instance
4360 # both Tru64's cc and ICC support -MD to output dependencies as a
4361 # side effect of compilation, but ICC will put the dependencies in
4362 # the current directory while Tru64 will put them in the object
4366 am_cv_CC_dependencies_compiler_type=none
4367 if test "$am_compiler_list" = ""; then
4368 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4370 for depmode in $am_compiler_list; do
4371 # Setup a source with many dependencies, because some compilers
4372 # like to wrap large dependency lists on column 80 (with \), and
4373 # we should not choose a depcomp mode which is confused by this.
4375 # We need to recreate these files for each test, as the compiler may
4376 # overwrite some of them when testing with obscure command lines.
4377 # This happens at least with the AIX C compiler.
4379 for i in 1 2 3 4 5 6; do
4380 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4381 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4382 # Solaris 8's {/usr,}/bin/sh.
4383 touch sub/conftst$i.h
4385 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4389 # after this tag, mechanisms are not by side-effect, so they'll
4390 # only be used when explicitly requested
4391 if test "x$enable_dependency_tracking" = xyes; then
4399 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4400 # mode. It turns out that the SunPro C++ compiler does not properly
4401 # handle `-M -o', and we need to detect this.
4402 if depmode=$depmode \
4403 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4404 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4405 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4406 >/dev/null 2>conftest.err &&
4407 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4408 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4409 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4410 # icc doesn't choke on unknown options, it will just issue warnings
4411 # or remarks (even with -Werror). So we grep stderr for any message
4412 # that says an option was ignored or not supported.
4413 # When given -MP, icc 7.0 and 7.1 complain thusly:
4414 # icc: Command line warning: ignoring option '-M'; no argument required
4415 # The diagnosis changed in icc 8.0:
4416 # icc: Command line remark: option '-MP' not supported
4417 if (grep 'ignoring option' conftest.err ||
4418 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4419 am_cv_CC_dependencies_compiler_type=$depmode
4428 am_cv_CC_dependencies_compiler_type=none
4432 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4433 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4434 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4439 test "x$enable_dependency_tracking" != xno \
4440 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4442 am__fastdepCC_FALSE='#'
4444 am__fastdepCC_TRUE='#'
4445 am__fastdepCC_FALSE=
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454 if test -n "$ac_tool_prefix"; then
4455 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4456 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if test "${ac_cv_prog_CC+set}" = set; then
4460 $as_echo_n "(cached) " >&6
4462 if test -n "$CC"; then
4463 ac_cv_prog_CC="$CC" # Let the user override the test.
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 if test -n "$CC"; then
4484 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4485 $as_echo "$CC" >&6; }
4487 { $as_echo "$as_me:$LINENO: result: no" >&5
4488 $as_echo "no" >&6; }
4493 if test -z "$ac_cv_prog_CC"; then
4495 # Extract the first word of "gcc", so it can be a program name with args.
4496 set dummy gcc; ac_word=$2
4497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4500 $as_echo_n "(cached) " >&6
4502 if test -n "$ac_ct_CC"; then
4503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_ac_ct_CC="gcc"
4513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4523 if test -n "$ac_ct_CC"; then
4524 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4525 $as_echo "$ac_ct_CC" >&6; }
4527 { $as_echo "$as_me:$LINENO: result: no" >&5
4528 $as_echo "no" >&6; }
4531 if test "x$ac_ct_CC" = x; then
4534 case $cross_compiling:$ac_tool_warned in
4536 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4537 whose name does not start with the host triplet. If you think this
4538 configuration is useful to you, please write to autoconf@gnu.org." >&5
4539 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4540 whose name does not start with the host triplet. If you think this
4541 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4542 ac_tool_warned=yes ;;
4550 if test -z "$CC"; then
4551 if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4553 set dummy ${ac_tool_prefix}cc; ac_word=$2
4554 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if test "${ac_cv_prog_CC+set}" = set; then
4557 $as_echo_n "(cached) " >&6
4559 if test -n "$CC"; then
4560 ac_cv_prog_CC="$CC" # Let the user override the test.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_CC="${ac_tool_prefix}cc"
4570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 if test -n "$CC"; then
4581 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4582 $as_echo "$CC" >&6; }
4584 { $as_echo "$as_me:$LINENO: result: no" >&5
4585 $as_echo "no" >&6; }
4591 if test -z "$CC"; then
4592 # Extract the first word of "cc", so it can be a program name with args.
4593 set dummy cc; ac_word=$2
4594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if test "${ac_cv_prog_CC+set}" = set; then
4597 $as_echo_n "(cached) " >&6
4599 if test -n "$CC"; then
4600 ac_cv_prog_CC="$CC" # Let the user override the test.
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4611 ac_prog_rejected=yes
4615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 if test $ac_prog_rejected = yes; then
4623 # We found a bogon in the path, so make sure we never use it.
4624 set dummy $ac_cv_prog_CC
4626 if test $# != 0; then
4627 # We chose a different compiler from the bogus one.
4628 # However, it has the same basename, so the bogon will be chosen
4629 # first if we set CC to just the basename; use the full file name.
4631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4637 if test -n "$CC"; then
4638 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4639 $as_echo "$CC" >&6; }
4641 { $as_echo "$as_me:$LINENO: result: no" >&5
4642 $as_echo "no" >&6; }
4647 if test -z "$CC"; then
4648 if test -n "$ac_tool_prefix"; then
4649 for ac_prog in cl.exe
4651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_CC+set}" = set; then
4656 $as_echo_n "(cached) " >&6
4658 if test -n "$CC"; then
4659 ac_cv_prog_CC="$CC" # Let the user override the test.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 if test -n "$CC"; then
4680 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4681 $as_echo "$CC" >&6; }
4683 { $as_echo "$as_me:$LINENO: result: no" >&5
4684 $as_echo "no" >&6; }
4688 test -n "$CC" && break
4691 if test -z "$CC"; then
4693 for ac_prog in cl.exe
4695 # Extract the first word of "$ac_prog", so it can be a program name with args.
4696 set dummy $ac_prog; ac_word=$2
4697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4700 $as_echo_n "(cached) " >&6
4702 if test -n "$ac_ct_CC"; then
4703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_ac_ct_CC="$ac_prog"
4713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4723 if test -n "$ac_ct_CC"; then
4724 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4725 $as_echo "$ac_ct_CC" >&6; }
4727 { $as_echo "$as_me:$LINENO: result: no" >&5
4728 $as_echo "no" >&6; }
4732 test -n "$ac_ct_CC" && break
4735 if test "x$ac_ct_CC" = x; then
4738 case $cross_compiling:$ac_tool_warned in
4740 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4741 whose name does not start with the host triplet. If you think this
4742 configuration is useful to you, please write to autoconf@gnu.org." >&5
4743 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4744 whose name does not start with the host triplet. If you think this
4745 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4746 ac_tool_warned=yes ;;
4755 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4756 See \`config.log' for more details." >&5
4757 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4758 See \`config.log' for more details." >&2;}
4759 { (exit 1); exit 1; }; }
4761 # Provide some information about the compiler.
4762 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4765 { (ac_try="$ac_compiler --version >&5"
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4771 $as_echo "$ac_try_echo") >&5
4772 (eval "$ac_compiler --version >&5") 2>&5
4774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }
4776 { (ac_try="$ac_compiler -v >&5"
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4782 $as_echo "$ac_try_echo") >&5
4783 (eval "$ac_compiler -v >&5") 2>&5
4785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }
4787 { (ac_try="$ac_compiler -V >&5"
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4793 $as_echo "$ac_try_echo") >&5
4794 (eval "$ac_compiler -V >&5") 2>&5
4796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }
4799 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4801 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4802 $as_echo_n "(cached) " >&6
4804 cat >conftest.$ac_ext <<_ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4822 rm -f conftest.$ac_objext
4823 if { (ac_try="$ac_compile"
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4829 $as_echo "$ac_try_echo") >&5
4830 (eval "$ac_compile") 2>conftest.er1
4832 grep -v '^ *+' conftest.er1 >conftest.err
4834 cat conftest.err >&5
4835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } && {
4837 test -z "$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4839 } && test -s conftest.$ac_objext; then
4842 $as_echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4852 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4853 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4854 if test $ac_compiler_gnu = yes; then
4859 ac_test_CFLAGS=${CFLAGS+set}
4860 ac_save_CFLAGS=$CFLAGS
4861 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4862 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4863 if test "${ac_cv_prog_cc_g+set}" = set; then
4864 $as_echo_n "(cached) " >&6
4866 ac_save_c_werror_flag=$ac_c_werror_flag
4867 ac_c_werror_flag=yes
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4892 $as_echo "$ac_try_echo") >&5
4893 (eval "$ac_compile") 2>conftest.er1
4895 grep -v '^ *+' conftest.er1 >conftest.err
4897 cat conftest.err >&5
4898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } && {
4900 test -z "$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 } && test -s conftest.$ac_objext; then
4905 $as_echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4909 cat >conftest.$ac_ext <<_ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4924 rm -f conftest.$ac_objext
4925 if { (ac_try="$ac_compile"
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4931 $as_echo "$ac_try_echo") >&5
4932 (eval "$ac_compile") 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && {
4939 test -z "$ac_c_werror_flag" ||
4940 test ! -s conftest.err
4941 } && test -s conftest.$ac_objext; then
4944 $as_echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 ac_c_werror_flag=$ac_save_c_werror_flag
4949 cat >conftest.$ac_ext <<_ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4964 rm -f conftest.$ac_objext
4965 if { (ac_try="$ac_compile"
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4971 $as_echo "$ac_try_echo") >&5
4972 (eval "$ac_compile") 2>conftest.er1
4974 grep -v '^ *+' conftest.er1 >conftest.err
4976 cat conftest.err >&5
4977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && {
4979 test -z "$ac_c_werror_flag" ||
4980 test ! -s conftest.err
4981 } && test -s conftest.$ac_objext; then
4984 $as_echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 ac_c_werror_flag=$ac_save_c_werror_flag
4999 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5000 $as_echo "$ac_cv_prog_cc_g" >&6; }
5001 if test "$ac_test_CFLAGS" = set; then
5002 CFLAGS=$ac_save_CFLAGS
5003 elif test $ac_cv_prog_cc_g = yes; then
5004 if test "$GCC" = yes; then
5010 if test "$GCC" = yes; then
5016 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5017 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5018 if test "${ac_cv_prog_cc_c89+set}" = set; then
5019 $as_echo_n "(cached) " >&6
5021 ac_cv_prog_cc_c89=no
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5031 #include <sys/types.h>
5032 #include <sys/stat.h>
5033 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5034 struct buf { int x; };
5035 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5036 static char *e (p, i)
5042 static char *f (char * (*g) (char **, int), char **p, ...)
5047 s = g (p, va_arg (v,int));
5052 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5053 function prototypes and stuff, but not '\xHH' hex character constants.
5054 These don't provoke an error unfortunately, instead are silently treated
5055 as 'x'. The following induces an error, until -std is added to get
5056 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5057 array size at least. It's necessary to write '\x00'==0 to get something
5058 that's true only with -std. */
5059 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5061 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5062 inside strings and character constants. */
5064 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5066 int test (int i, double x);
5067 struct s1 {int (*f) (int a);};
5068 struct s2 {int (*f) (double a);};
5069 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5075 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5080 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5081 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5083 CC="$ac_save_CC $ac_arg"
5084 rm -f conftest.$ac_objext
5085 if { (ac_try="$ac_compile"
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5091 $as_echo "$ac_try_echo") >&5
5092 (eval "$ac_compile") 2>conftest.er1
5094 grep -v '^ *+' conftest.er1 >conftest.err
5096 cat conftest.err >&5
5097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && {
5099 test -z "$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5101 } && test -s conftest.$ac_objext; then
5102 ac_cv_prog_cc_c89=$ac_arg
5104 $as_echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5110 rm -f core conftest.err conftest.$ac_objext
5111 test "x$ac_cv_prog_cc_c89" != "xno" && break
5113 rm -f conftest.$ac_ext
5118 case "x$ac_cv_prog_cc_c89" in
5120 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5121 $as_echo "none needed" >&6; } ;;
5123 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5124 $as_echo "unsupported" >&6; } ;;
5126 CC="$CC $ac_cv_prog_cc_c89"
5127 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5128 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5133 ac_cpp='$CPP $CPPFLAGS'
5134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138 depcc="$CC" am_compiler_list=
5140 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5141 $as_echo_n "checking dependency style of $depcc... " >&6; }
5142 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5143 $as_echo_n "(cached) " >&6
5145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5146 # We make a subdir and do the tests there. Otherwise we can end up
5147 # making bogus files that we don't know about and never remove. For
5148 # instance it was reported that on HP-UX the gcc test will end up
5149 # making a dummy file named `D' -- because `-MD' means `put the output
5152 # Copy depcomp to subdir because otherwise we won't find it if we're
5153 # using a relative directory.
5154 cp "$am_depcomp" conftest.dir
5156 # We will build objects and dependencies in a subdirectory because
5157 # it helps to detect inapplicable dependency modes. For instance
5158 # both Tru64's cc and ICC support -MD to output dependencies as a
5159 # side effect of compilation, but ICC will put the dependencies in
5160 # the current directory while Tru64 will put them in the object
5164 am_cv_CC_dependencies_compiler_type=none
5165 if test "$am_compiler_list" = ""; then
5166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5168 for depmode in $am_compiler_list; do
5169 # Setup a source with many dependencies, because some compilers
5170 # like to wrap large dependency lists on column 80 (with \), and
5171 # we should not choose a depcomp mode which is confused by this.
5173 # We need to recreate these files for each test, as the compiler may
5174 # overwrite some of them when testing with obscure command lines.
5175 # This happens at least with the AIX C compiler.
5177 for i in 1 2 3 4 5 6; do
5178 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5179 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5180 # Solaris 8's {/usr,}/bin/sh.
5181 touch sub/conftst$i.h
5183 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5187 # after this tag, mechanisms are not by side-effect, so they'll
5188 # only be used when explicitly requested
5189 if test "x$enable_dependency_tracking" = xyes; then
5197 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5198 # mode. It turns out that the SunPro C++ compiler does not properly
5199 # handle `-M -o', and we need to detect this.
5200 if depmode=$depmode \
5201 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5202 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5203 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5204 >/dev/null 2>conftest.err &&
5205 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5206 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5207 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5208 # icc doesn't choke on unknown options, it will just issue warnings
5209 # or remarks (even with -Werror). So we grep stderr for any message
5210 # that says an option was ignored or not supported.
5211 # When given -MP, icc 7.0 and 7.1 complain thusly:
5212 # icc: Command line warning: ignoring option '-M'; no argument required
5213 # The diagnosis changed in icc 8.0:
5214 # icc: Command line remark: option '-MP' not supported
5215 if (grep 'ignoring option' conftest.err ||
5216 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5217 am_cv_CC_dependencies_compiler_type=$depmode
5226 am_cv_CC_dependencies_compiler_type=none
5230 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5231 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5232 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5237 test "x$enable_dependency_tracking" != xno \
5238 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5240 am__fastdepCC_FALSE='#'
5242 am__fastdepCC_TRUE='#'
5243 am__fastdepCC_FALSE=
5248 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5251 ac_cpp='$OBJCPP $CPPFLAGS'
5252 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5255 if test -n "$ac_tool_prefix"; then
5256 for ac_prog in gcc objcc objc cc CC
5258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_prog_OBJC+set}" = set; then
5263 $as_echo_n "(cached) " >&6
5265 if test -n "$OBJC"; then
5266 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 OBJC=$ac_cv_prog_OBJC
5286 if test -n "$OBJC"; then
5287 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
5288 $as_echo "$OBJC" >&6; }
5290 { $as_echo "$as_me:$LINENO: result: no" >&5
5291 $as_echo "no" >&6; }
5295 test -n "$OBJC" && break
5298 if test -z "$OBJC"; then
5300 for ac_prog in gcc objcc objc cc CC
5302 # Extract the first word of "$ac_prog", so it can be a program name with args.
5303 set dummy $ac_prog; ac_word=$2
5304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
5307 $as_echo_n "(cached) " >&6
5309 if test -n "$ac_ct_OBJC"; then
5310 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319 ac_cv_prog_ac_ct_OBJC="$ac_prog"
5320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5330 if test -n "$ac_ct_OBJC"; then
5331 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
5332 $as_echo "$ac_ct_OBJC" >&6; }
5334 { $as_echo "$as_me:$LINENO: result: no" >&5
5335 $as_echo "no" >&6; }
5339 test -n "$ac_ct_OBJC" && break
5342 if test "x$ac_ct_OBJC" = x; then
5345 case $cross_compiling:$ac_tool_warned in
5347 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5348 whose name does not start with the host triplet. If you think this
5349 configuration is useful to you, please write to autoconf@gnu.org." >&5
5350 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5351 whose name does not start with the host triplet. If you think this
5352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5353 ac_tool_warned=yes ;;
5359 # Provide some information about the compiler.
5360 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
5363 { (ac_try="$ac_compiler --version >&5"
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5369 $as_echo "$ac_try_echo") >&5
5370 (eval "$ac_compiler --version >&5") 2>&5
5372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }
5374 { (ac_try="$ac_compiler -v >&5"
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5380 $as_echo "$ac_try_echo") >&5
5381 (eval "$ac_compiler -v >&5") 2>&5
5383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }
5385 { (ac_try="$ac_compiler -V >&5"
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5391 $as_echo "$ac_try_echo") >&5
5392 (eval "$ac_compiler -V >&5") 2>&5
5394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }
5397 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
5398 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5399 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
5400 $as_echo_n "(cached) " >&6
5402 cat >conftest.$ac_ext <<_ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5420 rm -f conftest.$ac_objext
5421 if { (ac_try="$ac_compile"
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5427 $as_echo "$ac_try_echo") >&5
5428 (eval "$ac_compile") 2>conftest.er1
5430 grep -v '^ *+' conftest.er1 >conftest.err
5432 cat conftest.err >&5
5433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } && {
5435 test -z "$ac_objc_werror_flag" ||
5436 test ! -s conftest.err
5437 } && test -s conftest.$ac_objext; then
5440 $as_echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5450 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
5451 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5452 if test $ac_compiler_gnu = yes; then
5457 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5458 ac_save_OBJCFLAGS=$OBJCFLAGS
5459 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
5460 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5461 if test "${ac_cv_prog_objc_g+set}" = set; then
5462 $as_echo_n "(cached) " >&6
5464 ac_save_objc_werror_flag=$ac_objc_werror_flag
5465 ac_objc_werror_flag=yes
5466 ac_cv_prog_objc_g=no
5468 cat >conftest.$ac_ext <<_ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5490 $as_echo "$ac_try_echo") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5493 grep -v '^ *+' conftest.er1 >conftest.err
5495 cat conftest.err >&5
5496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_objc_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5501 ac_cv_prog_objc_g=yes
5503 $as_echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5529 $as_echo "$ac_try_echo") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5532 grep -v '^ *+' conftest.er1 >conftest.err
5534 cat conftest.err >&5
5535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_objc_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.$ac_objext; then
5542 $as_echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 ac_objc_werror_flag=$ac_save_objc_werror_flag
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5562 rm -f conftest.$ac_objext
5563 if { (ac_try="$ac_compile"
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5569 $as_echo "$ac_try_echo") >&5
5570 (eval "$ac_compile") 2>conftest.er1
5572 grep -v '^ *+' conftest.er1 >conftest.err
5574 cat conftest.err >&5
5575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } && {
5577 test -z "$ac_objc_werror_flag" ||
5578 test ! -s conftest.err
5579 } && test -s conftest.$ac_objext; then
5580 ac_cv_prog_objc_g=yes
5582 $as_echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595 ac_objc_werror_flag=$ac_save_objc_werror_flag
5597 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
5598 $as_echo "$ac_cv_prog_objc_g" >&6; }
5599 if test "$ac_test_OBJCFLAGS" = set; then
5600 OBJCFLAGS=$ac_save_OBJCFLAGS
5601 elif test $ac_cv_prog_objc_g = yes; then
5602 if test "$GOBJC" = yes; then
5608 if test "$GOBJC" = yes; then
5615 ac_cpp='$CPP $CPPFLAGS'
5616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5620 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5621 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5622 if test "${ac_cv_path_SED+set}" = set; then
5623 $as_echo_n "(cached) " >&6
5625 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5626 for ac_i in 1 2 3 4 5 6 7; do
5627 ac_script="$ac_script$as_nl$ac_script"
5629 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5630 $as_unset ac_script || ac_script=
5631 if test -z "$SED"; then
5632 ac_path_SED_found=false
5633 # Loop through the user's path and test for each of PROGNAME-LIST
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 test -z "$as_dir" && as_dir=.
5639 for ac_prog in sed gsed; do
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5642 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5643 # Check for GNU ac_path_SED and select it if it is found.
5644 # Check for GNU $ac_path_SED
5645 case `"$ac_path_SED" --version 2>&1` in
5647 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5650 $as_echo_n 0123456789 >"conftest.in"
5653 cat "conftest.in" "conftest.in" >"conftest.tmp"
5654 mv "conftest.tmp" "conftest.in"
5655 cp "conftest.in" "conftest.nl"
5656 $as_echo '' >> "conftest.nl"
5657 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5659 ac_count=`expr $ac_count + 1`
5660 if test $ac_count -gt ${ac_path_SED_max-0}; then
5661 # Best one so far, save it but keep looking for a better one
5662 ac_cv_path_SED="$ac_path_SED"
5663 ac_path_SED_max=$ac_count
5665 # 10*(2^10) chars as input seems more than enough
5666 test $ac_count -gt 10 && break
5668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5671 $ac_path_SED_found && break 3
5676 if test -z "$ac_cv_path_SED"; then
5677 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5678 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5679 { (exit 1); exit 1; }; }
5686 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5687 $as_echo "$ac_cv_path_SED" >&6; }
5688 SED="$ac_cv_path_SED"
5691 # By default we simply use the C compiler to build assembly code.
5693 test "${CCAS+set}" = set || CCAS=$CC
5694 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5704 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5705 # On Suns, sometimes $CPP names a directory.
5706 if test -n "$CPP" && test -d "$CPP"; then
5709 if test -z "$CPP"; then
5710 if test "${ac_cv_prog_CPP+set}" = set; then
5711 $as_echo_n "(cached) " >&6
5713 # Double quotes because CPP needs to be expanded
5714 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5717 for ac_c_preproc_warn_flag in '' yes
5719 # Use a header file that comes with gcc, so configuring glibc
5720 # with a fresh cross-compiler works.
5721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722 # <limits.h> exists even on freestanding compilers.
5723 # On the NeXT, cc -E runs the code through the compiler's parser,
5724 # not just through cpp. "Syntax error" is here to catch this case.
5725 cat >conftest.$ac_ext <<_ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5732 # include <limits.h>
5734 # include <assert.h>
5738 if { (ac_try="$ac_cpp conftest.$ac_ext"
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5744 $as_echo "$ac_try_echo") >&5
5745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5747 grep -v '^ *+' conftest.er1 >conftest.err
5749 cat conftest.err >&5
5750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } >/dev/null && {
5752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5757 $as_echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 # Broken: fails on valid input.
5764 rm -f conftest.err conftest.$ac_ext
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
5768 cat >conftest.$ac_ext <<_ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 #include <ac_nonexistent.h>
5776 if { (ac_try="$ac_cpp conftest.$ac_ext"
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5782 $as_echo "$ac_try_echo") >&5
5783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5785 grep -v '^ *+' conftest.er1 >conftest.err
5787 cat conftest.err >&5
5788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } >/dev/null && {
5790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5793 # Broken: success on invalid input.
5796 $as_echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5799 # Passes both tests.
5804 rm -f conftest.err conftest.$ac_ext
5807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5808 rm -f conftest.err conftest.$ac_ext
5809 if $ac_preproc_ok; then
5821 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5822 $as_echo "$CPP" >&6; }
5824 for ac_c_preproc_warn_flag in '' yes
5826 # Use a header file that comes with gcc, so configuring glibc
5827 # with a fresh cross-compiler works.
5828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5829 # <limits.h> exists even on freestanding compilers.
5830 # On the NeXT, cc -E runs the code through the compiler's parser,
5831 # not just through cpp. "Syntax error" is here to catch this case.
5832 cat >conftest.$ac_ext <<_ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5839 # include <limits.h>
5841 # include <assert.h>
5845 if { (ac_try="$ac_cpp conftest.$ac_ext"
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5851 $as_echo "$ac_try_echo") >&5
5852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5854 grep -v '^ *+' conftest.er1 >conftest.err
5856 cat conftest.err >&5
5857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } >/dev/null && {
5859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5860 test ! -s conftest.err
5864 $as_echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5867 # Broken: fails on valid input.
5871 rm -f conftest.err conftest.$ac_ext
5873 # OK, works on sane cases. Now check whether nonexistent headers
5874 # can be detected and how.
5875 cat >conftest.$ac_ext <<_ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <ac_nonexistent.h>
5883 if { (ac_try="$ac_cpp conftest.$ac_ext"
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5889 $as_echo "$ac_try_echo") >&5
5890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5892 grep -v '^ *+' conftest.er1 >conftest.err
5894 cat conftest.err >&5
5895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } >/dev/null && {
5897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5898 test ! -s conftest.err
5900 # Broken: success on invalid input.
5903 $as_echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5906 # Passes both tests.
5911 rm -f conftest.err conftest.$ac_ext
5914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5915 rm -f conftest.err conftest.$ac_ext
5916 if $ac_preproc_ok; then
5919 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5920 See \`config.log' for more details." >&5
5921 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5922 See \`config.log' for more details." >&2;}
5923 { (exit 1); exit 1; }; }
5927 ac_cpp='$CPP $CPPFLAGS'
5928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5933 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5934 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5935 if test "${ac_cv_path_GREP+set}" = set; then
5936 $as_echo_n "(cached) " >&6
5938 if test -z "$GREP"; then
5939 ac_path_GREP_found=false
5940 # Loop through the user's path and test for each of PROGNAME-LIST
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5945 test -z "$as_dir" && as_dir=.
5946 for ac_prog in grep ggrep; do
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5949 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5950 # Check for GNU ac_path_GREP and select it if it is found.
5951 # Check for GNU $ac_path_GREP
5952 case `"$ac_path_GREP" --version 2>&1` in
5954 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5957 $as_echo_n 0123456789 >"conftest.in"
5960 cat "conftest.in" "conftest.in" >"conftest.tmp"
5961 mv "conftest.tmp" "conftest.in"
5962 cp "conftest.in" "conftest.nl"
5963 $as_echo 'GREP' >> "conftest.nl"
5964 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5966 ac_count=`expr $ac_count + 1`
5967 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5968 # Best one so far, save it but keep looking for a better one
5969 ac_cv_path_GREP="$ac_path_GREP"
5970 ac_path_GREP_max=$ac_count
5972 # 10*(2^10) chars as input seems more than enough
5973 test $ac_count -gt 10 && break
5975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5978 $ac_path_GREP_found && break 3
5983 if test -z "$ac_cv_path_GREP"; then
5984 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5985 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5986 { (exit 1); exit 1; }; }
5989 ac_cv_path_GREP=$GREP
5993 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5994 $as_echo "$ac_cv_path_GREP" >&6; }
5995 GREP="$ac_cv_path_GREP"
5998 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5999 $as_echo_n "checking for egrep... " >&6; }
6000 if test "${ac_cv_path_EGREP+set}" = set; then
6001 $as_echo_n "(cached) " >&6
6003 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6004 then ac_cv_path_EGREP="$GREP -E"
6006 if test -z "$EGREP"; then
6007 ac_path_EGREP_found=false
6008 # Loop through the user's path and test for each of PROGNAME-LIST
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6013 test -z "$as_dir" && as_dir=.
6014 for ac_prog in egrep; do
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6017 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6018 # Check for GNU ac_path_EGREP and select it if it is found.
6019 # Check for GNU $ac_path_EGREP
6020 case `"$ac_path_EGREP" --version 2>&1` in
6022 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6025 $as_echo_n 0123456789 >"conftest.in"
6028 cat "conftest.in" "conftest.in" >"conftest.tmp"
6029 mv "conftest.tmp" "conftest.in"
6030 cp "conftest.in" "conftest.nl"
6031 $as_echo 'EGREP' >> "conftest.nl"
6032 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6034 ac_count=`expr $ac_count + 1`
6035 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6036 # Best one so far, save it but keep looking for a better one
6037 ac_cv_path_EGREP="$ac_path_EGREP"
6038 ac_path_EGREP_max=$ac_count
6040 # 10*(2^10) chars as input seems more than enough
6041 test $ac_count -gt 10 && break
6043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6046 $ac_path_EGREP_found && break 3
6051 if test -z "$ac_cv_path_EGREP"; then
6052 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6053 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6054 { (exit 1); exit 1; }; }
6057 ac_cv_path_EGREP=$EGREP
6062 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6063 $as_echo "$ac_cv_path_EGREP" >&6; }
6064 EGREP="$ac_cv_path_EGREP"
6067 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6068 $as_echo_n "checking for ANSI C header files... " >&6; }
6069 if test "${ac_cv_header_stdc+set}" = set; then
6070 $as_echo_n "(cached) " >&6
6072 cat >conftest.$ac_ext <<_ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6098 $as_echo "$ac_try_echo") >&5
6099 (eval "$ac_compile") 2>conftest.er1
6101 grep -v '^ *+' conftest.er1 >conftest.err
6103 cat conftest.err >&5
6104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest.$ac_objext; then
6109 ac_cv_header_stdc=yes
6111 $as_echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6114 ac_cv_header_stdc=no
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 if test $ac_cv_header_stdc = yes; then
6120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6121 cat >conftest.$ac_ext <<_ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6131 $EGREP "memchr" >/dev/null 2>&1; then
6134 ac_cv_header_stdc=no
6140 if test $ac_cv_header_stdc = yes; then
6141 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6142 cat >conftest.$ac_ext <<_ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152 $EGREP "free" >/dev/null 2>&1; then
6155 ac_cv_header_stdc=no
6161 if test $ac_cv_header_stdc = yes; then
6162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6163 if test "$cross_compiling" = yes; then
6166 cat >conftest.$ac_ext <<_ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6174 #if ((' ' & 0x0FF) == 0x020)
6175 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6176 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6178 # define ISLOWER(c) \
6179 (('a' <= (c) && (c) <= 'i') \
6180 || ('j' <= (c) && (c) <= 'r') \
6181 || ('s' <= (c) && (c) <= 'z'))
6182 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6190 for (i = 0; i < 256; i++)
6191 if (XOR (islower (i), ISLOWER (i))
6192 || toupper (i) != TOUPPER (i))
6197 rm -f conftest$ac_exeext
6198 if { (ac_try="$ac_link"
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6204 $as_echo "$ac_try_echo") >&5
6205 (eval "$ac_link") 2>&5
6207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6209 { (case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6214 $as_echo "$ac_try_echo") >&5
6215 (eval "$ac_try") 2>&5
6217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6221 $as_echo "$as_me: program exited with status $ac_status" >&5
6222 $as_echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6226 ac_cv_header_stdc=no
6228 rm -rf conftest.dSYM
6229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6235 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6236 $as_echo "$ac_cv_header_stdc" >&6; }
6237 if test $ac_cv_header_stdc = yes; then
6239 cat >>confdefs.h <<\_ACEOF
6240 #define STDC_HEADERS 1
6245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6255 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6256 inttypes.h stdint.h unistd.h
6258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6260 $as_echo_n "checking for $ac_header... " >&6; }
6261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6262 $as_echo_n "(cached) " >&6
6264 cat >conftest.$ac_ext <<_ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 $ac_includes_default
6272 #include <$ac_header>
6274 rm -f conftest.$ac_objext
6275 if { (ac_try="$ac_compile"
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6281 $as_echo "$ac_try_echo") >&5
6282 (eval "$ac_compile") 2>conftest.er1
6284 grep -v '^ *+' conftest.er1 >conftest.err
6286 cat conftest.err >&5
6287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } && {
6289 test -z "$ac_c_werror_flag" ||
6290 test ! -s conftest.err
6291 } && test -s conftest.$ac_objext; then
6292 eval "$as_ac_Header=yes"
6294 $as_echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6297 eval "$as_ac_Header=no"
6300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302 ac_res=`eval 'as_val=${'$as_ac_Header'}
6303 $as_echo "$as_val"'`
6304 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6305 $as_echo "$ac_res" >&6; }
6306 if test `eval 'as_val=${'$as_ac_Header'}
6307 $as_echo "$as_val"'` = yes; then
6308 cat >>confdefs.h <<_ACEOF
6309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6317 # The cast to long int works around a bug in the HP C Compiler
6318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6320 # This bug is HP SR number 8606223364.
6321 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
6322 $as_echo_n "checking size of void *... " >&6; }
6323 if test "${ac_cv_sizeof_void_p+set}" = set; then
6324 $as_echo_n "(cached) " >&6
6326 if test "$cross_compiling" = yes; then
6327 # Depending upon the size, compute the lo and hi bounds.
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 $ac_includes_default
6338 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
6345 rm -f conftest.$ac_objext
6346 if { (ac_try="$ac_compile"
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6352 $as_echo "$ac_try_echo") >&5
6353 (eval "$ac_compile") 2>conftest.er1
6355 grep -v '^ *+' conftest.er1 >conftest.err
6357 cat conftest.err >&5
6358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } && {
6360 test -z "$ac_c_werror_flag" ||
6361 test ! -s conftest.err
6362 } && test -s conftest.$ac_objext; then
6365 cat >conftest.$ac_ext <<_ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 $ac_includes_default
6375 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6382 rm -f conftest.$ac_objext
6383 if { (ac_try="$ac_compile"
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6389 $as_echo "$ac_try_echo") >&5
6390 (eval "$ac_compile") 2>conftest.er1
6392 grep -v '^ *+' conftest.er1 >conftest.err
6394 cat conftest.err >&5
6395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } && {
6397 test -z "$ac_c_werror_flag" ||
6398 test ! -s conftest.err
6399 } && test -s conftest.$ac_objext; then
6400 ac_hi=$ac_mid; break
6402 $as_echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_lo=`expr $ac_mid + 1`
6406 if test $ac_lo -le $ac_mid; then
6410 ac_mid=`expr 2 '*' $ac_mid + 1`
6413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 $as_echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 cat >conftest.$ac_ext <<_ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 $ac_includes_default
6429 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
6436 rm -f conftest.$ac_objext
6437 if { (ac_try="$ac_compile"
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6443 $as_echo "$ac_try_echo") >&5
6444 (eval "$ac_compile") 2>conftest.er1
6446 grep -v '^ *+' conftest.er1 >conftest.err
6448 cat conftest.err >&5
6449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } && {
6451 test -z "$ac_c_werror_flag" ||
6452 test ! -s conftest.err
6453 } && test -s conftest.$ac_objext; then
6456 cat >conftest.$ac_ext <<_ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 $ac_includes_default
6466 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6473 rm -f conftest.$ac_objext
6474 if { (ac_try="$ac_compile"
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6480 $as_echo "$ac_try_echo") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6483 grep -v '^ *+' conftest.er1 >conftest.err
6485 cat conftest.err >&5
6486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.$ac_objext; then
6491 ac_lo=$ac_mid; break
6493 $as_echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6496 ac_hi=`expr '(' $ac_mid ')' - 1`
6497 if test $ac_mid -le $ac_hi; then
6501 ac_mid=`expr 2 '*' $ac_mid`
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 $as_echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 # Binary search between lo and hi bounds.
6518 while test "x$ac_lo" != "x$ac_hi"; do
6519 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6520 cat >conftest.$ac_ext <<_ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6530 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6544 $as_echo "$ac_try_echo") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6547 grep -v '^ *+' conftest.er1 >conftest.err
6549 cat conftest.err >&5
6550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.$ac_objext; then
6557 $as_echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6560 ac_lo=`expr '(' $ac_mid ')' + 1`
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6567 '') if test "$ac_cv_type_void_p" = yes; then
6568 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6569 See \`config.log' for more details." >&5
6570 $as_echo "$as_me: error: cannot compute sizeof (void *)
6571 See \`config.log' for more details." >&2;}
6572 { (exit 77); exit 77; }; }
6574 ac_cv_sizeof_void_p=0
6578 cat >conftest.$ac_ext <<_ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584 $ac_includes_default
6585 static long int longval () { return (long int) (sizeof (void *)); }
6586 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6593 FILE *f = fopen ("conftest.val", "w");
6596 if (((long int) (sizeof (void *))) < 0)
6598 long int i = longval ();
6599 if (i != ((long int) (sizeof (void *))))
6601 fprintf (f, "%ld", i);
6605 unsigned long int i = ulongval ();
6606 if (i != ((long int) (sizeof (void *))))
6608 fprintf (f, "%lu", i);
6610 /* Do not output a trailing newline, as this causes \r\n confusion
6611 on some platforms. */
6612 return ferror (f) || fclose (f) != 0;
6618 rm -f conftest$ac_exeext
6619 if { (ac_try="$ac_link"
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6625 $as_echo "$ac_try_echo") >&5
6626 (eval "$ac_link") 2>&5
6628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6630 { (case "(($ac_try" in
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6635 $as_echo "$ac_try_echo") >&5
6636 (eval "$ac_try") 2>&5
6638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_cv_sizeof_void_p=`cat conftest.val`
6642 $as_echo "$as_me: program exited with status $ac_status" >&5
6643 $as_echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6647 if test "$ac_cv_type_void_p" = yes; then
6648 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6649 See \`config.log' for more details." >&5
6650 $as_echo "$as_me: error: cannot compute sizeof (void *)
6651 See \`config.log' for more details." >&2;}
6652 { (exit 77); exit 77; }; }
6654 ac_cv_sizeof_void_p=0
6657 rm -rf conftest.dSYM
6658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6662 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6663 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6667 cat >>confdefs.h <<_ACEOF
6668 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6672 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6673 $as_echo_n "checking for ANSI C header files... " >&6; }
6674 if test "${ac_cv_header_stdc+set}" = set; then
6675 $as_echo_n "(cached) " >&6
6677 cat >conftest.$ac_ext <<_ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6696 rm -f conftest.$ac_objext
6697 if { (ac_try="$ac_compile"
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6703 $as_echo "$ac_try_echo") >&5
6704 (eval "$ac_compile") 2>conftest.er1
6706 grep -v '^ *+' conftest.er1 >conftest.err
6708 cat conftest.err >&5
6709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest.$ac_objext; then
6714 ac_cv_header_stdc=yes
6716 $as_echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6719 ac_cv_header_stdc=no
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 if test $ac_cv_header_stdc = yes; then
6725 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6726 cat >conftest.$ac_ext <<_ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6736 $EGREP "memchr" >/dev/null 2>&1; then
6739 ac_cv_header_stdc=no
6745 if test $ac_cv_header_stdc = yes; then
6746 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6747 cat >conftest.$ac_ext <<_ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6757 $EGREP "free" >/dev/null 2>&1; then
6760 ac_cv_header_stdc=no
6766 if test $ac_cv_header_stdc = yes; then
6767 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6768 if test "$cross_compiling" = yes; then
6771 cat >conftest.$ac_ext <<_ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h. */
6779 #if ((' ' & 0x0FF) == 0x020)
6780 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6781 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6783 # define ISLOWER(c) \
6784 (('a' <= (c) && (c) <= 'i') \
6785 || ('j' <= (c) && (c) <= 'r') \
6786 || ('s' <= (c) && (c) <= 'z'))
6787 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6790 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6795 for (i = 0; i < 256; i++)
6796 if (XOR (islower (i), ISLOWER (i))
6797 || toupper (i) != TOUPPER (i))
6802 rm -f conftest$ac_exeext
6803 if { (ac_try="$ac_link"
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6809 $as_echo "$ac_try_echo") >&5
6810 (eval "$ac_link") 2>&5
6812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6814 { (case "(($ac_try" in
6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816 *) ac_try_echo=$ac_try;;
6818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6819 $as_echo "$ac_try_echo") >&5
6820 (eval "$ac_try") 2>&5
6822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6826 $as_echo "$as_me: program exited with status $ac_status" >&5
6827 $as_echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_header_stdc=no
6833 rm -rf conftest.dSYM
6834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6840 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6841 $as_echo "$ac_cv_header_stdc" >&6; }
6842 if test $ac_cv_header_stdc = yes; then
6844 cat >>confdefs.h <<\_ACEOF
6845 #define STDC_HEADERS 1
6850 # Make sure we can run config.sub.
6851 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6852 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6853 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6854 { (exit 1); exit 1; }; }
6856 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6857 $as_echo_n "checking build system type... " >&6; }
6858 if test "${ac_cv_build+set}" = set; then
6859 $as_echo_n "(cached) " >&6
6861 ac_build_alias=$build_alias
6862 test "x$ac_build_alias" = x &&
6863 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6864 test "x$ac_build_alias" = x &&
6865 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6866 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6867 { (exit 1); exit 1; }; }
6868 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6869 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6870 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6871 { (exit 1); exit 1; }; }
6874 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6875 $as_echo "$ac_cv_build" >&6; }
6876 case $ac_cv_build in
6878 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6879 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6880 { (exit 1); exit 1; }; };;
6883 ac_save_IFS=$IFS; IFS='-'
6889 # Remember, the first character of IFS is used to create $*,
6890 # except with old shells:
6893 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6896 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6897 $as_echo_n "checking host system type... " >&6; }
6898 if test "${ac_cv_host+set}" = set; then
6899 $as_echo_n "(cached) " >&6
6901 if test "x$host_alias" = x; then
6902 ac_cv_host=$ac_cv_build
6904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6905 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6906 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6907 { (exit 1); exit 1; }; }
6911 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6912 $as_echo "$ac_cv_host" >&6; }
6915 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6916 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6917 { (exit 1); exit 1; }; };;
6920 ac_save_IFS=$IFS; IFS='-'
6926 # Remember, the first character of IFS is used to create $*,
6927 # except with old shells:
6930 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6935 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6937 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6938 $as_echo_n "checking dependency style of $depcc... " >&6; }
6939 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
6940 $as_echo_n "(cached) " >&6
6942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6943 # We make a subdir and do the tests there. Otherwise we can end up
6944 # making bogus files that we don't know about and never remove. For
6945 # instance it was reported that on HP-UX the gcc test will end up
6946 # making a dummy file named `D' -- because `-MD' means `put the output
6949 # Copy depcomp to subdir because otherwise we won't find it if we're
6950 # using a relative directory.
6951 cp "$am_depcomp" conftest.dir
6953 # We will build objects and dependencies in a subdirectory because
6954 # it helps to detect inapplicable dependency modes. For instance
6955 # both Tru64's cc and ICC support -MD to output dependencies as a
6956 # side effect of compilation, but ICC will put the dependencies in
6957 # the current directory while Tru64 will put them in the object
6961 am_cv_OBJC_dependencies_compiler_type=none
6962 if test "$am_compiler_list" = ""; then
6963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6965 for depmode in $am_compiler_list; do
6966 # Setup a source with many dependencies, because some compilers
6967 # like to wrap large dependency lists on column 80 (with \), and
6968 # we should not choose a depcomp mode which is confused by this.
6970 # We need to recreate these files for each test, as the compiler may
6971 # overwrite some of them when testing with obscure command lines.
6972 # This happens at least with the AIX C compiler.
6974 for i in 1 2 3 4 5 6; do
6975 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6976 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6977 # Solaris 8's {/usr,}/bin/sh.
6978 touch sub/conftst$i.h
6980 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6984 # after this tag, mechanisms are not by side-effect, so they'll
6985 # only be used when explicitly requested
6986 if test "x$enable_dependency_tracking" = xyes; then
6994 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6995 # mode. It turns out that the SunPro C++ compiler does not properly
6996 # handle `-M -o', and we need to detect this.
6997 if depmode=$depmode \
6998 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6999 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7000 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7001 >/dev/null 2>conftest.err &&
7002 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7003 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7004 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7005 # icc doesn't choke on unknown options, it will just issue warnings
7006 # or remarks (even with -Werror). So we grep stderr for any message
7007 # that says an option was ignored or not supported.
7008 # When given -MP, icc 7.0 and 7.1 complain thusly:
7009 # icc: Command line warning: ignoring option '-M'; no argument required
7010 # The diagnosis changed in icc 8.0:
7011 # icc: Command line remark: option '-MP' not supported
7012 if (grep 'ignoring option' conftest.err ||
7013 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7014 am_cv_OBJC_dependencies_compiler_type=$depmode
7023 am_cv_OBJC_dependencies_compiler_type=none
7027 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
7028 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
7029 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
7034 test "x$enable_dependency_tracking" != xno \
7035 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
7036 am__fastdepOBJC_TRUE=
7037 am__fastdepOBJC_FALSE='#'
7039 am__fastdepOBJC_TRUE='#'
7040 am__fastdepOBJC_FALSE=
7045 # Extract the first word of "pod2man", so it can be a program name with args.
7046 set dummy pod2man; ac_word=$2
7047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if test "${ac_cv_path_POD2MAN+set}" = set; then
7050 $as_echo_n "(cached) " >&6
7054 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 POD2MAN=$ac_cv_path_POD2MAN
7076 if test -n "$POD2MAN"; then
7077 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
7078 $as_echo "$POD2MAN" >&6; }
7080 { $as_echo "$as_me:$LINENO: result: no" >&5
7081 $as_echo "no" >&6; }
7085 # Extract the first word of "pod2html", so it can be a program name with args.
7086 set dummy pod2html; ac_word=$2
7087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 $as_echo_n "checking for $ac_word... " >&6; }
7089 if test "${ac_cv_path_POD2HTML+set}" = set; then
7090 $as_echo_n "(cached) " >&6
7094 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7105 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 POD2HTML=$ac_cv_path_POD2HTML
7116 if test -n "$POD2HTML"; then
7117 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
7118 $as_echo "$POD2HTML" >&6; }
7120 { $as_echo "$as_me:$LINENO: result: no" >&5
7121 $as_echo "no" >&6; }
7127 # Check whether --enable-strict-warn was given.
7128 if test "${enable_strict_warn+set}" = set; then
7129 enableval=$enable_strict_warn; CFLAGS="$CFLAGS -Werror -Wall -Wno-unused"
7132 # Check whether --enable-translator was given.
7133 if test "${enable_translator+set}" = set; then
7134 enableval=$enable_translator; true
7136 enable_translator=yes
7139 # Check whether --enable-optimized was given.
7140 if test "${enable_optimized+set}" = set; then
7141 enableval=$enable_optimized; true
7143 enable_optimized=yes
7146 # Check whether --enable-profiled was given.
7147 if test "${enable_profiled+set}" = set; then
7148 enableval=$enable_profiled; if test "$enableval" == "yes"; then
7149 enable_profiled=yes;
7153 # Check whether --enable-trace was given.
7154 if test "${enable_trace+set}" = set; then
7155 enableval=$enable_trace; if test "$enableval" == "yes"; then
7157 cat >>confdefs.h <<\_ACEOF
7158 #define ENABLE_TRACE_IO 1
7164 # Check whether --enable-watch was given.
7165 if test "${enable_watch+set}" = set; then
7166 enableval=$enable_watch; if test "$enableval" == "yes"; then
7168 cat >>confdefs.h <<\_ACEOF
7169 #define ENABLE_WATCH 1
7175 # Check whether --enable-sh4stats was given.
7176 if test "${enable_sh4stats+set}" = set; then
7177 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
7179 cat >>confdefs.h <<\_ACEOF
7180 #define ENABLE_SH4STATS 1
7187 # Check whether --with-osmesa was given.
7188 if test "${with_osmesa+set}" = set; then
7189 withval=$with_osmesa;
7195 # Check whether --with-gtk was given.
7196 if test "${with_gtk+set}" = set; then
7197 withval=$with_gtk; with_gtk=yes
7203 # Check whether --with-esd was given.
7204 if test "${with_esd+set}" = set; then
7209 # Check whether --with-pulse was given.
7210 if test "${with_pulse+set}" = set; then
7211 withval=$with_pulse;
7215 CFLAGS="-g -fexceptions"
7216 OBJCFLAGS="-g -fexceptions"
7218 cat >>confdefs.h <<\_ACEOF
7219 #define HAVE_EXCEPTIONS 1
7224 _GCC_VERSION=`$CC --version | $SED -ne '/(GCC)/p'`
7225 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
7226 { $as_echo "$as_me:$LINENO: checking CC version" >&5
7227 $as_echo_n "checking CC version... " >&6; }
7228 if test -n "$_GCC_VERSION"; then
7229 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7230 $as_echo "GCC" >&6; }
7231 CCOPT="-O2 -msse2 -mfpmath=sse"
7232 CFLAGS="$CFLAGS -fno-strict-aliasing"
7233 elif test -n "$_ICC_VERSION"; then
7234 { $as_echo "$as_me:$LINENO: result: ICC" >&5
7235 $as_echo "ICC" >&6; }
7236 CCOPT="$CFLAGS -fast"
7238 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7239 $as_echo "Unknown" >&6; }
7244 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
7245 $as_echo_n "checking OBJC version... " >&6; }
7246 if test -n "$OBJC"; then
7247 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
7248 if test -n "$_GOBJC_VERSION"; then
7249 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7250 $as_echo "GCC" >&6; }
7251 OBJCOPT="-O2 -msse2 -mfpmath=sse"
7252 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
7254 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7255 $as_echo "Unknown" >&6; }
7259 { $as_echo "$as_me:$LINENO: result: None" >&5
7260 $as_echo "None" >&6; }
7265 if test "x$enable_optimized" = "xyes"; then
7266 CFLAGS="$CFLAGS $CCOPT"
7267 OBJCFLAGS="$OBJCFLAGS $CCOPT"
7268 if test "x$enable_profiled" != "xyes"; then
7269 CFLAGS="$CFLAGS -fomit-frame-pointer"
7272 CFLAGS="$CFLAGS -g3"
7273 OBJCFLAGS="$OBJCFLAGS -g3"
7276 if test "x$enable_profiled" = "xyes"; then
7277 CFLAGS="$CFLAGS -pg"
7278 LDFLAGS="$LDFLAGS -pg";
7279 OBJCFLAGS="$OBJCFLAGS -pg";
7283 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
7284 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
7285 if test "$cross_compiling" = yes; then
7286 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7287 See \`config.log' for more details." >&5
7288 $as_echo "$as_me: error: cannot run test program while cross compiling
7289 See \`config.log' for more details." >&2;}
7290 { (exit 1); exit 1; }; }
7292 cat >conftest.$ac_ext <<_ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7300 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
7302 int main(int argc, char *argv[])
7304 return foo( 1, 2 ) == 3 ? 0 : 1;
7307 rm -f conftest$ac_exeext
7308 if { (ac_try="$ac_link"
7310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311 *) ac_try_echo=$ac_try;;
7313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7314 $as_echo "$ac_try_echo") >&5
7315 (eval "$ac_link") 2>&5
7317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7319 { (case "(($ac_try" in
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7324 $as_echo "$ac_try_echo") >&5
7325 (eval "$ac_try") 2>&5
7327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; }; then
7330 { $as_echo "$as_me:$LINENO: result: yes" >&5
7331 $as_echo "yes" >&6; }
7334 cat >>confdefs.h <<\_ACEOF
7335 #define HAVE_FASTCALL 1
7340 $as_echo "$as_me: program exited with status $ac_status" >&5
7341 $as_echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7346 { $as_echo "$as_me:$LINENO: result: no" >&5
7347 $as_echo "no" >&6; }
7350 rm -rf conftest.dSYM
7351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7357 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
7358 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
7359 if test "$cross_compiling" = yes; then
7360 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7361 See \`config.log' for more details." >&5
7362 $as_echo "$as_me: error: cannot run test program while cross compiling
7363 See \`config.log' for more details." >&2;}
7364 { (exit 1); exit 1; }; }
7366 cat >conftest.$ac_ext <<_ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7374 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
7375 int __attribute__((noinline)) foo( int arg, void *exc )
7378 *(((void **)__builtin_frame_address(0))+1) = exc;
7383 int main(int argc, char *argv[])
7385 goto *first_arg(&&start, &&except);
7388 return foo( argc, &&except ) + 1;
7394 rm -f conftest$ac_exeext
7395 if { (ac_try="$ac_link"
7397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7401 $as_echo "$ac_try_echo") >&5
7402 (eval "$ac_link") 2>&5
7404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7406 { (case "(($ac_try" in
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_try") 2>&5
7414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7417 { $as_echo "$as_me:$LINENO: result: yes" >&5
7418 $as_echo "yes" >&6; }
7421 cat >>confdefs.h <<\_ACEOF
7422 #define HAVE_FRAME_ADDRESS 1
7427 $as_echo "$as_me: program exited with status $ac_status" >&5
7428 $as_echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7433 { $as_echo "$as_me:$LINENO: result: no" >&5
7434 $as_echo "no" >&6; }
7435 { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
7436 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
7438 rm -rf conftest.dSYM
7439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7448 ac_cpp='$OBJCPP $CPPFLAGS'
7449 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7450 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7451 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7456 ac_cpp='$OBJCPP $CPPFLAGS'
7457 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7460 { $as_echo "$as_me:$LINENO: checking how to run the Objective C preprocessor" >&5
7461 $as_echo_n "checking how to run the Objective C preprocessor... " >&6; }
7462 if test -z "$OBJCPP"; then
7463 if test "${ac_cv_prog_OBJCPP+set}" = set; then
7464 $as_echo_n "(cached) " >&6
7466 # Double quotes because OBJCPP needs to be expanded
7467 for OBJCPP in "$OBJC -E" "/lib/cpp"
7470 for ac_objc_preproc_warn_flag in '' yes
7472 # Use a header file that comes with gcc, so configuring glibc
7473 # with a fresh cross-compiler works.
7474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7475 # <limits.h> exists even on freestanding compilers.
7476 # On the NeXT, cc -E runs the code through the compiler's parser,
7477 # not just through cpp. "Syntax error" is here to catch this case.
7478 cat >conftest.$ac_ext <<_ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7485 # include <limits.h>
7487 # include <assert.h>
7491 if { (ac_try="$ac_cpp conftest.$ac_ext"
7493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494 *) ac_try_echo=$ac_try;;
7496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7497 $as_echo "$ac_try_echo") >&5
7498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7500 grep -v '^ *+' conftest.er1 >conftest.err
7502 cat conftest.err >&5
7503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } >/dev/null && {
7505 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7506 test ! -s conftest.err
7510 $as_echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513 # Broken: fails on valid input.
7517 rm -f conftest.err conftest.$ac_ext
7519 # OK, works on sane cases. Now check whether nonexistent headers
7520 # can be detected and how.
7521 cat >conftest.$ac_ext <<_ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 #include <ac_nonexistent.h>
7529 if { (ac_try="$ac_cpp conftest.$ac_ext"
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7535 $as_echo "$ac_try_echo") >&5
7536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7538 grep -v '^ *+' conftest.er1 >conftest.err
7540 cat conftest.err >&5
7541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } >/dev/null && {
7543 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7544 test ! -s conftest.err
7546 # Broken: success on invalid input.
7549 $as_echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 # Passes both tests.
7557 rm -f conftest.err conftest.$ac_ext
7560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7561 rm -f conftest.err conftest.$ac_ext
7562 if $ac_preproc_ok; then
7567 ac_cv_prog_OBJCPP=$OBJCPP
7570 OBJCPP=$ac_cv_prog_OBJCPP
7572 ac_cv_prog_OBJCPP=$OBJCPP
7574 { $as_echo "$as_me:$LINENO: result: $OBJCPP" >&5
7575 $as_echo "$OBJCPP" >&6; }
7577 for ac_objc_preproc_warn_flag in '' yes
7579 # Use a header file that comes with gcc, so configuring glibc
7580 # with a fresh cross-compiler works.
7581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7582 # <limits.h> exists even on freestanding compilers.
7583 # On the NeXT, cc -E runs the code through the compiler's parser,
7584 # not just through cpp. "Syntax error" is here to catch this case.
7585 cat >conftest.$ac_ext <<_ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7592 # include <limits.h>
7594 # include <assert.h>
7598 if { (ac_try="$ac_cpp conftest.$ac_ext"
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7604 $as_echo "$ac_try_echo") >&5
7605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7607 grep -v '^ *+' conftest.er1 >conftest.err
7609 cat conftest.err >&5
7610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } >/dev/null && {
7612 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7613 test ! -s conftest.err
7617 $as_echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 # Broken: fails on valid input.
7624 rm -f conftest.err conftest.$ac_ext
7626 # OK, works on sane cases. Now check whether nonexistent headers
7627 # can be detected and how.
7628 cat >conftest.$ac_ext <<_ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7634 #include <ac_nonexistent.h>
7636 if { (ac_try="$ac_cpp conftest.$ac_ext"
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7642 $as_echo "$ac_try_echo") >&5
7643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7645 grep -v '^ *+' conftest.er1 >conftest.err
7647 cat conftest.err >&5
7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } >/dev/null && {
7650 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7651 test ! -s conftest.err
7653 # Broken: success on invalid input.
7656 $as_echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7659 # Passes both tests.
7664 rm -f conftest.err conftest.$ac_ext
7667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7668 rm -f conftest.err conftest.$ac_ext
7669 if $ac_preproc_ok; then
7672 { { $as_echo "$as_me:$LINENO: error: Objective C preprocessor \"$OBJCPP\" fails sanity check
7673 See \`config.log' for more details." >&5
7674 $as_echo "$as_me: error: Objective C preprocessor \"$OBJCPP\" fails sanity check
7675 See \`config.log' for more details." >&2;}
7676 { (exit 1); exit 1; }; }
7680 ac_cpp='$OBJCPP $CPPFLAGS'
7681 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7682 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7686 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7687 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7688 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7689 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7690 $as_echo_n "(cached) " >&6
7692 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7693 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7695 # Is the header compilable?
7696 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
7697 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
7698 cat >conftest.$ac_ext <<_ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704 $ac_includes_default
7705 #include <Cocoa/Cocoa.h>
7707 rm -f conftest.$ac_objext
7708 if { (ac_try="$ac_compile"
7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7714 $as_echo "$ac_try_echo") >&5
7715 (eval "$ac_compile") 2>conftest.er1
7717 grep -v '^ *+' conftest.er1 >conftest.err
7719 cat conftest.err >&5
7720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } && {
7722 test -z "$ac_objc_werror_flag" ||
7723 test ! -s conftest.err
7724 } && test -s conftest.$ac_objext; then
7725 ac_header_compiler=yes
7727 $as_echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.$ac_ext >&5
7730 ac_header_compiler=no
7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7735 $as_echo "$ac_header_compiler" >&6; }
7737 # Is the header present?
7738 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
7739 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
7740 cat >conftest.$ac_ext <<_ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7746 #include <Cocoa/Cocoa.h>
7748 if { (ac_try="$ac_cpp conftest.$ac_ext"
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7754 $as_echo "$ac_try_echo") >&5
7755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7757 grep -v '^ *+' conftest.er1 >conftest.err
7759 cat conftest.err >&5
7760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } >/dev/null && {
7762 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7763 test ! -s conftest.err
7765 ac_header_preproc=yes
7767 $as_echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7770 ac_header_preproc=no
7773 rm -f conftest.err conftest.$ac_ext
7774 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7775 $as_echo "$ac_header_preproc" >&6; }
7777 # So? What about this header?
7778 case $ac_header_compiler:$ac_header_preproc:$ac_objc_preproc_warn_flag in
7780 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
7781 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7782 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
7783 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
7784 ac_header_preproc=yes
7787 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
7788 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
7789 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
7790 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
7791 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
7792 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
7793 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
7794 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
7795 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
7796 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
7797 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
7798 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
7802 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7803 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7804 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7805 $as_echo_n "(cached) " >&6
7807 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
7809 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7810 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7813 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
7817 LIBS="$LIBS -framework AppKit"
7818 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"
7819 CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
7820 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
7822 cat >>confdefs.h <<\_ACEOF
7823 #define HAVE_COCOA 1
7827 cat >>confdefs.h <<\_ACEOF
7828 #define APPLE_BUILD 1
7831 if test "x$with_gtk" = "xx11"; then
7841 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
7849 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
7851 cat >>confdefs.h <<\_ACEOF
7852 #define OSX_BUNDLE 1
7858 ac_cpp='$CPP $CPPFLAGS'
7859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7866 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7867 if test -n "$ac_tool_prefix"; then
7868 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7869 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7871 $as_echo_n "checking for $ac_word... " >&6; }
7872 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7873 $as_echo_n "(cached) " >&6
7877 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 test -z "$as_dir" && as_dir=.
7885 for ac_exec_ext in '' $ac_executable_extensions; do
7886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7887 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7888 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7898 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7899 if test -n "$PKG_CONFIG"; then
7900 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7901 $as_echo "$PKG_CONFIG" >&6; }
7903 { $as_echo "$as_me:$LINENO: result: no" >&5
7904 $as_echo "no" >&6; }
7909 if test -z "$ac_cv_path_PKG_CONFIG"; then
7910 ac_pt_PKG_CONFIG=$PKG_CONFIG
7911 # Extract the first word of "pkg-config", so it can be a program name with args.
7912 set dummy pkg-config; ac_word=$2
7913 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7916 $as_echo_n "(cached) " >&6
7918 case $ac_pt_PKG_CONFIG in
7920 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 test -z "$as_dir" && as_dir=.
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7930 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7942 if test -n "$ac_pt_PKG_CONFIG"; then
7943 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7944 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7946 { $as_echo "$as_me:$LINENO: result: no" >&5
7947 $as_echo "no" >&6; }
7950 if test "x$ac_pt_PKG_CONFIG" = x; then
7953 case $cross_compiling:$ac_tool_warned in
7955 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7956 whose name does not start with the host triplet. If you think this
7957 configuration is useful to you, please write to autoconf@gnu.org." >&5
7958 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7959 whose name does not start with the host triplet. If you think this
7960 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7961 ac_tool_warned=yes ;;
7963 PKG_CONFIG=$ac_pt_PKG_CONFIG
7966 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7970 if test -n "$PKG_CONFIG"; then
7971 _pkg_min_version=0.9.0
7972 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7973 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7974 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7975 { $as_echo "$as_me:$LINENO: result: yes" >&5
7976 $as_echo "yes" >&6; }
7978 { $as_echo "$as_me:$LINENO: result: no" >&5
7979 $as_echo "no" >&6; }
7986 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
7987 $as_echo_n "checking for LIBPNG... " >&6; }
7989 if test -n "$LIBPNG_CFLAGS"; then
7990 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
7991 elif test -n "$PKG_CONFIG"; then
7992 if test -n "$PKG_CONFIG" && \
7993 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
7994 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
7996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; then
7998 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
8005 if test -n "$LIBPNG_LIBS"; then
8006 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8007 elif test -n "$PKG_CONFIG"; then
8008 if test -n "$PKG_CONFIG" && \
8009 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8010 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; then
8014 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
8024 if test $pkg_failed = yes; then
8026 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8027 _pkg_short_errors_supported=yes
8029 _pkg_short_errors_supported=no
8031 if test $_pkg_short_errors_supported = yes; then
8032 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
8034 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
8036 # Put the nasty error message in config.log where it belongs
8037 echo "$LIBPNG_PKG_ERRORS" >&5
8039 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
8043 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8044 installed software in a non-standard prefix.
8046 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8047 and LIBPNG_LIBS to avoid the need to call pkg-config.
8048 See the pkg-config man page for more details.
8050 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
8054 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8055 installed software in a non-standard prefix.
8057 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8058 and LIBPNG_LIBS to avoid the need to call pkg-config.
8059 See the pkg-config man page for more details.
8061 { (exit 1); exit 1; }; }
8062 elif test $pkg_failed = untried; then
8063 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8064 is in your PATH or set the PKG_CONFIG environment variable to the full
8067 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8068 and LIBPNG_LIBS to avoid the need to call pkg-config.
8069 See the pkg-config man page for more details.
8071 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8072 See \`config.log' for more details." >&5
8073 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8074 is in your PATH or set the PKG_CONFIG environment variable to the full
8077 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8078 and LIBPNG_LIBS to avoid the need to call pkg-config.
8079 See the pkg-config man page for more details.
8081 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8082 See \`config.log' for more details." >&2;}
8083 { (exit 1); exit 1; }; }
8085 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8086 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8087 { $as_echo "$as_me:$LINENO: result: yes" >&5
8088 $as_echo "yes" >&6; }
8093 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
8094 $as_echo_n "checking for uncompress in -lz... " >&6; }
8095 if test "${ac_cv_lib_z_uncompress+set}" = set; then
8096 $as_echo_n "(cached) " >&6
8098 ac_check_lib_save_LIBS=$LIBS
8100 cat >conftest.$ac_ext <<_ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8107 /* Override any GCC internal prototype to avoid an error.
8108 Use char because int might match the return type of a GCC
8109 builtin and then its argument prototype would still apply. */
8117 return uncompress ();
8122 rm -f conftest.$ac_objext conftest$ac_exeext
8123 if { (ac_try="$ac_link"
8125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8126 *) ac_try_echo=$ac_try;;
8128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8129 $as_echo "$ac_try_echo") >&5
8130 (eval "$ac_link") 2>conftest.er1
8132 grep -v '^ *+' conftest.er1 >conftest.err
8134 cat conftest.err >&5
8135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } && {
8137 test -z "$ac_c_werror_flag" ||
8138 test ! -s conftest.err
8139 } && test -s conftest$ac_exeext && {
8140 test "$cross_compiling" = yes ||
8141 $as_test_x conftest$ac_exeext
8143 ac_cv_lib_z_uncompress=yes
8145 $as_echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.$ac_ext >&5
8148 ac_cv_lib_z_uncompress=no
8151 rm -rf conftest.dSYM
8152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8153 conftest$ac_exeext conftest.$ac_ext
8154 LIBS=$ac_check_lib_save_LIBS
8156 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
8157 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
8158 if test $ac_cv_lib_z_uncompress = yes; then
8159 cat >>confdefs.h <<_ACEOF
8167 echo "Zlib (libz.so) could not be found, but is required."
8172 if test "x$with_gtk" = "xno"; then
8175 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
8176 $as_echo_n "checking for GLIB... " >&6; }
8178 if test -n "$GLIB_CFLAGS"; then
8179 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8180 elif test -n "$PKG_CONFIG"; then
8181 if test -n "$PKG_CONFIG" && \
8182 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8183 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; then
8187 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
8194 if test -n "$GLIB_LIBS"; then
8195 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8196 elif test -n "$PKG_CONFIG"; then
8197 if test -n "$PKG_CONFIG" && \
8198 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8199 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; then
8203 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
8213 if test $pkg_failed = yes; then
8215 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8216 _pkg_short_errors_supported=yes
8218 _pkg_short_errors_supported=no
8220 if test $_pkg_short_errors_supported = yes; then
8221 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
8223 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
8225 # Put the nasty error message in config.log where it belongs
8226 echo "$GLIB_PKG_ERRORS" >&5
8228 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
8232 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8233 installed software in a non-standard prefix.
8235 Alternatively, you may set the environment variables GLIB_CFLAGS
8236 and GLIB_LIBS to avoid the need to call pkg-config.
8237 See the pkg-config man page for more details.
8239 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
8243 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8244 installed software in a non-standard prefix.
8246 Alternatively, you may set the environment variables GLIB_CFLAGS
8247 and GLIB_LIBS to avoid the need to call pkg-config.
8248 See the pkg-config man page for more details.
8250 { (exit 1); exit 1; }; }
8251 elif test $pkg_failed = untried; then
8252 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8253 is in your PATH or set the PKG_CONFIG environment variable to the full
8256 Alternatively, you may set the environment variables GLIB_CFLAGS
8257 and GLIB_LIBS to avoid the need to call pkg-config.
8258 See the pkg-config man page for more details.
8260 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8261 See \`config.log' for more details." >&5
8262 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8263 is in your PATH or set the PKG_CONFIG environment variable to the full
8266 Alternatively, you may set the environment variables GLIB_CFLAGS
8267 and GLIB_LIBS to avoid the need to call pkg-config.
8268 See the pkg-config man page for more details.
8270 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8271 See \`config.log' for more details." >&2;}
8272 { (exit 1); exit 1; }; }
8274 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8275 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8276 { $as_echo "$as_me:$LINENO: result: yes" >&5
8277 $as_echo "yes" >&6; }
8283 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
8284 $as_echo_n "checking for GTK... " >&6; }
8286 if test -n "$GTK_CFLAGS"; then
8287 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8288 elif test -n "$PKG_CONFIG"; then
8289 if test -n "$PKG_CONFIG" && \
8290 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8291 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; then
8295 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
8302 if test -n "$GTK_LIBS"; then
8303 pkg_cv_GTK_LIBS="$GTK_LIBS"
8304 elif test -n "$PKG_CONFIG"; then
8305 if test -n "$PKG_CONFIG" && \
8306 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8307 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; then
8311 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
8321 if test $pkg_failed = yes; then
8323 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8324 _pkg_short_errors_supported=yes
8326 _pkg_short_errors_supported=no
8328 if test $_pkg_short_errors_supported = yes; then
8329 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
8331 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
8333 # Put the nasty error message in config.log where it belongs
8334 echo "$GTK_PKG_ERRORS" >&5
8336 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
8340 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8341 installed software in a non-standard prefix.
8343 Alternatively, you may set the environment variables GTK_CFLAGS
8344 and GTK_LIBS to avoid the need to call pkg-config.
8345 See the pkg-config man page for more details.
8347 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
8351 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8352 installed software in a non-standard prefix.
8354 Alternatively, you may set the environment variables GTK_CFLAGS
8355 and GTK_LIBS to avoid the need to call pkg-config.
8356 See the pkg-config man page for more details.
8358 { (exit 1); exit 1; }; }
8359 elif test $pkg_failed = untried; then
8360 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8361 is in your PATH or set the PKG_CONFIG environment variable to the full
8364 Alternatively, you may set the environment variables GTK_CFLAGS
8365 and GTK_LIBS to avoid the need to call pkg-config.
8366 See the pkg-config man page for more details.
8368 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8369 See \`config.log' for more details." >&5
8370 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8371 is in your PATH or set the PKG_CONFIG environment variable to the full
8374 Alternatively, you may set the environment variables GTK_CFLAGS
8375 and GTK_LIBS to avoid the need to call pkg-config.
8376 See the pkg-config man page for more details.
8378 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8379 See \`config.log' for more details." >&2;}
8380 { (exit 1); exit 1; }; }
8382 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
8383 GTK_LIBS=$pkg_cv_GTK_LIBS
8384 { $as_echo "$as_me:$LINENO: result: yes" >&5
8385 $as_echo "yes" >&6; }
8389 cat >>confdefs.h <<\_ACEOF
8396 LIBS="$LIBS $GTK_LIBS"
8397 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
8398 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
8399 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
8400 $as_echo_n "(cached) " >&6
8402 cat >conftest.$ac_ext <<_ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
8409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8410 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
8412 /* System header to define __stub macros and hopefully few prototypes,
8413 which can conflict with char gdk_x11_display_get_xdisplay (); below.
8414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8415 <limits.h> exists even on freestanding compilers. */
8418 # include <limits.h>
8420 # include <assert.h>
8423 #undef gdk_x11_display_get_xdisplay
8425 /* Override any GCC internal prototype to avoid an error.
8426 Use char because int might match the return type of a GCC
8427 builtin and then its argument prototype would still apply. */
8431 char gdk_x11_display_get_xdisplay ();
8432 /* The GNU C library defines this for functions which it implements
8433 to always fail with ENOSYS. Some functions are actually named
8434 something starting with __ and the normal name is an alias. */
8435 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
8442 return gdk_x11_display_get_xdisplay ();
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (ac_try="$ac_link"
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8454 $as_echo "$ac_try_echo") >&5
8455 (eval "$ac_link") 2>conftest.er1
8457 grep -v '^ *+' conftest.er1 >conftest.err
8459 cat conftest.err >&5
8460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest$ac_exeext && {
8465 test "$cross_compiling" = yes ||
8466 $as_test_x conftest$ac_exeext
8468 ac_cv_func_gdk_x11_display_get_xdisplay=yes
8470 $as_echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8473 ac_cv_func_gdk_x11_display_get_xdisplay=no
8476 rm -rf conftest.dSYM
8477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8478 conftest$ac_exeext conftest.$ac_ext
8480 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
8481 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
8482 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
8486 cat >>confdefs.h <<\_ACEOF
8487 #define HAVE_GTK_X11 1
8492 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
8493 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
8494 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
8495 $as_echo_n "(cached) " >&6
8497 cat >conftest.$ac_ext <<_ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8503 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
8504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8505 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
8507 /* System header to define __stub macros and hopefully few prototypes,
8508 which can conflict with char gdk_quartz_window_get_nsview (); below.
8509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8510 <limits.h> exists even on freestanding compilers. */
8513 # include <limits.h>
8515 # include <assert.h>
8518 #undef gdk_quartz_window_get_nsview
8520 /* Override any GCC internal prototype to avoid an error.
8521 Use char because int might match the return type of a GCC
8522 builtin and then its argument prototype would still apply. */
8526 char gdk_quartz_window_get_nsview ();
8527 /* The GNU C library defines this for functions which it implements
8528 to always fail with ENOSYS. Some functions are actually named
8529 something starting with __ and the normal name is an alias. */
8530 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
8537 return gdk_quartz_window_get_nsview ();
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (ac_try="$ac_link"
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8549 $as_echo "$ac_try_echo") >&5
8550 (eval "$ac_link") 2>conftest.er1
8552 grep -v '^ *+' conftest.er1 >conftest.err
8554 cat conftest.err >&5
8555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } && {
8557 test -z "$ac_c_werror_flag" ||
8558 test ! -s conftest.err
8559 } && test -s conftest$ac_exeext && {
8560 test "$cross_compiling" = yes ||
8561 $as_test_x conftest$ac_exeext
8563 ac_cv_func_gdk_quartz_window_get_nsview=yes
8565 $as_echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 ac_cv_func_gdk_quartz_window_get_nsview=no
8571 rm -rf conftest.dSYM
8572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8573 conftest$ac_exeext conftest.$ac_ext
8575 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
8576 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
8577 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
8581 cat >>confdefs.h <<\_ACEOF
8582 #define HAVE_GTK_OSX 1
8591 if test "$HAVE_GTK" = 'yes'; then
8600 if test "x$with_osmesa" != xno; then
8604 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
8605 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
8606 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
8607 $as_echo_n "(cached) " >&6
8609 ac_check_lib_save_LIBS=$LIBS
8610 LIBS="-lOSMesa $LIBS"
8611 cat >conftest.$ac_ext <<_ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8618 /* Override any GCC internal prototype to avoid an error.
8619 Use char because int might match the return type of a GCC
8620 builtin and then its argument prototype would still apply. */
8624 char OSMesaCreateContext ();
8628 return OSMesaCreateContext ();
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (ac_try="$ac_link"
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8640 $as_echo "$ac_try_echo") >&5
8641 (eval "$ac_link") 2>conftest.er1
8643 grep -v '^ *+' conftest.er1 >conftest.err
8645 cat conftest.err >&5
8646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && {
8648 test -z "$ac_c_werror_flag" ||
8649 test ! -s conftest.err
8650 } && test -s conftest$ac_exeext && {
8651 test "$cross_compiling" = yes ||
8652 $as_test_x conftest$ac_exeext
8654 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
8656 $as_echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 ac_cv_lib_OSMesa_OSMesaCreateContext=no
8662 rm -rf conftest.dSYM
8663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8664 conftest$ac_exeext conftest.$ac_ext
8665 LIBS=$ac_check_lib_save_LIBS
8667 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
8668 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
8669 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
8670 cat >>confdefs.h <<_ACEOF
8671 #define HAVE_LIBOSMESA 1
8674 LIBS="-lOSMesa $LIBS"
8677 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
8678 See \`config.log' for more details." >&5
8679 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
8680 See \`config.log' for more details." >&2;}
8681 { (exit 1); exit 1; }; }
8684 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8685 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
8686 $as_echo_n "checking for GL/osmesa.h... " >&6; }
8687 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8688 $as_echo_n "(cached) " >&6
8690 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
8691 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
8693 # Is the header compilable?
8694 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
8695 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
8696 cat >conftest.$ac_ext <<_ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 $ac_includes_default
8703 #include <GL/osmesa.h>
8705 rm -f conftest.$ac_objext
8706 if { (ac_try="$ac_compile"
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8712 $as_echo "$ac_try_echo") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8715 grep -v '^ *+' conftest.er1 >conftest.err
8717 cat conftest.err >&5
8718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } && {
8720 test -z "$ac_c_werror_flag" ||
8721 test ! -s conftest.err
8722 } && test -s conftest.$ac_objext; then
8723 ac_header_compiler=yes
8725 $as_echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 ac_header_compiler=no
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8733 $as_echo "$ac_header_compiler" >&6; }
8735 # Is the header present?
8736 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
8737 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
8738 cat >conftest.$ac_ext <<_ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 #include <GL/osmesa.h>
8746 if { (ac_try="$ac_cpp conftest.$ac_ext"
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8752 $as_echo "$ac_try_echo") >&5
8753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } >/dev/null && {
8760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8763 ac_header_preproc=yes
8765 $as_echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 ac_header_preproc=no
8771 rm -f conftest.err conftest.$ac_ext
8772 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8773 $as_echo "$ac_header_preproc" >&6; }
8775 # So? What about this header?
8776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8778 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
8779 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8780 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
8781 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
8782 ac_header_preproc=yes
8785 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
8786 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
8787 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
8788 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
8789 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
8790 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
8791 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
8792 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
8793 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
8794 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
8795 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
8796 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
8800 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
8801 $as_echo_n "checking for GL/osmesa.h... " >&6; }
8802 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8803 $as_echo_n "(cached) " >&6
8805 ac_cv_header_GL_osmesa_h=$ac_header_preproc
8807 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
8808 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
8811 if test $ac_cv_header_GL_osmesa_h = yes; then
8814 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
8815 See \`config.log' for more details." >&5
8816 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
8817 See \`config.log' for more details." >&2;}
8818 { (exit 1); exit 1; }; }
8823 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
8825 cat >>confdefs.h <<\_ACEOF
8826 #define HAVE_OSMESA 1
8832 if test "x$APPLE_BUILD" != 'xyes'; then
8834 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
8835 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
8836 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
8837 $as_echo_n "(cached) " >&6
8839 ac_check_lib_save_LIBS=$LIBS
8841 cat >conftest.$ac_ext <<_ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8848 /* Override any GCC internal prototype to avoid an error.
8849 Use char because int might match the return type of a GCC
8850 builtin and then its argument prototype would still apply. */
8858 return glVertex3f ();
8863 rm -f conftest.$ac_objext conftest$ac_exeext
8864 if { (ac_try="$ac_link"
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8870 $as_echo "$ac_try_echo") >&5
8871 (eval "$ac_link") 2>conftest.er1
8873 grep -v '^ *+' conftest.er1 >conftest.err
8875 cat conftest.err >&5
8876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } && {
8878 test -z "$ac_c_werror_flag" ||
8879 test ! -s conftest.err
8880 } && test -s conftest$ac_exeext && {
8881 test "$cross_compiling" = yes ||
8882 $as_test_x conftest$ac_exeext
8884 ac_cv_lib_GL_glVertex3f=yes
8886 $as_echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8889 ac_cv_lib_GL_glVertex3f=no
8892 rm -rf conftest.dSYM
8893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8894 conftest$ac_exeext conftest.$ac_ext
8895 LIBS=$ac_check_lib_save_LIBS
8897 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
8898 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
8899 if test $ac_cv_lib_GL_glVertex3f = yes; then
8900 cat >>confdefs.h <<_ACEOF
8901 #define HAVE_LIBGL 1
8908 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
8909 See \`config.log' for more details." >&5
8910 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
8911 See \`config.log' for more details." >&2;}
8912 { (exit 1); exit 1; }; }
8915 if test "${ac_cv_header_GL_gl_h+set}" = set; then
8916 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
8917 $as_echo_n "checking for GL/gl.h... " >&6; }
8918 if test "${ac_cv_header_GL_gl_h+set}" = set; then
8919 $as_echo_n "(cached) " >&6
8921 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
8922 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
8924 # Is the header compilable?
8925 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
8926 $as_echo_n "checking GL/gl.h usability... " >&6; }
8927 cat >conftest.$ac_ext <<_ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8933 $ac_includes_default
8936 rm -f conftest.$ac_objext
8937 if { (ac_try="$ac_compile"
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8943 $as_echo "$ac_try_echo") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8946 grep -v '^ *+' conftest.er1 >conftest.err
8948 cat conftest.err >&5
8949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } && {
8951 test -z "$ac_c_werror_flag" ||
8952 test ! -s conftest.err
8953 } && test -s conftest.$ac_objext; then
8954 ac_header_compiler=yes
8956 $as_echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8959 ac_header_compiler=no
8962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8964 $as_echo "$ac_header_compiler" >&6; }
8966 # Is the header present?
8967 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
8968 $as_echo_n "checking GL/gl.h presence... " >&6; }
8969 cat >conftest.$ac_ext <<_ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8977 if { (ac_try="$ac_cpp conftest.$ac_ext"
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8983 $as_echo "$ac_try_echo") >&5
8984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8986 grep -v '^ *+' conftest.er1 >conftest.err
8988 cat conftest.err >&5
8989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } >/dev/null && {
8991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8992 test ! -s conftest.err
8994 ac_header_preproc=yes
8996 $as_echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 ac_header_preproc=no
9002 rm -f conftest.err conftest.$ac_ext
9003 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9004 $as_echo "$ac_header_preproc" >&6; }
9006 # So? What about this header?
9007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9009 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9010 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9011 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
9012 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
9013 ac_header_preproc=yes
9016 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
9017 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
9018 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
9019 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
9020 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
9021 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
9022 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
9023 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9024 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
9025 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
9026 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
9027 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
9031 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9032 $as_echo_n "checking for GL/gl.h... " >&6; }
9033 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9034 $as_echo_n "(cached) " >&6
9036 ac_cv_header_GL_gl_h=$ac_header_preproc
9038 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9039 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9042 if test $ac_cv_header_GL_gl_h = yes; then
9046 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9047 See \`config.log' for more details." >&5
9048 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9049 See \`config.log' for more details." >&2;}
9050 { (exit 1); exit 1; }; }
9055 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
9056 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
9057 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
9058 $as_echo_n "(cached) " >&6
9060 cat >conftest.$ac_ext <<_ACEOF
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9066 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
9067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9068 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
9070 /* System header to define __stub macros and hopefully few prototypes,
9071 which can conflict with char NSOpenGLGetVersion (); below.
9072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9073 <limits.h> exists even on freestanding compilers. */
9076 # include <limits.h>
9078 # include <assert.h>
9081 #undef NSOpenGLGetVersion
9083 /* Override any GCC internal prototype to avoid an error.
9084 Use char because int might match the return type of a GCC
9085 builtin and then its argument prototype would still apply. */
9089 char NSOpenGLGetVersion ();
9090 /* The GNU C library defines this for functions which it implements
9091 to always fail with ENOSYS. Some functions are actually named
9092 something starting with __ and the normal name is an alias. */
9093 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
9100 return NSOpenGLGetVersion ();
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (ac_try="$ac_link"
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9112 $as_echo "$ac_try_echo") >&5
9113 (eval "$ac_link") 2>conftest.er1
9115 grep -v '^ *+' conftest.er1 >conftest.err
9117 cat conftest.err >&5
9118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } && {
9120 test -z "$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 } && test -s conftest$ac_exeext && {
9123 test "$cross_compiling" = yes ||
9124 $as_test_x conftest$ac_exeext
9126 ac_cv_func_NSOpenGLGetVersion=yes
9128 $as_echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9131 ac_cv_func_NSOpenGLGetVersion=no
9134 rm -rf conftest.dSYM
9135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9136 conftest$ac_exeext conftest.$ac_ext
9138 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
9139 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
9140 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
9143 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
9145 cat >>confdefs.h <<\_ACEOF
9153 if test "x$HAVE_GTK_X11" = "xyes"; then
9154 if test "x$APPLE_BUILD" = "xyes"; then
9155 LIBS="$LIBS -L/usr/X11/lib -lGL"
9157 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
9158 $as_echo_n "checking for glXQueryVersion... " >&6; }
9159 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
9160 $as_echo_n "(cached) " >&6
9162 cat >conftest.$ac_ext <<_ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9168 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
9169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9170 #define glXQueryVersion innocuous_glXQueryVersion
9172 /* System header to define __stub macros and hopefully few prototypes,
9173 which can conflict with char glXQueryVersion (); below.
9174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9175 <limits.h> exists even on freestanding compilers. */
9178 # include <limits.h>
9180 # include <assert.h>
9183 #undef glXQueryVersion
9185 /* Override any GCC internal prototype to avoid an error.
9186 Use char because int might match the return type of a GCC
9187 builtin and then its argument prototype would still apply. */
9191 char glXQueryVersion ();
9192 /* The GNU C library defines this for functions which it implements
9193 to always fail with ENOSYS. Some functions are actually named
9194 something starting with __ and the normal name is an alias. */
9195 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
9202 return glXQueryVersion ();
9207 rm -f conftest.$ac_objext conftest$ac_exeext
9208 if { (ac_try="$ac_link"
9210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9214 $as_echo "$ac_try_echo") >&5
9215 (eval "$ac_link") 2>conftest.er1
9217 grep -v '^ *+' conftest.er1 >conftest.err
9219 cat conftest.err >&5
9220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } && {
9222 test -z "$ac_c_werror_flag" ||
9223 test ! -s conftest.err
9224 } && test -s conftest$ac_exeext && {
9225 test "$cross_compiling" = yes ||
9226 $as_test_x conftest$ac_exeext
9228 ac_cv_func_glXQueryVersion=yes
9230 $as_echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9233 ac_cv_func_glXQueryVersion=no
9236 rm -rf conftest.dSYM
9237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9238 conftest$ac_exeext conftest.$ac_ext
9240 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
9241 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
9242 if test $ac_cv_func_glXQueryVersion = yes; then
9245 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
9247 cat >>confdefs.h <<\_ACEOF
9263 if test "x$HAVE_OSMESA" = "xyes"; then
9265 VIDEO_OSMESA_FALSE='#'
9267 VIDEO_OSMESA_TRUE='#'
9273 if test "x$HAVE_GLX" = "xyes"; then
9283 if test "x$HAVE_NSGL" = "xyes"; then
9285 VIDEO_NSGL_FALSE='#'
9292 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
9293 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
9294 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
9295 $as_echo_n "(cached) " >&6
9297 cat >conftest.$ac_ext <<_ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9303 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
9304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9305 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
9307 /* System header to define __stub macros and hopefully few prototypes,
9308 which can conflict with char glGenFramebuffersEXT (); below.
9309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9310 <limits.h> exists even on freestanding compilers. */
9313 # include <limits.h>
9315 # include <assert.h>
9318 #undef glGenFramebuffersEXT
9320 /* Override any GCC internal prototype to avoid an error.
9321 Use char because int might match the return type of a GCC
9322 builtin and then its argument prototype would still apply. */
9326 char glGenFramebuffersEXT ();
9327 /* The GNU C library defines this for functions which it implements
9328 to always fail with ENOSYS. Some functions are actually named
9329 something starting with __ and the normal name is an alias. */
9330 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
9337 return glGenFramebuffersEXT ();
9342 rm -f conftest.$ac_objext conftest$ac_exeext
9343 if { (ac_try="$ac_link"
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9349 $as_echo "$ac_try_echo") >&5
9350 (eval "$ac_link") 2>conftest.er1
9352 grep -v '^ *+' conftest.er1 >conftest.err
9354 cat conftest.err >&5
9355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } && {
9357 test -z "$ac_c_werror_flag" ||
9358 test ! -s conftest.err
9359 } && test -s conftest$ac_exeext && {
9360 test "$cross_compiling" = yes ||
9361 $as_test_x conftest$ac_exeext
9363 ac_cv_func_glGenFramebuffersEXT=yes
9365 $as_echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9368 ac_cv_func_glGenFramebuffersEXT=no
9371 rm -rf conftest.dSYM
9372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9373 conftest$ac_exeext conftest.$ac_ext
9375 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
9376 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
9377 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
9379 cat >>confdefs.h <<\_ACEOF
9380 #define HAVE_OPENGL_FBO 1
9385 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
9386 $as_echo_n "checking for glCreateShader... " >&6; }
9387 if test "${ac_cv_func_glCreateShader+set}" = set; then
9388 $as_echo_n "(cached) " >&6
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
9397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9398 #define glCreateShader innocuous_glCreateShader
9400 /* System header to define __stub macros and hopefully few prototypes,
9401 which can conflict with char glCreateShader (); below.
9402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9403 <limits.h> exists even on freestanding compilers. */
9406 # include <limits.h>
9408 # include <assert.h>
9411 #undef glCreateShader
9413 /* Override any GCC internal prototype to avoid an error.
9414 Use char because int might match the return type of a GCC
9415 builtin and then its argument prototype would still apply. */
9419 char glCreateShader ();
9420 /* The GNU C library defines this for functions which it implements
9421 to always fail with ENOSYS. Some functions are actually named
9422 something starting with __ and the normal name is an alias. */
9423 #if defined __stub_glCreateShader || defined __stub___glCreateShader
9430 return glCreateShader ();
9435 rm -f conftest.$ac_objext conftest$ac_exeext
9436 if { (ac_try="$ac_link"
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9442 $as_echo "$ac_try_echo") >&5
9443 (eval "$ac_link") 2>conftest.er1
9445 grep -v '^ *+' conftest.er1 >conftest.err
9447 cat conftest.err >&5
9448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest$ac_exeext && {
9453 test "$cross_compiling" = yes ||
9454 $as_test_x conftest$ac_exeext
9456 ac_cv_func_glCreateShader=yes
9458 $as_echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9461 ac_cv_func_glCreateShader=no
9464 rm -rf conftest.dSYM
9465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9466 conftest$ac_exeext conftest.$ac_ext
9468 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
9469 $as_echo "$ac_cv_func_glCreateShader" >&6; }
9470 if test $ac_cv_func_glCreateShader = yes; then
9472 cat >>confdefs.h <<\_ACEOF
9473 #define HAVE_OPENGL_SHADER 1
9478 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
9479 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
9480 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
9481 $as_echo_n "(cached) " >&6
9483 cat >conftest.$ac_ext <<_ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9489 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
9490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9491 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
9493 /* System header to define __stub macros and hopefully few prototypes,
9494 which can conflict with char glCreateShaderObjectARB (); below.
9495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9496 <limits.h> exists even on freestanding compilers. */
9499 # include <limits.h>
9501 # include <assert.h>
9504 #undef glCreateShaderObjectARB
9506 /* Override any GCC internal prototype to avoid an error.
9507 Use char because int might match the return type of a GCC
9508 builtin and then its argument prototype would still apply. */
9512 char glCreateShaderObjectARB ();
9513 /* The GNU C library defines this for functions which it implements
9514 to always fail with ENOSYS. Some functions are actually named
9515 something starting with __ and the normal name is an alias. */
9516 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
9523 return glCreateShaderObjectARB ();
9528 rm -f conftest.$ac_objext conftest$ac_exeext
9529 if { (ac_try="$ac_link"
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9535 $as_echo "$ac_try_echo") >&5
9536 (eval "$ac_link") 2>conftest.er1
9538 grep -v '^ *+' conftest.er1 >conftest.err
9540 cat conftest.err >&5
9541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest$ac_exeext && {
9546 test "$cross_compiling" = yes ||
9547 $as_test_x conftest$ac_exeext
9549 ac_cv_func_glCreateShaderObjectARB=yes
9551 $as_echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_cv_func_glCreateShaderObjectARB=no
9557 rm -rf conftest.dSYM
9558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9559 conftest$ac_exeext conftest.$ac_ext
9561 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
9562 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
9563 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
9565 cat >>confdefs.h <<\_ACEOF
9566 #define HAVE_OPENGL_SHADER_ARB 1
9571 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
9572 $as_echo_n "checking for glClampColorARB... " >&6; }
9573 if test "${ac_cv_func_glClampColorARB+set}" = set; then
9574 $as_echo_n "(cached) " >&6
9576 cat >conftest.$ac_ext <<_ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9582 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
9583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9584 #define glClampColorARB innocuous_glClampColorARB
9586 /* System header to define __stub macros and hopefully few prototypes,
9587 which can conflict with char glClampColorARB (); below.
9588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9589 <limits.h> exists even on freestanding compilers. */
9592 # include <limits.h>
9594 # include <assert.h>
9597 #undef glClampColorARB
9599 /* Override any GCC internal prototype to avoid an error.
9600 Use char because int might match the return type of a GCC
9601 builtin and then its argument prototype would still apply. */
9605 char glClampColorARB ();
9606 /* The GNU C library defines this for functions which it implements
9607 to always fail with ENOSYS. Some functions are actually named
9608 something starting with __ and the normal name is an alias. */
9609 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
9616 return glClampColorARB ();
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (ac_try="$ac_link"
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9628 $as_echo "$ac_try_echo") >&5
9629 (eval "$ac_link") 2>conftest.er1
9631 grep -v '^ *+' conftest.er1 >conftest.err
9633 cat conftest.err >&5
9634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } && {
9636 test -z "$ac_c_werror_flag" ||
9637 test ! -s conftest.err
9638 } && test -s conftest$ac_exeext && {
9639 test "$cross_compiling" = yes ||
9640 $as_test_x conftest$ac_exeext
9642 ac_cv_func_glClampColorARB=yes
9644 $as_echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9647 ac_cv_func_glClampColorARB=no
9650 rm -rf conftest.dSYM
9651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9652 conftest$ac_exeext conftest.$ac_ext
9654 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
9655 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
9656 if test $ac_cv_func_glClampColorARB = yes; then
9658 cat >>confdefs.h <<\_ACEOF
9659 #define HAVE_OPENGL_CLAMP_COLOR 1
9667 if test "x$enable_translator" != "xno"; then
9669 i386|i486|i586|i686|x86_64)
9670 SH4_TRANSLATOR="x86"
9672 cat >>confdefs.h <<_ACEOF
9673 #define SH4_TRANSLATOR TARGET_X86
9680 if test "$SH4_TRANSLATOR" = "x86"; then
9682 BUILD_SH4X86_FALSE='#'
9684 BUILD_SH4X86_TRUE='#'
9689 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9690 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
9691 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
9692 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9693 $as_echo_n "(cached) " >&6
9695 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
9696 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
9698 # Is the header compilable?
9699 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
9700 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
9701 cat >conftest.$ac_ext <<_ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9708 #include <CoreAudio/CoreAudio.h>
9710 rm -f conftest.$ac_objext
9711 if { (ac_try="$ac_compile"
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9717 $as_echo "$ac_try_echo") >&5
9718 (eval "$ac_compile") 2>conftest.er1
9720 grep -v '^ *+' conftest.er1 >conftest.err
9722 cat conftest.err >&5
9723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } && {
9725 test -z "$ac_c_werror_flag" ||
9726 test ! -s conftest.err
9727 } && test -s conftest.$ac_objext; then
9728 ac_header_compiler=yes
9730 $as_echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9733 ac_header_compiler=no
9736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9737 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9738 $as_echo "$ac_header_compiler" >&6; }
9740 # Is the header present?
9741 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
9742 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
9743 cat >conftest.$ac_ext <<_ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9749 #include <CoreAudio/CoreAudio.h>
9751 if { (ac_try="$ac_cpp conftest.$ac_ext"
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9757 $as_echo "$ac_try_echo") >&5
9758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9760 grep -v '^ *+' conftest.er1 >conftest.err
9762 cat conftest.err >&5
9763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } >/dev/null && {
9765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9766 test ! -s conftest.err
9768 ac_header_preproc=yes
9770 $as_echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9773 ac_header_preproc=no
9776 rm -f conftest.err conftest.$ac_ext
9777 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9778 $as_echo "$ac_header_preproc" >&6; }
9780 # So? What about this header?
9781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9783 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9784 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9785 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
9786 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
9787 ac_header_preproc=yes
9790 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
9791 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
9792 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
9793 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
9794 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
9795 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
9796 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
9797 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
9798 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
9799 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
9800 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
9801 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
9805 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
9806 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
9807 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9808 $as_echo_n "(cached) " >&6
9810 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
9812 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
9813 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
9816 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
9819 LIBS="$LIBS -framework CoreAudio"
9820 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
9822 cat >>confdefs.h <<\_ACEOF
9823 #define HAVE_CORE_AUDIO 1
9833 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
9842 if test "x$with_pulse" != "xno"; then
9845 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
9846 $as_echo_n "checking for PULSE... " >&6; }
9848 if test -n "$PULSE_CFLAGS"; then
9849 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
9850 elif test -n "$PKG_CONFIG"; then
9851 if test -n "$PKG_CONFIG" && \
9852 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
9853 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
9855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; then
9857 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
9864 if test -n "$PULSE_LIBS"; then
9865 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
9866 elif test -n "$PKG_CONFIG"; then
9867 if test -n "$PKG_CONFIG" && \
9868 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
9869 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
9871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; then
9873 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
9883 if test $pkg_failed = yes; then
9885 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9886 _pkg_short_errors_supported=yes
9888 _pkg_short_errors_supported=no
9890 if test $_pkg_short_errors_supported = yes; then
9891 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
9893 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
9895 # Put the nasty error message in config.log where it belongs
9896 echo "$PULSE_PKG_ERRORS" >&5
9898 { $as_echo "$as_me:$LINENO: result: no" >&5
9899 $as_echo "no" >&6; }
9901 if test "x$with_pulse" = "xyes"; then
9902 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
9903 See \`config.log' for more details." >&5
9904 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
9905 See \`config.log' for more details." >&2;}
9906 { (exit 1); exit 1; }; }
9909 elif test $pkg_failed = untried; then
9911 if test "x$with_pulse" = "xyes"; then
9912 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
9913 See \`config.log' for more details." >&5
9914 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
9915 See \`config.log' for more details." >&2;}
9916 { (exit 1); exit 1; }; }
9920 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
9921 PULSE_LIBS=$pkg_cv_PULSE_LIBS
9922 { $as_echo "$as_me:$LINENO: result: yes" >&5
9923 $as_echo "yes" >&6; }
9926 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
9928 cat >>confdefs.h <<\_ACEOF
9929 #define HAVE_PULSE 1
9937 if test "$HAVE_PULSE" = 'yes' ; then
9939 AUDIO_PULSE_FALSE='#'
9941 AUDIO_PULSE_TRUE='#'
9946 if test "x$with_esd" != "xno"; then
9949 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
9950 $as_echo_n "checking for ESOUND... " >&6; }
9952 if test -n "$ESOUND_CFLAGS"; then
9953 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
9954 elif test -n "$PKG_CONFIG"; then
9955 if test -n "$PKG_CONFIG" && \
9956 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
9957 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
9959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; then
9961 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
9968 if test -n "$ESOUND_LIBS"; then
9969 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
9970 elif test -n "$PKG_CONFIG"; then
9971 if test -n "$PKG_CONFIG" && \
9972 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
9973 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
9975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; then
9977 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
9987 if test $pkg_failed = yes; then
9989 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9990 _pkg_short_errors_supported=yes
9992 _pkg_short_errors_supported=no
9994 if test $_pkg_short_errors_supported = yes; then
9995 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
9997 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
9999 # Put the nasty error message in config.log where it belongs
10000 echo "$ESOUND_PKG_ERRORS" >&5
10002 { $as_echo "$as_me:$LINENO: result: no" >&5
10003 $as_echo "no" >&6; }
10005 if test "x$with_esd" = "xyes"; then
10006 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10007 See \`config.log' for more details." >&5
10008 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10009 See \`config.log' for more details." >&2;}
10010 { (exit 1); exit 1; }; }
10013 elif test $pkg_failed = untried; then
10015 if test "x$with_esd" = "xyes"; then
10016 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10017 See \`config.log' for more details." >&5
10018 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10019 See \`config.log' for more details." >&2;}
10020 { (exit 1); exit 1; }; }
10024 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
10025 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
10026 { $as_echo "$as_me:$LINENO: result: yes" >&5
10027 $as_echo "yes" >&6; }
10030 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
10032 cat >>confdefs.h <<\_ACEOF
10033 #define HAVE_ESOUND 1
10041 if test "$HAVE_ESOUND" = 'yes' ; then
10043 AUDIO_ESOUND_FALSE='#'
10045 AUDIO_ESOUND_TRUE='#'
10046 AUDIO_ESOUND_FALSE=
10052 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
10053 $as_echo_n "checking for ALSA... " >&6; }
10055 if test -n "$ALSA_CFLAGS"; then
10056 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
10057 elif test -n "$PKG_CONFIG"; then
10058 if test -n "$PKG_CONFIG" && \
10059 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10060 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; then
10064 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
10071 if test -n "$ALSA_LIBS"; then
10072 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
10073 elif test -n "$PKG_CONFIG"; then
10074 if test -n "$PKG_CONFIG" && \
10075 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10076 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; then
10080 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
10090 if test $pkg_failed = yes; then
10092 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10093 _pkg_short_errors_supported=yes
10095 _pkg_short_errors_supported=no
10097 if test $_pkg_short_errors_supported = yes; then
10098 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
10100 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
10102 # Put the nasty error message in config.log where it belongs
10103 echo "$ALSA_PKG_ERRORS" >&5
10105 { $as_echo "$as_me:$LINENO: result: no" >&5
10106 $as_echo "no" >&6; }
10108 elif test $pkg_failed = untried; then
10111 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
10112 ALSA_LIBS=$pkg_cv_ALSA_LIBS
10113 { $as_echo "$as_me:$LINENO: result: yes" >&5
10114 $as_echo "yes" >&6; }
10117 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
10119 cat >>confdefs.h <<\_ACEOF
10120 #define HAVE_ALSA 1
10126 if test "$HAVE_ALSA" = 'yes' ; then
10128 AUDIO_ALSA_FALSE='#'
10130 AUDIO_ALSA_TRUE='#'
10136 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10137 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10138 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10139 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10140 $as_echo_n "(cached) " >&6
10142 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10143 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10145 # Is the header compilable?
10146 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
10147 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
10148 cat >conftest.$ac_ext <<_ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10154 $ac_includes_default
10155 #include <linux/cdrom.h>
10157 rm -f conftest.$ac_objext
10158 if { (ac_try="$ac_compile"
10159 case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10164 $as_echo "$ac_try_echo") >&5
10165 (eval "$ac_compile") 2>conftest.er1
10167 grep -v '^ *+' conftest.er1 >conftest.err
10169 cat conftest.err >&5
10170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && {
10172 test -z "$ac_c_werror_flag" ||
10173 test ! -s conftest.err
10174 } && test -s conftest.$ac_objext; then
10175 ac_header_compiler=yes
10177 $as_echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10180 ac_header_compiler=no
10183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10184 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10185 $as_echo "$ac_header_compiler" >&6; }
10187 # Is the header present?
10188 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
10189 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
10190 cat >conftest.$ac_ext <<_ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10196 #include <linux/cdrom.h>
10198 if { (ac_try="$ac_cpp conftest.$ac_ext"
10199 case "(($ac_try" in
10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10204 $as_echo "$ac_try_echo") >&5
10205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10207 grep -v '^ *+' conftest.er1 >conftest.err
10209 cat conftest.err >&5
10210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } >/dev/null && {
10212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10213 test ! -s conftest.err
10215 ac_header_preproc=yes
10217 $as_echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10220 ac_header_preproc=no
10223 rm -f conftest.err conftest.$ac_ext
10224 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10225 $as_echo "$ac_header_preproc" >&6; }
10227 # So? What about this header?
10228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10230 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
10231 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10232 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
10233 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
10234 ac_header_preproc=yes
10237 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
10238 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
10239 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
10240 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
10241 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
10242 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
10243 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
10244 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
10245 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
10246 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
10247 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
10248 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
10252 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10253 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10254 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10255 $as_echo_n "(cached) " >&6
10257 ac_cv_header_linux_cdrom_h=$ac_header_preproc
10259 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10260 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10263 if test $ac_cv_header_linux_cdrom_h = yes; then
10270 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10271 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10272 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
10273 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10274 $as_echo_n "(cached) " >&6
10276 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10277 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10279 # Is the header compilable?
10280 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
10281 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 $ac_includes_default
10289 #include <IOKit/IOKitLib.h>
10291 rm -f conftest.$ac_objext
10292 if { (ac_try="$ac_compile"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10298 $as_echo "$ac_try_echo") >&5
10299 (eval "$ac_compile") 2>conftest.er1
10301 grep -v '^ *+' conftest.er1 >conftest.err
10303 cat conftest.err >&5
10304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } && {
10306 test -z "$ac_c_werror_flag" ||
10307 test ! -s conftest.err
10308 } && test -s conftest.$ac_objext; then
10309 ac_header_compiler=yes
10311 $as_echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 ac_header_compiler=no
10317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10318 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10319 $as_echo "$ac_header_compiler" >&6; }
10321 # Is the header present?
10322 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
10323 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
10324 cat >conftest.$ac_ext <<_ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 #include <IOKit/IOKitLib.h>
10332 if { (ac_try="$ac_cpp conftest.$ac_ext"
10333 case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10338 $as_echo "$ac_try_echo") >&5
10339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10341 grep -v '^ *+' conftest.er1 >conftest.err
10343 cat conftest.err >&5
10344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } >/dev/null && {
10346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10347 test ! -s conftest.err
10349 ac_header_preproc=yes
10351 $as_echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10354 ac_header_preproc=no
10357 rm -f conftest.err conftest.$ac_ext
10358 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10359 $as_echo "$ac_header_preproc" >&6; }
10361 # So? What about this header?
10362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10364 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10365 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10366 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
10367 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
10368 ac_header_preproc=yes
10371 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
10372 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
10373 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
10374 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
10375 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
10376 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
10377 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
10378 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10379 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
10380 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
10381 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
10382 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
10386 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10387 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
10388 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10389 $as_echo_n "(cached) " >&6
10391 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
10393 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10394 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10397 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
10400 LIBS="$LIBS -framework IOKit"
10408 if test "x$CDROM_DRIVER" = "xlinux"; then
10410 CDROM_LINUX_FALSE='#'
10412 CDROM_LINUX_TRUE='#'
10418 if test "x$CDROM_DRIVER" = "xosx"; then
10420 CDROM_OSX_FALSE='#'
10428 if test "x$CDROM_DRIVER" = "x"; then
10430 CDROM_NONE_FALSE='#'
10432 CDROM_NONE_TRUE='#'
10437 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10438 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
10439 $as_echo_n "checking for linux/joystick.h... " >&6; }
10440 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10441 $as_echo_n "(cached) " >&6
10443 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
10444 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
10446 # Is the header compilable?
10447 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
10448 $as_echo_n "checking linux/joystick.h usability... " >&6; }
10449 cat >conftest.$ac_ext <<_ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h. */
10455 $ac_includes_default
10456 #include <linux/joystick.h>
10458 rm -f conftest.$ac_objext
10459 if { (ac_try="$ac_compile"
10460 case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10465 $as_echo "$ac_try_echo") >&5
10466 (eval "$ac_compile") 2>conftest.er1
10468 grep -v '^ *+' conftest.er1 >conftest.err
10470 cat conftest.err >&5
10471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } && {
10473 test -z "$ac_c_werror_flag" ||
10474 test ! -s conftest.err
10475 } && test -s conftest.$ac_objext; then
10476 ac_header_compiler=yes
10478 $as_echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 ac_header_compiler=no
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10486 $as_echo "$ac_header_compiler" >&6; }
10488 # Is the header present?
10489 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
10490 $as_echo_n "checking linux/joystick.h presence... " >&6; }
10491 cat >conftest.$ac_ext <<_ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 #include <linux/joystick.h>
10499 if { (ac_try="$ac_cpp conftest.$ac_ext"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10505 $as_echo "$ac_try_echo") >&5
10506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10508 grep -v '^ *+' conftest.er1 >conftest.err
10510 cat conftest.err >&5
10511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } >/dev/null && {
10513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10514 test ! -s conftest.err
10516 ac_header_preproc=yes
10518 $as_echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10521 ac_header_preproc=no
10524 rm -f conftest.err conftest.$ac_ext
10525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10526 $as_echo "$ac_header_preproc" >&6; }
10528 # So? What about this header?
10529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10531 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
10532 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10533 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
10534 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
10535 ac_header_preproc=yes
10538 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
10539 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
10540 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
10541 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
10542 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
10543 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
10544 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
10545 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
10546 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
10547 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
10548 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
10549 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
10553 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
10554 $as_echo_n "checking for linux/joystick.h... " >&6; }
10555 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10556 $as_echo_n "(cached) " >&6
10558 ac_cv_header_linux_joystick_h=$ac_header_preproc
10560 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
10561 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
10564 if test $ac_cv_header_linux_joystick_h = yes; then
10566 HAVE_LINUX_JOYSTICK_H=yes
10568 cat >>confdefs.h <<\_ACEOF
10569 #define HAVE_LINUX_JOYSTICK 1
10573 echo "Linux Joystick support not found, building without it."
10579 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
10581 JOY_LINUX_FALSE='#'
10588 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
10589 set dummy sh-elf-gcc; ac_word=$2
10590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10591 $as_echo_n "checking for $ac_word... " >&6; }
10592 if test "${ac_cv_path_SHCC+set}" = set; then
10593 $as_echo_n "(cached) " >&6
10597 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
10600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601 for as_dir in $PATH
10604 test -z "$as_dir" && as_dir=.
10605 for ac_exec_ext in '' $ac_executable_extensions; do
10606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10607 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
10608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10618 SHCC=$ac_cv_path_SHCC
10619 if test -n "$SHCC"; then
10620 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
10621 $as_echo "$SHCC" >&6; }
10623 { $as_echo "$as_me:$LINENO: result: no" >&5
10624 $as_echo "no" >&6; }
10628 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
10629 set dummy sh-elf-ld; ac_word=$2
10630 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10631 $as_echo_n "checking for $ac_word... " >&6; }
10632 if test "${ac_cv_path_SHLD+set}" = set; then
10633 $as_echo_n "(cached) " >&6
10637 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
10640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641 for as_dir in $PATH
10644 test -z "$as_dir" && as_dir=.
10645 for ac_exec_ext in '' $ac_executable_extensions; do
10646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10647 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
10648 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10658 SHLD=$ac_cv_path_SHLD
10659 if test -n "$SHLD"; then
10660 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
10661 $as_echo "$SHLD" >&6; }
10663 { $as_echo "$as_me:$LINENO: result: no" >&5
10664 $as_echo "no" >&6; }
10668 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
10669 set dummy sh-elf-objcopy; ac_word=$2
10670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10671 $as_echo_n "checking for $ac_word... " >&6; }
10672 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
10673 $as_echo_n "(cached) " >&6
10677 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
10680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681 for as_dir in $PATH
10684 test -z "$as_dir" && as_dir=.
10685 for ac_exec_ext in '' $ac_executable_extensions; do
10686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10687 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
10688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
10699 if test -n "$SHOBJCOPY"; then
10700 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
10701 $as_echo "$SHOBJCOPY" >&6; }
10703 { $as_echo "$as_me:$LINENO: result: no" >&5
10704 $as_echo "no" >&6; }
10708 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
10709 set dummy arm-elf-gcc; ac_word=$2
10710 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10711 $as_echo_n "checking for $ac_word... " >&6; }
10712 if test "${ac_cv_path_ARMCC+set}" = set; then
10713 $as_echo_n "(cached) " >&6
10717 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
10720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721 for as_dir in $PATH
10724 test -z "$as_dir" && as_dir=.
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10727 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
10728 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 ARMCC=$ac_cv_path_ARMCC
10739 if test -n "$ARMCC"; then
10740 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
10741 $as_echo "$ARMCC" >&6; }
10743 { $as_echo "$as_me:$LINENO: result: no" >&5
10744 $as_echo "no" >&6; }
10748 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
10749 set dummy arm-elf-ld; ac_word=$2
10750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10751 $as_echo_n "checking for $ac_word... " >&6; }
10752 if test "${ac_cv_path_ARMLD+set}" = set; then
10753 $as_echo_n "(cached) " >&6
10757 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10767 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
10768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10778 ARMLD=$ac_cv_path_ARMLD
10779 if test -n "$ARMLD"; then
10780 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
10781 $as_echo "$ARMLD" >&6; }
10783 { $as_echo "$as_me:$LINENO: result: no" >&5
10784 $as_echo "no" >&6; }
10788 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
10789 set dummy arm-elf-objcopy; ac_word=$2
10790 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10791 $as_echo_n "checking for $ac_word... " >&6; }
10792 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
10793 $as_echo_n "(cached) " >&6
10795 case $ARMOBJCOPY in
10797 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10807 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
10808 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
10819 if test -n "$ARMOBJCOPY"; then
10820 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
10821 $as_echo "$ARMOBJCOPY" >&6; }
10823 { $as_echo "$as_me:$LINENO: result: no" >&5
10824 $as_echo "no" >&6; }
10829 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
10831 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
10835 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
10837 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
10843 if test "$BUILD_SH" = "yes"; then
10844 BUILD_SYSTEST_TRUE=
10845 BUILD_SYSTEST_FALSE='#'
10847 BUILD_SYSTEST_TRUE='#'
10848 BUILD_SYSTEST_FALSE=
10853 if test "$BUILD_ARM" = "yes"; then
10854 BUILD_ARMTEST_TRUE=
10855 BUILD_ARMTEST_FALSE='#'
10857 BUILD_ARMTEST_TRUE='#'
10858 BUILD_ARMTEST_FALSE=
10863 GETTEXT_PACKAGE=lxdream
10866 cat >>confdefs.h <<_ACEOF
10867 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
10871 ALL_LINGUAS="de es it pt_BR"
10874 for ac_header in locale.h
10876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10878 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10879 $as_echo_n "checking for $ac_header... " >&6; }
10880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10881 $as_echo_n "(cached) " >&6
10883 ac_res=`eval 'as_val=${'$as_ac_Header'}
10884 $as_echo "$as_val"'`
10885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10886 $as_echo "$ac_res" >&6; }
10888 # Is the header compilable?
10889 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10890 $as_echo_n "checking $ac_header usability... " >&6; }
10891 cat >conftest.$ac_ext <<_ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10897 $ac_includes_default
10898 #include <$ac_header>
10900 rm -f conftest.$ac_objext
10901 if { (ac_try="$ac_compile"
10902 case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10907 $as_echo "$ac_try_echo") >&5
10908 (eval "$ac_compile") 2>conftest.er1
10910 grep -v '^ *+' conftest.er1 >conftest.err
10912 cat conftest.err >&5
10913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); } && {
10915 test -z "$ac_c_werror_flag" ||
10916 test ! -s conftest.err
10917 } && test -s conftest.$ac_objext; then
10918 ac_header_compiler=yes
10920 $as_echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 ac_header_compiler=no
10926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10928 $as_echo "$ac_header_compiler" >&6; }
10930 # Is the header present?
10931 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10932 $as_echo_n "checking $ac_header presence... " >&6; }
10933 cat >conftest.$ac_ext <<_ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10939 #include <$ac_header>
10941 if { (ac_try="$ac_cpp conftest.$ac_ext"
10942 case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10947 $as_echo "$ac_try_echo") >&5
10948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10950 grep -v '^ *+' conftest.er1 >conftest.err
10952 cat conftest.err >&5
10953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } >/dev/null && {
10955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10956 test ! -s conftest.err
10958 ac_header_preproc=yes
10960 $as_echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10963 ac_header_preproc=no
10966 rm -f conftest.err conftest.$ac_ext
10967 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10968 $as_echo "$ac_header_preproc" >&6; }
10970 # So? What about this header?
10971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10974 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10976 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10977 ac_header_preproc=yes
10980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10981 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10983 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10985 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10987 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10989 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10991 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10995 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10996 $as_echo_n "checking for $ac_header... " >&6; }
10997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10998 $as_echo_n "(cached) " >&6
11000 eval "$as_ac_Header=\$ac_header_preproc"
11002 ac_res=`eval 'as_val=${'$as_ac_Header'}
11003 $as_echo "$as_val"'`
11004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11005 $as_echo "$ac_res" >&6; }
11008 if test `eval 'as_val=${'$as_ac_Header'}
11009 $as_echo "$as_val"'` = yes; then
11010 cat >>confdefs.h <<_ACEOF
11011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11018 if test $ac_cv_header_locale_h = yes; then
11019 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11020 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11021 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11022 $as_echo_n "(cached) " >&6
11024 cat >conftest.$ac_ext <<_ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h. */
11030 #include <locale.h>
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (ac_try="$ac_link"
11041 case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11046 $as_echo "$ac_try_echo") >&5
11047 (eval "$ac_link") 2>conftest.er1
11049 grep -v '^ *+' conftest.er1 >conftest.err
11051 cat conftest.err >&5
11052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } && {
11054 test -z "$ac_c_werror_flag" ||
11055 test ! -s conftest.err
11056 } && test -s conftest$ac_exeext && {
11057 test "$cross_compiling" = yes ||
11058 $as_test_x conftest$ac_exeext
11060 am_cv_val_LC_MESSAGES=yes
11062 $as_echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 am_cv_val_LC_MESSAGES=no
11068 rm -rf conftest.dSYM
11069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11070 conftest$ac_exeext conftest.$ac_ext
11072 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11073 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11074 if test $am_cv_val_LC_MESSAGES = yes; then
11076 cat >>confdefs.h <<\_ACEOF
11077 #define HAVE_LC_MESSAGES 1
11085 gt_cv_have_gettext=no
11091 if test "${ac_cv_header_libintl_h+set}" = set; then
11092 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
11093 $as_echo_n "checking for libintl.h... " >&6; }
11094 if test "${ac_cv_header_libintl_h+set}" = set; then
11095 $as_echo_n "(cached) " >&6
11097 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11098 $as_echo "$ac_cv_header_libintl_h" >&6; }
11100 # Is the header compilable?
11101 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
11102 $as_echo_n "checking libintl.h usability... " >&6; }
11103 cat >conftest.$ac_ext <<_ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 $ac_includes_default
11110 #include <libintl.h>
11112 rm -f conftest.$ac_objext
11113 if { (ac_try="$ac_compile"
11114 case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11119 $as_echo "$ac_try_echo") >&5
11120 (eval "$ac_compile") 2>conftest.er1
11122 grep -v '^ *+' conftest.er1 >conftest.err
11124 cat conftest.err >&5
11125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } && {
11127 test -z "$ac_c_werror_flag" ||
11128 test ! -s conftest.err
11129 } && test -s conftest.$ac_objext; then
11130 ac_header_compiler=yes
11132 $as_echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11135 ac_header_compiler=no
11138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11140 $as_echo "$ac_header_compiler" >&6; }
11142 # Is the header present?
11143 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
11144 $as_echo_n "checking libintl.h presence... " >&6; }
11145 cat >conftest.$ac_ext <<_ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11151 #include <libintl.h>
11153 if { (ac_try="$ac_cpp conftest.$ac_ext"
11154 case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11159 $as_echo "$ac_try_echo") >&5
11160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11162 grep -v '^ *+' conftest.er1 >conftest.err
11164 cat conftest.err >&5
11165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } >/dev/null && {
11167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11168 test ! -s conftest.err
11170 ac_header_preproc=yes
11172 $as_echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11175 ac_header_preproc=no
11178 rm -f conftest.err conftest.$ac_ext
11179 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11180 $as_echo "$ac_header_preproc" >&6; }
11182 # So? What about this header?
11183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11185 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11186 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11187 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
11188 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
11189 ac_header_preproc=yes
11192 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
11193 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
11194 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
11195 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
11196 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
11197 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
11198 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
11199 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11200 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
11201 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
11202 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
11203 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
11207 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
11208 $as_echo_n "checking for libintl.h... " >&6; }
11209 if test "${ac_cv_header_libintl_h+set}" = set; then
11210 $as_echo_n "(cached) " >&6
11212 ac_cv_header_libintl_h=$ac_header_preproc
11214 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11215 $as_echo "$ac_cv_header_libintl_h" >&6; }
11218 if test $ac_cv_header_libintl_h = yes; then
11219 gt_cv_func_dgettext_libintl="no"
11220 libintl_extra_libs=""
11223 # First check in libc
11225 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
11226 $as_echo_n "checking for ngettext in libc... " >&6; }
11227 if test "${gt_cv_func_ngettext_libc+set}" = set; then
11228 $as_echo_n "(cached) " >&6
11230 cat >conftest.$ac_ext <<_ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11237 #include <libintl.h>
11242 return !ngettext ("","", 1)
11247 rm -f conftest.$ac_objext conftest$ac_exeext
11248 if { (ac_try="$ac_link"
11249 case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11254 $as_echo "$ac_try_echo") >&5
11255 (eval "$ac_link") 2>conftest.er1
11257 grep -v '^ *+' conftest.er1 >conftest.err
11259 cat conftest.err >&5
11260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } && {
11262 test -z "$ac_c_werror_flag" ||
11263 test ! -s conftest.err
11264 } && test -s conftest$ac_exeext && {
11265 test "$cross_compiling" = yes ||
11266 $as_test_x conftest$ac_exeext
11268 gt_cv_func_ngettext_libc=yes
11270 $as_echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11273 gt_cv_func_ngettext_libc=no
11276 rm -rf conftest.dSYM
11277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11278 conftest$ac_exeext conftest.$ac_ext
11281 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
11282 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
11284 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11285 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
11286 $as_echo_n "checking for dgettext in libc... " >&6; }
11287 if test "${gt_cv_func_dgettext_libc+set}" = set; then
11288 $as_echo_n "(cached) " >&6
11290 cat >conftest.$ac_ext <<_ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11297 #include <libintl.h>
11302 return !dgettext ("","")
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (ac_try="$ac_link"
11309 case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11314 $as_echo "$ac_try_echo") >&5
11315 (eval "$ac_link") 2>conftest.er1
11317 grep -v '^ *+' conftest.er1 >conftest.err
11319 cat conftest.err >&5
11320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } && {
11322 test -z "$ac_c_werror_flag" ||
11323 test ! -s conftest.err
11324 } && test -s conftest$ac_exeext && {
11325 test "$cross_compiling" = yes ||
11326 $as_test_x conftest$ac_exeext
11328 gt_cv_func_dgettext_libc=yes
11330 $as_echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11333 gt_cv_func_dgettext_libc=no
11336 rm -rf conftest.dSYM
11337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11338 conftest$ac_exeext conftest.$ac_ext
11341 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
11342 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
11345 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11347 for ac_func in bind_textdomain_codeset
11349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11350 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11351 $as_echo_n "checking for $ac_func... " >&6; }
11352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11353 $as_echo_n "(cached) " >&6
11355 cat >conftest.$ac_ext <<_ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11363 #define $ac_func innocuous_$ac_func
11365 /* System header to define __stub macros and hopefully few prototypes,
11366 which can conflict with char $ac_func (); below.
11367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11368 <limits.h> exists even on freestanding compilers. */
11371 # include <limits.h>
11373 # include <assert.h>
11378 /* Override any GCC internal prototype to avoid an error.
11379 Use char because int might match the return type of a GCC
11380 builtin and then its argument prototype would still apply. */
11385 /* The GNU C library defines this for functions which it implements
11386 to always fail with ENOSYS. Some functions are actually named
11387 something starting with __ and the normal name is an alias. */
11388 #if defined __stub_$ac_func || defined __stub___$ac_func
11395 return $ac_func ();
11400 rm -f conftest.$ac_objext conftest$ac_exeext
11401 if { (ac_try="$ac_link"
11402 case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11407 $as_echo "$ac_try_echo") >&5
11408 (eval "$ac_link") 2>conftest.er1
11410 grep -v '^ *+' conftest.er1 >conftest.err
11412 cat conftest.err >&5
11413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } && {
11415 test -z "$ac_c_werror_flag" ||
11416 test ! -s conftest.err
11417 } && test -s conftest$ac_exeext && {
11418 test "$cross_compiling" = yes ||
11419 $as_test_x conftest$ac_exeext
11421 eval "$as_ac_var=yes"
11423 $as_echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426 eval "$as_ac_var=no"
11429 rm -rf conftest.dSYM
11430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11431 conftest$ac_exeext conftest.$ac_ext
11433 ac_res=`eval 'as_val=${'$as_ac_var'}
11434 $as_echo "$as_val"'`
11435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11436 $as_echo "$ac_res" >&6; }
11437 if test `eval 'as_val=${'$as_ac_var'}
11438 $as_echo "$as_val"'` = yes; then
11439 cat >>confdefs.h <<_ACEOF
11440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11449 # If we don't have everything we want, check in libintl
11451 if test "$gt_cv_func_dgettext_libc" != "yes" \
11452 || test "$gt_cv_func_ngettext_libc" != "yes" \
11453 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
11455 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
11456 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
11457 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
11458 $as_echo_n "(cached) " >&6
11460 ac_check_lib_save_LIBS=$LIBS
11461 LIBS="-lintl $LIBS"
11462 cat >conftest.$ac_ext <<_ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11469 /* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11475 char bindtextdomain ();
11479 return bindtextdomain ();
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (ac_try="$ac_link"
11486 case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11491 $as_echo "$ac_try_echo") >&5
11492 (eval "$ac_link") 2>conftest.er1
11494 grep -v '^ *+' conftest.er1 >conftest.err
11496 cat conftest.err >&5
11497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } && {
11499 test -z "$ac_c_werror_flag" ||
11500 test ! -s conftest.err
11501 } && test -s conftest$ac_exeext && {
11502 test "$cross_compiling" = yes ||
11503 $as_test_x conftest$ac_exeext
11505 ac_cv_lib_intl_bindtextdomain=yes
11507 $as_echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11510 ac_cv_lib_intl_bindtextdomain=no
11513 rm -rf conftest.dSYM
11514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11515 conftest$ac_exeext conftest.$ac_ext
11516 LIBS=$ac_check_lib_save_LIBS
11518 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
11519 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
11520 if test $ac_cv_lib_intl_bindtextdomain = yes; then
11521 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
11522 $as_echo_n "checking for ngettext in -lintl... " >&6; }
11523 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
11524 $as_echo_n "(cached) " >&6
11526 ac_check_lib_save_LIBS=$LIBS
11527 LIBS="-lintl $LIBS"
11528 cat >conftest.$ac_ext <<_ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11535 /* Override any GCC internal prototype to avoid an error.
11536 Use char because int might match the return type of a GCC
11537 builtin and then its argument prototype would still apply. */
11545 return ngettext ();
11550 rm -f conftest.$ac_objext conftest$ac_exeext
11551 if { (ac_try="$ac_link"
11552 case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11557 $as_echo "$ac_try_echo") >&5
11558 (eval "$ac_link") 2>conftest.er1
11560 grep -v '^ *+' conftest.er1 >conftest.err
11562 cat conftest.err >&5
11563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } && {
11565 test -z "$ac_c_werror_flag" ||
11566 test ! -s conftest.err
11567 } && test -s conftest$ac_exeext && {
11568 test "$cross_compiling" = yes ||
11569 $as_test_x conftest$ac_exeext
11571 ac_cv_lib_intl_ngettext=yes
11573 $as_echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11576 ac_cv_lib_intl_ngettext=no
11579 rm -rf conftest.dSYM
11580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11581 conftest$ac_exeext conftest.$ac_ext
11582 LIBS=$ac_check_lib_save_LIBS
11584 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
11585 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11586 if test $ac_cv_lib_intl_ngettext = yes; then
11587 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
11588 $as_echo_n "checking for dgettext in -lintl... " >&6; }
11589 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11590 $as_echo_n "(cached) " >&6
11592 ac_check_lib_save_LIBS=$LIBS
11593 LIBS="-lintl $LIBS"
11594 cat >conftest.$ac_ext <<_ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11601 /* Override any GCC internal prototype to avoid an error.
11602 Use char because int might match the return type of a GCC
11603 builtin and then its argument prototype would still apply. */
11611 return dgettext ();
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (ac_try="$ac_link"
11618 case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11623 $as_echo "$ac_try_echo") >&5
11624 (eval "$ac_link") 2>conftest.er1
11626 grep -v '^ *+' conftest.er1 >conftest.err
11628 cat conftest.err >&5
11629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } && {
11631 test -z "$ac_c_werror_flag" ||
11632 test ! -s conftest.err
11633 } && test -s conftest$ac_exeext && {
11634 test "$cross_compiling" = yes ||
11635 $as_test_x conftest$ac_exeext
11637 ac_cv_lib_intl_dgettext=yes
11639 $as_echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 ac_cv_lib_intl_dgettext=no
11645 rm -rf conftest.dSYM
11646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11647 conftest$ac_exeext conftest.$ac_ext
11648 LIBS=$ac_check_lib_save_LIBS
11650 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
11651 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
11652 if test $ac_cv_lib_intl_dgettext = yes; then
11653 gt_cv_func_dgettext_libintl=yes
11661 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
11662 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
11663 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
11664 { $as_echo "$as_me:$LINENO: result: " >&5
11666 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
11667 $as_echo_n "checking for ngettext in -lintl... " >&6; }
11668 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
11669 $as_echo_n "(cached) " >&6
11671 ac_check_lib_save_LIBS=$LIBS
11672 LIBS="-lintl -liconv $LIBS"
11673 cat >conftest.$ac_ext <<_ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11680 /* Override any GCC internal prototype to avoid an error.
11681 Use char because int might match the return type of a GCC
11682 builtin and then its argument prototype would still apply. */
11690 return ngettext ();
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (ac_try="$ac_link"
11697 case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11702 $as_echo "$ac_try_echo") >&5
11703 (eval "$ac_link") 2>conftest.er1
11705 grep -v '^ *+' conftest.er1 >conftest.err
11707 cat conftest.err >&5
11708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } && {
11710 test -z "$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11712 } && test -s conftest$ac_exeext && {
11713 test "$cross_compiling" = yes ||
11714 $as_test_x conftest$ac_exeext
11716 ac_cv_lib_intl_ngettext=yes
11718 $as_echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11721 ac_cv_lib_intl_ngettext=no
11724 rm -rf conftest.dSYM
11725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11726 conftest$ac_exeext conftest.$ac_ext
11727 LIBS=$ac_check_lib_save_LIBS
11729 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
11730 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11731 if test $ac_cv_lib_intl_ngettext = yes; then
11732 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
11733 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
11734 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
11735 $as_echo_n "(cached) " >&6
11737 ac_check_lib_save_LIBS=$LIBS
11738 LIBS="-lintl -liconv $LIBS"
11739 cat >conftest.$ac_ext <<_ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11746 /* Override any GCC internal prototype to avoid an error.
11747 Use char because int might match the return type of a GCC
11748 builtin and then its argument prototype would still apply. */
11756 return dcgettext ();
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (ac_try="$ac_link"
11763 case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11768 $as_echo "$ac_try_echo") >&5
11769 (eval "$ac_link") 2>conftest.er1
11771 grep -v '^ *+' conftest.er1 >conftest.err
11773 cat conftest.err >&5
11774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } && {
11776 test -z "$ac_c_werror_flag" ||
11777 test ! -s conftest.err
11778 } && test -s conftest$ac_exeext && {
11779 test "$cross_compiling" = yes ||
11780 $as_test_x conftest$ac_exeext
11782 ac_cv_lib_intl_dcgettext=yes
11784 $as_echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11787 ac_cv_lib_intl_dcgettext=no
11790 rm -rf conftest.dSYM
11791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11792 conftest$ac_exeext conftest.$ac_ext
11793 LIBS=$ac_check_lib_save_LIBS
11795 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
11796 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
11797 if test $ac_cv_lib_intl_dcgettext = yes; then
11798 gt_cv_func_dgettext_libintl=yes
11799 libintl_extra_libs=-liconv
11811 # If we found libintl, then check in it for bind_textdomain_codeset();
11812 # we'll prefer libc if neither have bind_textdomain_codeset(),
11813 # and both have dgettext and ngettext
11815 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
11816 glib_save_LIBS="$LIBS"
11817 LIBS="$LIBS -lintl $libintl_extra_libs"
11818 unset ac_cv_func_bind_textdomain_codeset
11820 for ac_func in bind_textdomain_codeset
11822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11823 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11824 $as_echo_n "checking for $ac_func... " >&6; }
11825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11826 $as_echo_n "(cached) " >&6
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11836 #define $ac_func innocuous_$ac_func
11838 /* System header to define __stub macros and hopefully few prototypes,
11839 which can conflict with char $ac_func (); below.
11840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11841 <limits.h> exists even on freestanding compilers. */
11844 # include <limits.h>
11846 # include <assert.h>
11851 /* Override any GCC internal prototype to avoid an error.
11852 Use char because int might match the return type of a GCC
11853 builtin and then its argument prototype would still apply. */
11858 /* The GNU C library defines this for functions which it implements
11859 to always fail with ENOSYS. Some functions are actually named
11860 something starting with __ and the normal name is an alias. */
11861 #if defined __stub_$ac_func || defined __stub___$ac_func
11868 return $ac_func ();
11873 rm -f conftest.$ac_objext conftest$ac_exeext
11874 if { (ac_try="$ac_link"
11875 case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11880 $as_echo "$ac_try_echo") >&5
11881 (eval "$ac_link") 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } && {
11888 test -z "$ac_c_werror_flag" ||
11889 test ! -s conftest.err
11890 } && test -s conftest$ac_exeext && {
11891 test "$cross_compiling" = yes ||
11892 $as_test_x conftest$ac_exeext
11894 eval "$as_ac_var=yes"
11896 $as_echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11899 eval "$as_ac_var=no"
11902 rm -rf conftest.dSYM
11903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11904 conftest$ac_exeext conftest.$ac_ext
11906 ac_res=`eval 'as_val=${'$as_ac_var'}
11907 $as_echo "$as_val"'`
11908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11909 $as_echo "$ac_res" >&6; }
11910 if test `eval 'as_val=${'$as_ac_var'}
11911 $as_echo "$as_val"'` = yes; then
11912 cat >>confdefs.h <<_ACEOF
11913 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11919 LIBS="$glib_save_LIBS"
11921 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
11922 gt_cv_func_dgettext_libc=no
11924 if test "$gt_cv_func_dgettext_libc" = "yes" \
11925 && test "$gt_cv_func_ngettext_libc" = "yes"; then
11926 gt_cv_func_dgettext_libintl=no
11932 if test "$gt_cv_func_dgettext_libc" = "yes" \
11933 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
11934 gt_cv_have_gettext=yes
11937 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
11938 INTLLIBS="-lintl $libintl_extra_libs"
11941 if test "$gt_cv_have_gettext" = "yes"; then
11943 cat >>confdefs.h <<\_ACEOF
11944 #define HAVE_GETTEXT 1
11947 # Extract the first word of "msgfmt", so it can be a program name with args.
11948 set dummy msgfmt; ac_word=$2
11949 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11950 $as_echo_n "checking for $ac_word... " >&6; }
11951 if test "${ac_cv_path_MSGFMT+set}" = set; then
11952 $as_echo_n "(cached) " >&6
11956 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11960 for ac_dir in $PATH; do
11961 test -z "$ac_dir" && ac_dir=.
11962 if test -f $ac_dir/$ac_word; then
11963 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
11964 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11970 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
11974 MSGFMT="$ac_cv_path_MSGFMT"
11975 if test "$MSGFMT" != "no"; then
11976 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
11977 $as_echo "$MSGFMT" >&6; }
11979 { $as_echo "$as_me:$LINENO: result: no" >&5
11980 $as_echo "no" >&6; }
11982 if test "$MSGFMT" != "no"; then
11983 glib_save_LIBS="$LIBS"
11984 LIBS="$LIBS $INTLLIBS"
11986 for ac_func in dcgettext
11988 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11989 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11990 $as_echo_n "checking for $ac_func... " >&6; }
11991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11992 $as_echo_n "(cached) " >&6
11994 cat >conftest.$ac_ext <<_ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12002 #define $ac_func innocuous_$ac_func
12004 /* System header to define __stub macros and hopefully few prototypes,
12005 which can conflict with char $ac_func (); below.
12006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12007 <limits.h> exists even on freestanding compilers. */
12010 # include <limits.h>
12012 # include <assert.h>
12017 /* Override any GCC internal prototype to avoid an error.
12018 Use char because int might match the return type of a GCC
12019 builtin and then its argument prototype would still apply. */
12024 /* The GNU C library defines this for functions which it implements
12025 to always fail with ENOSYS. Some functions are actually named
12026 something starting with __ and the normal name is an alias. */
12027 #if defined __stub_$ac_func || defined __stub___$ac_func
12034 return $ac_func ();
12039 rm -f conftest.$ac_objext conftest$ac_exeext
12040 if { (ac_try="$ac_link"
12041 case "(($ac_try" in
12042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043 *) ac_try_echo=$ac_try;;
12045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12046 $as_echo "$ac_try_echo") >&5
12047 (eval "$ac_link") 2>conftest.er1
12049 grep -v '^ *+' conftest.er1 >conftest.err
12051 cat conftest.err >&5
12052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } && {
12054 test -z "$ac_c_werror_flag" ||
12055 test ! -s conftest.err
12056 } && test -s conftest$ac_exeext && {
12057 test "$cross_compiling" = yes ||
12058 $as_test_x conftest$ac_exeext
12060 eval "$as_ac_var=yes"
12062 $as_echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 eval "$as_ac_var=no"
12068 rm -rf conftest.dSYM
12069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12070 conftest$ac_exeext conftest.$ac_ext
12072 ac_res=`eval 'as_val=${'$as_ac_var'}
12073 $as_echo "$as_val"'`
12074 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12075 $as_echo "$ac_res" >&6; }
12076 if test `eval 'as_val=${'$as_ac_var'}
12077 $as_echo "$as_val"'` = yes; then
12078 cat >>confdefs.h <<_ACEOF
12079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12086 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
12087 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
12088 cat >conftest.foo <<_ACEOF
12092 "Content-Type: text/plain; charset=UTF-8\n"
12093 "Project-Id-Version: test 1.0\n"
12094 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
12095 "Last-Translator: test <foo@bar.xx>\n"
12096 "Language-Team: C <LL@li.org>\n"
12097 "MIME-Version: 1.0\n"
12098 "Content-Transfer-Encoding: 8bit\n"
12101 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
12102 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
12104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; then
12106 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
12107 $as_echo "yes" >&6; }
12108 else { $as_echo "$as_me:$LINENO: result: no" >&5
12109 $as_echo "no" >&6; }
12110 echo "$as_me: failed input was:" >&5
12111 sed 's/^/| /' conftest.foo >&5
12114 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12115 set dummy gmsgfmt; ac_word=$2
12116 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12119 $as_echo_n "(cached) " >&6
12123 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $PATH
12130 test -z "$as_dir" && as_dir=.
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12133 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12134 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12141 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12145 GMSGFMT=$ac_cv_path_GMSGFMT
12146 if test -n "$GMSGFMT"; then
12147 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12148 $as_echo "$GMSGFMT" >&6; }
12150 { $as_echo "$as_me:$LINENO: result: no" >&5
12151 $as_echo "no" >&6; }
12155 # Extract the first word of "xgettext", so it can be a program name with args.
12156 set dummy xgettext; ac_word=$2
12157 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12158 $as_echo_n "checking for $ac_word... " >&6; }
12159 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12160 $as_echo_n "(cached) " >&6
12162 case "$XGETTEXT" in
12164 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12168 for ac_dir in $PATH; do
12169 test -z "$ac_dir" && ac_dir=.
12170 if test -f $ac_dir/$ac_word; then
12171 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
12172 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12178 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12182 XGETTEXT="$ac_cv_path_XGETTEXT"
12183 if test "$XGETTEXT" != ":"; then
12184 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12185 $as_echo "$XGETTEXT" >&6; }
12187 { $as_echo "$as_me:$LINENO: result: no" >&5
12188 $as_echo "no" >&6; }
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12201 extern int _nl_msg_cat_cntr;
12202 return _nl_msg_cat_cntr
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (ac_try="$ac_link"
12209 case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12214 $as_echo "$ac_try_echo") >&5
12215 (eval "$ac_link") 2>conftest.er1
12217 grep -v '^ *+' conftest.er1 >conftest.err
12219 cat conftest.err >&5
12220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } && {
12222 test -z "$ac_c_werror_flag" ||
12223 test ! -s conftest.err
12224 } && test -s conftest$ac_exeext && {
12225 test "$cross_compiling" = yes ||
12226 $as_test_x conftest$ac_exeext
12231 $as_echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12236 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
12237 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
12238 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
12239 $as_echo_n "(cached) " >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
12248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12249 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
12251 /* System header to define __stub macros and hopefully few prototypes,
12252 which can conflict with char bind_textdomain_codeset (); below.
12253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12254 <limits.h> exists even on freestanding compilers. */
12257 # include <limits.h>
12259 # include <assert.h>
12262 #undef bind_textdomain_codeset
12264 /* Override any GCC internal prototype to avoid an error.
12265 Use char because int might match the return type of a GCC
12266 builtin and then its argument prototype would still apply. */
12270 char bind_textdomain_codeset ();
12271 /* The GNU C library defines this for functions which it implements
12272 to always fail with ENOSYS. Some functions are actually named
12273 something starting with __ and the normal name is an alias. */
12274 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
12281 return bind_textdomain_codeset ();
12286 rm -f conftest.$ac_objext conftest$ac_exeext
12287 if { (ac_try="$ac_link"
12288 case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12293 $as_echo "$ac_try_echo") >&5
12294 (eval "$ac_link") 2>conftest.er1
12296 grep -v '^ *+' conftest.er1 >conftest.err
12298 cat conftest.err >&5
12299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } && {
12301 test -z "$ac_c_werror_flag" ||
12302 test ! -s conftest.err
12303 } && test -s conftest$ac_exeext && {
12304 test "$cross_compiling" = yes ||
12305 $as_test_x conftest$ac_exeext
12307 ac_cv_func_bind_textdomain_codeset=yes
12309 $as_echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 ac_cv_func_bind_textdomain_codeset=no
12315 rm -rf conftest.dSYM
12316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12317 conftest$ac_exeext conftest.$ac_ext
12319 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
12320 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
12321 if test $ac_cv_func_bind_textdomain_codeset = yes; then
12337 rm -rf conftest.dSYM
12338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12339 conftest$ac_exeext conftest.$ac_ext
12340 LIBS="$glib_save_LIBS"
12343 gt_cv_have_gettext=no
12351 if test "$gt_cv_have_gettext" = "yes" ; then
12353 cat >>confdefs.h <<\_ACEOF
12354 #define ENABLE_NLS 1
12359 if test "$XGETTEXT" != ":"; then
12360 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12363 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12364 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12369 # We need to process the po/ directory.
12372 ac_config_commands="$ac_config_commands default-1"
12375 for lang in $ALL_LINGUAS; do
12376 GMOFILES="$GMOFILES $lang.gmo"
12377 POFILES="$POFILES $lang.po"
12392 if test "$gt_cv_have_gettext" = "yes"; then
12393 if test "x$ALL_LINGUAS" = "x"; then
12396 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12397 $as_echo_n "checking for catalogs to be installed... " >&6; }
12399 for presentlang in $ALL_LINGUAS; do
12401 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
12402 desiredlanguages="$LINGUAS"
12404 desiredlanguages="$ALL_LINGUAS"
12406 for desiredlang in $desiredlanguages; do
12407 # Use the presentlang catalog if desiredlang is
12408 # a. equal to presentlang, or
12409 # b. a variant of presentlang (because in this case,
12410 # presentlang can be used as a fallback for messages
12411 # which are not translated in the desiredlang catalog).
12412 case "$desiredlang" in
12413 "$presentlang"*) useit=yes;;
12416 if test $useit = yes; then
12417 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
12420 LINGUAS=$NEW_LINGUAS
12421 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
12422 $as_echo "$LINGUAS" >&6; }
12425 if test -n "$LINGUAS"; then
12426 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
12431 if test -n "$ac_aux_dir"; then
12432 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12434 if test -z "$MKINSTALLDIRS"; then
12435 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12439 test -d po || mkdir po
12440 if test "x$srcdir" != "x."; then
12441 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
12442 posrcprefix="$srcdir/"
12444 posrcprefix="../$srcdir/"
12450 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
12451 < $srcdir/po/POTFILES.in > po/POTFILES
12454 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
12456 cat >confcache <<\_ACEOF
12457 # This file is a shell script that caches the results of configure
12458 # tests run on this system so they can be shared between configure
12459 # scripts and configure runs, see configure's option --config-cache.
12460 # It is not useful on other systems. If it contains results you don't
12461 # want to keep, you may remove or edit it.
12463 # config.status only pays attention to the cache file if you give it
12464 # the --recheck option to rerun configure.
12466 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12467 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12468 # following values.
12472 # The following way of writing the cache mishandles newlines in values,
12473 # but we know of no workaround that is simple, portable, and efficient.
12474 # So, we kill variables containing newlines.
12475 # Ultrix sh set writes to stderr and can't be redirected directly,
12476 # and sets the high bit in the cache file unless we assign to the vars.
12478 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12479 eval ac_val=\$$ac_var
12483 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12484 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12487 _ | IFS | as_nl) ;; #(
12488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12489 *) $as_unset $ac_var ;;
12495 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12496 *${as_nl}ac_space=\ *)
12497 # `set' does not quote correctly, so add quotes (double-quote
12498 # substitution turns \\\\ into \\, and sed turns \\ into \).
12501 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12504 # `set' quotes correctly as required by POSIX, so do not add quotes.
12505 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12514 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12516 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12518 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12519 if test -w "$cache_file"; then
12520 test "x$cache_file" != "x/dev/null" &&
12521 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12522 $as_echo "$as_me: updating cache $cache_file" >&6;}
12523 cat confcache >$cache_file
12525 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12526 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12531 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12532 # Let make expand exec_prefix.
12533 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12535 DEFS=-DHAVE_CONFIG_H
12539 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12540 # 1. Remove the extension, and $U if already installed.
12541 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12542 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12543 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12544 # will be set to the directory where LIBOBJS objects are built.
12545 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12546 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12548 LIBOBJS=$ac_libobjs
12550 LTLIBOBJS=$ac_ltlibobjs
12553 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12554 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12555 Usually this means the macro was only invoked conditionally." >&5
12556 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12557 Usually this means the macro was only invoked conditionally." >&2;}
12558 { (exit 1); exit 1; }; }
12560 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12561 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12562 Usually this means the macro was only invoked conditionally." >&5
12563 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12564 Usually this means the macro was only invoked conditionally." >&2;}
12565 { (exit 1); exit 1; }; }
12567 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12568 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12569 Usually this means the macro was only invoked conditionally." >&5
12570 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12571 Usually this means the macro was only invoked conditionally." >&2;}
12572 { (exit 1); exit 1; }; }
12574 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12575 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12576 Usually this means the macro was only invoked conditionally." >&5
12577 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12578 Usually this means the macro was only invoked conditionally." >&2;}
12579 { (exit 1); exit 1; }; }
12581 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12582 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12583 Usually this means the macro was only invoked conditionally." >&5
12584 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12585 Usually this means the macro was only invoked conditionally." >&2;}
12586 { (exit 1); exit 1; }; }
12588 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
12589 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
12590 Usually this means the macro was only invoked conditionally." >&5
12591 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
12592 Usually this means the macro was only invoked conditionally." >&2;}
12593 { (exit 1); exit 1; }; }
12595 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
12596 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
12597 Usually this means the macro was only invoked conditionally." >&5
12598 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
12599 Usually this means the macro was only invoked conditionally." >&2;}
12600 { (exit 1); exit 1; }; }
12602 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
12603 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
12604 Usually this means the macro was only invoked conditionally." >&5
12605 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
12606 Usually this means the macro was only invoked conditionally." >&2;}
12607 { (exit 1); exit 1; }; }
12609 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
12610 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
12611 Usually this means the macro was only invoked conditionally." >&5
12612 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
12613 Usually this means the macro was only invoked conditionally." >&2;}
12614 { (exit 1); exit 1; }; }
12616 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
12617 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
12618 Usually this means the macro was only invoked conditionally." >&5
12619 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
12620 Usually this means the macro was only invoked conditionally." >&2;}
12621 { (exit 1); exit 1; }; }
12623 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
12624 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
12625 Usually this means the macro was only invoked conditionally." >&5
12626 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
12627 Usually this means the macro was only invoked conditionally." >&2;}
12628 { (exit 1); exit 1; }; }
12630 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
12631 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
12632 Usually this means the macro was only invoked conditionally." >&5
12633 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
12634 Usually this means the macro was only invoked conditionally." >&2;}
12635 { (exit 1); exit 1; }; }
12637 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
12638 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
12639 Usually this means the macro was only invoked conditionally." >&5
12640 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
12641 Usually this means the macro was only invoked conditionally." >&2;}
12642 { (exit 1); exit 1; }; }
12644 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
12645 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
12646 Usually this means the macro was only invoked conditionally." >&5
12647 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
12648 Usually this means the macro was only invoked conditionally." >&2;}
12649 { (exit 1); exit 1; }; }
12651 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
12652 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
12653 Usually this means the macro was only invoked conditionally." >&5
12654 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
12655 Usually this means the macro was only invoked conditionally." >&2;}
12656 { (exit 1); exit 1; }; }
12658 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
12659 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
12660 Usually this means the macro was only invoked conditionally." >&5
12661 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
12662 Usually this means the macro was only invoked conditionally." >&2;}
12663 { (exit 1); exit 1; }; }
12665 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
12666 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
12667 Usually this means the macro was only invoked conditionally." >&5
12668 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
12669 Usually this means the macro was only invoked conditionally." >&2;}
12670 { (exit 1); exit 1; }; }
12672 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
12673 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
12674 Usually this means the macro was only invoked conditionally." >&5
12675 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
12676 Usually this means the macro was only invoked conditionally." >&2;}
12677 { (exit 1); exit 1; }; }
12679 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
12680 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
12681 Usually this means the macro was only invoked conditionally." >&5
12682 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
12683 Usually this means the macro was only invoked conditionally." >&2;}
12684 { (exit 1); exit 1; }; }
12686 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
12687 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
12688 Usually this means the macro was only invoked conditionally." >&5
12689 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
12690 Usually this means the macro was only invoked conditionally." >&2;}
12691 { (exit 1); exit 1; }; }
12693 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
12694 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
12695 Usually this means the macro was only invoked conditionally." >&5
12696 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
12697 Usually this means the macro was only invoked conditionally." >&2;}
12698 { (exit 1); exit 1; }; }
12700 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
12701 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
12702 Usually this means the macro was only invoked conditionally." >&5
12703 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
12704 Usually this means the macro was only invoked conditionally." >&2;}
12705 { (exit 1); exit 1; }; }
12708 : ${CONFIG_STATUS=./config.status}
12710 ac_clean_files_save=$ac_clean_files
12711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12712 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12713 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12714 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12716 # Generated by $as_me.
12717 # Run this file to recreate the current configuration.
12718 # Compiler output produced by configure, useful for debugging
12719 # configure, is in config.log if it exists.
12722 ac_cs_recheck=false
12724 SHELL=\${CONFIG_SHELL-$SHELL}
12727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12728 ## --------------------- ##
12729 ## M4sh Initialization. ##
12730 ## --------------------- ##
12732 # Be more Bourne compatible
12733 DUALCASE=1; export DUALCASE # for MKS sh
12734 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12738 # is contrary to our usage. Disable this feature.
12739 alias -g '${1+"$@"}'='"$@"'
12740 setopt NO_GLOB_SUBST
12742 case `(set -o) 2>/dev/null` in
12743 *posix*) set -o posix ;;
12752 # Avoid depending upon Character Ranges.
12753 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12754 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12755 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12756 as_cr_digits='0123456789'
12757 as_cr_alnum=$as_cr_Letters$as_cr_digits
12762 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12763 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12766 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12767 as_echo='printf %s\n'
12768 as_echo_n='printf %s'
12770 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12771 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12772 as_echo_n='/usr/ucb/echo -n'
12774 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12775 as_echo_n_body='eval
12779 expr "X$arg" : "X\\(.*\\)$as_nl";
12780 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12782 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12784 export as_echo_n_body
12785 as_echo_n='sh -c $as_echo_n_body as_echo'
12787 export as_echo_body
12788 as_echo='sh -c $as_echo_body as_echo'
12791 # The user is always right.
12792 if test "${PATH_SEPARATOR+set}" != set; then
12794 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12795 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12800 # Support unset when possible.
12801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12809 # We need space, tab and new line, in precisely that order. Quoting is
12810 # there to prevent editors from complaining about space-tab.
12811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12812 # splitting by setting IFS to empty value.)
12815 # Find who we are. Look in the path if we contain no directory separator.
12817 *[\\/]* ) as_myself=$0 ;;
12818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819 for as_dir in $PATH
12822 test -z "$as_dir" && as_dir=.
12823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12829 # We did not find ourselves, most probably we were run as `sh COMMAND'
12830 # in which case we are not to be found in the path.
12831 if test "x$as_myself" = x; then
12834 if test ! -f "$as_myself"; then
12835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12836 { (exit 1); exit 1; }
12839 # Work around bugs in pre-3.0 UWIN ksh.
12840 for as_var in ENV MAIL MAILPATH
12841 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12853 # Required to use basename.
12854 if expr a : '\(a\)' >/dev/null 2>&1 &&
12855 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12862 as_basename=basename
12868 # Name of the executable.
12869 as_me=`$as_basename -- "$0" ||
12870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12871 X"$0" : 'X\(//\)$' \| \
12872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12874 sed '/^.*\/\([^/][^/]*\)\/*$/{
12893 as_lineno_1=$LINENO
12894 as_lineno_2=$LINENO
12895 test "x$as_lineno_1" != "x$as_lineno_2" &&
12896 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12898 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12899 # uniformly replaced by the line number. The first 'sed' inserts a
12900 # line-number line after each line using $LINENO; the second 'sed'
12901 # does the real work. The second script uses 'N' to pair each
12902 # line-number line with the line containing $LINENO, and appends
12903 # trailing '-' during substitution so that $LINENO is not a special
12904 # case at line end.
12905 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12906 # scripts with optimization help from Paolo Bonzini. Blame Lee
12907 # E. McMahon (1931-1989) for sed's syntax. :-)
12919 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12922 ' >$as_me.lineno &&
12923 chmod +x "$as_me.lineno" ||
12924 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12925 { (exit 1); exit 1; }; }
12927 # Don't try to exec as it changes $[0], causing all sort of problems
12928 # (the dirname of $[0] is not the place where we might find the
12929 # original and so on. Autoconf is especially sensitive to this).
12930 . "./$as_me.lineno"
12931 # Exit status is that of the last command.
12936 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12942 ECHO_C= ECHO_N= ECHO_T=
12943 case `echo -n x` in
12945 case `echo 'x\c'` in
12946 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12952 if expr a : '\(a\)' >/dev/null 2>&1 &&
12953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12959 rm -f conf$$ conf$$.exe conf$$.file
12960 if test -d conf$$.dir; then
12961 rm -f conf$$.dir/conf$$.file
12964 mkdir conf$$.dir 2>/dev/null
12966 if (echo >conf$$.file) 2>/dev/null; then
12967 if ln -s conf$$.file conf$$ 2>/dev/null; then
12969 # ... but there are two gotchas:
12970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12972 # In both cases, we have to default to `cp -p'.
12973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12975 elif ln conf$$.file conf$$ 2>/dev/null; then
12983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12984 rmdir conf$$.dir 2>/dev/null
12986 if mkdir -p . 2>/dev/null; then
12989 test -d ./-p && rmdir ./-p
12993 if test -x / >/dev/null 2>&1; then
12994 as_test_x='test -x'
12996 if ls -dL / >/dev/null 2>&1; then
13003 if test -d "$1"; then
13009 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13010 ???[sx]*):;;*)false;;esac;fi
13014 as_executable_p=$as_test_x
13016 # Sed expression to map a string onto a valid CPP name.
13017 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13019 # Sed expression to map a string onto a valid variable name.
13020 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13025 # Save the log message, to keep $[0] and so on meaningful, and to
13026 # report actual input values of CONFIG_FILES etc. instead of their
13027 # values after options handling.
13029 This file was extended by $as_me, which was
13030 generated by GNU Autoconf 2.62. Invocation command line was
13032 CONFIG_FILES = $CONFIG_FILES
13033 CONFIG_HEADERS = $CONFIG_HEADERS
13034 CONFIG_LINKS = $CONFIG_LINKS
13035 CONFIG_COMMANDS = $CONFIG_COMMANDS
13038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13044 # Files that config.status was made for.
13045 config_files="$ac_config_files"
13046 config_headers="$ac_config_headers"
13047 config_commands="$ac_config_commands"
13051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13053 \`$as_me' instantiates files from templates according to the
13054 current configuration.
13056 Usage: $0 [OPTIONS] [FILE]...
13058 -h, --help print this help, then exit
13059 -V, --version print version number and configuration settings, then exit
13060 -q, --quiet do not print progress messages
13061 -d, --debug don't remove temporary files
13062 --recheck update $as_me by reconfiguring in the same conditions
13063 --file=FILE[:TEMPLATE]
13064 instantiate the configuration file FILE
13065 --header=FILE[:TEMPLATE]
13066 instantiate the configuration header FILE
13068 Configuration files:
13071 Configuration headers:
13074 Configuration commands:
13077 Report bugs to <bug-autoconf@gnu.org>."
13080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13083 configured by $0, generated by GNU Autoconf 2.62,
13084 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13086 Copyright (C) 2008 Free Software Foundation, Inc.
13087 This config.status script is free software; the Free Software Foundation
13088 gives unlimited permission to copy, distribute and modify it."
13094 test -n "\$AWK" || AWK=awk
13097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13098 # The default lists apply if the user does not specify any file.
13104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13105 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13116 # Handling of the options.
13117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13119 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13120 $as_echo "$ac_cs_version"; exit ;;
13121 --debug | --debu | --deb | --de | --d | -d )
13123 --file | --fil | --fi | --f )
13126 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13128 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13129 ac_need_defaults=false;;
13130 --header | --heade | --head | --hea )
13133 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13135 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13136 ac_need_defaults=false;;
13138 # Conflict between --help and --header
13139 { $as_echo "$as_me: error: ambiguous option: $1
13140 Try \`$0 --help' for more information." >&2
13141 { (exit 1); exit 1; }; };;
13142 --help | --hel | -h )
13143 $as_echo "$ac_cs_usage"; exit ;;
13144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13148 # This is an error.
13149 -*) { $as_echo "$as_me: error: unrecognized option: $1
13150 Try \`$0 --help' for more information." >&2
13151 { (exit 1); exit 1; }; } ;;
13153 *) ac_config_targets="$ac_config_targets $1"
13154 ac_need_defaults=false ;;
13160 ac_configure_extra_args=
13162 if $ac_cs_silent; then
13164 ac_configure_extra_args="$ac_configure_extra_args --silent"
13168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13169 if \$ac_cs_recheck; then
13170 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13172 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13173 CONFIG_SHELL='$SHELL'
13174 export CONFIG_SHELL
13179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13183 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13184 ## Running $as_me. ##
13190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13194 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13201 # Handling of arguments.
13202 for ac_config_target in $ac_config_targets
13204 case $ac_config_target in
13205 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13206 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13207 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13208 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13209 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13210 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13211 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13212 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
13214 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13215 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13216 { (exit 1); exit 1; }; };;
13221 # If the user did not use the arguments to specify the items to instantiate,
13222 # then the envvar interface is used. Set only those that are not.
13223 # We use the long form for the default assignment because of an extremely
13224 # bizarre bug on SunOS 4.1.3.
13225 if $ac_need_defaults; then
13226 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13227 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13228 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13231 # Have a temporary directory for convenience. Make it in the build tree
13232 # simply because there is no reason against having it here, and in addition,
13233 # creating and moving files from /tmp can sometimes cause problems.
13234 # Hook for its removal unless debugging.
13235 # Note that there is a small window in which the directory will not be cleaned:
13236 # after its creation but before its name has been assigned to `$tmp'.
13240 trap 'exit_status=$?
13241 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13243 trap '{ (exit 1); exit 1; }' 1 2 13 15
13245 # Create a (secure) tmp directory for tmp files.
13248 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13249 test -n "$tmp" && test -d "$tmp"
13252 tmp=./conf$$-$RANDOM
13253 (umask 077 && mkdir "$tmp")
13256 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13257 { (exit 1); exit 1; }
13260 # Set up the scripts for CONFIG_FILES section.
13261 # No need to generate them if there are no CONFIG_FILES.
13262 # This happens for instance with `./config.status config.h'.
13263 if test -n "$CONFIG_FILES"; then
13268 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13269 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13272 ac_cs_awk_cr=$ac_cr
13275 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13280 echo "cat >conf$$subs.awk <<_ACEOF" &&
13281 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13283 } >conf$$subs.sh ||
13284 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13285 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13286 { (exit 1); exit 1; }; }
13287 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13289 for ac_last_try in false false false false false :; do
13290 . ./conf$$subs.sh ||
13291 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13292 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13293 { (exit 1); exit 1; }; }
13295 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
13297 elif $ac_last_try; then
13298 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13299 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13300 { (exit 1); exit 1; }; }
13302 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13305 rm -f conf$$subs.sh
13307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13308 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13312 s/^/S["/; s/!.*/"]=/
13322 s/\(.\{148\}\).*/\1/
13324 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13329 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13336 s/\(.\{148\}\).*/\1/
13338 s/["\\]/\\&/g; s/^/"/; s/$/"/
13342 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13347 ' <conf$$subs.awk | sed '
13352 ' >>$CONFIG_STATUS || ac_write_fail=1
13353 rm -f conf$$subs.awk
13354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13356 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13357 for (key in S) S_is_set[key] = 1
13363 nfields = split(line, field, "@")
13365 len = length(field[1])
13366 for (i = 2; i < nfields; i++) {
13368 keylen = length(key)
13369 if (S_is_set[key]) {
13371 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13372 len += length(value) + length(field[++i])
13383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13384 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13385 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13388 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13389 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13390 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13391 { (exit 1); exit 1; }; }
13394 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13395 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13396 # trailing colons and then remove the whole line if VPATH becomes empty
13397 # (actually we leave an empty line to preserve line numbers).
13398 if test "x$srcdir" = x.; then
13399 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13400 s/:*\$(srcdir):*/:/
13401 s/:*\${srcdir}:*/:/
13403 s/^\([^=]*=[ ]*\):*/\1/
13409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13410 fi # test -n "$CONFIG_FILES"
13412 # Set up the scripts for CONFIG_HEADERS section.
13413 # No need to generate them if there are no CONFIG_HEADERS.
13414 # This happens for instance with `./config.status Makefile'.
13415 if test -n "$CONFIG_HEADERS"; then
13416 cat >"$tmp/defines.awk" <<\_ACAWK ||
13420 # Transform confdefs.h into an awk script `defines.awk', embedded as
13421 # here-document in config.status, that substitutes the proper values into
13422 # config.h.in to produce config.h.
13424 # Create a delimiter string that does not exist in confdefs.h, to ease
13425 # handling of long lines.
13427 for ac_last_try in false false :; do
13428 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13429 if test -z "$ac_t"; then
13431 elif $ac_last_try; then
13432 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13433 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13434 { (exit 1); exit 1; }; }
13436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13440 # For the awk script, D is an array of macro values keyed by name,
13441 # likewise P contains macro parameters if any. Preserve backslash
13442 # newline sequences.
13444 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13446 s/.\{148\}/&'"$ac_delim"'/g
13449 s/^[ ]*#[ ]*define[ ][ ]*/ /
13456 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13463 D["\1"]=" \3\\\\\\n"\\/p
13465 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13470 s/.\{148\}/&'"$ac_delim"'/g
13475 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13478 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13480 ' <confdefs.h | sed '
13481 s/'"$ac_delim"'/"\\\
13482 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13485 for (key in D) D_is_set[key] = 1
13488 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13490 split(line, arg, " ")
13491 if (arg[1] == "#") {
13495 defundef = substr(arg[1], 2)
13498 split(mac1, mac2, "(") #)
13500 if (D_is_set[macro]) {
13501 # Preserve the white space surrounding the "#".
13502 prefix = substr(line, 1, index(line, defundef) - 1)
13503 print prefix "define", macro P[macro] D[macro]
13506 # Replace #undef with comments. This is necessary, for example,
13507 # in the case of _POSIX_SOURCE, which is predefined and required
13508 # on some systems where configure will not decide to define it.
13509 if (defundef == "undef") {
13510 print "/*", line, "*/"
13518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13519 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13520 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13521 { (exit 1); exit 1; }; }
13522 fi # test -n "$CONFIG_HEADERS"
13525 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13530 :[FHLC]) ac_mode=$ac_tag; continue;;
13532 case $ac_mode$ac_tag in
13534 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13535 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13536 { (exit 1); exit 1; }; };;
13537 :[FH]-) ac_tag=-:-;;
13538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13555 -) ac_f="$tmp/stdin";;
13556 *) # Look for the file first in the build tree, then in the source tree
13557 # (if the path is not absolute). The absolute path cannot be DOS-style,
13558 # because $ac_f cannot contain `:'.
13562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13564 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13565 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13566 { (exit 1); exit 1; }; };;
13568 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13569 ac_file_inputs="$ac_file_inputs '$ac_f'"
13572 # Let's still pretend it is `configure' which instantiates (i.e., don't
13573 # use $as_me), people would be surprised to read:
13574 # /* config.h. Generated by config.status. */
13575 configure_input='Generated from '`
13576 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13578 if test x"$ac_file" != x-; then
13579 configure_input="$ac_file. $configure_input"
13580 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13581 $as_echo "$as_me: creating $ac_file" >&6;}
13583 # Neutralize special characters interpreted by sed in replacement strings.
13584 case $configure_input in #(
13585 *\&* | *\|* | *\\* )
13586 ac_sed_conf_input=`$as_echo "$configure_input" |
13587 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13588 *) ac_sed_conf_input=$configure_input;;
13592 *:-:* | *:-) cat >"$tmp/stdin" \
13593 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13594 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13595 { (exit 1); exit 1; }; } ;;
13600 ac_dir=`$as_dirname -- "$ac_file" ||
13601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13602 X"$ac_file" : 'X\(//\)[^/]' \| \
13603 X"$ac_file" : 'X\(//\)$' \| \
13604 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13605 $as_echo X"$ac_file" |
13606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13610 /^X\(\/\/\)[^/].*/{
13625 -*) as_dir=./$as_dir;;
13627 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13631 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13632 *) as_qdir=$as_dir;;
13634 as_dirs="'$as_qdir' $as_dirs"
13635 as_dir=`$as_dirname -- "$as_dir" ||
13636 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13637 X"$as_dir" : 'X\(//\)[^/]' \| \
13638 X"$as_dir" : 'X\(//\)$' \| \
13639 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13640 $as_echo X"$as_dir" |
13641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13645 /^X\(\/\/\)[^/].*/{
13658 test -d "$as_dir" && break
13660 test -z "$as_dirs" || eval "mkdir $as_dirs"
13661 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13662 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13663 { (exit 1); exit 1; }; }; }
13667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13670 # A ".." for each directory in $ac_dir_suffix.
13671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13672 case $ac_top_builddir_sub in
13673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13677 ac_abs_top_builddir=$ac_pwd
13678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13679 # for backward compatibility:
13680 ac_top_builddir=$ac_top_build_prefix
13683 .) # We are building in place.
13685 ac_top_srcdir=$ac_top_builddir_sub
13686 ac_abs_top_srcdir=$ac_pwd ;;
13687 [\\/]* | ?:[\\/]* ) # Absolute name.
13688 ac_srcdir=$srcdir$ac_dir_suffix;
13689 ac_top_srcdir=$srcdir
13690 ac_abs_top_srcdir=$srcdir ;;
13691 *) # Relative name.
13692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13693 ac_top_srcdir=$ac_top_build_prefix$srcdir
13694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13706 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13707 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13712 # If the template does not know about datarootdir, expand it.
13713 # FIXME: This hack should be removed a few years after 2.60.
13714 ac_datarootdir_hack=; ac_datarootdir_seen=
13727 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13728 *datarootdir*) ac_datarootdir_seen=yes;;
13729 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13730 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13731 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13734 ac_datarootdir_hack='
13735 s&@datadir@&$datadir&g
13736 s&@docdir@&$docdir&g
13737 s&@infodir@&$infodir&g
13738 s&@localedir@&$localedir&g
13739 s&@mandir@&$mandir&g
13740 s&\\\${datarootdir}&$datarootdir&g' ;;
13744 # Neutralize VPATH when `$srcdir' = `.'.
13745 # Shell code in configure.ac might set extrasub.
13746 # FIXME: do we really want to maintain this feature?
13747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13748 ac_sed_extra="$ac_vpsub
13751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13754 s|@configure_input@|$ac_sed_conf_input|;t t
13755 s&@top_builddir@&$ac_top_builddir_sub&;t t
13756 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13757 s&@srcdir@&$ac_srcdir&;t t
13758 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13759 s&@top_srcdir@&$ac_top_srcdir&;t t
13760 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13761 s&@builddir@&$ac_builddir&;t t
13762 s&@abs_builddir@&$ac_abs_builddir&;t t
13763 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13764 s&@INSTALL@&$ac_INSTALL&;t t
13765 $ac_datarootdir_hack
13767 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13768 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13769 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13770 { (exit 1); exit 1; }; }
13772 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13773 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13774 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13775 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13776 which seems to be undefined. Please make sure it is defined." >&5
13777 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13778 which seems to be undefined. Please make sure it is defined." >&2;}
13782 -) cat "$tmp/out" && rm -f "$tmp/out";;
13783 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13785 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13786 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13787 { (exit 1); exit 1; }; }
13793 if test x"$ac_file" != x-; then
13795 $as_echo "/* $configure_input */" \
13796 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13797 } >"$tmp/config.h" \
13798 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13799 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13800 { (exit 1); exit 1; }; }
13801 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13802 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13803 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13806 mv "$tmp/config.h" "$ac_file" \
13807 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13808 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13809 { (exit 1); exit 1; }; }
13812 $as_echo "/* $configure_input */" \
13813 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13814 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13815 $as_echo "$as_me: error: could not create -" >&2;}
13816 { (exit 1); exit 1; }; }
13818 # Compute "$ac_file"'s index in $config_headers.
13820 for _am_header in $config_headers :; do
13821 case $_am_header in
13822 "$ac_file" | "$ac_file":* )
13825 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13828 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
13829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13830 X"$ac_file" : 'X\(//\)[^/]' \| \
13831 X"$ac_file" : 'X\(//\)$' \| \
13832 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13833 $as_echo X"$ac_file" |
13834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13838 /^X\(\/\/\)[^/].*/{
13850 s/.*/./; q'`/stamp-h$_am_stamp_count
13853 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13854 $as_echo "$as_me: executing $ac_file commands" >&6;}
13859 case $ac_file$ac_mode in
13860 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13861 # Strip MF so we end up with the name of the file.
13862 mf=`echo "$mf" | sed -e 's/:.*$//'`
13863 # Check whether this is an Automake generated Makefile or not.
13864 # We used to match only the files named `Makefile.in', but
13865 # some people rename them; so instead we look at the file content.
13866 # Grep'ing the first line is not enough: some people post-process
13867 # each Makefile.in and add a new line on top of each file to say so.
13868 # So let's grep whole file.
13869 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13870 dirpart=`$as_dirname -- "$mf" ||
13871 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13872 X"$mf" : 'X\(//\)[^/]' \| \
13873 X"$mf" : 'X\(//\)$' \| \
13874 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13880 /^X\(\/\/\)[^/].*/{
13896 # Extract the definition of DEPDIR, am__include, and am__quote
13897 # from the Makefile without running `make'.
13898 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13899 test -z "$DEPDIR" && continue
13900 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13901 test -z "am__include" && continue
13902 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13903 # When using ansi2knr, U may be empty or an underscore; expand it
13904 U=`sed -n 's/^U = //p' < "$mf"`
13905 # Find all dependency output files, they are included files with
13906 # $(DEPDIR) in their names. We invoke sed twice because it is the
13907 # simplest approach to changing $(DEPDIR) to its actual value in the
13909 for file in `sed -n "
13910 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13911 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13912 # Make sure the directory exists.
13913 test -f "$dirpart/$file" && continue
13914 fdir=`$as_dirname -- "$file" ||
13915 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13916 X"$file" : 'X\(//\)[^/]' \| \
13917 X"$file" : 'X\(//\)$' \| \
13918 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13919 $as_echo X"$file" |
13920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13924 /^X\(\/\/\)[^/].*/{
13937 { as_dir=$dirpart/$fdir
13939 -*) as_dir=./$as_dir;;
13941 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13945 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13946 *) as_qdir=$as_dir;;
13948 as_dirs="'$as_qdir' $as_dirs"
13949 as_dir=`$as_dirname -- "$as_dir" ||
13950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13951 X"$as_dir" : 'X\(//\)[^/]' \| \
13952 X"$as_dir" : 'X\(//\)$' \| \
13953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13954 $as_echo X"$as_dir" |
13955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13959 /^X\(\/\/\)[^/].*/{
13972 test -d "$as_dir" && break
13974 test -z "$as_dirs" || eval "mkdir $as_dirs"
13975 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13976 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13977 { (exit 1); exit 1; }; }; }
13978 # echo "creating $dirpart/$file"
13979 echo '# dummy' > "$dirpart/$file"
13983 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
13984 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
13991 { (exit 0); exit 0; }
13993 chmod +x $CONFIG_STATUS
13994 ac_clean_files=$ac_clean_files_save
13996 test $ac_write_fail = 0 ||
13997 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13998 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13999 { (exit 1); exit 1; }; }
14002 # configure is writing to config.log, and then calls config.status.
14003 # config.status does its own redirection, appending to config.log.
14004 # Unfortunately, on DOS this fails, as config.log is still kept open
14005 # by configure, so config.status won't be able to write to it; its
14006 # output is simply discarded. So we exec the FD to /dev/null,
14007 # effectively closing config.log, so it can be properly (re)opened and
14008 # appended to by config.status. When coming back to configure, we
14009 # need to make the FD available again.
14010 if test "$no_create" != yes; then
14012 ac_config_status_args=
14013 test "$silent" = yes &&
14014 ac_config_status_args="$ac_config_status_args --quiet"
14016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14019 # would make configure fail if this is the last instruction.
14020 $ac_cs_success || { (exit 1); exit 1; }
14022 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14023 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
14024 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
14029 -*) as_dir=./$as_dir;;
14031 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14035 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14036 *) as_qdir=$as_dir;;
14038 as_dirs="'$as_qdir' $as_dirs"
14039 as_dir=`$as_dirname -- "$as_dir" ||
14040 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14041 X"$as_dir" : 'X\(//\)[^/]' \| \
14042 X"$as_dir" : 'X\(//\)$' \| \
14043 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14044 $as_echo X"$as_dir" |
14045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14049 /^X\(\/\/\)[^/].*/{
14062 test -d "$as_dir" && break
14064 test -z "$as_dirs" || eval "mkdir $as_dirs"
14065 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14066 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14067 { (exit 1); exit 1; }; }; }
14071 echo "Configuration complete"
14074 if test "x$HAVE_GTK" = x; then
14075 if test "x$HAVE_COCOA" = x; then
14076 echo " User interface: none"
14078 echo " User interface: Cocoa"
14081 echo " User interface: GTK"
14084 if test "x$SH4_TRANSLATOR" = "x"; then
14085 echo " SH4 translator: None (emulation core only)"
14087 echo " SH4 translator: $SH4_TRANSLATOR"
14090 if test "x$VIDEO_DRIVERS" = "x"; then
14091 echo " Video drivers: none (no supported GL found)"
14093 echo " Video drivers: $VIDEO_DRIVERS"
14096 if test "x$AUDIO_DRIVERS" = "x"; then
14097 echo " Audio drivers: none (no supported output devices found)"
14099 echo " Audio drivers: $AUDIO_DRIVERS"
14102 if test "x$CDROM_DRIVER" = "x"; then
14103 echo " CD-ROM driver: none (no supported cd-rom devices found)"
14105 echo " CD-ROM driver: $CDROM_DRIVER"
.