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
802 enable_option_checking
803 enable_maintainer_mode
804 enable_dependency_tracking
816 ac_precious_vars='build_alias
842 # Initialize some variables set by options.
844 ac_init_version=false
845 ac_unrecognized_opts=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
856 program_transform_name=s,x,x,
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE}'
881 infodir='${datarootdir}/info'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
902 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
930 cache_file=config.cache ;;
932 -datadir | --datadir | --datadi | --datad)
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
949 { (exit 1); exit 1; }; }
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
959 eval enable_$ac_useropt=no ;;
961 -docdir | --docdir | --docdi | --doc | --do)
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
976 { (exit 1); exit 1; }; }
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
986 eval enable_$ac_useropt=\$ac_optarg ;;
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017 htmldir=$ac_optarg ;;
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1031 -libdir | --libdir | --libdi | --libd)
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1122 -psdir | --psdir | --psdi | --psd | --ps)
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 sbindir=$ac_optarg ;;
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 sharedstatedir=$ac_optarg ;;
1148 -site | --site | --sit)
1150 -site=* | --site=* | --sit=*)
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1181 { (exit 1); exit 1; }; }
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1191 eval with_$ac_useropt=\$ac_optarg ;;
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1198 { (exit 1); exit 1; }; }
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1208 eval with_$ac_useropt=no ;;
1211 # Obsolete; use --with-x.
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1228 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1229 Try \`$0 --help' for more information." >&2
1230 { (exit 1); exit 1; }; }
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1237 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1238 { (exit 1); exit 1; }; }
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1256 { (exit 1); exit 1; }; }
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1262 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1263 { (exit 1); exit 1; }; } ;;
1264 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1281 # Be sure to have absolute directory names.
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1287 { (exit 1); exit 1; }; }
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1295 target=$target_alias
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311 test "$silent" = yes && exec 6>/dev/null
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1318 { (exit 1); exit 1; }; }
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1321 { (exit 1); exit 1; }; }
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 $as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1356 ac_srcdir_defaulted=no
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1361 { (exit 1); exit 1; }; }
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1366 { (exit 1); exit 1; }; }
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1392 \`configure' configures this package to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 if test -n "$ac_init_help"; then
1465 --disable-option-checking ignore unrecognized --enable/--with options
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468 --enable-maintainer-mode enable make rules and dependencies not useful
1469 (and sometimes confusing) to the casual installer
1470 --disable-dependency-tracking speeds up one-time build
1471 --enable-dependency-tracking do not reject slow dependency extractors
1472 --enable-strict-warn Enable strict compilation warnings
1473 --disable-translator Disable the SH4 translator (Enabled by default)
1474 --disable-optimized Disable compile-time optimizations (Enabled by
1476 --enable-trace Enable generation of IO traces (warning: hurts
1478 --enable-watch Enable watchpoints in the debugger (warning: hurts
1480 --enable-sh4stats Enable statistics on executed sh4 instructions
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-osmesa Build with the osmesa GL library (software
1487 --with-gtk Build with the GTK UI. Default on X11 systems
1488 --with-esd Build with support for the ESounD audio system
1489 --with-pulse Build with support for the PulseAudio audio system
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1499 CCAS assembler compiler command (defaults to CC)
1500 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1502 PKG_CONFIG path to pkg-config utility
1504 C compiler flags for LIBPNG, overriding pkg-config
1505 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1506 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1507 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1508 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1509 GTK_LIBS linker flags for GTK, overriding pkg-config
1511 C compiler flags for PULSE, overriding pkg-config
1512 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1514 C compiler flags for ESOUND, overriding pkg-config
1515 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1516 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1517 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1526 if test "$ac_init_help" = "recursive"; then
1527 # If there are subdirs, report their specific --help.
1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529 test -d "$ac_dir" ||
1530 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1538 # A ".." for each directory in $ac_dir_suffix.
1539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1540 case $ac_top_builddir_sub in
1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1551 .) # We are building in place.
1553 ac_top_srcdir=$ac_top_builddir_sub
1554 ac_abs_top_srcdir=$ac_pwd ;;
1555 [\\/]* | ?:[\\/]* ) # Absolute name.
1556 ac_srcdir=$srcdir$ac_dir_suffix;
1557 ac_top_srcdir=$srcdir
1558 ac_abs_top_srcdir=$srcdir ;;
1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561 ac_top_srcdir=$ac_top_build_prefix$srcdir
1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for guested configure.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1573 $SHELL "$ac_srcdir/configure" --help=recursive
1575 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577 cd "$ac_pwd" || { ac_status=$?; break; }
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1585 generated by GNU Autoconf 2.62
1587 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1588 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1594 cat >config.log <<_ACEOF
1595 This file contains any messages produced by compilers while
1596 running configure, to aid debugging if configure makes a mistake.
1598 It was created by $as_me, which was
1599 generated by GNU Autoconf 2.62. Invocation command line was
1611 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1612 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1613 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1614 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1615 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1617 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1618 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1620 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1621 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1622 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1623 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1624 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1625 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1626 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 test -z "$as_dir" && as_dir=.
1635 $as_echo "PATH: $as_dir"
1651 # Keep a trace of the command line.
1652 # Strip out --no-create and --no-recursion so they do not pile up.
1653 # Strip out --silent because we don't want to record it for future runs.
1654 # Also quote any args containing shell meta-characters.
1655 # Make two passes to allow for proper duplicate-argument suppression.
1659 ac_must_keep_next=false
1665 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1666 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1667 | -silent | --silent | --silen | --sile | --sil)
1670 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1673 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1675 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1676 if test $ac_must_keep_next = true; then
1677 ac_must_keep_next=false # Got value, back to normal.
1680 *=* | --config-cache | -C | -disable-* | --disable-* \
1681 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1682 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1683 | -with-* | --with-* | -without-* | --without-* | --x)
1684 case "$ac_configure_args0 " in
1685 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1688 -* ) ac_must_keep_next=true ;;
1691 ac_configure_args="$ac_configure_args '$ac_arg'"
1696 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1697 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1699 # When interrupted or exit'd, cleanup temporary files, and complete
1700 # config.log. We remove comments because anyway the quotes in there
1701 # would cause problems or look ugly.
1702 # WARNING: Use '\'' to represent an apostrophe within the trap.
1703 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1704 trap 'exit_status=$?
1705 # Save into config.log some information that might help in debugging.
1710 ## ---------------- ##
1711 ## Cache variables. ##
1712 ## ---------------- ##
1715 # The following way of writing the cache mishandles newlines in values,
1717 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1718 eval ac_val=\$$ac_var
1722 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1723 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1726 _ | IFS | as_nl) ;; #(
1727 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1728 *) $as_unset $ac_var ;;
1733 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1734 *${as_nl}ac_space=\ *)
1736 "s/'\''/'\''\\\\'\'''\''/g;
1737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1748 ## ----------------- ##
1749 ## Output variables. ##
1750 ## ----------------- ##
1753 for ac_var in $ac_subst_vars
1755 eval ac_val=\$$ac_var
1757 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 $as_echo "$ac_var='\''$ac_val'\''"
1763 if test -n "$ac_subst_files"; then
1765 ## ------------------- ##
1766 ## File substitutions. ##
1767 ## ------------------- ##
1770 for ac_var in $ac_subst_files
1772 eval ac_val=\$$ac_var
1774 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776 $as_echo "$ac_var='\''$ac_val'\''"
1781 if test -s confdefs.h; then
1791 test "$ac_signal" != 0 &&
1792 $as_echo "$as_me: caught signal $ac_signal"
1793 $as_echo "$as_me: exit $exit_status"
1795 rm -f core *.core core.conftest.* &&
1796 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1799 for ac_signal in 1 2 13 15; do
1800 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1804 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1805 rm -f -r conftest* confdefs.h
1807 # Predefined preprocessor variables.
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_NAME "$PACKAGE_NAME"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_STRING "$PACKAGE_STRING"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1834 # Let the site file select an alternate cache file if it wants to.
1835 # Prefer an explicitly selected file to automatically selected ones.
1838 if test -n "$CONFIG_SITE"; then
1839 ac_site_file1=$CONFIG_SITE
1840 elif test "x$prefix" != xNONE; then
1841 ac_site_file1=$prefix/share/config.site
1842 ac_site_file2=$prefix/etc/config.site
1844 ac_site_file1=$ac_default_prefix/share/config.site
1845 ac_site_file2=$ac_default_prefix/etc/config.site
1847 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1849 test "x$ac_site_file" = xNONE && continue
1850 if test -r "$ac_site_file"; then
1851 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1853 sed 's/^/| /' "$ac_site_file" >&5
1858 if test -r "$cache_file"; then
1859 # Some versions of bash will fail to source /dev/null (special
1860 # files actually), so we avoid doing that.
1861 if test -f "$cache_file"; then
1862 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863 $as_echo "$as_me: loading cache $cache_file" >&6;}
1865 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1866 *) . "./$cache_file";;
1870 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871 $as_echo "$as_me: creating cache $cache_file" >&6;}
1875 # Check that the precious variables saved in the cache have kept the same
1877 ac_cache_corrupted=false
1878 for ac_var in $ac_precious_vars; do
1879 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880 eval ac_new_set=\$ac_env_${ac_var}_set
1881 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882 eval ac_new_val=\$ac_env_${ac_var}_value
1883 case $ac_old_set,$ac_new_set in
1885 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887 ac_cache_corrupted=: ;;
1889 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891 ac_cache_corrupted=: ;;
1894 if test "x$ac_old_val" != "x$ac_new_val"; then
1895 # differences in whitespace do not lead to failure.
1896 ac_old_val_w=`echo x $ac_old_val`
1897 ac_new_val_w=`echo x $ac_new_val`
1898 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1899 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1900 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1901 ac_cache_corrupted=:
1903 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1904 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1905 eval $ac_var=\$ac_old_val
1907 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1908 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1909 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1910 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1913 # Pass precious variables to config.status.
1914 if test "$ac_new_set" = set; then
1916 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1917 *) ac_arg=$ac_var=$ac_new_val ;;
1919 case " $ac_configure_args " in
1920 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1921 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1925 if $ac_cache_corrupted; then
1926 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1927 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1928 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1929 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1930 { (exit 1); exit 1; }; }
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 am__api_version="1.9"
1958 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1959 if test -f "$ac_dir/install-sh"; then
1961 ac_install_sh="$ac_aux_dir/install-sh -c"
1963 elif test -f "$ac_dir/install.sh"; then
1965 ac_install_sh="$ac_aux_dir/install.sh -c"
1967 elif test -f "$ac_dir/shtool"; then
1969 ac_install_sh="$ac_aux_dir/shtool install -c"
1973 if test -z "$ac_aux_dir"; then
1974 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1975 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1976 { (exit 1); exit 1; }; }
1979 # These three variables are undocumented and unsupported,
1980 # and are intended to be withdrawn in a future Autoconf release.
1981 # They can cause serious problems if a builder's source tree is in a directory
1982 # whose full name contains unusual characters.
1983 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1984 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1985 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1988 # Find a good install program. We prefer a C program (faster),
1989 # so one script is as good as another. But avoid the broken or
1990 # incompatible versions:
1991 # SysV /etc/install, /usr/sbin/install
1992 # SunOS /usr/etc/install
1993 # IRIX /sbin/install
1995 # AmigaOS /C/install, which installs bootblocks on floppy discs
1996 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1997 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1998 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1999 # OS/2's system install, which has a completely different semantic
2000 # ./install, which can be erroneously created by make from ./install.sh.
2001 # Reject install programs that cannot install multiple files.
2002 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2003 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2004 if test -z "$INSTALL"; then
2005 if test "${ac_cv_path_install+set}" = set; then
2006 $as_echo_n "(cached) " >&6
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 test -z "$as_dir" && as_dir=.
2013 # Account for people who put trailing slashes in PATH elements.
2015 ./ | .// | /cC/* | \
2016 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2017 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2020 # OSF1 and SCO ODT 3.0 have their own names for install.
2021 # Don't use installbsd from OSF since it installs stuff as root
2023 for ac_prog in ginstall scoinst install; do
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2026 if test $ac_prog = install &&
2027 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2028 # AIX install. It has an incompatible calling convention.
2030 elif test $ac_prog = install &&
2031 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2032 # program-specific install script used by HP pwplus--don't use.
2035 rm -rf conftest.one conftest.two conftest.dir
2036 echo one > conftest.one
2037 echo two > conftest.two
2039 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2040 test -s conftest.one && test -s conftest.two &&
2041 test -s conftest.dir/conftest.one &&
2042 test -s conftest.dir/conftest.two
2044 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2057 rm -rf conftest.one conftest.two conftest.dir
2060 if test "${ac_cv_path_install+set}" = set; then
2061 INSTALL=$ac_cv_path_install
2063 # As a last resort, use the slow shell script. Don't cache a
2064 # value for INSTALL within a source directory, because that will
2065 # break other packages using the cache if that directory is
2066 # removed, or if the value is a relative name.
2067 INSTALL=$ac_install_sh
2070 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2071 $as_echo "$INSTALL" >&6; }
2073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2074 # It thinks the first close brace ends the variable substitution.
2075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2077 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2079 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2081 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2082 $as_echo_n "checking whether build environment is sane... " >&6; }
2085 echo timestamp > conftest.file
2086 # Do `set' in a subshell so we don't clobber the current shell's
2087 # arguments. Must try -L first in case configure is actually a
2088 # symlink; some systems play weird games with the mod time of symlinks
2089 # (eg FreeBSD returns the mod time of the symlink's containing
2092 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2093 if test "$*" = "X"; then
2095 set X `ls -t $srcdir/configure conftest.file`
2098 if test "$*" != "X $srcdir/configure conftest.file" \
2099 && test "$*" != "X conftest.file $srcdir/configure"; then
2101 # If neither matched, then we have a broken ls. This can happen
2102 # if, for instance, CONFIG_SHELL is bash and it inherits a
2103 # broken ls alias from the environment. This has actually
2104 # happened. Such a system could not be considered "sane".
2105 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2106 alias in your environment" >&5
2107 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2108 alias in your environment" >&2;}
2109 { (exit 1); exit 1; }; }
2112 test "$2" = conftest.file
2118 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2119 Check your system clock" >&5
2120 $as_echo "$as_me: error: newly created file is older than distributed files!
2121 Check your system clock" >&2;}
2122 { (exit 1); exit 1; }; }
2124 { $as_echo "$as_me:$LINENO: result: yes" >&5
2125 $as_echo "yes" >&6; }
2126 test "$program_prefix" != NONE &&
2127 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2128 # Use a double $ so make ignores it.
2129 test "$program_suffix" != NONE &&
2130 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2131 # Double any \ or $.
2132 # By default was `s,x,x', remove it if useless.
2133 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2134 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2136 # expand $ac_aux_dir to an absolute path
2137 am_aux_dir=`cd $ac_aux_dir && pwd`
2139 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2140 # Use eval to expand $SHELL
2141 if eval "$MISSING --run true"; then
2142 am_missing_run="$MISSING --run "
2145 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2146 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2149 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2150 # We used to keeping the `.' as first argument, in order to
2151 # allow $(mkdir_p) to be used without argument. As in
2152 # $(mkdir_p) $(somedir)
2153 # where $(somedir) is conditionally defined. However this is wrong
2155 # 1. if the package is installed by a user who cannot write `.'
2156 # make install will fail,
2157 # 2. the above comment should most certainly read
2158 # $(mkdir_p) $(DESTDIR)$(somedir)
2159 # so it does not work when $(somedir) is undefined and
2160 # $(DESTDIR) is not.
2161 # To support the latter case, we have to write
2162 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2163 # so the `.' trick is pointless.
2164 mkdir_p='mkdir -p --'
2166 # On NextStep and OpenStep, the `mkdir' command does not
2167 # recognize any option. It will interpret all options as
2168 # directories to create, and then abort because `.' already
2170 for d in ./-p ./--version;
2172 test -d $d && rmdir $d
2174 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2175 if test -f "$ac_aux_dir/mkinstalldirs"; then
2176 mkdir_p='$(mkinstalldirs)'
2178 mkdir_p='$(install_sh) -d'
2182 for ac_prog in gawk mawk nawk awk
2184 # Extract the first word of "$ac_prog", so it can be a program name with args.
2185 set dummy $ac_prog; ac_word=$2
2186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 $as_echo_n "checking for $ac_word... " >&6; }
2188 if test "${ac_cv_prog_AWK+set}" = set; then
2189 $as_echo_n "(cached) " >&6
2191 if test -n "$AWK"; then
2192 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201 ac_cv_prog_AWK="$ac_prog"
2202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 if test -n "$AWK"; then
2213 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2214 $as_echo "$AWK" >&6; }
2216 { $as_echo "$as_me:$LINENO: result: no" >&5
2217 $as_echo "no" >&6; }
2221 test -n "$AWK" && break
2224 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2225 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2227 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2228 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2229 $as_echo_n "(cached) " >&6
2231 cat >conftest.make <<\_ACEOF
2234 @echo '@@@%%%=$(MAKE)=@@@%%%'
2236 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2237 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2239 eval ac_cv_prog_make_${ac_make}_set=yes;;
2241 eval ac_cv_prog_make_${ac_make}_set=no;;
2245 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2246 { $as_echo "$as_me:$LINENO: result: yes" >&5
2247 $as_echo "yes" >&6; }
2250 { $as_echo "$as_me:$LINENO: result: no" >&5
2251 $as_echo "no" >&6; }
2252 SET_MAKE="MAKE=${MAKE-make}"
2255 rm -rf .tst 2>/dev/null
2256 mkdir .tst 2>/dev/null
2257 if test -d .tst; then
2262 rmdir .tst 2>/dev/null
2264 # test to see if srcdir already configured
2265 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2266 test -f $srcdir/config.status; then
2267 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2268 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2269 { (exit 1); exit 1; }; }
2272 # test whether we have cygpath
2273 if test -z "$CYGPATH_W"; then
2274 if (cygpath --version) >/dev/null 2>/dev/null; then
2275 CYGPATH_W='cygpath -w'
2282 # Define the identity of the package.
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE "$PACKAGE"
2292 cat >>confdefs.h <<_ACEOF
2293 #define VERSION "$VERSION"
2296 # Some tools Automake needs.
2298 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2301 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2304 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2307 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2310 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2312 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2314 # Installed binaries are usually stripped using `strip' when the user
2315 # run `make install-strip'. However `strip' might not be the right
2316 # tool to use in cross-compilation environments, therefore Automake
2317 # will honor the `STRIP' environment variable to overrule this program.
2318 if test "$cross_compiling" != no; then
2319 if test -n "$ac_tool_prefix"; then
2320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}strip; ac_word=$2
2322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 $as_echo_n "checking for $ac_word... " >&6; }
2324 if test "${ac_cv_prog_STRIP+set}" = set; then
2325 $as_echo_n "(cached) " >&6
2327 if test -n "$STRIP"; then
2328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 STRIP=$ac_cv_prog_STRIP
2348 if test -n "$STRIP"; then
2349 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2350 $as_echo "$STRIP" >&6; }
2352 { $as_echo "$as_me:$LINENO: result: no" >&5
2353 $as_echo "no" >&6; }
2358 if test -z "$ac_cv_prog_STRIP"; then
2360 # Extract the first word of "strip", so it can be a program name with args.
2361 set dummy strip; ac_word=$2
2362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 $as_echo_n "checking for $ac_word... " >&6; }
2364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2365 $as_echo_n "(cached) " >&6
2367 if test -n "$ac_ct_STRIP"; then
2368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_ac_ct_STRIP="strip"
2378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2388 if test -n "$ac_ct_STRIP"; then
2389 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2390 $as_echo "$ac_ct_STRIP" >&6; }
2392 { $as_echo "$as_me:$LINENO: result: no" >&5
2393 $as_echo "no" >&6; }
2396 if test "x$ac_ct_STRIP" = x; then
2399 case $cross_compiling:$ac_tool_warned in
2401 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&5
2404 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2407 ac_tool_warned=yes ;;
2412 STRIP="$ac_cv_prog_STRIP"
2416 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2418 # We need awk for the "check" target. The system "awk" is bad on
2420 # Always define AMTAR for backward compatibility.
2422 AMTAR=${AMTAR-"${am_missing_run}tar"}
2424 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2430 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2431 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2432 # Check whether --enable-maintainer-mode was given.
2433 if test "${enable_maintainer_mode+set}" = set; then
2434 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2436 USE_MAINTAINER_MODE=no
2439 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2440 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2443 if test $USE_MAINTAINER_MODE = yes; then
2444 MAINTAINER_MODE_TRUE=
2445 MAINTAINER_MODE_FALSE='#'
2447 MAINTAINER_MODE_TRUE='#'
2448 MAINTAINER_MODE_FALSE=
2451 MAINT=$MAINTAINER_MODE_TRUE
2454 ac_config_headers="$ac_config_headers config.h"
2457 DEPDIR="${am__leading_dot}deps"
2459 ac_config_commands="$ac_config_commands depfiles"
2462 am_make=${MAKE-make}
2463 cat > confinc << 'END'
2468 # If we don't find an include directive, just comment out the code.
2469 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2470 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2474 # First try GNU make style include.
2475 echo "include confinc" > confmf
2476 # We grep out `Entering directory' and `Leaving directory'
2477 # messages which can occur if `w' ends up in MAKEFLAGS.
2478 # In particular we don't look at `^make:' because GNU make might
2479 # be invoked under some other name (usually "gmake"), in which
2480 # case it prints its new name instead of `make'.
2481 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2486 # Now try BSD make style include.
2487 if test "$am__include" = "#"; then
2488 echo '.include "confinc"' > confmf
2489 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2490 am__include=.include
2497 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2498 $as_echo "$_am_result" >&6; }
2499 rm -f confinc confmf
2501 # Check whether --enable-dependency-tracking was given.
2502 if test "${enable_dependency_tracking+set}" = set; then
2503 enableval=$enable_dependency_tracking;
2506 if test "x$enable_dependency_tracking" != xno; then
2507 am_depcomp="$ac_aux_dir/depcomp"
2512 if test "x$enable_dependency_tracking" != xno; then
2523 ac_cpp='$CPP $CPPFLAGS'
2524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527 if test -n "$ac_tool_prefix"; then
2528 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2529 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 $as_echo_n "checking for $ac_word... " >&6; }
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 $as_echo_n "(cached) " >&6
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2546 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 if test -n "$CC"; then
2557 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2558 $as_echo "$CC" >&6; }
2560 { $as_echo "$as_me:$LINENO: result: no" >&5
2561 $as_echo "no" >&6; }
2566 if test -z "$ac_cv_prog_CC"; then
2568 # Extract the first word of "gcc", so it can be a program name with args.
2569 set dummy gcc; ac_word=$2
2570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 $as_echo_n "checking for $ac_word... " >&6; }
2572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2573 $as_echo_n "(cached) " >&6
2575 if test -n "$ac_ct_CC"; then
2576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 ac_cv_prog_ac_ct_CC="gcc"
2586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2596 if test -n "$ac_ct_CC"; then
2597 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2598 $as_echo "$ac_ct_CC" >&6; }
2600 { $as_echo "$as_me:$LINENO: result: no" >&5
2601 $as_echo "no" >&6; }
2604 if test "x$ac_ct_CC" = x; then
2607 case $cross_compiling:$ac_tool_warned in
2609 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2610 whose name does not start with the host triplet. If you think this
2611 configuration is useful to you, please write to autoconf@gnu.org." >&5
2612 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2613 whose name does not start with the host triplet. If you think this
2614 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2615 ac_tool_warned=yes ;;
2623 if test -z "$CC"; then
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}cc; ac_word=$2
2627 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if test "${ac_cv_prog_CC+set}" = set; then
2630 $as_echo_n "(cached) " >&6
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642 ac_cv_prog_CC="${ac_tool_prefix}cc"
2643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 if test -n "$CC"; then
2654 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2655 $as_echo "$CC" >&6; }
2657 { $as_echo "$as_me:$LINENO: result: no" >&5
2658 $as_echo "no" >&6; }
2664 if test -z "$CC"; then
2665 # Extract the first word of "cc", so it can be a program name with args.
2666 set dummy cc; ac_word=$2
2667 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if test "${ac_cv_prog_CC+set}" = set; then
2670 $as_echo_n "(cached) " >&6
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2684 ac_prog_rejected=yes
2688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 if test $ac_prog_rejected = yes; then
2696 # We found a bogon in the path, so make sure we never use it.
2697 set dummy $ac_cv_prog_CC
2699 if test $# != 0; then
2700 # We chose a different compiler from the bogus one.
2701 # However, it has the same basename, so the bogon will be chosen
2702 # first if we set CC to just the basename; use the full file name.
2704 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2710 if test -n "$CC"; then
2711 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2712 $as_echo "$CC" >&6; }
2714 { $as_echo "$as_me:$LINENO: result: no" >&5
2715 $as_echo "no" >&6; }
2720 if test -z "$CC"; then
2721 if test -n "$ac_tool_prefix"; then
2722 for ac_prog in cl.exe
2724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2726 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 $as_echo_n "(cached) " >&6
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2742 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 if test -n "$CC"; then
2753 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2754 $as_echo "$CC" >&6; }
2756 { $as_echo "$as_me:$LINENO: result: no" >&5
2757 $as_echo "no" >&6; }
2761 test -n "$CC" && break
2764 if test -z "$CC"; then
2766 for ac_prog in cl.exe
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2773 $as_echo_n "(cached) " >&6
2775 if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_ac_ct_CC="$ac_prog"
2786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796 if test -n "$ac_ct_CC"; then
2797 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2798 $as_echo "$ac_ct_CC" >&6; }
2800 { $as_echo "$as_me:$LINENO: result: no" >&5
2801 $as_echo "no" >&6; }
2805 test -n "$ac_ct_CC" && break
2808 if test "x$ac_ct_CC" = x; then
2811 case $cross_compiling:$ac_tool_warned in
2813 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2814 whose name does not start with the host triplet. If you think this
2815 configuration is useful to you, please write to autoconf@gnu.org." >&5
2816 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2817 whose name does not start with the host triplet. If you think this
2818 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2819 ac_tool_warned=yes ;;
2828 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2829 See \`config.log' for more details." >&5
2830 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2831 See \`config.log' for more details." >&2;}
2832 { (exit 1); exit 1; }; }
2834 # Provide some information about the compiler.
2835 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2838 { (ac_try="$ac_compiler --version >&5"
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2844 $as_echo "$ac_try_echo") >&5
2845 (eval "$ac_compiler --version >&5") 2>&5
2847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }
2849 { (ac_try="$ac_compiler -v >&5"
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2855 $as_echo "$ac_try_echo") >&5
2856 (eval "$ac_compiler -v >&5") 2>&5
2858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }
2860 { (ac_try="$ac_compiler -V >&5"
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2866 $as_echo "$ac_try_echo") >&5
2867 (eval "$ac_compiler -V >&5") 2>&5
2869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }
2872 cat >conftest.$ac_ext <<_ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2887 ac_clean_files_save=$ac_clean_files
2888 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2889 # Try to create an executable without -o first, disregard a.out.
2890 # It will help us diagnose broken compilers, and finding out an intuition
2892 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2893 $as_echo_n "checking for C compiler default output file name... " >&6; }
2894 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2896 # The possible output files:
2897 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2900 for ac_file in $ac_files
2903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2904 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2909 if { (ac_try="$ac_link_default"
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2915 $as_echo "$ac_try_echo") >&5
2916 (eval "$ac_link_default") 2>&5
2918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; then
2920 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2921 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2922 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2923 # so that the user can short-circuit this test for compilers unknown to
2925 for ac_file in $ac_files ''
2927 test -f "$ac_file" || continue
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2932 # We found the default executable, but exeext='' is most
2936 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2938 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940 # We set ac_cv_exeext here because the later test for it is not
2941 # safe: cross compilers may not add the suffix if given an `-o'
2942 # argument, so we may need to know it at that point already.
2943 # Even if this section looks crufty: it has the advantage of
2950 test "$ac_cv_exeext" = no && ac_cv_exeext=
2956 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2957 $as_echo "$ac_file" >&6; }
2958 if test -z "$ac_file"; then
2959 $as_echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2962 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2963 See \`config.log' for more details." >&5
2964 $as_echo "$as_me: error: C compiler cannot create executables
2965 See \`config.log' for more details." >&2;}
2966 { (exit 77); exit 77; }; }
2969 ac_exeext=$ac_cv_exeext
2971 # Check that the compiler produces executables we can run. If not, either
2972 # the compiler is broken, or we cross compile.
2973 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2974 $as_echo_n "checking whether the C compiler works... " >&6; }
2975 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2976 # If not cross compiling, check that we can run a simple program.
2977 if test "$cross_compiling" != yes; then
2978 if { ac_try='./$ac_file'
2979 { (case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2984 $as_echo "$ac_try_echo") >&5
2985 (eval "$ac_try") 2>&5
2987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2991 if test "$cross_compiling" = maybe; then
2994 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2995 If you meant to cross compile, use \`--host'.
2996 See \`config.log' for more details." >&5
2997 $as_echo "$as_me: error: cannot run C compiled programs.
2998 If you meant to cross compile, use \`--host'.
2999 See \`config.log' for more details." >&2;}
3000 { (exit 1); exit 1; }; }
3004 { $as_echo "$as_me:$LINENO: result: yes" >&5
3005 $as_echo "yes" >&6; }
3007 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3008 ac_clean_files=$ac_clean_files_save
3009 # Check that the compiler produces executables we can run. If not, either
3010 # the compiler is broken, or we cross compile.
3011 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3012 $as_echo_n "checking whether we are cross compiling... " >&6; }
3013 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3014 $as_echo "$cross_compiling" >&6; }
3016 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3017 $as_echo_n "checking for suffix of executables... " >&6; }
3018 if { (ac_try="$ac_link"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3024 $as_echo "$ac_try_echo") >&5
3025 (eval "$ac_link") 2>&5
3027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; then
3029 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3030 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3031 # work properly (i.e., refer to `conftest.exe'), while it won't with
3033 for ac_file in conftest.exe conftest conftest.*; do
3034 test -f "$ac_file" || continue
3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3037 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3043 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3044 See \`config.log' for more details." >&5
3045 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3046 See \`config.log' for more details." >&2;}
3047 { (exit 1); exit 1; }; }
3050 rm -f conftest$ac_cv_exeext
3051 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3052 $as_echo "$ac_cv_exeext" >&6; }
3054 rm -f conftest.$ac_ext
3055 EXEEXT=$ac_cv_exeext
3057 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3058 $as_echo_n "checking for suffix of object files... " >&6; }
3059 if test "${ac_cv_objext+set}" = set; then
3060 $as_echo_n "(cached) " >&6
3062 cat >conftest.$ac_ext <<_ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3077 rm -f conftest.o conftest.obj
3078 if { (ac_try="$ac_compile"
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3084 $as_echo "$ac_try_echo") >&5
3085 (eval "$ac_compile") 2>&5
3087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; then
3089 for ac_file in conftest.o conftest.obj conftest.*; do
3090 test -f "$ac_file" || continue;
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3098 $as_echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3101 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3102 See \`config.log' for more details." >&5
3103 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3104 See \`config.log' for more details." >&2;}
3105 { (exit 1); exit 1; }; }
3108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3110 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3111 $as_echo "$ac_cv_objext" >&6; }
3112 OBJEXT=$ac_cv_objext
3114 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3116 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3117 $as_echo_n "(cached) " >&6
3119 cat >conftest.$ac_ext <<_ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3144 $as_echo "$ac_try_echo") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } && {
3152 test -z "$ac_c_werror_flag" ||
3153 test ! -s conftest.err
3154 } && test -s conftest.$ac_objext; then
3157 $as_echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3167 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3168 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3169 if test $ac_compiler_gnu = yes; then
3174 ac_test_CFLAGS=${CFLAGS+set}
3175 ac_save_CFLAGS=$CFLAGS
3176 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3177 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3178 if test "${ac_cv_prog_cc_g+set}" = set; then
3179 $as_echo_n "(cached) " >&6
3181 ac_save_c_werror_flag=$ac_c_werror_flag
3182 ac_c_werror_flag=yes
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3200 rm -f conftest.$ac_objext
3201 if { (ac_try="$ac_compile"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3207 $as_echo "$ac_try_echo") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3210 grep -v '^ *+' conftest.er1 >conftest.err
3212 cat conftest.err >&5
3213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } && {
3215 test -z "$ac_c_werror_flag" ||
3216 test ! -s conftest.err
3217 } && test -s conftest.$ac_objext; then
3220 $as_echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3224 cat >conftest.$ac_ext <<_ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3239 rm -f conftest.$ac_objext
3240 if { (ac_try="$ac_compile"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3246 $as_echo "$ac_try_echo") >&5
3247 (eval "$ac_compile") 2>conftest.er1
3249 grep -v '^ *+' conftest.er1 >conftest.err
3251 cat conftest.err >&5
3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } && {
3254 test -z "$ac_c_werror_flag" ||
3255 test ! -s conftest.err
3256 } && test -s conftest.$ac_objext; then
3259 $as_echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3262 ac_c_werror_flag=$ac_save_c_werror_flag
3264 cat >conftest.$ac_ext <<_ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3279 rm -f conftest.$ac_objext
3280 if { (ac_try="$ac_compile"
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3286 $as_echo "$ac_try_echo") >&5
3287 (eval "$ac_compile") 2>conftest.er1
3289 grep -v '^ *+' conftest.er1 >conftest.err
3291 cat conftest.err >&5
3292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } && {
3294 test -z "$ac_c_werror_flag" ||
3295 test ! -s conftest.err
3296 } && test -s conftest.$ac_objext; then
3299 $as_echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 ac_c_werror_flag=$ac_save_c_werror_flag
3314 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3315 $as_echo "$ac_cv_prog_cc_g" >&6; }
3316 if test "$ac_test_CFLAGS" = set; then
3317 CFLAGS=$ac_save_CFLAGS
3318 elif test $ac_cv_prog_cc_g = yes; then
3319 if test "$GCC" = yes; then
3325 if test "$GCC" = yes; then
3331 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3332 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3333 if test "${ac_cv_prog_cc_c89+set}" = set; then
3334 $as_echo_n "(cached) " >&6
3336 ac_cv_prog_cc_c89=no
3338 cat >conftest.$ac_ext <<_ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3346 #include <sys/types.h>
3347 #include <sys/stat.h>
3348 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3349 struct buf { int x; };
3350 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3351 static char *e (p, i)
3357 static char *f (char * (*g) (char **, int), char **p, ...)
3362 s = g (p, va_arg (v,int));
3367 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3368 function prototypes and stuff, but not '\xHH' hex character constants.
3369 These don't provoke an error unfortunately, instead are silently treated
3370 as 'x'. The following induces an error, until -std is added to get
3371 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3372 array size at least. It's necessary to write '\x00'==0 to get something
3373 that's true only with -std. */
3374 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3376 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3377 inside strings and character constants. */
3379 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3381 int test (int i, double x);
3382 struct s1 {int (*f) (int a);};
3383 struct s2 {int (*f) (double a);};
3384 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3390 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3395 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3396 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3398 CC="$ac_save_CC $ac_arg"
3399 rm -f conftest.$ac_objext
3400 if { (ac_try="$ac_compile"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3406 $as_echo "$ac_try_echo") >&5
3407 (eval "$ac_compile") 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } && {
3414 test -z "$ac_c_werror_flag" ||
3415 test ! -s conftest.err
3416 } && test -s conftest.$ac_objext; then
3417 ac_cv_prog_cc_c89=$ac_arg
3419 $as_echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3425 rm -f core conftest.err conftest.$ac_objext
3426 test "x$ac_cv_prog_cc_c89" != "xno" && break
3428 rm -f conftest.$ac_ext
3433 case "x$ac_cv_prog_cc_c89" in
3435 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3436 $as_echo "none needed" >&6; } ;;
3438 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3439 $as_echo "unsupported" >&6; } ;;
3441 CC="$CC $ac_cv_prog_cc_c89"
3442 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3443 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 depcc="$CC" am_compiler_list=
3455 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3456 $as_echo_n "checking dependency style of $depcc... " >&6; }
3457 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3458 $as_echo_n "(cached) " >&6
3460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3461 # We make a subdir and do the tests there. Otherwise we can end up
3462 # making bogus files that we don't know about and never remove. For
3463 # instance it was reported that on HP-UX the gcc test will end up
3464 # making a dummy file named `D' -- because `-MD' means `put the output
3467 # Copy depcomp to subdir because otherwise we won't find it if we're
3468 # using a relative directory.
3469 cp "$am_depcomp" conftest.dir
3471 # We will build objects and dependencies in a subdirectory because
3472 # it helps to detect inapplicable dependency modes. For instance
3473 # both Tru64's cc and ICC support -MD to output dependencies as a
3474 # side effect of compilation, but ICC will put the dependencies in
3475 # the current directory while Tru64 will put them in the object
3479 am_cv_CC_dependencies_compiler_type=none
3480 if test "$am_compiler_list" = ""; then
3481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3483 for depmode in $am_compiler_list; do
3484 # Setup a source with many dependencies, because some compilers
3485 # like to wrap large dependency lists on column 80 (with \), and
3486 # we should not choose a depcomp mode which is confused by this.
3488 # We need to recreate these files for each test, as the compiler may
3489 # overwrite some of them when testing with obscure command lines.
3490 # This happens at least with the AIX C compiler.
3492 for i in 1 2 3 4 5 6; do
3493 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3494 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3495 # Solaris 8's {/usr,}/bin/sh.
3496 touch sub/conftst$i.h
3498 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3502 # after this tag, mechanisms are not by side-effect, so they'll
3503 # only be used when explicitly requested
3504 if test "x$enable_dependency_tracking" = xyes; then
3512 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3513 # mode. It turns out that the SunPro C++ compiler does not properly
3514 # handle `-M -o', and we need to detect this.
3515 if depmode=$depmode \
3516 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3518 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3519 >/dev/null 2>conftest.err &&
3520 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3521 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3522 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3523 # icc doesn't choke on unknown options, it will just issue warnings
3524 # or remarks (even with -Werror). So we grep stderr for any message
3525 # that says an option was ignored or not supported.
3526 # When given -MP, icc 7.0 and 7.1 complain thusly:
3527 # icc: Command line warning: ignoring option '-M'; no argument required
3528 # The diagnosis changed in icc 8.0:
3529 # icc: Command line remark: option '-MP' not supported
3530 if (grep 'ignoring option' conftest.err ||
3531 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3532 am_cv_CC_dependencies_compiler_type=$depmode
3541 am_cv_CC_dependencies_compiler_type=none
3545 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3546 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3547 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3552 test "x$enable_dependency_tracking" != xno \
3553 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3555 am__fastdepCC_FALSE='#'
3557 am__fastdepCC_TRUE='#'
3558 am__fastdepCC_FALSE=
3564 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3565 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3566 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3567 $as_echo_n "(cached) " >&6
3569 ac_check_lib_save_LIBS=$LIBS
3570 LIBS="-lcposix $LIBS"
3571 cat >conftest.$ac_ext <<_ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3578 /* Override any GCC internal prototype to avoid an error.
3579 Use char because int might match the return type of a GCC
3580 builtin and then its argument prototype would still apply. */
3593 rm -f conftest.$ac_objext conftest$ac_exeext
3594 if { (ac_try="$ac_link"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3600 $as_echo "$ac_try_echo") >&5
3601 (eval "$ac_link") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } && {
3608 test -z "$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3610 } && test -s conftest$ac_exeext && {
3611 test "$cross_compiling" = yes ||
3612 $as_test_x conftest$ac_exeext
3614 ac_cv_lib_cposix_strerror=yes
3616 $as_echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 ac_cv_lib_cposix_strerror=no
3622 rm -rf conftest.dSYM
3623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3624 conftest$ac_exeext conftest.$ac_ext
3625 LIBS=$ac_check_lib_save_LIBS
3627 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3628 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3629 if test $ac_cv_lib_cposix_strerror = yes; then
3630 LIBS="$LIBS -lcposix"
3636 ac_cpp='$CPP $CPPFLAGS'
3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640 if test -n "$ac_tool_prefix"; then
3641 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3642 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if test "${ac_cv_prog_CC+set}" = set; then
3646 $as_echo_n "(cached) " >&6
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3658 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3673 { $as_echo "$as_me:$LINENO: result: no" >&5
3674 $as_echo "no" >&6; }
3679 if test -z "$ac_cv_prog_CC"; then
3681 # Extract the first word of "gcc", so it can be a program name with args.
3682 set dummy gcc; ac_word=$2
3683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3686 $as_echo_n "(cached) " >&6
3688 if test -n "$ac_ct_CC"; then
3689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3698 ac_cv_prog_ac_ct_CC="gcc"
3699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3709 if test -n "$ac_ct_CC"; then
3710 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3711 $as_echo "$ac_ct_CC" >&6; }
3713 { $as_echo "$as_me:$LINENO: result: no" >&5
3714 $as_echo "no" >&6; }
3717 if test "x$ac_ct_CC" = x; then
3720 case $cross_compiling:$ac_tool_warned in
3722 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3723 whose name does not start with the host triplet. If you think this
3724 configuration is useful to you, please write to autoconf@gnu.org." >&5
3725 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3726 whose name does not start with the host triplet. If you think this
3727 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3728 ac_tool_warned=yes ;;
3736 if test -z "$CC"; then
3737 if test -n "$ac_tool_prefix"; then
3738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3739 set dummy ${ac_tool_prefix}cc; ac_word=$2
3740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if test "${ac_cv_prog_CC+set}" = set; then
3743 $as_echo_n "(cached) " >&6
3745 if test -n "$CC"; then
3746 ac_cv_prog_CC="$CC" # Let the user override the test.
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3755 ac_cv_prog_CC="${ac_tool_prefix}cc"
3756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 if test -n "$CC"; then
3767 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3768 $as_echo "$CC" >&6; }
3770 { $as_echo "$as_me:$LINENO: result: no" >&5
3771 $as_echo "no" >&6; }
3777 if test -z "$CC"; then
3778 # Extract the first word of "cc", so it can be a program name with args.
3779 set dummy cc; ac_word=$2
3780 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if test "${ac_cv_prog_CC+set}" = set; then
3783 $as_echo_n "(cached) " >&6
3785 if test -n "$CC"; then
3786 ac_cv_prog_CC="$CC" # Let the user override the test.
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3797 ac_prog_rejected=yes
3801 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 if test $ac_prog_rejected = yes; then
3809 # We found a bogon in the path, so make sure we never use it.
3810 set dummy $ac_cv_prog_CC
3812 if test $# != 0; then
3813 # We chose a different compiler from the bogus one.
3814 # However, it has the same basename, so the bogon will be chosen
3815 # first if we set CC to just the basename; use the full file name.
3817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3823 if test -n "$CC"; then
3824 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3825 $as_echo "$CC" >&6; }
3827 { $as_echo "$as_me:$LINENO: result: no" >&5
3828 $as_echo "no" >&6; }
3833 if test -z "$CC"; then
3834 if test -n "$ac_tool_prefix"; then
3835 for ac_prog in cl.exe
3837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3839 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 $as_echo_n "checking for $ac_word... " >&6; }
3841 if test "${ac_cv_prog_CC+set}" = set; then
3842 $as_echo_n "(cached) " >&6
3844 if test -n "$CC"; then
3845 ac_cv_prog_CC="$CC" # Let the user override the test.
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 if test -n "$CC"; then
3866 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3867 $as_echo "$CC" >&6; }
3869 { $as_echo "$as_me:$LINENO: result: no" >&5
3870 $as_echo "no" >&6; }
3874 test -n "$CC" && break
3877 if test -z "$CC"; then
3879 for ac_prog in cl.exe
3881 # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy $ac_prog; ac_word=$2
3883 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3886 $as_echo_n "(cached) " >&6
3888 if test -n "$ac_ct_CC"; then
3889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 ac_cv_prog_ac_ct_CC="$ac_prog"
3899 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3909 if test -n "$ac_ct_CC"; then
3910 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3911 $as_echo "$ac_ct_CC" >&6; }
3913 { $as_echo "$as_me:$LINENO: result: no" >&5
3914 $as_echo "no" >&6; }
3918 test -n "$ac_ct_CC" && break
3921 if test "x$ac_ct_CC" = x; then
3924 case $cross_compiling:$ac_tool_warned in
3926 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3927 whose name does not start with the host triplet. If you think this
3928 configuration is useful to you, please write to autoconf@gnu.org." >&5
3929 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3930 whose name does not start with the host triplet. If you think this
3931 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3932 ac_tool_warned=yes ;;
3941 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3942 See \`config.log' for more details." >&5
3943 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3944 See \`config.log' for more details." >&2;}
3945 { (exit 1); exit 1; }; }
3947 # Provide some information about the compiler.
3948 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3951 { (ac_try="$ac_compiler --version >&5"
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3957 $as_echo "$ac_try_echo") >&5
3958 (eval "$ac_compiler --version >&5") 2>&5
3960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }
3962 { (ac_try="$ac_compiler -v >&5"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3968 $as_echo "$ac_try_echo") >&5
3969 (eval "$ac_compiler -v >&5") 2>&5
3971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }
3973 { (ac_try="$ac_compiler -V >&5"
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3979 $as_echo "$ac_try_echo") >&5
3980 (eval "$ac_compiler -V >&5") 2>&5
3982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }
3985 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3986 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3987 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3988 $as_echo_n "(cached) " >&6
3990 cat >conftest.$ac_ext <<_ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
4008 rm -f conftest.$ac_objext
4009 if { (ac_try="$ac_compile"
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4015 $as_echo "$ac_try_echo") >&5
4016 (eval "$ac_compile") 2>conftest.er1
4018 grep -v '^ *+' conftest.er1 >conftest.err
4020 cat conftest.err >&5
4021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } && {
4023 test -z "$ac_c_werror_flag" ||
4024 test ! -s conftest.err
4025 } && test -s conftest.$ac_objext; then
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4038 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4039 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4040 if test $ac_compiler_gnu = yes; then
4045 ac_test_CFLAGS=${CFLAGS+set}
4046 ac_save_CFLAGS=$CFLAGS
4047 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4048 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4049 if test "${ac_cv_prog_cc_g+set}" = set; then
4050 $as_echo_n "(cached) " >&6
4052 ac_save_c_werror_flag=$ac_c_werror_flag
4053 ac_c_werror_flag=yes
4056 cat >conftest.$ac_ext <<_ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4071 rm -f conftest.$ac_objext
4072 if { (ac_try="$ac_compile"
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1 >conftest.err
4083 cat conftest.err >&5
4084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } && {
4086 test -z "$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4088 } && test -s conftest.$ac_objext; then
4091 $as_echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4095 cat >conftest.$ac_ext <<_ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4110 rm -f conftest.$ac_objext
4111 if { (ac_try="$ac_compile"
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4117 $as_echo "$ac_try_echo") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && {
4125 test -z "$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 } && test -s conftest.$ac_objext; then
4130 $as_echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 ac_c_werror_flag=$ac_save_c_werror_flag
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4157 $as_echo "$ac_try_echo") >&5
4158 (eval "$ac_compile") 2>conftest.er1
4160 grep -v '^ *+' conftest.er1 >conftest.err
4162 cat conftest.err >&5
4163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } && {
4165 test -z "$ac_c_werror_flag" ||
4166 test ! -s conftest.err
4167 } && test -s conftest.$ac_objext; then
4170 $as_echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 ac_c_werror_flag=$ac_save_c_werror_flag
4185 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4186 $as_echo "$ac_cv_prog_cc_g" >&6; }
4187 if test "$ac_test_CFLAGS" = set; then
4188 CFLAGS=$ac_save_CFLAGS
4189 elif test $ac_cv_prog_cc_g = yes; then
4190 if test "$GCC" = yes; then
4196 if test "$GCC" = yes; then
4202 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4203 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4204 if test "${ac_cv_prog_cc_c89+set}" = set; then
4205 $as_echo_n "(cached) " >&6
4207 ac_cv_prog_cc_c89=no
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4217 #include <sys/types.h>
4218 #include <sys/stat.h>
4219 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4220 struct buf { int x; };
4221 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4222 static char *e (p, i)
4228 static char *f (char * (*g) (char **, int), char **p, ...)
4233 s = g (p, va_arg (v,int));
4238 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4239 function prototypes and stuff, but not '\xHH' hex character constants.
4240 These don't provoke an error unfortunately, instead are silently treated
4241 as 'x'. The following induces an error, until -std is added to get
4242 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4243 array size at least. It's necessary to write '\x00'==0 to get something
4244 that's true only with -std. */
4245 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4247 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4248 inside strings and character constants. */
4250 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4252 int test (int i, double x);
4253 struct s1 {int (*f) (int a);};
4254 struct s2 {int (*f) (double a);};
4255 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4261 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4266 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4267 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4269 CC="$ac_save_CC $ac_arg"
4270 rm -f conftest.$ac_objext
4271 if { (ac_try="$ac_compile"
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4277 $as_echo "$ac_try_echo") >&5
4278 (eval "$ac_compile") 2>conftest.er1
4280 grep -v '^ *+' conftest.er1 >conftest.err
4282 cat conftest.err >&5
4283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && {
4285 test -z "$ac_c_werror_flag" ||
4286 test ! -s conftest.err
4287 } && test -s conftest.$ac_objext; then
4288 ac_cv_prog_cc_c89=$ac_arg
4290 $as_echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4296 rm -f core conftest.err conftest.$ac_objext
4297 test "x$ac_cv_prog_cc_c89" != "xno" && break
4299 rm -f conftest.$ac_ext
4304 case "x$ac_cv_prog_cc_c89" in
4306 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4307 $as_echo "none needed" >&6; } ;;
4309 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4310 $as_echo "unsupported" >&6; } ;;
4312 CC="$CC $ac_cv_prog_cc_c89"
4313 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4314 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324 depcc="$CC" am_compiler_list=
4326 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4327 $as_echo_n "checking dependency style of $depcc... " >&6; }
4328 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4329 $as_echo_n "(cached) " >&6
4331 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4332 # We make a subdir and do the tests there. Otherwise we can end up
4333 # making bogus files that we don't know about and never remove. For
4334 # instance it was reported that on HP-UX the gcc test will end up
4335 # making a dummy file named `D' -- because `-MD' means `put the output
4338 # Copy depcomp to subdir because otherwise we won't find it if we're
4339 # using a relative directory.
4340 cp "$am_depcomp" conftest.dir
4342 # We will build objects and dependencies in a subdirectory because
4343 # it helps to detect inapplicable dependency modes. For instance
4344 # both Tru64's cc and ICC support -MD to output dependencies as a
4345 # side effect of compilation, but ICC will put the dependencies in
4346 # the current directory while Tru64 will put them in the object
4350 am_cv_CC_dependencies_compiler_type=none
4351 if test "$am_compiler_list" = ""; then
4352 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4354 for depmode in $am_compiler_list; do
4355 # Setup a source with many dependencies, because some compilers
4356 # like to wrap large dependency lists on column 80 (with \), and
4357 # we should not choose a depcomp mode which is confused by this.
4359 # We need to recreate these files for each test, as the compiler may
4360 # overwrite some of them when testing with obscure command lines.
4361 # This happens at least with the AIX C compiler.
4363 for i in 1 2 3 4 5 6; do
4364 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4365 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4366 # Solaris 8's {/usr,}/bin/sh.
4367 touch sub/conftst$i.h
4369 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4373 # after this tag, mechanisms are not by side-effect, so they'll
4374 # only be used when explicitly requested
4375 if test "x$enable_dependency_tracking" = xyes; then
4383 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4384 # mode. It turns out that the SunPro C++ compiler does not properly
4385 # handle `-M -o', and we need to detect this.
4386 if depmode=$depmode \
4387 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4388 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4389 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4390 >/dev/null 2>conftest.err &&
4391 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4392 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4393 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4394 # icc doesn't choke on unknown options, it will just issue warnings
4395 # or remarks (even with -Werror). So we grep stderr for any message
4396 # that says an option was ignored or not supported.
4397 # When given -MP, icc 7.0 and 7.1 complain thusly:
4398 # icc: Command line warning: ignoring option '-M'; no argument required
4399 # The diagnosis changed in icc 8.0:
4400 # icc: Command line remark: option '-MP' not supported
4401 if (grep 'ignoring option' conftest.err ||
4402 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4403 am_cv_CC_dependencies_compiler_type=$depmode
4412 am_cv_CC_dependencies_compiler_type=none
4416 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4417 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4418 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4423 test "x$enable_dependency_tracking" != xno \
4424 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4426 am__fastdepCC_FALSE='#'
4428 am__fastdepCC_TRUE='#'
4429 am__fastdepCC_FALSE=
4434 ac_cpp='$CPP $CPPFLAGS'
4435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4438 if test -n "$ac_tool_prefix"; then
4439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_CC+set}" = set; then
4444 $as_echo_n "(cached) " >&6
4446 if test -n "$CC"; then
4447 ac_cv_prog_CC="$CC" # Let the user override the test.
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4457 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 if test -n "$CC"; then
4468 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4469 $as_echo "$CC" >&6; }
4471 { $as_echo "$as_me:$LINENO: result: no" >&5
4472 $as_echo "no" >&6; }
4477 if test -z "$ac_cv_prog_CC"; then
4479 # Extract the first word of "gcc", so it can be a program name with args.
4480 set dummy gcc; ac_word=$2
4481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 $as_echo_n "checking for $ac_word... " >&6; }
4483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4484 $as_echo_n "(cached) " >&6
4486 if test -n "$ac_ct_CC"; then
4487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496 ac_cv_prog_ac_ct_CC="gcc"
4497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4507 if test -n "$ac_ct_CC"; then
4508 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4509 $as_echo "$ac_ct_CC" >&6; }
4511 { $as_echo "$as_me:$LINENO: result: no" >&5
4512 $as_echo "no" >&6; }
4515 if test "x$ac_ct_CC" = x; then
4518 case $cross_compiling:$ac_tool_warned in
4520 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4521 whose name does not start with the host triplet. If you think this
4522 configuration is useful to you, please write to autoconf@gnu.org." >&5
4523 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4524 whose name does not start with the host triplet. If you think this
4525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4526 ac_tool_warned=yes ;;
4534 if test -z "$CC"; then
4535 if test -n "$ac_tool_prefix"; then
4536 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4537 set dummy ${ac_tool_prefix}cc; ac_word=$2
4538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if test "${ac_cv_prog_CC+set}" = set; then
4541 $as_echo_n "(cached) " >&6
4543 if test -n "$CC"; then
4544 ac_cv_prog_CC="$CC" # Let the user override the test.
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553 ac_cv_prog_CC="${ac_tool_prefix}cc"
4554 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 if test -n "$CC"; then
4565 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4566 $as_echo "$CC" >&6; }
4568 { $as_echo "$as_me:$LINENO: result: no" >&5
4569 $as_echo "no" >&6; }
4575 if test -z "$CC"; then
4576 # Extract the first word of "cc", so it can be a program name with args.
4577 set dummy cc; ac_word=$2
4578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if test "${ac_cv_prog_CC+set}" = set; then
4581 $as_echo_n "(cached) " >&6
4583 if test -n "$CC"; then
4584 ac_cv_prog_CC="$CC" # Let the user override the test.
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4595 ac_prog_rejected=yes
4599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 if test $ac_prog_rejected = yes; then
4607 # We found a bogon in the path, so make sure we never use it.
4608 set dummy $ac_cv_prog_CC
4610 if test $# != 0; then
4611 # We chose a different compiler from the bogus one.
4612 # However, it has the same basename, so the bogon will be chosen
4613 # first if we set CC to just the basename; use the full file name.
4615 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4621 if test -n "$CC"; then
4622 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4623 $as_echo "$CC" >&6; }
4625 { $as_echo "$as_me:$LINENO: result: no" >&5
4626 $as_echo "no" >&6; }
4631 if test -z "$CC"; then
4632 if test -n "$ac_tool_prefix"; then
4633 for ac_prog in cl.exe
4635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if test "${ac_cv_prog_CC+set}" = set; then
4640 $as_echo_n "(cached) " >&6
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4653 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 if test -n "$CC"; then
4664 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4665 $as_echo "$CC" >&6; }
4667 { $as_echo "$as_me:$LINENO: result: no" >&5
4668 $as_echo "no" >&6; }
4672 test -n "$CC" && break
4675 if test -z "$CC"; then
4677 for ac_prog in cl.exe
4679 # Extract the first word of "$ac_prog", so it can be a program name with args.
4680 set dummy $ac_prog; ac_word=$2
4681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4684 $as_echo_n "(cached) " >&6
4686 if test -n "$ac_ct_CC"; then
4687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 ac_cv_prog_ac_ct_CC="$ac_prog"
4697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4707 if test -n "$ac_ct_CC"; then
4708 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4709 $as_echo "$ac_ct_CC" >&6; }
4711 { $as_echo "$as_me:$LINENO: result: no" >&5
4712 $as_echo "no" >&6; }
4716 test -n "$ac_ct_CC" && break
4719 if test "x$ac_ct_CC" = x; then
4722 case $cross_compiling:$ac_tool_warned in
4724 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4725 whose name does not start with the host triplet. If you think this
4726 configuration is useful to you, please write to autoconf@gnu.org." >&5
4727 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4728 whose name does not start with the host triplet. If you think this
4729 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4730 ac_tool_warned=yes ;;
4739 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4740 See \`config.log' for more details." >&5
4741 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4742 See \`config.log' for more details." >&2;}
4743 { (exit 1); exit 1; }; }
4745 # Provide some information about the compiler.
4746 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4749 { (ac_try="$ac_compiler --version >&5"
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4755 $as_echo "$ac_try_echo") >&5
4756 (eval "$ac_compiler --version >&5") 2>&5
4758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }
4760 { (ac_try="$ac_compiler -v >&5"
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4766 $as_echo "$ac_try_echo") >&5
4767 (eval "$ac_compiler -v >&5") 2>&5
4769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }
4771 { (ac_try="$ac_compiler -V >&5"
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4777 $as_echo "$ac_try_echo") >&5
4778 (eval "$ac_compiler -V >&5") 2>&5
4780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }
4783 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4784 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4785 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4786 $as_echo_n "(cached) " >&6
4788 cat >conftest.$ac_ext <<_ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4806 rm -f conftest.$ac_objext
4807 if { (ac_try="$ac_compile"
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4813 $as_echo "$ac_try_echo") >&5
4814 (eval "$ac_compile") 2>conftest.er1
4816 grep -v '^ *+' conftest.er1 >conftest.err
4818 cat conftest.err >&5
4819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } && {
4821 test -z "$ac_c_werror_flag" ||
4822 test ! -s conftest.err
4823 } && test -s conftest.$ac_objext; then
4826 $as_echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4836 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4837 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4838 if test $ac_compiler_gnu = yes; then
4843 ac_test_CFLAGS=${CFLAGS+set}
4844 ac_save_CFLAGS=$CFLAGS
4845 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4846 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4847 if test "${ac_cv_prog_cc_g+set}" = set; then
4848 $as_echo_n "(cached) " >&6
4850 ac_save_c_werror_flag=$ac_c_werror_flag
4851 ac_c_werror_flag=yes
4854 cat >conftest.$ac_ext <<_ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4869 rm -f conftest.$ac_objext
4870 if { (ac_try="$ac_compile"
4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873 *) ac_try_echo=$ac_try;;
4875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4876 $as_echo "$ac_try_echo") >&5
4877 (eval "$ac_compile") 2>conftest.er1
4879 grep -v '^ *+' conftest.er1 >conftest.err
4881 cat conftest.err >&5
4882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } && {
4884 test -z "$ac_c_werror_flag" ||
4885 test ! -s conftest.err
4886 } && test -s conftest.$ac_objext; then
4889 $as_echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4893 cat >conftest.$ac_ext <<_ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4908 rm -f conftest.$ac_objext
4909 if { (ac_try="$ac_compile"
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4915 $as_echo "$ac_try_echo") >&5
4916 (eval "$ac_compile") 2>conftest.er1
4918 grep -v '^ *+' conftest.er1 >conftest.err
4920 cat conftest.err >&5
4921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } && {
4923 test -z "$ac_c_werror_flag" ||
4924 test ! -s conftest.err
4925 } && test -s conftest.$ac_objext; then
4928 $as_echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4931 ac_c_werror_flag=$ac_save_c_werror_flag
4933 cat >conftest.$ac_ext <<_ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4948 rm -f conftest.$ac_objext
4949 if { (ac_try="$ac_compile"
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4955 $as_echo "$ac_try_echo") >&5
4956 (eval "$ac_compile") 2>conftest.er1
4958 grep -v '^ *+' conftest.er1 >conftest.err
4960 cat conftest.err >&5
4961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } && {
4963 test -z "$ac_c_werror_flag" ||
4964 test ! -s conftest.err
4965 } && test -s conftest.$ac_objext; then
4968 $as_echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 ac_c_werror_flag=$ac_save_c_werror_flag
4983 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4984 $as_echo "$ac_cv_prog_cc_g" >&6; }
4985 if test "$ac_test_CFLAGS" = set; then
4986 CFLAGS=$ac_save_CFLAGS
4987 elif test $ac_cv_prog_cc_g = yes; then
4988 if test "$GCC" = yes; then
4994 if test "$GCC" = yes; then
5000 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5001 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5002 if test "${ac_cv_prog_cc_c89+set}" = set; then
5003 $as_echo_n "(cached) " >&6
5005 ac_cv_prog_cc_c89=no
5007 cat >conftest.$ac_ext <<_ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5015 #include <sys/types.h>
5016 #include <sys/stat.h>
5017 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5018 struct buf { int x; };
5019 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5020 static char *e (p, i)
5026 static char *f (char * (*g) (char **, int), char **p, ...)
5031 s = g (p, va_arg (v,int));
5036 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5037 function prototypes and stuff, but not '\xHH' hex character constants.
5038 These don't provoke an error unfortunately, instead are silently treated
5039 as 'x'. The following induces an error, until -std is added to get
5040 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5041 array size at least. It's necessary to write '\x00'==0 to get something
5042 that's true only with -std. */
5043 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5045 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5046 inside strings and character constants. */
5048 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5050 int test (int i, double x);
5051 struct s1 {int (*f) (int a);};
5052 struct s2 {int (*f) (double a);};
5053 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5059 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5064 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5065 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5067 CC="$ac_save_CC $ac_arg"
5068 rm -f conftest.$ac_objext
5069 if { (ac_try="$ac_compile"
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5075 $as_echo "$ac_try_echo") >&5
5076 (eval "$ac_compile") 2>conftest.er1
5078 grep -v '^ *+' conftest.er1 >conftest.err
5080 cat conftest.err >&5
5081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } && {
5083 test -z "$ac_c_werror_flag" ||
5084 test ! -s conftest.err
5085 } && test -s conftest.$ac_objext; then
5086 ac_cv_prog_cc_c89=$ac_arg
5088 $as_echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5094 rm -f core conftest.err conftest.$ac_objext
5095 test "x$ac_cv_prog_cc_c89" != "xno" && break
5097 rm -f conftest.$ac_ext
5102 case "x$ac_cv_prog_cc_c89" in
5104 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5105 $as_echo "none needed" >&6; } ;;
5107 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5108 $as_echo "unsupported" >&6; } ;;
5110 CC="$CC $ac_cv_prog_cc_c89"
5111 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5112 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5117 ac_cpp='$CPP $CPPFLAGS'
5118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5122 depcc="$CC" am_compiler_list=
5124 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5125 $as_echo_n "checking dependency style of $depcc... " >&6; }
5126 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5127 $as_echo_n "(cached) " >&6
5129 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5130 # We make a subdir and do the tests there. Otherwise we can end up
5131 # making bogus files that we don't know about and never remove. For
5132 # instance it was reported that on HP-UX the gcc test will end up
5133 # making a dummy file named `D' -- because `-MD' means `put the output
5136 # Copy depcomp to subdir because otherwise we won't find it if we're
5137 # using a relative directory.
5138 cp "$am_depcomp" conftest.dir
5140 # We will build objects and dependencies in a subdirectory because
5141 # it helps to detect inapplicable dependency modes. For instance
5142 # both Tru64's cc and ICC support -MD to output dependencies as a
5143 # side effect of compilation, but ICC will put the dependencies in
5144 # the current directory while Tru64 will put them in the object
5148 am_cv_CC_dependencies_compiler_type=none
5149 if test "$am_compiler_list" = ""; then
5150 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5152 for depmode in $am_compiler_list; do
5153 # Setup a source with many dependencies, because some compilers
5154 # like to wrap large dependency lists on column 80 (with \), and
5155 # we should not choose a depcomp mode which is confused by this.
5157 # We need to recreate these files for each test, as the compiler may
5158 # overwrite some of them when testing with obscure command lines.
5159 # This happens at least with the AIX C compiler.
5161 for i in 1 2 3 4 5 6; do
5162 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5163 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5164 # Solaris 8's {/usr,}/bin/sh.
5165 touch sub/conftst$i.h
5167 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5171 # after this tag, mechanisms are not by side-effect, so they'll
5172 # only be used when explicitly requested
5173 if test "x$enable_dependency_tracking" = xyes; then
5181 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5182 # mode. It turns out that the SunPro C++ compiler does not properly
5183 # handle `-M -o', and we need to detect this.
5184 if depmode=$depmode \
5185 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5186 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5187 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5188 >/dev/null 2>conftest.err &&
5189 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5190 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5191 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5192 # icc doesn't choke on unknown options, it will just issue warnings
5193 # or remarks (even with -Werror). So we grep stderr for any message
5194 # that says an option was ignored or not supported.
5195 # When given -MP, icc 7.0 and 7.1 complain thusly:
5196 # icc: Command line warning: ignoring option '-M'; no argument required
5197 # The diagnosis changed in icc 8.0:
5198 # icc: Command line remark: option '-MP' not supported
5199 if (grep 'ignoring option' conftest.err ||
5200 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5201 am_cv_CC_dependencies_compiler_type=$depmode
5210 am_cv_CC_dependencies_compiler_type=none
5214 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5215 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5216 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5221 test "x$enable_dependency_tracking" != xno \
5222 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5224 am__fastdepCC_FALSE='#'
5226 am__fastdepCC_TRUE='#'
5227 am__fastdepCC_FALSE=
5232 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5234 # By default we simply use the C compiler to build assembly code.
5236 test "${CCAS+set}" = set || CCAS=$CC
5237 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5242 ac_cpp='$CPP $CPPFLAGS'
5243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5246 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5247 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5248 # On Suns, sometimes $CPP names a directory.
5249 if test -n "$CPP" && test -d "$CPP"; then
5252 if test -z "$CPP"; then
5253 if test "${ac_cv_prog_CPP+set}" = set; then
5254 $as_echo_n "(cached) " >&6
5256 # Double quotes because CPP needs to be expanded
5257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5260 for ac_c_preproc_warn_flag in '' yes
5262 # Use a header file that comes with gcc, so configuring glibc
5263 # with a fresh cross-compiler works.
5264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5265 # <limits.h> exists even on freestanding compilers.
5266 # On the NeXT, cc -E runs the code through the compiler's parser,
5267 # not just through cpp. "Syntax error" is here to catch this case.
5268 cat >conftest.$ac_ext <<_ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5275 # include <limits.h>
5277 # include <assert.h>
5281 if { (ac_try="$ac_cpp conftest.$ac_ext"
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5287 $as_echo "$ac_try_echo") >&5
5288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5290 grep -v '^ *+' conftest.er1 >conftest.err
5292 cat conftest.err >&5
5293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } >/dev/null && {
5295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5296 test ! -s conftest.err
5300 $as_echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5303 # Broken: fails on valid input.
5307 rm -f conftest.err conftest.$ac_ext
5309 # OK, works on sane cases. Now check whether nonexistent headers
5310 # can be detected and how.
5311 cat >conftest.$ac_ext <<_ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5317 #include <ac_nonexistent.h>
5319 if { (ac_try="$ac_cpp conftest.$ac_ext"
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5325 $as_echo "$ac_try_echo") >&5
5326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5328 grep -v '^ *+' conftest.er1 >conftest.err
5330 cat conftest.err >&5
5331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } >/dev/null && {
5333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5334 test ! -s conftest.err
5336 # Broken: success on invalid input.
5339 $as_echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 # Passes both tests.
5347 rm -f conftest.err conftest.$ac_ext
5350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5351 rm -f conftest.err conftest.$ac_ext
5352 if $ac_preproc_ok; then
5364 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5365 $as_echo "$CPP" >&6; }
5367 for ac_c_preproc_warn_flag in '' yes
5369 # Use a header file that comes with gcc, so configuring glibc
5370 # with a fresh cross-compiler works.
5371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5372 # <limits.h> exists even on freestanding compilers.
5373 # On the NeXT, cc -E runs the code through the compiler's parser,
5374 # not just through cpp. "Syntax error" is here to catch this case.
5375 cat >conftest.$ac_ext <<_ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h. */
5382 # include <limits.h>
5384 # include <assert.h>
5388 if { (ac_try="$ac_cpp conftest.$ac_ext"
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5394 $as_echo "$ac_try_echo") >&5
5395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5397 grep -v '^ *+' conftest.er1 >conftest.err
5399 cat conftest.err >&5
5400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } >/dev/null && {
5402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5403 test ! -s conftest.err
5407 $as_echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 # Broken: fails on valid input.
5414 rm -f conftest.err conftest.$ac_ext
5416 # OK, works on sane cases. Now check whether nonexistent headers
5417 # can be detected and how.
5418 cat >conftest.$ac_ext <<_ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5424 #include <ac_nonexistent.h>
5426 if { (ac_try="$ac_cpp conftest.$ac_ext"
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5432 $as_echo "$ac_try_echo") >&5
5433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } >/dev/null && {
5440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5441 test ! -s conftest.err
5443 # Broken: success on invalid input.
5446 $as_echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5449 # Passes both tests.
5454 rm -f conftest.err conftest.$ac_ext
5457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5458 rm -f conftest.err conftest.$ac_ext
5459 if $ac_preproc_ok; then
5462 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5463 See \`config.log' for more details." >&5
5464 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5465 See \`config.log' for more details." >&2;}
5466 { (exit 1); exit 1; }; }
5470 ac_cpp='$CPP $CPPFLAGS'
5471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5477 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5478 if test "${ac_cv_path_GREP+set}" = set; then
5479 $as_echo_n "(cached) " >&6
5481 if test -z "$GREP"; then
5482 ac_path_GREP_found=false
5483 # Loop through the user's path and test for each of PROGNAME-LIST
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5488 test -z "$as_dir" && as_dir=.
5489 for ac_prog in grep ggrep; do
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5492 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5493 # Check for GNU ac_path_GREP and select it if it is found.
5494 # Check for GNU $ac_path_GREP
5495 case `"$ac_path_GREP" --version 2>&1` in
5497 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5500 $as_echo_n 0123456789 >"conftest.in"
5503 cat "conftest.in" "conftest.in" >"conftest.tmp"
5504 mv "conftest.tmp" "conftest.in"
5505 cp "conftest.in" "conftest.nl"
5506 $as_echo 'GREP' >> "conftest.nl"
5507 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5508 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5509 ac_count=`expr $ac_count + 1`
5510 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5511 # Best one so far, save it but keep looking for a better one
5512 ac_cv_path_GREP="$ac_path_GREP"
5513 ac_path_GREP_max=$ac_count
5515 # 10*(2^10) chars as input seems more than enough
5516 test $ac_count -gt 10 && break
5518 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5521 $ac_path_GREP_found && break 3
5526 if test -z "$ac_cv_path_GREP"; then
5527 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5528 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5529 { (exit 1); exit 1; }; }
5532 ac_cv_path_GREP=$GREP
5536 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5537 $as_echo "$ac_cv_path_GREP" >&6; }
5538 GREP="$ac_cv_path_GREP"
5541 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5542 $as_echo_n "checking for egrep... " >&6; }
5543 if test "${ac_cv_path_EGREP+set}" = set; then
5544 $as_echo_n "(cached) " >&6
5546 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5547 then ac_cv_path_EGREP="$GREP -E"
5549 if test -z "$EGREP"; then
5550 ac_path_EGREP_found=false
5551 # Loop through the user's path and test for each of PROGNAME-LIST
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5556 test -z "$as_dir" && as_dir=.
5557 for ac_prog in egrep; do
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5560 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5561 # Check for GNU ac_path_EGREP and select it if it is found.
5562 # Check for GNU $ac_path_EGREP
5563 case `"$ac_path_EGREP" --version 2>&1` in
5565 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5568 $as_echo_n 0123456789 >"conftest.in"
5571 cat "conftest.in" "conftest.in" >"conftest.tmp"
5572 mv "conftest.tmp" "conftest.in"
5573 cp "conftest.in" "conftest.nl"
5574 $as_echo 'EGREP' >> "conftest.nl"
5575 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5577 ac_count=`expr $ac_count + 1`
5578 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5579 # Best one so far, save it but keep looking for a better one
5580 ac_cv_path_EGREP="$ac_path_EGREP"
5581 ac_path_EGREP_max=$ac_count
5583 # 10*(2^10) chars as input seems more than enough
5584 test $ac_count -gt 10 && break
5586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5589 $ac_path_EGREP_found && break 3
5594 if test -z "$ac_cv_path_EGREP"; then
5595 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5596 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5597 { (exit 1); exit 1; }; }
5600 ac_cv_path_EGREP=$EGREP
5605 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5606 $as_echo "$ac_cv_path_EGREP" >&6; }
5607 EGREP="$ac_cv_path_EGREP"
5610 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5611 $as_echo_n "checking for ANSI C header files... " >&6; }
5612 if test "${ac_cv_header_stdc+set}" = set; then
5613 $as_echo_n "(cached) " >&6
5615 cat >conftest.$ac_ext <<_ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5634 rm -f conftest.$ac_objext
5635 if { (ac_try="$ac_compile"
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5641 $as_echo "$ac_try_echo") >&5
5642 (eval "$ac_compile") 2>conftest.er1
5644 grep -v '^ *+' conftest.er1 >conftest.err
5646 cat conftest.err >&5
5647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && {
5649 test -z "$ac_c_werror_flag" ||
5650 test ! -s conftest.err
5651 } && test -s conftest.$ac_objext; then
5652 ac_cv_header_stdc=yes
5654 $as_echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5657 ac_cv_header_stdc=no
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 if test $ac_cv_header_stdc = yes; then
5663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5664 cat >conftest.$ac_ext <<_ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674 $EGREP "memchr" >/dev/null 2>&1; then
5677 ac_cv_header_stdc=no
5683 if test $ac_cv_header_stdc = yes; then
5684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5685 cat >conftest.$ac_ext <<_ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5695 $EGREP "free" >/dev/null 2>&1; then
5698 ac_cv_header_stdc=no
5704 if test $ac_cv_header_stdc = yes; then
5705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5706 if test "$cross_compiling" = yes; then
5709 cat >conftest.$ac_ext <<_ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5717 #if ((' ' & 0x0FF) == 0x020)
5718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5721 # define ISLOWER(c) \
5722 (('a' <= (c) && (c) <= 'i') \
5723 || ('j' <= (c) && (c) <= 'r') \
5724 || ('s' <= (c) && (c) <= 'z'))
5725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5733 for (i = 0; i < 256; i++)
5734 if (XOR (islower (i), ISLOWER (i))
5735 || toupper (i) != TOUPPER (i))
5740 rm -f conftest$ac_exeext
5741 if { (ac_try="$ac_link"
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5747 $as_echo "$ac_try_echo") >&5
5748 (eval "$ac_link") 2>&5
5750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5752 { (case "(($ac_try" in
5753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754 *) ac_try_echo=$ac_try;;
5756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5757 $as_echo "$ac_try_echo") >&5
5758 (eval "$ac_try") 2>&5
5760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; }; then
5764 $as_echo "$as_me: program exited with status $ac_status" >&5
5765 $as_echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5769 ac_cv_header_stdc=no
5771 rm -rf conftest.dSYM
5772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5778 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5779 $as_echo "$ac_cv_header_stdc" >&6; }
5780 if test $ac_cv_header_stdc = yes; then
5782 cat >>confdefs.h <<\_ACEOF
5783 #define STDC_HEADERS 1
5788 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5798 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5799 inttypes.h stdint.h unistd.h
5801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5802 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5803 $as_echo_n "checking for $ac_header... " >&6; }
5804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5805 $as_echo_n "(cached) " >&6
5807 cat >conftest.$ac_ext <<_ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 $ac_includes_default
5815 #include <$ac_header>
5817 rm -f conftest.$ac_objext
5818 if { (ac_try="$ac_compile"
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5824 $as_echo "$ac_try_echo") >&5
5825 (eval "$ac_compile") 2>conftest.er1
5827 grep -v '^ *+' conftest.er1 >conftest.err
5829 cat conftest.err >&5
5830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } && {
5832 test -z "$ac_c_werror_flag" ||
5833 test ! -s conftest.err
5834 } && test -s conftest.$ac_objext; then
5835 eval "$as_ac_Header=yes"
5837 $as_echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5840 eval "$as_ac_Header=no"
5843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 ac_res=`eval 'as_val=${'$as_ac_Header'}
5846 $as_echo "$as_val"'`
5847 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5848 $as_echo "$ac_res" >&6; }
5849 if test `eval 'as_val=${'$as_ac_Header'}
5850 $as_echo "$as_val"'` = yes; then
5851 cat >>confdefs.h <<_ACEOF
5852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5860 # The cast to long int works around a bug in the HP C Compiler
5861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5863 # This bug is HP SR number 8606223364.
5864 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
5865 $as_echo_n "checking size of void *... " >&6; }
5866 if test "${ac_cv_sizeof_void_p+set}" = set; then
5867 $as_echo_n "(cached) " >&6
5869 if test "$cross_compiling" = yes; then
5870 # Depending upon the size, compute the lo and hi bounds.
5871 cat >conftest.$ac_ext <<_ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 $ac_includes_default
5881 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5895 $as_echo "$ac_try_echo") >&5
5896 (eval "$ac_compile") 2>conftest.er1
5898 grep -v '^ *+' conftest.er1 >conftest.err
5900 cat conftest.err >&5
5901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } && {
5903 test -z "$ac_c_werror_flag" ||
5904 test ! -s conftest.err
5905 } && test -s conftest.$ac_objext; then
5908 cat >conftest.$ac_ext <<_ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 $ac_includes_default
5918 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
5925 rm -f conftest.$ac_objext
5926 if { (ac_try="$ac_compile"
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5932 $as_echo "$ac_try_echo") >&5
5933 (eval "$ac_compile") 2>conftest.er1
5935 grep -v '^ *+' conftest.er1 >conftest.err
5937 cat conftest.err >&5
5938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && {
5940 test -z "$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 } && test -s conftest.$ac_objext; then
5943 ac_hi=$ac_mid; break
5945 $as_echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 ac_lo=`expr $ac_mid + 1`
5949 if test $ac_lo -le $ac_mid; then
5953 ac_mid=`expr 2 '*' $ac_mid + 1`
5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 $as_echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5962 cat >conftest.$ac_ext <<_ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 $ac_includes_default
5972 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
5979 rm -f conftest.$ac_objext
5980 if { (ac_try="$ac_compile"
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5986 $as_echo "$ac_try_echo") >&5
5987 (eval "$ac_compile") 2>conftest.er1
5989 grep -v '^ *+' conftest.er1 >conftest.err
5991 cat conftest.err >&5
5992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } && {
5994 test -z "$ac_c_werror_flag" ||
5995 test ! -s conftest.err
5996 } && test -s conftest.$ac_objext; then
5999 cat >conftest.$ac_ext <<_ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 $ac_includes_default
6009 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6016 rm -f conftest.$ac_objext
6017 if { (ac_try="$ac_compile"
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6023 $as_echo "$ac_try_echo") >&5
6024 (eval "$ac_compile") 2>conftest.er1
6026 grep -v '^ *+' conftest.er1 >conftest.err
6028 cat conftest.err >&5
6029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } && {
6031 test -z "$ac_c_werror_flag" ||
6032 test ! -s conftest.err
6033 } && test -s conftest.$ac_objext; then
6034 ac_lo=$ac_mid; break
6036 $as_echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_hi=`expr '(' $ac_mid ')' - 1`
6040 if test $ac_mid -le $ac_hi; then
6044 ac_mid=`expr 2 '*' $ac_mid`
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 $as_echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 # Binary search between lo and hi bounds.
6061 while test "x$ac_lo" != "x$ac_hi"; do
6062 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6063 cat >conftest.$ac_ext <<_ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 $ac_includes_default
6073 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6080 rm -f conftest.$ac_objext
6081 if { (ac_try="$ac_compile"
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6087 $as_echo "$ac_try_echo") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6090 grep -v '^ *+' conftest.er1 >conftest.err
6092 cat conftest.err >&5
6093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest.$ac_objext; then
6100 $as_echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 ac_lo=`expr '(' $ac_mid ')' + 1`
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6110 '') if test "$ac_cv_type_void_p" = yes; then
6111 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6112 See \`config.log' for more details." >&5
6113 $as_echo "$as_me: error: cannot compute sizeof (void *)
6114 See \`config.log' for more details." >&2;}
6115 { (exit 77); exit 77; }; }
6117 ac_cv_sizeof_void_p=0
6121 cat >conftest.$ac_ext <<_ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 $ac_includes_default
6128 static long int longval () { return (long int) (sizeof (void *)); }
6129 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6136 FILE *f = fopen ("conftest.val", "w");
6139 if (((long int) (sizeof (void *))) < 0)
6141 long int i = longval ();
6142 if (i != ((long int) (sizeof (void *))))
6144 fprintf (f, "%ld", i);
6148 unsigned long int i = ulongval ();
6149 if (i != ((long int) (sizeof (void *))))
6151 fprintf (f, "%lu", i);
6153 /* Do not output a trailing newline, as this causes \r\n confusion
6154 on some platforms. */
6155 return ferror (f) || fclose (f) != 0;
6161 rm -f conftest$ac_exeext
6162 if { (ac_try="$ac_link"
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6168 $as_echo "$ac_try_echo") >&5
6169 (eval "$ac_link") 2>&5
6171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6173 { (case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6178 $as_echo "$ac_try_echo") >&5
6179 (eval "$ac_try") 2>&5
6181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6183 ac_cv_sizeof_void_p=`cat conftest.val`
6185 $as_echo "$as_me: program exited with status $ac_status" >&5
6186 $as_echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6190 if test "$ac_cv_type_void_p" = yes; then
6191 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6192 See \`config.log' for more details." >&5
6193 $as_echo "$as_me: error: cannot compute sizeof (void *)
6194 See \`config.log' for more details." >&2;}
6195 { (exit 77); exit 77; }; }
6197 ac_cv_sizeof_void_p=0
6200 rm -rf conftest.dSYM
6201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6205 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6206 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6210 cat >>confdefs.h <<_ACEOF
6211 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6215 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6216 $as_echo_n "checking for ANSI C header files... " >&6; }
6217 if test "${ac_cv_header_stdc+set}" = set; then
6218 $as_echo_n "(cached) " >&6
6220 cat >conftest.$ac_ext <<_ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6239 rm -f conftest.$ac_objext
6240 if { (ac_try="$ac_compile"
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6246 $as_echo "$ac_try_echo") >&5
6247 (eval "$ac_compile") 2>conftest.er1
6249 grep -v '^ *+' conftest.er1 >conftest.err
6251 cat conftest.err >&5
6252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } && {
6254 test -z "$ac_c_werror_flag" ||
6255 test ! -s conftest.err
6256 } && test -s conftest.$ac_objext; then
6257 ac_cv_header_stdc=yes
6259 $as_echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6262 ac_cv_header_stdc=no
6265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 if test $ac_cv_header_stdc = yes; then
6268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6279 $EGREP "memchr" >/dev/null 2>&1; then
6282 ac_cv_header_stdc=no
6288 if test $ac_cv_header_stdc = yes; then
6289 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6290 cat >conftest.$ac_ext <<_ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6300 $EGREP "free" >/dev/null 2>&1; then
6303 ac_cv_header_stdc=no
6309 if test $ac_cv_header_stdc = yes; then
6310 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6311 if test "$cross_compiling" = yes; then
6314 cat >conftest.$ac_ext <<_ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6322 #if ((' ' & 0x0FF) == 0x020)
6323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6326 # define ISLOWER(c) \
6327 (('a' <= (c) && (c) <= 'i') \
6328 || ('j' <= (c) && (c) <= 'r') \
6329 || ('s' <= (c) && (c) <= 'z'))
6330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6338 for (i = 0; i < 256; i++)
6339 if (XOR (islower (i), ISLOWER (i))
6340 || toupper (i) != TOUPPER (i))
6345 rm -f conftest$ac_exeext
6346 if { (ac_try="$ac_link"
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_link") 2>&5
6355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6357 { (case "(($ac_try" in
6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359 *) ac_try_echo=$ac_try;;
6361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6362 $as_echo "$ac_try_echo") >&5
6363 (eval "$ac_try") 2>&5
6365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6369 $as_echo "$as_me: program exited with status $ac_status" >&5
6370 $as_echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6374 ac_cv_header_stdc=no
6376 rm -rf conftest.dSYM
6377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6383 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6384 $as_echo "$ac_cv_header_stdc" >&6; }
6385 if test $ac_cv_header_stdc = yes; then
6387 cat >>confdefs.h <<\_ACEOF
6388 #define STDC_HEADERS 1
6393 # Make sure we can run config.sub.
6394 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6395 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6396 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6397 { (exit 1); exit 1; }; }
6399 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6400 $as_echo_n "checking build system type... " >&6; }
6401 if test "${ac_cv_build+set}" = set; then
6402 $as_echo_n "(cached) " >&6
6404 ac_build_alias=$build_alias
6405 test "x$ac_build_alias" = x &&
6406 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6407 test "x$ac_build_alias" = x &&
6408 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6409 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6410 { (exit 1); exit 1; }; }
6411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6412 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6413 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6414 { (exit 1); exit 1; }; }
6417 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6418 $as_echo "$ac_cv_build" >&6; }
6419 case $ac_cv_build in
6421 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6422 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6423 { (exit 1); exit 1; }; };;
6426 ac_save_IFS=$IFS; IFS='-'
6432 # Remember, the first character of IFS is used to create $*,
6433 # except with old shells:
6436 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6439 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6440 $as_echo_n "checking host system type... " >&6; }
6441 if test "${ac_cv_host+set}" = set; then
6442 $as_echo_n "(cached) " >&6
6444 if test "x$host_alias" = x; then
6445 ac_cv_host=$ac_cv_build
6447 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6448 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6449 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6450 { (exit 1); exit 1; }; }
6454 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6455 $as_echo "$ac_cv_host" >&6; }
6458 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6459 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6460 { (exit 1); exit 1; }; };;
6463 ac_save_IFS=$IFS; IFS='-'
6469 # Remember, the first character of IFS is used to create $*,
6470 # except with old shells:
6473 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6477 # Extract the first word of "pod2man", so it can be a program name with args.
6478 set dummy pod2man; ac_word=$2
6479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if test "${ac_cv_path_POD2MAN+set}" = set; then
6482 $as_echo_n "(cached) " >&6
6486 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
6497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 POD2MAN=$ac_cv_path_POD2MAN
6508 if test -n "$POD2MAN"; then
6509 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
6510 $as_echo "$POD2MAN" >&6; }
6512 { $as_echo "$as_me:$LINENO: result: no" >&5
6513 $as_echo "no" >&6; }
6517 # Extract the first word of "pod2html", so it can be a program name with args.
6518 set dummy pod2html; ac_word=$2
6519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if test "${ac_cv_path_POD2HTML+set}" = set; then
6522 $as_echo_n "(cached) " >&6
6526 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
6537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 POD2HTML=$ac_cv_path_POD2HTML
6548 if test -n "$POD2HTML"; then
6549 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
6550 $as_echo "$POD2HTML" >&6; }
6552 { $as_echo "$as_me:$LINENO: result: no" >&5
6553 $as_echo "no" >&6; }
6559 # Check whether --enable-strict-warn was given.
6560 if test "${enable_strict_warn+set}" = set; then
6561 enableval=$enable_strict_warn; CFLAGS="$CFLAGS -Werror -Wall -Wno-unused"
6564 # Check whether --enable-translator was given.
6565 if test "${enable_translator+set}" = set; then
6566 enableval=$enable_translator; true
6568 enable_translator=yes
6571 # Check whether --enable-optimized was given.
6572 if test "${enable_optimized+set}" = set; then
6573 enableval=$enable_optimized; true
6575 enable_optimized=yes
6578 # Check whether --enable-trace was given.
6579 if test "${enable_trace+set}" = set; then
6580 enableval=$enable_trace; if test "$enableval" == "yes"; then
6582 cat >>confdefs.h <<\_ACEOF
6583 #define ENABLE_TRACE_IO 1
6589 # Check whether --enable-watch was given.
6590 if test "${enable_watch+set}" = set; then
6591 enableval=$enable_watch; if test "$enableval" == "yes"; then
6593 cat >>confdefs.h <<\_ACEOF
6594 #define ENABLE_WATCH 1
6600 # Check whether --enable-sh4stats was given.
6601 if test "${enable_sh4stats+set}" = set; then
6602 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
6604 cat >>confdefs.h <<\_ACEOF
6605 #define ENABLE_SH4STATS 1
6612 # Check whether --with-osmesa was given.
6613 if test "${with_osmesa+set}" = set; then
6614 withval=$with_osmesa;
6620 # Check whether --with-gtk was given.
6621 if test "${with_gtk+set}" = set; then
6622 withval=$with_gtk; with_gtk=yes
6628 # Check whether --with-esd was given.
6629 if test "${with_esd+set}" = set; then
6634 # Check whether --with-pulse was given.
6635 if test "${with_pulse+set}" = set; then
6636 withval=$with_pulse;
6641 if test "x$enable_optimized" = "xyes"; then
6646 if test "x$GCC" = "xyes"; then
6647 CFLAGS="$CFLAGS -fno-strict-aliasing"
6652 lxdream_save_cppflags="$CPPFLAGS"
6653 CPPFLAGS="$CPPFLAGS -x objective-c"
6654 cat >conftest.$ac_ext <<_ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6669 rm -f conftest.$ac_objext
6670 if { (ac_try="$ac_compile"
6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6673 *) ac_try_echo=$ac_try;;
6675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6676 $as_echo "$ac_try_echo") >&5
6677 (eval "$ac_compile") 2>conftest.er1
6679 grep -v '^ *+' conftest.er1 >conftest.err
6681 cat conftest.err >&5
6682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } && {
6684 test -z "$ac_c_werror_flag" ||
6685 test ! -s conftest.err
6686 } && test -s conftest.$ac_objext; then
6689 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6690 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6691 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6692 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6693 $as_echo_n "(cached) " >&6
6695 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6696 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6698 # Is the header compilable?
6699 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
6700 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
6701 cat >conftest.$ac_ext <<_ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 $ac_includes_default
6708 #include <Cocoa/Cocoa.h>
6710 rm -f conftest.$ac_objext
6711 if { (ac_try="$ac_compile"
6713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6714 *) ac_try_echo=$ac_try;;
6716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6717 $as_echo "$ac_try_echo") >&5
6718 (eval "$ac_compile") 2>conftest.er1
6720 grep -v '^ *+' conftest.er1 >conftest.err
6722 cat conftest.err >&5
6723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && {
6725 test -z "$ac_c_werror_flag" ||
6726 test ! -s conftest.err
6727 } && test -s conftest.$ac_objext; then
6728 ac_header_compiler=yes
6730 $as_echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6733 ac_header_compiler=no
6736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6738 $as_echo "$ac_header_compiler" >&6; }
6740 # Is the header present?
6741 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
6742 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
6743 cat >conftest.$ac_ext <<_ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6749 #include <Cocoa/Cocoa.h>
6751 if { (ac_try="$ac_cpp conftest.$ac_ext"
6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6757 $as_echo "$ac_try_echo") >&5
6758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6760 grep -v '^ *+' conftest.er1 >conftest.err
6762 cat conftest.err >&5
6763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } >/dev/null && {
6765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6768 ac_header_preproc=yes
6770 $as_echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6773 ac_header_preproc=no
6776 rm -f conftest.err conftest.$ac_ext
6777 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6778 $as_echo "$ac_header_preproc" >&6; }
6780 # So? What about this header?
6781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6783 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6784 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6785 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
6786 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
6787 ac_header_preproc=yes
6790 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
6791 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
6792 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
6793 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
6794 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
6795 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
6796 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
6797 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6798 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
6799 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
6800 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
6801 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
6805 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6806 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6807 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6808 $as_echo_n "(cached) " >&6
6810 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
6812 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6813 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6816 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
6820 LIBS="$LIBS -framework AppKit"
6821 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"
6822 CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
6823 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
6825 cat >>confdefs.h <<\_ACEOF
6826 #define HAVE_COCOA 1
6830 cat >>confdefs.h <<\_ACEOF
6831 #define APPLE_BUILD 1
6834 if test "x$with_gtk" = "xx11"; then
6844 $as_echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 CPPFLAGS="$lxdream_save_cppflags"
6850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
6861 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
6863 cat >>confdefs.h <<\_ACEOF
6864 #define OSX_BUNDLE 1
6868 if test "x$enable_optimized" = "xyes" -a "x$APPLE_BUILD" != "xyes"; then
6869 CFLAGS="$CFLAGS -fexceptions -fomit-frame-pointer"
6871 cat >>confdefs.h <<\_ACEOF
6872 #define HAVE_EXCEPTIONS 1
6879 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6880 if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6882 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6883 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6886 $as_echo_n "(cached) " >&6
6890 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6901 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6912 if test -n "$PKG_CONFIG"; then
6913 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6914 $as_echo "$PKG_CONFIG" >&6; }
6916 { $as_echo "$as_me:$LINENO: result: no" >&5
6917 $as_echo "no" >&6; }
6922 if test -z "$ac_cv_path_PKG_CONFIG"; then
6923 ac_pt_PKG_CONFIG=$PKG_CONFIG
6924 # Extract the first word of "pkg-config", so it can be a program name with args.
6925 set dummy pkg-config; ac_word=$2
6926 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6929 $as_echo_n "(cached) " >&6
6931 case $ac_pt_PKG_CONFIG in
6933 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6943 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6944 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6955 if test -n "$ac_pt_PKG_CONFIG"; then
6956 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6957 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6959 { $as_echo "$as_me:$LINENO: result: no" >&5
6960 $as_echo "no" >&6; }
6963 if test "x$ac_pt_PKG_CONFIG" = x; then
6966 case $cross_compiling:$ac_tool_warned in
6968 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6969 whose name does not start with the host triplet. If you think this
6970 configuration is useful to you, please write to autoconf@gnu.org." >&5
6971 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6972 whose name does not start with the host triplet. If you think this
6973 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6974 ac_tool_warned=yes ;;
6976 PKG_CONFIG=$ac_pt_PKG_CONFIG
6979 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6983 if test -n "$PKG_CONFIG"; then
6984 _pkg_min_version=0.9.0
6985 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6986 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6987 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6988 { $as_echo "$as_me:$LINENO: result: yes" >&5
6989 $as_echo "yes" >&6; }
6991 { $as_echo "$as_me:$LINENO: result: no" >&5
6992 $as_echo "no" >&6; }
6999 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
7000 $as_echo_n "checking for LIBPNG... " >&6; }
7002 if test -n "$PKG_CONFIG"; then
7003 if test -n "$LIBPNG_CFLAGS"; then
7004 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
7006 if test -n "$PKG_CONFIG" && \
7007 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
7008 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
7010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; then
7012 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
7020 if test -n "$PKG_CONFIG"; then
7021 if test -n "$LIBPNG_LIBS"; then
7022 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
7024 if test -n "$PKG_CONFIG" && \
7025 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
7026 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
7028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; then
7030 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
7041 if test $pkg_failed = yes; then
7043 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7044 _pkg_short_errors_supported=yes
7046 _pkg_short_errors_supported=no
7048 if test $_pkg_short_errors_supported = yes; then
7049 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
7051 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
7053 # Put the nasty error message in config.log where it belongs
7054 echo "$LIBPNG_PKG_ERRORS" >&5
7056 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
7060 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7061 installed software in a non-standard prefix.
7063 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7064 and LIBPNG_LIBS to avoid the need to call pkg-config.
7065 See the pkg-config man page for more details.
7067 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
7071 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7072 installed software in a non-standard prefix.
7074 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7075 and LIBPNG_LIBS to avoid the need to call pkg-config.
7076 See the pkg-config man page for more details.
7078 { (exit 1); exit 1; }; }
7079 elif test $pkg_failed = untried; then
7080 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7081 is in your PATH or set the PKG_CONFIG environment variable to the full
7084 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7085 and LIBPNG_LIBS to avoid the need to call pkg-config.
7086 See the pkg-config man page for more details.
7088 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7089 See \`config.log' for more details." >&5
7090 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7091 is in your PATH or set the PKG_CONFIG environment variable to the full
7094 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7095 and LIBPNG_LIBS to avoid the need to call pkg-config.
7096 See the pkg-config man page for more details.
7098 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7099 See \`config.log' for more details." >&2;}
7100 { (exit 1); exit 1; }; }
7102 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
7103 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
7104 { $as_echo "$as_me:$LINENO: result: yes" >&5
7105 $as_echo "yes" >&6; }
7110 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
7111 $as_echo_n "checking for uncompress in -lz... " >&6; }
7112 if test "${ac_cv_lib_z_uncompress+set}" = set; then
7113 $as_echo_n "(cached) " >&6
7115 ac_check_lib_save_LIBS=$LIBS
7117 cat >conftest.$ac_ext <<_ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7124 /* Override any GCC internal prototype to avoid an error.
7125 Use char because int might match the return type of a GCC
7126 builtin and then its argument prototype would still apply. */
7134 return uncompress ();
7139 rm -f conftest.$ac_objext conftest$ac_exeext
7140 if { (ac_try="$ac_link"
7142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7143 *) ac_try_echo=$ac_try;;
7145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7146 $as_echo "$ac_try_echo") >&5
7147 (eval "$ac_link") 2>conftest.er1
7149 grep -v '^ *+' conftest.er1 >conftest.err
7151 cat conftest.err >&5
7152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } && {
7154 test -z "$ac_c_werror_flag" ||
7155 test ! -s conftest.err
7156 } && test -s conftest$ac_exeext && {
7157 test "$cross_compiling" = yes ||
7158 $as_test_x conftest$ac_exeext
7160 ac_cv_lib_z_uncompress=yes
7162 $as_echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 ac_cv_lib_z_uncompress=no
7168 rm -rf conftest.dSYM
7169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7170 conftest$ac_exeext conftest.$ac_ext
7171 LIBS=$ac_check_lib_save_LIBS
7173 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
7174 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
7175 if test $ac_cv_lib_z_uncompress = yes; then
7176 cat >>confdefs.h <<_ACEOF
7184 echo "Zlib (libz.so) could not be found, but is required."
7189 if test "x$with_gtk" = "xno"; then
7192 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
7193 $as_echo_n "checking for GLIB... " >&6; }
7195 if test -n "$PKG_CONFIG"; then
7196 if test -n "$GLIB_CFLAGS"; then
7197 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
7199 if test -n "$PKG_CONFIG" && \
7200 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7201 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; then
7205 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
7213 if test -n "$PKG_CONFIG"; then
7214 if test -n "$GLIB_LIBS"; then
7215 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
7217 if test -n "$PKG_CONFIG" && \
7218 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7219 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; then
7223 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
7234 if test $pkg_failed = yes; then
7236 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7237 _pkg_short_errors_supported=yes
7239 _pkg_short_errors_supported=no
7241 if test $_pkg_short_errors_supported = yes; then
7242 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
7244 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
7246 # Put the nasty error message in config.log where it belongs
7247 echo "$GLIB_PKG_ERRORS" >&5
7249 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
7253 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7254 installed software in a non-standard prefix.
7256 Alternatively, you may set the environment variables GLIB_CFLAGS
7257 and GLIB_LIBS to avoid the need to call pkg-config.
7258 See the pkg-config man page for more details.
7260 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
7264 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7265 installed software in a non-standard prefix.
7267 Alternatively, you may set the environment variables GLIB_CFLAGS
7268 and GLIB_LIBS to avoid the need to call pkg-config.
7269 See the pkg-config man page for more details.
7271 { (exit 1); exit 1; }; }
7272 elif test $pkg_failed = untried; then
7273 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7274 is in your PATH or set the PKG_CONFIG environment variable to the full
7277 Alternatively, you may set the environment variables GLIB_CFLAGS
7278 and GLIB_LIBS to avoid the need to call pkg-config.
7279 See the pkg-config man page for more details.
7281 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7282 See \`config.log' for more details." >&5
7283 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7284 is in your PATH or set the PKG_CONFIG environment variable to the full
7287 Alternatively, you may set the environment variables GLIB_CFLAGS
7288 and GLIB_LIBS to avoid the need to call pkg-config.
7289 See the pkg-config man page for more details.
7291 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7292 See \`config.log' for more details." >&2;}
7293 { (exit 1); exit 1; }; }
7295 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
7296 GLIB_LIBS=$pkg_cv_GLIB_LIBS
7297 { $as_echo "$as_me:$LINENO: result: yes" >&5
7298 $as_echo "yes" >&6; }
7304 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
7305 $as_echo_n "checking for GTK... " >&6; }
7307 if test -n "$PKG_CONFIG"; then
7308 if test -n "$GTK_CFLAGS"; then
7309 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7311 if test -n "$PKG_CONFIG" && \
7312 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7313 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; then
7317 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
7325 if test -n "$PKG_CONFIG"; then
7326 if test -n "$GTK_LIBS"; then
7327 pkg_cv_GTK_LIBS="$GTK_LIBS"
7329 if test -n "$PKG_CONFIG" && \
7330 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7331 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; then
7335 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
7346 if test $pkg_failed = yes; then
7348 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7349 _pkg_short_errors_supported=yes
7351 _pkg_short_errors_supported=no
7353 if test $_pkg_short_errors_supported = yes; then
7354 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
7356 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
7358 # Put the nasty error message in config.log where it belongs
7359 echo "$GTK_PKG_ERRORS" >&5
7361 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
7365 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7366 installed software in a non-standard prefix.
7368 Alternatively, you may set the environment variables GTK_CFLAGS
7369 and GTK_LIBS to avoid the need to call pkg-config.
7370 See the pkg-config man page for more details.
7372 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
7376 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7377 installed software in a non-standard prefix.
7379 Alternatively, you may set the environment variables GTK_CFLAGS
7380 and GTK_LIBS to avoid the need to call pkg-config.
7381 See the pkg-config man page for more details.
7383 { (exit 1); exit 1; }; }
7384 elif test $pkg_failed = untried; then
7385 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7386 is in your PATH or set the PKG_CONFIG environment variable to the full
7389 Alternatively, you may set the environment variables GTK_CFLAGS
7390 and GTK_LIBS to avoid the need to call pkg-config.
7391 See the pkg-config man page for more details.
7393 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7394 See \`config.log' for more details." >&5
7395 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7396 is in your PATH or set the PKG_CONFIG environment variable to the full
7399 Alternatively, you may set the environment variables GTK_CFLAGS
7400 and GTK_LIBS to avoid the need to call pkg-config.
7401 See the pkg-config man page for more details.
7403 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7404 See \`config.log' for more details." >&2;}
7405 { (exit 1); exit 1; }; }
7407 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7408 GTK_LIBS=$pkg_cv_GTK_LIBS
7409 { $as_echo "$as_me:$LINENO: result: yes" >&5
7410 $as_echo "yes" >&6; }
7414 cat >>confdefs.h <<\_ACEOF
7421 LIBS="$LIBS $GTK_LIBS"
7422 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
7423 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
7424 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
7425 $as_echo_n "(cached) " >&6
7427 cat >conftest.$ac_ext <<_ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7433 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
7434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7435 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
7437 /* System header to define __stub macros and hopefully few prototypes,
7438 which can conflict with char gdk_x11_display_get_xdisplay (); below.
7439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7440 <limits.h> exists even on freestanding compilers. */
7443 # include <limits.h>
7445 # include <assert.h>
7448 #undef gdk_x11_display_get_xdisplay
7450 /* Override any GCC internal prototype to avoid an error.
7451 Use char because int might match the return type of a GCC
7452 builtin and then its argument prototype would still apply. */
7456 char gdk_x11_display_get_xdisplay ();
7457 /* The GNU C library defines this for functions which it implements
7458 to always fail with ENOSYS. Some functions are actually named
7459 something starting with __ and the normal name is an alias. */
7460 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
7467 return gdk_x11_display_get_xdisplay ();
7472 rm -f conftest.$ac_objext conftest$ac_exeext
7473 if { (ac_try="$ac_link"
7475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7476 *) ac_try_echo=$ac_try;;
7478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7479 $as_echo "$ac_try_echo") >&5
7480 (eval "$ac_link") 2>conftest.er1
7482 grep -v '^ *+' conftest.er1 >conftest.err
7484 cat conftest.err >&5
7485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } && {
7487 test -z "$ac_c_werror_flag" ||
7488 test ! -s conftest.err
7489 } && test -s conftest$ac_exeext && {
7490 test "$cross_compiling" = yes ||
7491 $as_test_x conftest$ac_exeext
7493 ac_cv_func_gdk_x11_display_get_xdisplay=yes
7495 $as_echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7498 ac_cv_func_gdk_x11_display_get_xdisplay=no
7501 rm -rf conftest.dSYM
7502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7503 conftest$ac_exeext conftest.$ac_ext
7505 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
7506 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
7507 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
7511 cat >>confdefs.h <<\_ACEOF
7512 #define HAVE_GTK_X11 1
7517 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
7518 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
7519 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
7520 $as_echo_n "(cached) " >&6
7522 cat >conftest.$ac_ext <<_ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
7529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7530 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
7532 /* System header to define __stub macros and hopefully few prototypes,
7533 which can conflict with char gdk_quartz_window_get_nsview (); below.
7534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7535 <limits.h> exists even on freestanding compilers. */
7538 # include <limits.h>
7540 # include <assert.h>
7543 #undef gdk_quartz_window_get_nsview
7545 /* Override any GCC internal prototype to avoid an error.
7546 Use char because int might match the return type of a GCC
7547 builtin and then its argument prototype would still apply. */
7551 char gdk_quartz_window_get_nsview ();
7552 /* The GNU C library defines this for functions which it implements
7553 to always fail with ENOSYS. Some functions are actually named
7554 something starting with __ and the normal name is an alias. */
7555 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
7562 return gdk_quartz_window_get_nsview ();
7567 rm -f conftest.$ac_objext conftest$ac_exeext
7568 if { (ac_try="$ac_link"
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7574 $as_echo "$ac_try_echo") >&5
7575 (eval "$ac_link") 2>conftest.er1
7577 grep -v '^ *+' conftest.er1 >conftest.err
7579 cat conftest.err >&5
7580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } && {
7582 test -z "$ac_c_werror_flag" ||
7583 test ! -s conftest.err
7584 } && test -s conftest$ac_exeext && {
7585 test "$cross_compiling" = yes ||
7586 $as_test_x conftest$ac_exeext
7588 ac_cv_func_gdk_quartz_window_get_nsview=yes
7590 $as_echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 ac_cv_func_gdk_quartz_window_get_nsview=no
7596 rm -rf conftest.dSYM
7597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7598 conftest$ac_exeext conftest.$ac_ext
7600 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
7601 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
7602 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_GTK_OSX 1
7616 if test "$HAVE_GTK" = 'yes'; then
7625 if test "x$with_osmesa" != xno; then
7629 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
7630 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
7631 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
7632 $as_echo_n "(cached) " >&6
7634 ac_check_lib_save_LIBS=$LIBS
7635 LIBS="-lOSMesa $LIBS"
7636 cat >conftest.$ac_ext <<_ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h. */
7643 /* Override any GCC internal prototype to avoid an error.
7644 Use char because int might match the return type of a GCC
7645 builtin and then its argument prototype would still apply. */
7649 char OSMesaCreateContext ();
7653 return OSMesaCreateContext ();
7658 rm -f conftest.$ac_objext conftest$ac_exeext
7659 if { (ac_try="$ac_link"
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7665 $as_echo "$ac_try_echo") >&5
7666 (eval "$ac_link") 2>conftest.er1
7668 grep -v '^ *+' conftest.er1 >conftest.err
7670 cat conftest.err >&5
7671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && {
7673 test -z "$ac_c_werror_flag" ||
7674 test ! -s conftest.err
7675 } && test -s conftest$ac_exeext && {
7676 test "$cross_compiling" = yes ||
7677 $as_test_x conftest$ac_exeext
7679 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
7681 $as_echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_cv_lib_OSMesa_OSMesaCreateContext=no
7687 rm -rf conftest.dSYM
7688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7689 conftest$ac_exeext conftest.$ac_ext
7690 LIBS=$ac_check_lib_save_LIBS
7692 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
7693 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
7694 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
7695 cat >>confdefs.h <<_ACEOF
7696 #define HAVE_LIBOSMESA 1
7699 LIBS="-lOSMesa $LIBS"
7702 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
7703 See \`config.log' for more details." >&5
7704 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
7705 See \`config.log' for more details." >&2;}
7706 { (exit 1); exit 1; }; }
7709 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7710 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7711 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7712 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7713 $as_echo_n "(cached) " >&6
7715 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7716 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7718 # Is the header compilable?
7719 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
7720 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
7721 cat >conftest.$ac_ext <<_ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7728 #include <GL/osmesa.h>
7730 rm -f conftest.$ac_objext
7731 if { (ac_try="$ac_compile"
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7737 $as_echo "$ac_try_echo") >&5
7738 (eval "$ac_compile") 2>conftest.er1
7740 grep -v '^ *+' conftest.er1 >conftest.err
7742 cat conftest.err >&5
7743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest.$ac_objext; then
7748 ac_header_compiler=yes
7750 $as_echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7753 ac_header_compiler=no
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7758 $as_echo "$ac_header_compiler" >&6; }
7760 # Is the header present?
7761 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
7762 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
7763 cat >conftest.$ac_ext <<_ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7769 #include <GL/osmesa.h>
7771 if { (ac_try="$ac_cpp conftest.$ac_ext"
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7777 $as_echo "$ac_try_echo") >&5
7778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7780 grep -v '^ *+' conftest.er1 >conftest.err
7782 cat conftest.err >&5
7783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } >/dev/null && {
7785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7786 test ! -s conftest.err
7788 ac_header_preproc=yes
7790 $as_echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7793 ac_header_preproc=no
7796 rm -f conftest.err conftest.$ac_ext
7797 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7798 $as_echo "$ac_header_preproc" >&6; }
7800 # So? What about this header?
7801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7803 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
7804 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7805 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
7806 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
7807 ac_header_preproc=yes
7810 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
7811 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
7812 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
7813 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
7814 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
7815 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
7816 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
7817 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
7818 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
7819 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
7820 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
7821 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
7825 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7826 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7827 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7828 $as_echo_n "(cached) " >&6
7830 ac_cv_header_GL_osmesa_h=$ac_header_preproc
7832 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7833 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7836 if test $ac_cv_header_GL_osmesa_h = yes; then
7839 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
7840 See \`config.log' for more details." >&5
7841 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
7842 See \`config.log' for more details." >&2;}
7843 { (exit 1); exit 1; }; }
7848 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
7850 cat >>confdefs.h <<\_ACEOF
7851 #define HAVE_OSMESA 1
7857 if test "x$APPLE_BUILD" != 'xyes'; then
7859 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
7860 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
7861 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
7862 $as_echo_n "(cached) " >&6
7864 ac_check_lib_save_LIBS=$LIBS
7866 cat >conftest.$ac_ext <<_ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7873 /* Override any GCC internal prototype to avoid an error.
7874 Use char because int might match the return type of a GCC
7875 builtin and then its argument prototype would still apply. */
7883 return glVertex3f ();
7888 rm -f conftest.$ac_objext conftest$ac_exeext
7889 if { (ac_try="$ac_link"
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7895 $as_echo "$ac_try_echo") >&5
7896 (eval "$ac_link") 2>conftest.er1
7898 grep -v '^ *+' conftest.er1 >conftest.err
7900 cat conftest.err >&5
7901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && {
7903 test -z "$ac_c_werror_flag" ||
7904 test ! -s conftest.err
7905 } && test -s conftest$ac_exeext && {
7906 test "$cross_compiling" = yes ||
7907 $as_test_x conftest$ac_exeext
7909 ac_cv_lib_GL_glVertex3f=yes
7911 $as_echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7914 ac_cv_lib_GL_glVertex3f=no
7917 rm -rf conftest.dSYM
7918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7919 conftest$ac_exeext conftest.$ac_ext
7920 LIBS=$ac_check_lib_save_LIBS
7922 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
7923 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
7924 if test $ac_cv_lib_GL_glVertex3f = yes; then
7925 cat >>confdefs.h <<_ACEOF
7926 #define HAVE_LIBGL 1
7933 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7934 See \`config.log' for more details." >&5
7935 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7936 See \`config.log' for more details." >&2;}
7937 { (exit 1); exit 1; }; }
7940 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7941 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7942 $as_echo_n "checking for GL/gl.h... " >&6; }
7943 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7944 $as_echo_n "(cached) " >&6
7946 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7947 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
7949 # Is the header compilable?
7950 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
7951 $as_echo_n "checking GL/gl.h usability... " >&6; }
7952 cat >conftest.$ac_ext <<_ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7958 $ac_includes_default
7961 rm -f conftest.$ac_objext
7962 if { (ac_try="$ac_compile"
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7968 $as_echo "$ac_try_echo") >&5
7969 (eval "$ac_compile") 2>conftest.er1
7971 grep -v '^ *+' conftest.er1 >conftest.err
7973 cat conftest.err >&5
7974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest.$ac_objext; then
7979 ac_header_compiler=yes
7981 $as_echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7984 ac_header_compiler=no
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7989 $as_echo "$ac_header_compiler" >&6; }
7991 # Is the header present?
7992 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
7993 $as_echo_n "checking GL/gl.h presence... " >&6; }
7994 cat >conftest.$ac_ext <<_ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8002 if { (ac_try="$ac_cpp conftest.$ac_ext"
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8008 $as_echo "$ac_try_echo") >&5
8009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8011 grep -v '^ *+' conftest.er1 >conftest.err
8013 cat conftest.err >&5
8014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } >/dev/null && {
8016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8019 ac_header_preproc=yes
8021 $as_echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 ac_header_preproc=no
8027 rm -f conftest.err conftest.$ac_ext
8028 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8029 $as_echo "$ac_header_preproc" >&6; }
8031 # So? What about this header?
8032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8034 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8035 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8036 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
8037 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
8038 ac_header_preproc=yes
8041 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
8042 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
8043 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
8044 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
8045 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
8046 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
8047 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
8048 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8049 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
8050 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
8051 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
8052 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
8056 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
8057 $as_echo_n "checking for GL/gl.h... " >&6; }
8058 if test "${ac_cv_header_GL_gl_h+set}" = set; then
8059 $as_echo_n "(cached) " >&6
8061 ac_cv_header_GL_gl_h=$ac_header_preproc
8063 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
8064 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
8067 if test $ac_cv_header_GL_gl_h = yes; then
8071 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
8072 See \`config.log' for more details." >&5
8073 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
8074 See \`config.log' for more details." >&2;}
8075 { (exit 1); exit 1; }; }
8080 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
8081 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
8082 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
8083 $as_echo_n "(cached) " >&6
8085 cat >conftest.$ac_ext <<_ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
8092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8093 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
8095 /* System header to define __stub macros and hopefully few prototypes,
8096 which can conflict with char NSOpenGLGetVersion (); below.
8097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8098 <limits.h> exists even on freestanding compilers. */
8101 # include <limits.h>
8103 # include <assert.h>
8106 #undef NSOpenGLGetVersion
8108 /* Override any GCC internal prototype to avoid an error.
8109 Use char because int might match the return type of a GCC
8110 builtin and then its argument prototype would still apply. */
8114 char NSOpenGLGetVersion ();
8115 /* The GNU C library defines this for functions which it implements
8116 to always fail with ENOSYS. Some functions are actually named
8117 something starting with __ and the normal name is an alias. */
8118 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
8125 return NSOpenGLGetVersion ();
8130 rm -f conftest.$ac_objext conftest$ac_exeext
8131 if { (ac_try="$ac_link"
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8137 $as_echo "$ac_try_echo") >&5
8138 (eval "$ac_link") 2>conftest.er1
8140 grep -v '^ *+' conftest.er1 >conftest.err
8142 cat conftest.err >&5
8143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest$ac_exeext && {
8148 test "$cross_compiling" = yes ||
8149 $as_test_x conftest$ac_exeext
8151 ac_cv_func_NSOpenGLGetVersion=yes
8153 $as_echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 ac_cv_func_NSOpenGLGetVersion=no
8159 rm -rf conftest.dSYM
8160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8161 conftest$ac_exeext conftest.$ac_ext
8163 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
8164 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
8165 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
8168 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
8170 cat >>confdefs.h <<\_ACEOF
8178 if test "x$HAVE_GTK_X11" = "xyes"; then
8179 if test "x$APPLE_BUILD" = "xyes"; then
8180 LIBS="$LIBS -L/usr/X11/lib -lGL"
8182 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
8183 $as_echo_n "checking for glXQueryVersion... " >&6; }
8184 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
8185 $as_echo_n "(cached) " >&6
8187 cat >conftest.$ac_ext <<_ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8193 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
8194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8195 #define glXQueryVersion innocuous_glXQueryVersion
8197 /* System header to define __stub macros and hopefully few prototypes,
8198 which can conflict with char glXQueryVersion (); below.
8199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8200 <limits.h> exists even on freestanding compilers. */
8203 # include <limits.h>
8205 # include <assert.h>
8208 #undef glXQueryVersion
8210 /* Override any GCC internal prototype to avoid an error.
8211 Use char because int might match the return type of a GCC
8212 builtin and then its argument prototype would still apply. */
8216 char glXQueryVersion ();
8217 /* The GNU C library defines this for functions which it implements
8218 to always fail with ENOSYS. Some functions are actually named
8219 something starting with __ and the normal name is an alias. */
8220 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
8227 return glXQueryVersion ();
8232 rm -f conftest.$ac_objext conftest$ac_exeext
8233 if { (ac_try="$ac_link"
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8239 $as_echo "$ac_try_echo") >&5
8240 (eval "$ac_link") 2>conftest.er1
8242 grep -v '^ *+' conftest.er1 >conftest.err
8244 cat conftest.err >&5
8245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } && {
8247 test -z "$ac_c_werror_flag" ||
8248 test ! -s conftest.err
8249 } && test -s conftest$ac_exeext && {
8250 test "$cross_compiling" = yes ||
8251 $as_test_x conftest$ac_exeext
8253 ac_cv_func_glXQueryVersion=yes
8255 $as_echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8258 ac_cv_func_glXQueryVersion=no
8261 rm -rf conftest.dSYM
8262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8263 conftest$ac_exeext conftest.$ac_ext
8265 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
8266 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
8267 if test $ac_cv_func_glXQueryVersion = yes; then
8270 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
8272 cat >>confdefs.h <<\_ACEOF
8288 if test "x$HAVE_OSMESA" = "xyes"; then
8290 VIDEO_OSMESA_FALSE='#'
8292 VIDEO_OSMESA_TRUE='#'
8298 if test "x$HAVE_GLX" = "xyes"; then
8308 if test "x$HAVE_NSGL" = "xyes"; then
8310 VIDEO_NSGL_FALSE='#'
8317 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
8318 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
8319 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
8320 $as_echo_n "(cached) " >&6
8322 cat >conftest.$ac_ext <<_ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8328 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
8329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8330 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
8332 /* System header to define __stub macros and hopefully few prototypes,
8333 which can conflict with char glGenFramebuffersEXT (); below.
8334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8335 <limits.h> exists even on freestanding compilers. */
8338 # include <limits.h>
8340 # include <assert.h>
8343 #undef glGenFramebuffersEXT
8345 /* Override any GCC internal prototype to avoid an error.
8346 Use char because int might match the return type of a GCC
8347 builtin and then its argument prototype would still apply. */
8351 char glGenFramebuffersEXT ();
8352 /* The GNU C library defines this for functions which it implements
8353 to always fail with ENOSYS. Some functions are actually named
8354 something starting with __ and the normal name is an alias. */
8355 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
8362 return glGenFramebuffersEXT ();
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (ac_try="$ac_link"
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8374 $as_echo "$ac_try_echo") >&5
8375 (eval "$ac_link") 2>conftest.er1
8377 grep -v '^ *+' conftest.er1 >conftest.err
8379 cat conftest.err >&5
8380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest$ac_exeext && {
8385 test "$cross_compiling" = yes ||
8386 $as_test_x conftest$ac_exeext
8388 ac_cv_func_glGenFramebuffersEXT=yes
8390 $as_echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 ac_cv_func_glGenFramebuffersEXT=no
8396 rm -rf conftest.dSYM
8397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8398 conftest$ac_exeext conftest.$ac_ext
8400 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
8401 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
8402 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
8404 cat >>confdefs.h <<\_ACEOF
8405 #define HAVE_OPENGL_FBO 1
8410 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
8411 $as_echo_n "checking for glCreateShader... " >&6; }
8412 if test "${ac_cv_func_glCreateShader+set}" = set; then
8413 $as_echo_n "(cached) " >&6
8415 cat >conftest.$ac_ext <<_ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
8422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8423 #define glCreateShader innocuous_glCreateShader
8425 /* System header to define __stub macros and hopefully few prototypes,
8426 which can conflict with char glCreateShader (); below.
8427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8428 <limits.h> exists even on freestanding compilers. */
8431 # include <limits.h>
8433 # include <assert.h>
8436 #undef glCreateShader
8438 /* Override any GCC internal prototype to avoid an error.
8439 Use char because int might match the return type of a GCC
8440 builtin and then its argument prototype would still apply. */
8444 char glCreateShader ();
8445 /* The GNU C library defines this for functions which it implements
8446 to always fail with ENOSYS. Some functions are actually named
8447 something starting with __ and the normal name is an alias. */
8448 #if defined __stub_glCreateShader || defined __stub___glCreateShader
8455 return glCreateShader ();
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (ac_try="$ac_link"
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8467 $as_echo "$ac_try_echo") >&5
8468 (eval "$ac_link") 2>conftest.er1
8470 grep -v '^ *+' conftest.er1 >conftest.err
8472 cat conftest.err >&5
8473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } && {
8475 test -z "$ac_c_werror_flag" ||
8476 test ! -s conftest.err
8477 } && test -s conftest$ac_exeext && {
8478 test "$cross_compiling" = yes ||
8479 $as_test_x conftest$ac_exeext
8481 ac_cv_func_glCreateShader=yes
8483 $as_echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8486 ac_cv_func_glCreateShader=no
8489 rm -rf conftest.dSYM
8490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8491 conftest$ac_exeext conftest.$ac_ext
8493 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
8494 $as_echo "$ac_cv_func_glCreateShader" >&6; }
8495 if test $ac_cv_func_glCreateShader = yes; then
8497 cat >>confdefs.h <<\_ACEOF
8498 #define HAVE_OPENGL_SHADER 1
8503 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
8504 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
8505 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
8506 $as_echo_n "(cached) " >&6
8508 cat >conftest.$ac_ext <<_ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8514 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
8515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8516 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
8518 /* System header to define __stub macros and hopefully few prototypes,
8519 which can conflict with char glCreateShaderObjectARB (); below.
8520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8521 <limits.h> exists even on freestanding compilers. */
8524 # include <limits.h>
8526 # include <assert.h>
8529 #undef glCreateShaderObjectARB
8531 /* Override any GCC internal prototype to avoid an error.
8532 Use char because int might match the return type of a GCC
8533 builtin and then its argument prototype would still apply. */
8537 char glCreateShaderObjectARB ();
8538 /* The GNU C library defines this for functions which it implements
8539 to always fail with ENOSYS. Some functions are actually named
8540 something starting with __ and the normal name is an alias. */
8541 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
8548 return glCreateShaderObjectARB ();
8553 rm -f conftest.$ac_objext conftest$ac_exeext
8554 if { (ac_try="$ac_link"
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8560 $as_echo "$ac_try_echo") >&5
8561 (eval "$ac_link") 2>conftest.er1
8563 grep -v '^ *+' conftest.er1 >conftest.err
8565 cat conftest.err >&5
8566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && {
8568 test -z "$ac_c_werror_flag" ||
8569 test ! -s conftest.err
8570 } && test -s conftest$ac_exeext && {
8571 test "$cross_compiling" = yes ||
8572 $as_test_x conftest$ac_exeext
8574 ac_cv_func_glCreateShaderObjectARB=yes
8576 $as_echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8579 ac_cv_func_glCreateShaderObjectARB=no
8582 rm -rf conftest.dSYM
8583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8584 conftest$ac_exeext conftest.$ac_ext
8586 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
8587 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
8588 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
8590 cat >>confdefs.h <<\_ACEOF
8591 #define HAVE_OPENGL_SHADER_ARB 1
8596 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
8597 $as_echo_n "checking for glClampColorARB... " >&6; }
8598 if test "${ac_cv_func_glClampColorARB+set}" = set; then
8599 $as_echo_n "(cached) " >&6
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
8608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8609 #define glClampColorARB innocuous_glClampColorARB
8611 /* System header to define __stub macros and hopefully few prototypes,
8612 which can conflict with char glClampColorARB (); below.
8613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8614 <limits.h> exists even on freestanding compilers. */
8617 # include <limits.h>
8619 # include <assert.h>
8622 #undef glClampColorARB
8624 /* Override any GCC internal prototype to avoid an error.
8625 Use char because int might match the return type of a GCC
8626 builtin and then its argument prototype would still apply. */
8630 char glClampColorARB ();
8631 /* The GNU C library defines this for functions which it implements
8632 to always fail with ENOSYS. Some functions are actually named
8633 something starting with __ and the normal name is an alias. */
8634 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
8641 return glClampColorARB ();
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (ac_try="$ac_link"
8649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650 *) ac_try_echo=$ac_try;;
8652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8653 $as_echo "$ac_try_echo") >&5
8654 (eval "$ac_link") 2>conftest.er1
8656 grep -v '^ *+' conftest.er1 >conftest.err
8658 cat conftest.err >&5
8659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } && {
8661 test -z "$ac_c_werror_flag" ||
8662 test ! -s conftest.err
8663 } && test -s conftest$ac_exeext && {
8664 test "$cross_compiling" = yes ||
8665 $as_test_x conftest$ac_exeext
8667 ac_cv_func_glClampColorARB=yes
8669 $as_echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 ac_cv_func_glClampColorARB=no
8675 rm -rf conftest.dSYM
8676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8677 conftest$ac_exeext conftest.$ac_ext
8679 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
8680 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
8681 if test $ac_cv_func_glClampColorARB = yes; then
8683 cat >>confdefs.h <<\_ACEOF
8684 #define HAVE_OPENGL_CLAMP_COLOR 1
8692 if test "x$enable_translator" != "xno"; then
8694 i386|i486|i586|i686|x86_64)
8695 SH4_TRANSLATOR="x86"
8697 cat >>confdefs.h <<_ACEOF
8698 #define SH4_TRANSLATOR TARGET_X86
8705 if test "$SH4_TRANSLATOR" = "x86"; then
8707 BUILD_SH4X86_FALSE='#'
8709 BUILD_SH4X86_TRUE='#'
8714 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8715 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
8716 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
8717 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8718 $as_echo_n "(cached) " >&6
8720 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
8721 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
8723 # Is the header compilable?
8724 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
8725 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
8726 cat >conftest.$ac_ext <<_ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8732 $ac_includes_default
8733 #include <CoreAudio/CoreAudio.h>
8735 rm -f conftest.$ac_objext
8736 if { (ac_try="$ac_compile"
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8742 $as_echo "$ac_try_echo") >&5
8743 (eval "$ac_compile") 2>conftest.er1
8745 grep -v '^ *+' conftest.er1 >conftest.err
8747 cat conftest.err >&5
8748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } && {
8750 test -z "$ac_c_werror_flag" ||
8751 test ! -s conftest.err
8752 } && test -s conftest.$ac_objext; then
8753 ac_header_compiler=yes
8755 $as_echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ac_header_compiler=no
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8763 $as_echo "$ac_header_compiler" >&6; }
8765 # Is the header present?
8766 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
8767 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
8768 cat >conftest.$ac_ext <<_ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 #include <CoreAudio/CoreAudio.h>
8776 if { (ac_try="$ac_cpp conftest.$ac_ext"
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8782 $as_echo "$ac_try_echo") >&5
8783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8785 grep -v '^ *+' conftest.er1 >conftest.err
8787 cat conftest.err >&5
8788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } >/dev/null && {
8790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8791 test ! -s conftest.err
8793 ac_header_preproc=yes
8795 $as_echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 ac_header_preproc=no
8801 rm -f conftest.err conftest.$ac_ext
8802 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8803 $as_echo "$ac_header_preproc" >&6; }
8805 # So? What about this header?
8806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8808 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8809 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8810 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
8811 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
8812 ac_header_preproc=yes
8815 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
8816 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
8817 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
8818 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
8819 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
8820 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
8821 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
8822 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
8823 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
8824 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
8825 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
8826 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
8830 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
8831 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
8832 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8833 $as_echo_n "(cached) " >&6
8835 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
8837 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
8838 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
8841 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
8844 LIBS="$LIBS -framework CoreAudio"
8845 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
8847 cat >>confdefs.h <<\_ACEOF
8848 #define HAVE_CORE_AUDIO 1
8858 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
8867 if test "x$with_pulse" != "xno"; then
8870 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
8871 $as_echo_n "checking for PULSE... " >&6; }
8873 if test -n "$PKG_CONFIG"; then
8874 if test -n "$PULSE_CFLAGS"; then
8875 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
8877 if test -n "$PKG_CONFIG" && \
8878 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8879 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; then
8883 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
8891 if test -n "$PKG_CONFIG"; then
8892 if test -n "$PULSE_LIBS"; then
8893 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
8895 if test -n "$PKG_CONFIG" && \
8896 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8897 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; then
8901 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
8912 if test $pkg_failed = yes; then
8914 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8915 _pkg_short_errors_supported=yes
8917 _pkg_short_errors_supported=no
8919 if test $_pkg_short_errors_supported = yes; then
8920 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
8922 PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
8924 # Put the nasty error message in config.log where it belongs
8925 echo "$PULSE_PKG_ERRORS" >&5
8927 { $as_echo "$as_me:$LINENO: result: no" >&5
8928 $as_echo "no" >&6; }
8930 if test "x$with_pulse" = "xyes"; then
8931 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
8932 See \`config.log' for more details." >&5
8933 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
8934 See \`config.log' for more details." >&2;}
8935 { (exit 1); exit 1; }; }
8938 elif test $pkg_failed = untried; then
8940 if test "x$with_pulse" = "xyes"; then
8941 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
8942 See \`config.log' for more details." >&5
8943 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
8944 See \`config.log' for more details." >&2;}
8945 { (exit 1); exit 1; }; }
8949 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
8950 PULSE_LIBS=$pkg_cv_PULSE_LIBS
8951 { $as_echo "$as_me:$LINENO: result: yes" >&5
8952 $as_echo "yes" >&6; }
8955 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
8957 cat >>confdefs.h <<\_ACEOF
8958 #define HAVE_PULSE 1
8966 if test "$HAVE_PULSE" = 'yes' ; then
8968 AUDIO_PULSE_FALSE='#'
8970 AUDIO_PULSE_TRUE='#'
8975 if test "x$with_esd" != "xno"; then
8978 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
8979 $as_echo_n "checking for ESOUND... " >&6; }
8981 if test -n "$PKG_CONFIG"; then
8982 if test -n "$ESOUND_CFLAGS"; then
8983 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
8985 if test -n "$PKG_CONFIG" && \
8986 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8987 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; then
8991 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
8999 if test -n "$PKG_CONFIG"; then
9000 if test -n "$ESOUND_LIBS"; then
9001 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
9003 if test -n "$PKG_CONFIG" && \
9004 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
9005 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
9007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; then
9009 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
9020 if test $pkg_failed = yes; then
9022 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9023 _pkg_short_errors_supported=yes
9025 _pkg_short_errors_supported=no
9027 if test $_pkg_short_errors_supported = yes; then
9028 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
9030 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
9032 # Put the nasty error message in config.log where it belongs
9033 echo "$ESOUND_PKG_ERRORS" >&5
9035 { $as_echo "$as_me:$LINENO: result: no" >&5
9036 $as_echo "no" >&6; }
9038 if test "x$with_esd" = "xyes"; then
9039 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
9040 See \`config.log' for more details." >&5
9041 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
9042 See \`config.log' for more details." >&2;}
9043 { (exit 1); exit 1; }; }
9046 elif test $pkg_failed = untried; then
9048 if test "x$with_esd" = "xyes"; then
9049 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
9050 See \`config.log' for more details." >&5
9051 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
9052 See \`config.log' for more details." >&2;}
9053 { (exit 1); exit 1; }; }
9057 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
9058 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
9059 { $as_echo "$as_me:$LINENO: result: yes" >&5
9060 $as_echo "yes" >&6; }
9063 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
9065 cat >>confdefs.h <<\_ACEOF
9066 #define HAVE_ESOUND 1
9074 if test "$HAVE_ESOUND" = 'yes' ; then
9076 AUDIO_ESOUND_FALSE='#'
9078 AUDIO_ESOUND_TRUE='#'
9085 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
9086 $as_echo_n "checking for ALSA... " >&6; }
9088 if test -n "$PKG_CONFIG"; then
9089 if test -n "$ALSA_CFLAGS"; then
9090 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
9092 if test -n "$PKG_CONFIG" && \
9093 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
9094 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
9096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; then
9098 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
9106 if test -n "$PKG_CONFIG"; then
9107 if test -n "$ALSA_LIBS"; then
9108 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
9110 if test -n "$PKG_CONFIG" && \
9111 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
9112 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
9114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; then
9116 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
9127 if test $pkg_failed = yes; then
9129 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9130 _pkg_short_errors_supported=yes
9132 _pkg_short_errors_supported=no
9134 if test $_pkg_short_errors_supported = yes; then
9135 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
9137 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
9139 # Put the nasty error message in config.log where it belongs
9140 echo "$ALSA_PKG_ERRORS" >&5
9142 { $as_echo "$as_me:$LINENO: result: no" >&5
9143 $as_echo "no" >&6; }
9145 elif test $pkg_failed = untried; then
9148 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
9149 ALSA_LIBS=$pkg_cv_ALSA_LIBS
9150 { $as_echo "$as_me:$LINENO: result: yes" >&5
9151 $as_echo "yes" >&6; }
9154 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
9156 cat >>confdefs.h <<\_ACEOF
9163 if test "$HAVE_ALSA" = 'yes' ; then
9165 AUDIO_ALSA_FALSE='#'
9173 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9174 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
9175 $as_echo_n "checking for linux/cdrom.h... " >&6; }
9176 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9177 $as_echo_n "(cached) " >&6
9179 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
9180 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
9182 # Is the header compilable?
9183 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
9184 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
9185 cat >conftest.$ac_ext <<_ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 $ac_includes_default
9192 #include <linux/cdrom.h>
9194 rm -f conftest.$ac_objext
9195 if { (ac_try="$ac_compile"
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9201 $as_echo "$ac_try_echo") >&5
9202 (eval "$ac_compile") 2>conftest.er1
9204 grep -v '^ *+' conftest.er1 >conftest.err
9206 cat conftest.err >&5
9207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } && {
9209 test -z "$ac_c_werror_flag" ||
9210 test ! -s conftest.err
9211 } && test -s conftest.$ac_objext; then
9212 ac_header_compiler=yes
9214 $as_echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_header_compiler=no
9220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9222 $as_echo "$ac_header_compiler" >&6; }
9224 # Is the header present?
9225 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
9226 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
9227 cat >conftest.$ac_ext <<_ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233 #include <linux/cdrom.h>
9235 if { (ac_try="$ac_cpp conftest.$ac_ext"
9237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238 *) ac_try_echo=$ac_try;;
9240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9241 $as_echo "$ac_try_echo") >&5
9242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9244 grep -v '^ *+' conftest.er1 >conftest.err
9246 cat conftest.err >&5
9247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } >/dev/null && {
9249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9250 test ! -s conftest.err
9252 ac_header_preproc=yes
9254 $as_echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9257 ac_header_preproc=no
9260 rm -f conftest.err conftest.$ac_ext
9261 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9262 $as_echo "$ac_header_preproc" >&6; }
9264 # So? What about this header?
9265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9267 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
9268 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9269 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
9270 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
9271 ac_header_preproc=yes
9274 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
9275 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
9276 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
9277 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
9278 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
9279 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
9280 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
9281 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
9282 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
9283 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
9284 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
9285 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
9289 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
9290 $as_echo_n "checking for linux/cdrom.h... " >&6; }
9291 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9292 $as_echo_n "(cached) " >&6
9294 ac_cv_header_linux_cdrom_h=$ac_header_preproc
9296 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
9297 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
9300 if test $ac_cv_header_linux_cdrom_h = yes; then
9307 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
9308 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
9309 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
9310 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
9311 $as_echo_n "(cached) " >&6
9313 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
9314 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
9316 # Is the header compilable?
9317 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
9318 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
9319 cat >conftest.$ac_ext <<_ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9325 $ac_includes_default
9326 #include <IOKit/IOKitLib.h>
9328 rm -f conftest.$ac_objext
9329 if { (ac_try="$ac_compile"
9331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332 *) ac_try_echo=$ac_try;;
9334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9335 $as_echo "$ac_try_echo") >&5
9336 (eval "$ac_compile") 2>conftest.er1
9338 grep -v '^ *+' conftest.er1 >conftest.err
9340 cat conftest.err >&5
9341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } && {
9343 test -z "$ac_c_werror_flag" ||
9344 test ! -s conftest.err
9345 } && test -s conftest.$ac_objext; then
9346 ac_header_compiler=yes
9348 $as_echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9351 ac_header_compiler=no
9354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9356 $as_echo "$ac_header_compiler" >&6; }
9358 # Is the header present?
9359 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
9360 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
9361 cat >conftest.$ac_ext <<_ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 #include <IOKit/IOKitLib.h>
9369 if { (ac_try="$ac_cpp conftest.$ac_ext"
9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372 *) ac_try_echo=$ac_try;;
9374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9375 $as_echo "$ac_try_echo") >&5
9376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9378 grep -v '^ *+' conftest.er1 >conftest.err
9380 cat conftest.err >&5
9381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } >/dev/null && {
9383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9384 test ! -s conftest.err
9386 ac_header_preproc=yes
9388 $as_echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 ac_header_preproc=no
9394 rm -f conftest.err conftest.$ac_ext
9395 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9396 $as_echo "$ac_header_preproc" >&6; }
9398 # So? What about this header?
9399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9401 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9402 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9403 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
9404 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
9405 ac_header_preproc=yes
9408 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
9409 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
9410 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
9411 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
9412 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
9413 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
9414 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
9415 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9416 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
9417 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
9418 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
9419 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
9423 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
9424 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
9425 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
9426 $as_echo_n "(cached) " >&6
9428 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
9430 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
9431 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
9434 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
9437 LIBS="$LIBS -framework IOKit"
9445 if test "x$CDROM_DRIVER" = "xlinux"; then
9447 CDROM_LINUX_FALSE='#'
9449 CDROM_LINUX_TRUE='#'
9455 if test "x$CDROM_DRIVER" = "xosx"; then
9465 if test "x$CDROM_DRIVER" = "x"; then
9467 CDROM_NONE_FALSE='#'
9474 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9475 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9476 $as_echo_n "checking for linux/joystick.h... " >&6; }
9477 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9478 $as_echo_n "(cached) " >&6
9480 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9481 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9483 # Is the header compilable?
9484 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
9485 $as_echo_n "checking linux/joystick.h usability... " >&6; }
9486 cat >conftest.$ac_ext <<_ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9492 $ac_includes_default
9493 #include <linux/joystick.h>
9495 rm -f conftest.$ac_objext
9496 if { (ac_try="$ac_compile"
9498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499 *) ac_try_echo=$ac_try;;
9501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9502 $as_echo "$ac_try_echo") >&5
9503 (eval "$ac_compile") 2>conftest.er1
9505 grep -v '^ *+' conftest.er1 >conftest.err
9507 cat conftest.err >&5
9508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } && {
9510 test -z "$ac_c_werror_flag" ||
9511 test ! -s conftest.err
9512 } && test -s conftest.$ac_objext; then
9513 ac_header_compiler=yes
9515 $as_echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9518 ac_header_compiler=no
9521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9522 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9523 $as_echo "$ac_header_compiler" >&6; }
9525 # Is the header present?
9526 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
9527 $as_echo_n "checking linux/joystick.h presence... " >&6; }
9528 cat >conftest.$ac_ext <<_ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534 #include <linux/joystick.h>
9536 if { (ac_try="$ac_cpp conftest.$ac_ext"
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9542 $as_echo "$ac_try_echo") >&5
9543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9545 grep -v '^ *+' conftest.er1 >conftest.err
9547 cat conftest.err >&5
9548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } >/dev/null && {
9550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9551 test ! -s conftest.err
9553 ac_header_preproc=yes
9555 $as_echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9558 ac_header_preproc=no
9561 rm -f conftest.err conftest.$ac_ext
9562 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9563 $as_echo "$ac_header_preproc" >&6; }
9565 # So? What about this header?
9566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9568 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
9569 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9570 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
9571 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
9572 ac_header_preproc=yes
9575 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
9576 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
9577 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
9578 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
9579 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
9580 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
9581 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
9582 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
9583 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
9584 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
9585 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
9586 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
9590 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9591 $as_echo_n "checking for linux/joystick.h... " >&6; }
9592 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9593 $as_echo_n "(cached) " >&6
9595 ac_cv_header_linux_joystick_h=$ac_header_preproc
9597 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9598 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9601 if test $ac_cv_header_linux_joystick_h = yes; then
9603 HAVE_LINUX_JOYSTICK_H=yes
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_LINUX_JOYSTICK 1
9610 echo "Linux Joystick support not found, building without it."
9616 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
9625 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
9626 set dummy sh-elf-gcc; ac_word=$2
9627 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9628 $as_echo_n "checking for $ac_word... " >&6; }
9629 if test "${ac_cv_path_SHCC+set}" = set; then
9630 $as_echo_n "(cached) " >&6
9634 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
9637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 test -z "$as_dir" && as_dir=.
9642 for ac_exec_ext in '' $ac_executable_extensions; do
9643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9644 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
9645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9655 SHCC=$ac_cv_path_SHCC
9656 if test -n "$SHCC"; then
9657 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
9658 $as_echo "$SHCC" >&6; }
9660 { $as_echo "$as_me:$LINENO: result: no" >&5
9661 $as_echo "no" >&6; }
9665 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
9666 set dummy sh-elf-ld; ac_word=$2
9667 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9668 $as_echo_n "checking for $ac_word... " >&6; }
9669 if test "${ac_cv_path_SHLD+set}" = set; then
9670 $as_echo_n "(cached) " >&6
9674 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 test -z "$as_dir" && as_dir=.
9682 for ac_exec_ext in '' $ac_executable_extensions; do
9683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9684 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
9685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 SHLD=$ac_cv_path_SHLD
9696 if test -n "$SHLD"; then
9697 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
9698 $as_echo "$SHLD" >&6; }
9700 { $as_echo "$as_me:$LINENO: result: no" >&5
9701 $as_echo "no" >&6; }
9705 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
9706 set dummy sh-elf-objcopy; ac_word=$2
9707 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9708 $as_echo_n "checking for $ac_word... " >&6; }
9709 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
9710 $as_echo_n "(cached) " >&6
9714 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
9717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 test -z "$as_dir" && as_dir=.
9722 for ac_exec_ext in '' $ac_executable_extensions; do
9723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9724 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
9736 if test -n "$SHOBJCOPY"; then
9737 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
9738 $as_echo "$SHOBJCOPY" >&6; }
9740 { $as_echo "$as_me:$LINENO: result: no" >&5
9741 $as_echo "no" >&6; }
9745 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
9746 set dummy arm-elf-gcc; ac_word=$2
9747 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9748 $as_echo_n "checking for $ac_word... " >&6; }
9749 if test "${ac_cv_path_ARMCC+set}" = set; then
9750 $as_echo_n "(cached) " >&6
9754 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
9757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 test -z "$as_dir" && as_dir=.
9762 for ac_exec_ext in '' $ac_executable_extensions; do
9763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9764 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
9765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9775 ARMCC=$ac_cv_path_ARMCC
9776 if test -n "$ARMCC"; then
9777 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
9778 $as_echo "$ARMCC" >&6; }
9780 { $as_echo "$as_me:$LINENO: result: no" >&5
9781 $as_echo "no" >&6; }
9785 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
9786 set dummy arm-elf-ld; ac_word=$2
9787 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9788 $as_echo_n "checking for $ac_word... " >&6; }
9789 if test "${ac_cv_path_ARMLD+set}" = set; then
9790 $as_echo_n "(cached) " >&6
9794 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
9797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801 test -z "$as_dir" && as_dir=.
9802 for ac_exec_ext in '' $ac_executable_extensions; do
9803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9804 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
9805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9815 ARMLD=$ac_cv_path_ARMLD
9816 if test -n "$ARMLD"; then
9817 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
9818 $as_echo "$ARMLD" >&6; }
9820 { $as_echo "$as_me:$LINENO: result: no" >&5
9821 $as_echo "no" >&6; }
9825 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
9826 set dummy arm-elf-objcopy; ac_word=$2
9827 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9828 $as_echo_n "checking for $ac_word... " >&6; }
9829 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
9830 $as_echo_n "(cached) " >&6
9834 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9844 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9845 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9855 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
9856 if test -n "$ARMOBJCOPY"; then
9857 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
9858 $as_echo "$ARMOBJCOPY" >&6; }
9860 { $as_echo "$as_me:$LINENO: result: no" >&5
9861 $as_echo "no" >&6; }
9866 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
9868 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
9872 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
9874 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
9880 if test "$BUILD_SH" = "yes"; then
9882 BUILD_SYSTEST_FALSE='#'
9884 BUILD_SYSTEST_TRUE='#'
9885 BUILD_SYSTEST_FALSE=
9890 if test "$BUILD_ARM" = "yes"; then
9892 BUILD_ARMTEST_FALSE='#'
9894 BUILD_ARMTEST_TRUE='#'
9895 BUILD_ARMTEST_FALSE=
9900 GETTEXT_PACKAGE=lxdream
9903 cat >>confdefs.h <<_ACEOF
9904 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
9908 ALL_LINGUAS="de es it pt_BR"
9911 for ac_header in locale.h
9913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9915 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9916 $as_echo_n "checking for $ac_header... " >&6; }
9917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9918 $as_echo_n "(cached) " >&6
9920 ac_res=`eval 'as_val=${'$as_ac_Header'}
9921 $as_echo "$as_val"'`
9922 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9923 $as_echo "$ac_res" >&6; }
9925 # Is the header compilable?
9926 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9927 $as_echo_n "checking $ac_header usability... " >&6; }
9928 cat >conftest.$ac_ext <<_ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9934 $ac_includes_default
9935 #include <$ac_header>
9937 rm -f conftest.$ac_objext
9938 if { (ac_try="$ac_compile"
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9944 $as_echo "$ac_try_echo") >&5
9945 (eval "$ac_compile") 2>conftest.er1
9947 grep -v '^ *+' conftest.er1 >conftest.err
9949 cat conftest.err >&5
9950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && {
9952 test -z "$ac_c_werror_flag" ||
9953 test ! -s conftest.err
9954 } && test -s conftest.$ac_objext; then
9955 ac_header_compiler=yes
9957 $as_echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960 ac_header_compiler=no
9963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9965 $as_echo "$ac_header_compiler" >&6; }
9967 # Is the header present?
9968 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9969 $as_echo_n "checking $ac_header presence... " >&6; }
9970 cat >conftest.$ac_ext <<_ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 #include <$ac_header>
9978 if { (ac_try="$ac_cpp conftest.$ac_ext"
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9984 $as_echo "$ac_try_echo") >&5
9985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9987 grep -v '^ *+' conftest.er1 >conftest.err
9989 cat conftest.err >&5
9990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } >/dev/null && {
9992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9995 ac_header_preproc=yes
9997 $as_echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 ac_header_preproc=no
10003 rm -f conftest.err conftest.$ac_ext
10004 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10005 $as_echo "$ac_header_preproc" >&6; }
10007 # So? What about this header?
10008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10011 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10013 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10014 ac_header_preproc=yes
10017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10018 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10020 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10022 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10024 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10026 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10028 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10032 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10033 $as_echo_n "checking for $ac_header... " >&6; }
10034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10035 $as_echo_n "(cached) " >&6
10037 eval "$as_ac_Header=\$ac_header_preproc"
10039 ac_res=`eval 'as_val=${'$as_ac_Header'}
10040 $as_echo "$as_val"'`
10041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10042 $as_echo "$ac_res" >&6; }
10045 if test `eval 'as_val=${'$as_ac_Header'}
10046 $as_echo "$as_val"'` = yes; then
10047 cat >>confdefs.h <<_ACEOF
10048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10055 if test $ac_cv_header_locale_h = yes; then
10056 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10057 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10058 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10059 $as_echo_n "(cached) " >&6
10061 cat >conftest.$ac_ext <<_ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 #include <locale.h>
10076 rm -f conftest.$ac_objext conftest$ac_exeext
10077 if { (ac_try="$ac_link"
10078 case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10083 $as_echo "$ac_try_echo") >&5
10084 (eval "$ac_link") 2>conftest.er1
10086 grep -v '^ *+' conftest.er1 >conftest.err
10088 cat conftest.err >&5
10089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } && {
10091 test -z "$ac_c_werror_flag" ||
10092 test ! -s conftest.err
10093 } && test -s conftest$ac_exeext && {
10094 test "$cross_compiling" = yes ||
10095 $as_test_x conftest$ac_exeext
10097 am_cv_val_LC_MESSAGES=yes
10099 $as_echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10102 am_cv_val_LC_MESSAGES=no
10105 rm -rf conftest.dSYM
10106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10107 conftest$ac_exeext conftest.$ac_ext
10109 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10110 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10111 if test $am_cv_val_LC_MESSAGES = yes; then
10113 cat >>confdefs.h <<\_ACEOF
10114 #define HAVE_LC_MESSAGES 1
10122 gt_cv_have_gettext=no
10128 if test "${ac_cv_header_libintl_h+set}" = set; then
10129 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
10130 $as_echo_n "checking for libintl.h... " >&6; }
10131 if test "${ac_cv_header_libintl_h+set}" = set; then
10132 $as_echo_n "(cached) " >&6
10134 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10135 $as_echo "$ac_cv_header_libintl_h" >&6; }
10137 # Is the header compilable?
10138 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
10139 $as_echo_n "checking libintl.h usability... " >&6; }
10140 cat >conftest.$ac_ext <<_ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h. */
10146 $ac_includes_default
10147 #include <libintl.h>
10149 rm -f conftest.$ac_objext
10150 if { (ac_try="$ac_compile"
10151 case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10156 $as_echo "$ac_try_echo") >&5
10157 (eval "$ac_compile") 2>conftest.er1
10159 grep -v '^ *+' conftest.er1 >conftest.err
10161 cat conftest.err >&5
10162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } && {
10164 test -z "$ac_c_werror_flag" ||
10165 test ! -s conftest.err
10166 } && test -s conftest.$ac_objext; then
10167 ac_header_compiler=yes
10169 $as_echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10172 ac_header_compiler=no
10175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10176 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10177 $as_echo "$ac_header_compiler" >&6; }
10179 # Is the header present?
10180 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
10181 $as_echo_n "checking libintl.h presence... " >&6; }
10182 cat >conftest.$ac_ext <<_ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 #include <libintl.h>
10190 if { (ac_try="$ac_cpp conftest.$ac_ext"
10191 case "(($ac_try" in
10192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10193 *) ac_try_echo=$ac_try;;
10195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10196 $as_echo "$ac_try_echo") >&5
10197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10199 grep -v '^ *+' conftest.er1 >conftest.err
10201 cat conftest.err >&5
10202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } >/dev/null && {
10204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10205 test ! -s conftest.err
10207 ac_header_preproc=yes
10209 $as_echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10212 ac_header_preproc=no
10215 rm -f conftest.err conftest.$ac_ext
10216 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10217 $as_echo "$ac_header_preproc" >&6; }
10219 # So? What about this header?
10220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10222 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10223 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10224 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
10225 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
10226 ac_header_preproc=yes
10229 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
10230 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
10231 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
10232 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
10233 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
10234 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
10235 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
10236 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10237 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
10238 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
10239 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
10240 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
10244 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
10245 $as_echo_n "checking for libintl.h... " >&6; }
10246 if test "${ac_cv_header_libintl_h+set}" = set; then
10247 $as_echo_n "(cached) " >&6
10249 ac_cv_header_libintl_h=$ac_header_preproc
10251 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10252 $as_echo "$ac_cv_header_libintl_h" >&6; }
10255 if test $ac_cv_header_libintl_h = yes; then
10256 gt_cv_func_dgettext_libintl="no"
10257 libintl_extra_libs=""
10260 # First check in libc
10262 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
10263 $as_echo_n "checking for ngettext in libc... " >&6; }
10264 if test "${gt_cv_func_ngettext_libc+set}" = set; then
10265 $as_echo_n "(cached) " >&6
10267 cat >conftest.$ac_ext <<_ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10274 #include <libintl.h>
10279 return !ngettext ("","", 1)
10284 rm -f conftest.$ac_objext conftest$ac_exeext
10285 if { (ac_try="$ac_link"
10286 case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10291 $as_echo "$ac_try_echo") >&5
10292 (eval "$ac_link") 2>conftest.er1
10294 grep -v '^ *+' conftest.er1 >conftest.err
10296 cat conftest.err >&5
10297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } && {
10299 test -z "$ac_c_werror_flag" ||
10300 test ! -s conftest.err
10301 } && test -s conftest$ac_exeext && {
10302 test "$cross_compiling" = yes ||
10303 $as_test_x conftest$ac_exeext
10305 gt_cv_func_ngettext_libc=yes
10307 $as_echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 gt_cv_func_ngettext_libc=no
10313 rm -rf conftest.dSYM
10314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10315 conftest$ac_exeext conftest.$ac_ext
10318 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
10319 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
10321 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10322 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
10323 $as_echo_n "checking for dgettext in libc... " >&6; }
10324 if test "${gt_cv_func_dgettext_libc+set}" = set; then
10325 $as_echo_n "(cached) " >&6
10327 cat >conftest.$ac_ext <<_ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10334 #include <libintl.h>
10339 return !dgettext ("","")
10344 rm -f conftest.$ac_objext conftest$ac_exeext
10345 if { (ac_try="$ac_link"
10346 case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10351 $as_echo "$ac_try_echo") >&5
10352 (eval "$ac_link") 2>conftest.er1
10354 grep -v '^ *+' conftest.er1 >conftest.err
10356 cat conftest.err >&5
10357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } && {
10359 test -z "$ac_c_werror_flag" ||
10360 test ! -s conftest.err
10361 } && test -s conftest$ac_exeext && {
10362 test "$cross_compiling" = yes ||
10363 $as_test_x conftest$ac_exeext
10365 gt_cv_func_dgettext_libc=yes
10367 $as_echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10370 gt_cv_func_dgettext_libc=no
10373 rm -rf conftest.dSYM
10374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10375 conftest$ac_exeext conftest.$ac_ext
10378 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
10379 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
10382 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10384 for ac_func in bind_textdomain_codeset
10386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10387 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10388 $as_echo_n "checking for $ac_func... " >&6; }
10389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10390 $as_echo_n "(cached) " >&6
10392 cat >conftest.$ac_ext <<_ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10400 #define $ac_func innocuous_$ac_func
10402 /* System header to define __stub macros and hopefully few prototypes,
10403 which can conflict with char $ac_func (); below.
10404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10405 <limits.h> exists even on freestanding compilers. */
10408 # include <limits.h>
10410 # include <assert.h>
10415 /* Override any GCC internal prototype to avoid an error.
10416 Use char because int might match the return type of a GCC
10417 builtin and then its argument prototype would still apply. */
10422 /* The GNU C library defines this for functions which it implements
10423 to always fail with ENOSYS. Some functions are actually named
10424 something starting with __ and the normal name is an alias. */
10425 #if defined __stub_$ac_func || defined __stub___$ac_func
10432 return $ac_func ();
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (ac_try="$ac_link"
10439 case "(($ac_try" in
10440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10444 $as_echo "$ac_try_echo") >&5
10445 (eval "$ac_link") 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
10449 cat conftest.err >&5
10450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && {
10452 test -z "$ac_c_werror_flag" ||
10453 test ! -s conftest.err
10454 } && test -s conftest$ac_exeext && {
10455 test "$cross_compiling" = yes ||
10456 $as_test_x conftest$ac_exeext
10458 eval "$as_ac_var=yes"
10460 $as_echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10463 eval "$as_ac_var=no"
10466 rm -rf conftest.dSYM
10467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10468 conftest$ac_exeext conftest.$ac_ext
10470 ac_res=`eval 'as_val=${'$as_ac_var'}
10471 $as_echo "$as_val"'`
10472 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10473 $as_echo "$ac_res" >&6; }
10474 if test `eval 'as_val=${'$as_ac_var'}
10475 $as_echo "$as_val"'` = yes; then
10476 cat >>confdefs.h <<_ACEOF
10477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10486 # If we don't have everything we want, check in libintl
10488 if test "$gt_cv_func_dgettext_libc" != "yes" \
10489 || test "$gt_cv_func_ngettext_libc" != "yes" \
10490 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
10492 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
10493 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
10494 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
10495 $as_echo_n "(cached) " >&6
10497 ac_check_lib_save_LIBS=$LIBS
10498 LIBS="-lintl $LIBS"
10499 cat >conftest.$ac_ext <<_ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10506 /* Override any GCC internal prototype to avoid an error.
10507 Use char because int might match the return type of a GCC
10508 builtin and then its argument prototype would still apply. */
10512 char bindtextdomain ();
10516 return bindtextdomain ();
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10528 $as_echo "$ac_try_echo") >&5
10529 (eval "$ac_link") 2>conftest.er1
10531 grep -v '^ *+' conftest.er1 >conftest.err
10533 cat conftest.err >&5
10534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest$ac_exeext && {
10539 test "$cross_compiling" = yes ||
10540 $as_test_x conftest$ac_exeext
10542 ac_cv_lib_intl_bindtextdomain=yes
10544 $as_echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_cv_lib_intl_bindtextdomain=no
10550 rm -rf conftest.dSYM
10551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10552 conftest$ac_exeext conftest.$ac_ext
10553 LIBS=$ac_check_lib_save_LIBS
10555 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
10556 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
10557 if test $ac_cv_lib_intl_bindtextdomain = yes; then
10558 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10559 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10560 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10561 $as_echo_n "(cached) " >&6
10563 ac_check_lib_save_LIBS=$LIBS
10564 LIBS="-lintl $LIBS"
10565 cat >conftest.$ac_ext <<_ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10572 /* Override any GCC internal prototype to avoid an error.
10573 Use char because int might match the return type of a GCC
10574 builtin and then its argument prototype would still apply. */
10582 return ngettext ();
10587 rm -f conftest.$ac_objext conftest$ac_exeext
10588 if { (ac_try="$ac_link"
10589 case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10594 $as_echo "$ac_try_echo") >&5
10595 (eval "$ac_link") 2>conftest.er1
10597 grep -v '^ *+' conftest.er1 >conftest.err
10599 cat conftest.err >&5
10600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && {
10602 test -z "$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 } && test -s conftest$ac_exeext && {
10605 test "$cross_compiling" = yes ||
10606 $as_test_x conftest$ac_exeext
10608 ac_cv_lib_intl_ngettext=yes
10610 $as_echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10613 ac_cv_lib_intl_ngettext=no
10616 rm -rf conftest.dSYM
10617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10618 conftest$ac_exeext conftest.$ac_ext
10619 LIBS=$ac_check_lib_save_LIBS
10621 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10622 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10623 if test $ac_cv_lib_intl_ngettext = yes; then
10624 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
10625 $as_echo_n "checking for dgettext in -lintl... " >&6; }
10626 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
10627 $as_echo_n "(cached) " >&6
10629 ac_check_lib_save_LIBS=$LIBS
10630 LIBS="-lintl $LIBS"
10631 cat >conftest.$ac_ext <<_ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h. */
10638 /* Override any GCC internal prototype to avoid an error.
10639 Use char because int might match the return type of a GCC
10640 builtin and then its argument prototype would still apply. */
10648 return dgettext ();
10653 rm -f conftest.$ac_objext conftest$ac_exeext
10654 if { (ac_try="$ac_link"
10655 case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10660 $as_echo "$ac_try_echo") >&5
10661 (eval "$ac_link") 2>conftest.er1
10663 grep -v '^ *+' conftest.er1 >conftest.err
10665 cat conftest.err >&5
10666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } && {
10668 test -z "$ac_c_werror_flag" ||
10669 test ! -s conftest.err
10670 } && test -s conftest$ac_exeext && {
10671 test "$cross_compiling" = yes ||
10672 $as_test_x conftest$ac_exeext
10674 ac_cv_lib_intl_dgettext=yes
10676 $as_echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 ac_cv_lib_intl_dgettext=no
10682 rm -rf conftest.dSYM
10683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10684 conftest$ac_exeext conftest.$ac_ext
10685 LIBS=$ac_check_lib_save_LIBS
10687 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
10688 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
10689 if test $ac_cv_lib_intl_dgettext = yes; then
10690 gt_cv_func_dgettext_libintl=yes
10698 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
10699 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
10700 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
10701 { $as_echo "$as_me:$LINENO: result: " >&5
10703 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10704 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10705 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10706 $as_echo_n "(cached) " >&6
10708 ac_check_lib_save_LIBS=$LIBS
10709 LIBS="-lintl -liconv $LIBS"
10710 cat >conftest.$ac_ext <<_ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10717 /* Override any GCC internal prototype to avoid an error.
10718 Use char because int might match the return type of a GCC
10719 builtin and then its argument prototype would still apply. */
10727 return ngettext ();
10732 rm -f conftest.$ac_objext conftest$ac_exeext
10733 if { (ac_try="$ac_link"
10734 case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10739 $as_echo "$ac_try_echo") >&5
10740 (eval "$ac_link") 2>conftest.er1
10742 grep -v '^ *+' conftest.er1 >conftest.err
10744 cat conftest.err >&5
10745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } && {
10747 test -z "$ac_c_werror_flag" ||
10748 test ! -s conftest.err
10749 } && test -s conftest$ac_exeext && {
10750 test "$cross_compiling" = yes ||
10751 $as_test_x conftest$ac_exeext
10753 ac_cv_lib_intl_ngettext=yes
10755 $as_echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10758 ac_cv_lib_intl_ngettext=no
10761 rm -rf conftest.dSYM
10762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10763 conftest$ac_exeext conftest.$ac_ext
10764 LIBS=$ac_check_lib_save_LIBS
10766 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10767 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10768 if test $ac_cv_lib_intl_ngettext = yes; then
10769 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
10770 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
10771 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
10772 $as_echo_n "(cached) " >&6
10774 ac_check_lib_save_LIBS=$LIBS
10775 LIBS="-lintl -liconv $LIBS"
10776 cat >conftest.$ac_ext <<_ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10783 /* Override any GCC internal prototype to avoid an error.
10784 Use char because int might match the return type of a GCC
10785 builtin and then its argument prototype would still apply. */
10793 return dcgettext ();
10798 rm -f conftest.$ac_objext conftest$ac_exeext
10799 if { (ac_try="$ac_link"
10800 case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10805 $as_echo "$ac_try_echo") >&5
10806 (eval "$ac_link") 2>conftest.er1
10808 grep -v '^ *+' conftest.er1 >conftest.err
10810 cat conftest.err >&5
10811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } && {
10813 test -z "$ac_c_werror_flag" ||
10814 test ! -s conftest.err
10815 } && test -s conftest$ac_exeext && {
10816 test "$cross_compiling" = yes ||
10817 $as_test_x conftest$ac_exeext
10819 ac_cv_lib_intl_dcgettext=yes
10821 $as_echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10824 ac_cv_lib_intl_dcgettext=no
10827 rm -rf conftest.dSYM
10828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10829 conftest$ac_exeext conftest.$ac_ext
10830 LIBS=$ac_check_lib_save_LIBS
10832 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
10833 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
10834 if test $ac_cv_lib_intl_dcgettext = yes; then
10835 gt_cv_func_dgettext_libintl=yes
10836 libintl_extra_libs=-liconv
10848 # If we found libintl, then check in it for bind_textdomain_codeset();
10849 # we'll prefer libc if neither have bind_textdomain_codeset(),
10850 # and both have dgettext and ngettext
10852 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
10853 glib_save_LIBS="$LIBS"
10854 LIBS="$LIBS -lintl $libintl_extra_libs"
10855 unset ac_cv_func_bind_textdomain_codeset
10857 for ac_func in bind_textdomain_codeset
10859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10860 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10861 $as_echo_n "checking for $ac_func... " >&6; }
10862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10863 $as_echo_n "(cached) " >&6
10865 cat >conftest.$ac_ext <<_ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10873 #define $ac_func innocuous_$ac_func
10875 /* System header to define __stub macros and hopefully few prototypes,
10876 which can conflict with char $ac_func (); below.
10877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10878 <limits.h> exists even on freestanding compilers. */
10881 # include <limits.h>
10883 # include <assert.h>
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10895 /* The GNU C library defines this for functions which it implements
10896 to always fail with ENOSYS. Some functions are actually named
10897 something starting with __ and the normal name is an alias. */
10898 #if defined __stub_$ac_func || defined __stub___$ac_func
10905 return $ac_func ();
10910 rm -f conftest.$ac_objext conftest$ac_exeext
10911 if { (ac_try="$ac_link"
10912 case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10917 $as_echo "$ac_try_echo") >&5
10918 (eval "$ac_link") 2>conftest.er1
10920 grep -v '^ *+' conftest.er1 >conftest.err
10922 cat conftest.err >&5
10923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest$ac_exeext && {
10928 test "$cross_compiling" = yes ||
10929 $as_test_x conftest$ac_exeext
10931 eval "$as_ac_var=yes"
10933 $as_echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.$ac_ext >&5
10936 eval "$as_ac_var=no"
10939 rm -rf conftest.dSYM
10940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10941 conftest$ac_exeext conftest.$ac_ext
10943 ac_res=`eval 'as_val=${'$as_ac_var'}
10944 $as_echo "$as_val"'`
10945 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10946 $as_echo "$ac_res" >&6; }
10947 if test `eval 'as_val=${'$as_ac_var'}
10948 $as_echo "$as_val"'` = yes; then
10949 cat >>confdefs.h <<_ACEOF
10950 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10956 LIBS="$glib_save_LIBS"
10958 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
10959 gt_cv_func_dgettext_libc=no
10961 if test "$gt_cv_func_dgettext_libc" = "yes" \
10962 && test "$gt_cv_func_ngettext_libc" = "yes"; then
10963 gt_cv_func_dgettext_libintl=no
10969 if test "$gt_cv_func_dgettext_libc" = "yes" \
10970 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10971 gt_cv_have_gettext=yes
10974 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10975 INTLLIBS="-lintl $libintl_extra_libs"
10978 if test "$gt_cv_have_gettext" = "yes"; then
10980 cat >>confdefs.h <<\_ACEOF
10981 #define HAVE_GETTEXT 1
10984 # Extract the first word of "msgfmt", so it can be a program name with args.
10985 set dummy msgfmt; ac_word=$2
10986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10987 $as_echo_n "checking for $ac_word... " >&6; }
10988 if test "${ac_cv_path_MSGFMT+set}" = set; then
10989 $as_echo_n "(cached) " >&6
10993 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10997 for ac_dir in $PATH; do
10998 test -z "$ac_dir" && ac_dir=.
10999 if test -f $ac_dir/$ac_word; then
11000 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
11001 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11007 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
11011 MSGFMT="$ac_cv_path_MSGFMT"
11012 if test "$MSGFMT" != "no"; then
11013 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
11014 $as_echo "$MSGFMT" >&6; }
11016 { $as_echo "$as_me:$LINENO: result: no" >&5
11017 $as_echo "no" >&6; }
11019 if test "$MSGFMT" != "no"; then
11020 glib_save_LIBS="$LIBS"
11021 LIBS="$LIBS $INTLLIBS"
11023 for ac_func in dcgettext
11025 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11026 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11027 $as_echo_n "checking for $ac_func... " >&6; }
11028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11029 $as_echo_n "(cached) " >&6
11031 cat >conftest.$ac_ext <<_ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11039 #define $ac_func innocuous_$ac_func
11041 /* System header to define __stub macros and hopefully few prototypes,
11042 which can conflict with char $ac_func (); below.
11043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11044 <limits.h> exists even on freestanding compilers. */
11047 # include <limits.h>
11049 # include <assert.h>
11054 /* Override any GCC internal prototype to avoid an error.
11055 Use char because int might match the return type of a GCC
11056 builtin and then its argument prototype would still apply. */
11061 /* The GNU C library defines this for functions which it implements
11062 to always fail with ENOSYS. Some functions are actually named
11063 something starting with __ and the normal name is an alias. */
11064 #if defined __stub_$ac_func || defined __stub___$ac_func
11071 return $ac_func ();
11076 rm -f conftest.$ac_objext conftest$ac_exeext
11077 if { (ac_try="$ac_link"
11078 case "(($ac_try" in
11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11083 $as_echo "$ac_try_echo") >&5
11084 (eval "$ac_link") 2>conftest.er1
11086 grep -v '^ *+' conftest.er1 >conftest.err
11088 cat conftest.err >&5
11089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } && {
11091 test -z "$ac_c_werror_flag" ||
11092 test ! -s conftest.err
11093 } && test -s conftest$ac_exeext && {
11094 test "$cross_compiling" = yes ||
11095 $as_test_x conftest$ac_exeext
11097 eval "$as_ac_var=yes"
11099 $as_echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 eval "$as_ac_var=no"
11105 rm -rf conftest.dSYM
11106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11107 conftest$ac_exeext conftest.$ac_ext
11109 ac_res=`eval 'as_val=${'$as_ac_var'}
11110 $as_echo "$as_val"'`
11111 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11112 $as_echo "$ac_res" >&6; }
11113 if test `eval 'as_val=${'$as_ac_var'}
11114 $as_echo "$as_val"'` = yes; then
11115 cat >>confdefs.h <<_ACEOF
11116 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11123 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
11124 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
11125 cat >conftest.foo <<_ACEOF
11129 "Content-Type: text/plain; charset=UTF-8\n"
11130 "Project-Id-Version: test 1.0\n"
11131 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
11132 "Last-Translator: test <foo@bar.xx>\n"
11133 "Language-Team: C <LL@li.org>\n"
11134 "MIME-Version: 1.0\n"
11135 "Content-Transfer-Encoding: 8bit\n"
11138 if { ($as_echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
11139 (msgfmt -c -o /dev/null conftest.foo) 2>&5
11141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; then
11143 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
11144 $as_echo "yes" >&6; }
11145 else { $as_echo "$as_me:$LINENO: result: no" >&5
11146 $as_echo "no" >&6; }
11147 echo "$as_me: failed input was:" >&5
11148 sed 's/^/| /' conftest.foo >&5
11151 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11152 set dummy gmsgfmt; ac_word=$2
11153 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11156 $as_echo_n "(cached) " >&6
11160 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11178 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11182 GMSGFMT=$ac_cv_path_GMSGFMT
11183 if test -n "$GMSGFMT"; then
11184 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11185 $as_echo "$GMSGFMT" >&6; }
11187 { $as_echo "$as_me:$LINENO: result: no" >&5
11188 $as_echo "no" >&6; }
11192 # Extract the first word of "xgettext", so it can be a program name with args.
11193 set dummy xgettext; ac_word=$2
11194 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11197 $as_echo_n "(cached) " >&6
11199 case "$XGETTEXT" in
11201 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11205 for ac_dir in $PATH; do
11206 test -z "$ac_dir" && ac_dir=.
11207 if test -f $ac_dir/$ac_word; then
11208 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
11209 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11215 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11219 XGETTEXT="$ac_cv_path_XGETTEXT"
11220 if test "$XGETTEXT" != ":"; then
11221 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11222 $as_echo "$XGETTEXT" >&6; }
11224 { $as_echo "$as_me:$LINENO: result: no" >&5
11225 $as_echo "no" >&6; }
11228 cat >conftest.$ac_ext <<_ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11238 extern int _nl_msg_cat_cntr;
11239 return _nl_msg_cat_cntr
11244 rm -f conftest.$ac_objext conftest$ac_exeext
11245 if { (ac_try="$ac_link"
11246 case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11251 $as_echo "$ac_try_echo") >&5
11252 (eval "$ac_link") 2>conftest.er1
11254 grep -v '^ *+' conftest.er1 >conftest.err
11256 cat conftest.err >&5
11257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } && {
11259 test -z "$ac_c_werror_flag" ||
11260 test ! -s conftest.err
11261 } && test -s conftest$ac_exeext && {
11262 test "$cross_compiling" = yes ||
11263 $as_test_x conftest$ac_exeext
11268 $as_echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11273 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
11274 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
11275 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
11276 $as_echo_n "(cached) " >&6
11278 cat >conftest.$ac_ext <<_ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
11285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11286 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
11288 /* System header to define __stub macros and hopefully few prototypes,
11289 which can conflict with char bind_textdomain_codeset (); below.
11290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11291 <limits.h> exists even on freestanding compilers. */
11294 # include <limits.h>
11296 # include <assert.h>
11299 #undef bind_textdomain_codeset
11301 /* Override any GCC internal prototype to avoid an error.
11302 Use char because int might match the return type of a GCC
11303 builtin and then its argument prototype would still apply. */
11307 char bind_textdomain_codeset ();
11308 /* The GNU C library defines this for functions which it implements
11309 to always fail with ENOSYS. Some functions are actually named
11310 something starting with __ and the normal name is an alias. */
11311 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
11318 return bind_textdomain_codeset ();
11323 rm -f conftest.$ac_objext conftest$ac_exeext
11324 if { (ac_try="$ac_link"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11330 $as_echo "$ac_try_echo") >&5
11331 (eval "$ac_link") 2>conftest.er1
11333 grep -v '^ *+' conftest.er1 >conftest.err
11335 cat conftest.err >&5
11336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } && {
11338 test -z "$ac_c_werror_flag" ||
11339 test ! -s conftest.err
11340 } && test -s conftest$ac_exeext && {
11341 test "$cross_compiling" = yes ||
11342 $as_test_x conftest$ac_exeext
11344 ac_cv_func_bind_textdomain_codeset=yes
11346 $as_echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11349 ac_cv_func_bind_textdomain_codeset=no
11352 rm -rf conftest.dSYM
11353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11354 conftest$ac_exeext conftest.$ac_ext
11356 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
11357 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
11358 if test $ac_cv_func_bind_textdomain_codeset = yes; then
11374 rm -rf conftest.dSYM
11375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11376 conftest$ac_exeext conftest.$ac_ext
11377 LIBS="$glib_save_LIBS"
11380 gt_cv_have_gettext=no
11388 if test "$gt_cv_have_gettext" = "yes" ; then
11390 cat >>confdefs.h <<\_ACEOF
11391 #define ENABLE_NLS 1
11396 if test "$XGETTEXT" != ":"; then
11397 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
11400 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11401 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11406 # We need to process the po/ directory.
11409 ac_config_commands="$ac_config_commands default-1"
11412 for lang in $ALL_LINGUAS; do
11413 GMOFILES="$GMOFILES $lang.gmo"
11414 POFILES="$POFILES $lang.po"
11429 if test "$gt_cv_have_gettext" = "yes"; then
11430 if test "x$ALL_LINGUAS" = "x"; then
11433 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11434 $as_echo_n "checking for catalogs to be installed... " >&6; }
11436 for presentlang in $ALL_LINGUAS; do
11438 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
11439 desiredlanguages="$LINGUAS"
11441 desiredlanguages="$ALL_LINGUAS"
11443 for desiredlang in $desiredlanguages; do
11444 # Use the presentlang catalog if desiredlang is
11445 # a. equal to presentlang, or
11446 # b. a variant of presentlang (because in this case,
11447 # presentlang can be used as a fallback for messages
11448 # which are not translated in the desiredlang catalog).
11449 case "$desiredlang" in
11450 "$presentlang"*) useit=yes;;
11453 if test $useit = yes; then
11454 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
11457 LINGUAS=$NEW_LINGUAS
11458 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
11459 $as_echo "$LINGUAS" >&6; }
11462 if test -n "$LINGUAS"; then
11463 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
11468 if test -n "$ac_aux_dir"; then
11469 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11471 if test -z "$MKINSTALLDIRS"; then
11472 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11476 test -d po || mkdir po
11477 if test "x$srcdir" != "x."; then
11478 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
11479 posrcprefix="$srcdir/"
11481 posrcprefix="../$srcdir/"
11487 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
11488 < $srcdir/po/POTFILES.in > po/POTFILES
11491 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
11493 cat >confcache <<\_ACEOF
11494 # This file is a shell script that caches the results of configure
11495 # tests run on this system so they can be shared between configure
11496 # scripts and configure runs, see configure's option --config-cache.
11497 # It is not useful on other systems. If it contains results you don't
11498 # want to keep, you may remove or edit it.
11500 # config.status only pays attention to the cache file if you give it
11501 # the --recheck option to rerun configure.
11503 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11504 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11505 # following values.
11509 # The following way of writing the cache mishandles newlines in values,
11510 # but we know of no workaround that is simple, portable, and efficient.
11511 # So, we kill variables containing newlines.
11512 # Ultrix sh set writes to stderr and can't be redirected directly,
11513 # and sets the high bit in the cache file unless we assign to the vars.
11515 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11516 eval ac_val=\$$ac_var
11520 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11521 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11524 _ | IFS | as_nl) ;; #(
11525 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11526 *) $as_unset $ac_var ;;
11532 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11533 *${as_nl}ac_space=\ *)
11534 # `set' does not quote correctly, so add quotes (double-quote
11535 # substitution turns \\\\ into \\, and sed turns \\ into \).
11538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11541 # `set' quotes correctly as required by POSIX, so do not add quotes.
11542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11551 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11553 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11555 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11556 if test -w "$cache_file"; then
11557 test "x$cache_file" != "x/dev/null" &&
11558 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11559 $as_echo "$as_me: updating cache $cache_file" >&6;}
11560 cat confcache >$cache_file
11562 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11563 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11568 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11569 # Let make expand exec_prefix.
11570 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11572 DEFS=-DHAVE_CONFIG_H
11576 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11577 # 1. Remove the extension, and $U if already installed.
11578 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11579 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11580 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11581 # will be set to the directory where LIBOBJS objects are built.
11582 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11583 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11585 LIBOBJS=$ac_libobjs
11587 LTLIBOBJS=$ac_ltlibobjs
11590 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11591 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11592 Usually this means the macro was only invoked conditionally." >&5
11593 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11594 Usually this means the macro was only invoked conditionally." >&2;}
11595 { (exit 1); exit 1; }; }
11597 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11598 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11599 Usually this means the macro was only invoked conditionally." >&5
11600 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11601 Usually this means the macro was only invoked conditionally." >&2;}
11602 { (exit 1); exit 1; }; }
11604 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11605 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11606 Usually this means the macro was only invoked conditionally." >&5
11607 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11608 Usually this means the macro was only invoked conditionally." >&2;}
11609 { (exit 1); exit 1; }; }
11611 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11612 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11613 Usually this means the macro was only invoked conditionally." >&5
11614 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11615 Usually this means the macro was only invoked conditionally." >&2;}
11616 { (exit 1); exit 1; }; }
11618 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11619 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11620 Usually this means the macro was only invoked conditionally." >&5
11621 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11622 Usually this means the macro was only invoked conditionally." >&2;}
11623 { (exit 1); exit 1; }; }
11625 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
11626 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
11627 Usually this means the macro was only invoked conditionally." >&5
11628 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
11629 Usually this means the macro was only invoked conditionally." >&2;}
11630 { (exit 1); exit 1; }; }
11632 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
11633 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
11634 Usually this means the macro was only invoked conditionally." >&5
11635 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
11636 Usually this means the macro was only invoked conditionally." >&2;}
11637 { (exit 1); exit 1; }; }
11639 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
11640 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
11641 Usually this means the macro was only invoked conditionally." >&5
11642 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
11643 Usually this means the macro was only invoked conditionally." >&2;}
11644 { (exit 1); exit 1; }; }
11646 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
11647 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
11648 Usually this means the macro was only invoked conditionally." >&5
11649 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
11650 Usually this means the macro was only invoked conditionally." >&2;}
11651 { (exit 1); exit 1; }; }
11653 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
11654 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
11655 Usually this means the macro was only invoked conditionally." >&5
11656 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
11657 Usually this means the macro was only invoked conditionally." >&2;}
11658 { (exit 1); exit 1; }; }
11660 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
11661 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
11662 Usually this means the macro was only invoked conditionally." >&5
11663 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
11664 Usually this means the macro was only invoked conditionally." >&2;}
11665 { (exit 1); exit 1; }; }
11667 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
11668 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
11669 Usually this means the macro was only invoked conditionally." >&5
11670 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
11671 Usually this means the macro was only invoked conditionally." >&2;}
11672 { (exit 1); exit 1; }; }
11674 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
11675 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
11676 Usually this means the macro was only invoked conditionally." >&5
11677 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
11678 Usually this means the macro was only invoked conditionally." >&2;}
11679 { (exit 1); exit 1; }; }
11681 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
11682 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
11683 Usually this means the macro was only invoked conditionally." >&5
11684 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
11685 Usually this means the macro was only invoked conditionally." >&2;}
11686 { (exit 1); exit 1; }; }
11688 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
11689 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
11690 Usually this means the macro was only invoked conditionally." >&5
11691 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
11692 Usually this means the macro was only invoked conditionally." >&2;}
11693 { (exit 1); exit 1; }; }
11695 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
11696 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
11697 Usually this means the macro was only invoked conditionally." >&5
11698 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
11699 Usually this means the macro was only invoked conditionally." >&2;}
11700 { (exit 1); exit 1; }; }
11702 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
11703 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
11704 Usually this means the macro was only invoked conditionally." >&5
11705 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
11706 Usually this means the macro was only invoked conditionally." >&2;}
11707 { (exit 1); exit 1; }; }
11709 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
11710 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
11711 Usually this means the macro was only invoked conditionally." >&5
11712 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
11713 Usually this means the macro was only invoked conditionally." >&2;}
11714 { (exit 1); exit 1; }; }
11716 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
11717 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
11718 Usually this means the macro was only invoked conditionally." >&5
11719 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
11720 Usually this means the macro was only invoked conditionally." >&2;}
11721 { (exit 1); exit 1; }; }
11723 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
11724 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
11725 Usually this means the macro was only invoked conditionally." >&5
11726 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
11727 Usually this means the macro was only invoked conditionally." >&2;}
11728 { (exit 1); exit 1; }; }
11730 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
11731 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
11732 Usually this means the macro was only invoked conditionally." >&5
11733 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
11734 Usually this means the macro was only invoked conditionally." >&2;}
11735 { (exit 1); exit 1; }; }
11738 : ${CONFIG_STATUS=./config.status}
11740 ac_clean_files_save=$ac_clean_files
11741 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11742 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11743 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11744 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11746 # Generated by $as_me.
11747 # Run this file to recreate the current configuration.
11748 # Compiler output produced by configure, useful for debugging
11749 # configure, is in config.log if it exists.
11752 ac_cs_recheck=false
11754 SHELL=\${CONFIG_SHELL-$SHELL}
11757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11758 ## --------------------- ##
11759 ## M4sh Initialization. ##
11760 ## --------------------- ##
11762 # Be more Bourne compatible
11763 DUALCASE=1; export DUALCASE # for MKS sh
11764 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11767 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11768 # is contrary to our usage. Disable this feature.
11769 alias -g '${1+"$@"}'='"$@"'
11770 setopt NO_GLOB_SUBST
11772 case `(set -o) 2>/dev/null` in
11773 *posix*) set -o posix ;;
11782 # Avoid depending upon Character Ranges.
11783 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11784 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11785 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11786 as_cr_digits='0123456789'
11787 as_cr_alnum=$as_cr_Letters$as_cr_digits
11792 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11793 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11794 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11795 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11796 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11797 as_echo='printf %s\n'
11798 as_echo_n='printf %s'
11800 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11801 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11802 as_echo_n='/usr/ucb/echo -n'
11804 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11805 as_echo_n_body='eval
11809 expr "X$arg" : "X\\(.*\\)$as_nl";
11810 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11812 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11814 export as_echo_n_body
11815 as_echo_n='sh -c $as_echo_n_body as_echo'
11817 export as_echo_body
11818 as_echo='sh -c $as_echo_body as_echo'
11821 # The user is always right.
11822 if test "${PATH_SEPARATOR+set}" != set; then
11824 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11825 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11830 # Support unset when possible.
11831 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11839 # We need space, tab and new line, in precisely that order. Quoting is
11840 # there to prevent editors from complaining about space-tab.
11841 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11842 # splitting by setting IFS to empty value.)
11845 # Find who we are. Look in the path if we contain no directory separator.
11847 *[\\/]* ) as_myself=$0 ;;
11848 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849 for as_dir in $PATH
11852 test -z "$as_dir" && as_dir=.
11853 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11859 # We did not find ourselves, most probably we were run as `sh COMMAND'
11860 # in which case we are not to be found in the path.
11861 if test "x$as_myself" = x; then
11864 if test ! -f "$as_myself"; then
11865 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11866 { (exit 1); exit 1; }
11869 # Work around bugs in pre-3.0 UWIN ksh.
11870 for as_var in ENV MAIL MAILPATH
11871 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11883 # Required to use basename.
11884 if expr a : '\(a\)' >/dev/null 2>&1 &&
11885 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11891 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11892 as_basename=basename
11898 # Name of the executable.
11899 as_me=`$as_basename -- "$0" ||
11900 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11901 X"$0" : 'X\(//\)$' \| \
11902 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11904 sed '/^.*\/\([^/][^/]*\)\/*$/{
11923 as_lineno_1=$LINENO
11924 as_lineno_2=$LINENO
11925 test "x$as_lineno_1" != "x$as_lineno_2" &&
11926 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11928 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11929 # uniformly replaced by the line number. The first 'sed' inserts a
11930 # line-number line after each line using $LINENO; the second 'sed'
11931 # does the real work. The second script uses 'N' to pair each
11932 # line-number line with the line containing $LINENO, and appends
11933 # trailing '-' during substitution so that $LINENO is not a special
11934 # case at line end.
11935 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11936 # scripts with optimization help from Paolo Bonzini. Blame Lee
11937 # E. McMahon (1931-1989) for sed's syntax. :-)
11949 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11952 ' >$as_me.lineno &&
11953 chmod +x "$as_me.lineno" ||
11954 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11955 { (exit 1); exit 1; }; }
11957 # Don't try to exec as it changes $[0], causing all sort of problems
11958 # (the dirname of $[0] is not the place where we might find the
11959 # original and so on. Autoconf is especially sensitive to this).
11960 . "./$as_me.lineno"
11961 # Exit status is that of the last command.
11966 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11972 ECHO_C= ECHO_N= ECHO_T=
11973 case `echo -n x` in
11975 case `echo 'x\c'` in
11976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11982 if expr a : '\(a\)' >/dev/null 2>&1 &&
11983 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11989 rm -f conf$$ conf$$.exe conf$$.file
11990 if test -d conf$$.dir; then
11991 rm -f conf$$.dir/conf$$.file
11994 mkdir conf$$.dir 2>/dev/null
11996 if (echo >conf$$.file) 2>/dev/null; then
11997 if ln -s conf$$.file conf$$ 2>/dev/null; then
11999 # ... but there are two gotchas:
12000 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12001 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12002 # In both cases, we have to default to `cp -p'.
12003 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12005 elif ln conf$$.file conf$$ 2>/dev/null; then
12013 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12014 rmdir conf$$.dir 2>/dev/null
12016 if mkdir -p . 2>/dev/null; then
12019 test -d ./-p && rmdir ./-p
12023 if test -x / >/dev/null 2>&1; then
12024 as_test_x='test -x'
12026 if ls -dL / >/dev/null 2>&1; then
12033 if test -d "$1"; then
12039 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12040 ???[sx]*):;;*)false;;esac;fi
12044 as_executable_p=$as_test_x
12046 # Sed expression to map a string onto a valid CPP name.
12047 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12049 # Sed expression to map a string onto a valid variable name.
12050 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12055 # Save the log message, to keep $[0] and so on meaningful, and to
12056 # report actual input values of CONFIG_FILES etc. instead of their
12057 # values after options handling.
12059 This file was extended by $as_me, which was
12060 generated by GNU Autoconf 2.62. Invocation command line was
12062 CONFIG_FILES = $CONFIG_FILES
12063 CONFIG_HEADERS = $CONFIG_HEADERS
12064 CONFIG_LINKS = $CONFIG_LINKS
12065 CONFIG_COMMANDS = $CONFIG_COMMANDS
12068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12074 # Files that config.status was made for.
12075 config_files="$ac_config_files"
12076 config_headers="$ac_config_headers"
12077 config_commands="$ac_config_commands"
12081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12083 \`$as_me' instantiates files from templates according to the
12084 current configuration.
12086 Usage: $0 [OPTIONS] [FILE]...
12088 -h, --help print this help, then exit
12089 -V, --version print version number and configuration settings, then exit
12090 -q, --quiet do not print progress messages
12091 -d, --debug don't remove temporary files
12092 --recheck update $as_me by reconfiguring in the same conditions
12093 --file=FILE[:TEMPLATE]
12094 instantiate the configuration file FILE
12095 --header=FILE[:TEMPLATE]
12096 instantiate the configuration header FILE
12098 Configuration files:
12101 Configuration headers:
12104 Configuration commands:
12107 Report bugs to <bug-autoconf@gnu.org>."
12110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12113 configured by $0, generated by GNU Autoconf 2.62,
12114 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12116 Copyright (C) 2008 Free Software Foundation, Inc.
12117 This config.status script is free software; the Free Software Foundation
12118 gives unlimited permission to copy, distribute and modify it."
12124 test -n "\$AWK" || AWK=awk
12127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12128 # The default lists apply if the user does not specify any file.
12134 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12135 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12146 # Handling of the options.
12147 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12149 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12150 $as_echo "$ac_cs_version"; exit ;;
12151 --debug | --debu | --deb | --de | --d | -d )
12153 --file | --fil | --fi | --f )
12156 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12158 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12159 ac_need_defaults=false;;
12160 --header | --heade | --head | --hea )
12163 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12165 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12166 ac_need_defaults=false;;
12168 # Conflict between --help and --header
12169 { $as_echo "$as_me: error: ambiguous option: $1
12170 Try \`$0 --help' for more information." >&2
12171 { (exit 1); exit 1; }; };;
12172 --help | --hel | -h )
12173 $as_echo "$ac_cs_usage"; exit ;;
12174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12175 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12178 # This is an error.
12179 -*) { $as_echo "$as_me: error: unrecognized option: $1
12180 Try \`$0 --help' for more information." >&2
12181 { (exit 1); exit 1; }; } ;;
12183 *) ac_config_targets="$ac_config_targets $1"
12184 ac_need_defaults=false ;;
12190 ac_configure_extra_args=
12192 if $ac_cs_silent; then
12194 ac_configure_extra_args="$ac_configure_extra_args --silent"
12198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12199 if \$ac_cs_recheck; then
12200 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12202 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12203 CONFIG_SHELL='$SHELL'
12204 export CONFIG_SHELL
12209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12213 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12214 ## Running $as_me. ##
12220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12224 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12231 # Handling of arguments.
12232 for ac_config_target in $ac_config_targets
12234 case $ac_config_target in
12235 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12236 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12237 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12238 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12239 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12240 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12241 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12242 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
12244 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12245 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12246 { (exit 1); exit 1; }; };;
12251 # If the user did not use the arguments to specify the items to instantiate,
12252 # then the envvar interface is used. Set only those that are not.
12253 # We use the long form for the default assignment because of an extremely
12254 # bizarre bug on SunOS 4.1.3.
12255 if $ac_need_defaults; then
12256 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12257 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12258 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12261 # Have a temporary directory for convenience. Make it in the build tree
12262 # simply because there is no reason against having it here, and in addition,
12263 # creating and moving files from /tmp can sometimes cause problems.
12264 # Hook for its removal unless debugging.
12265 # Note that there is a small window in which the directory will not be cleaned:
12266 # after its creation but before its name has been assigned to `$tmp'.
12270 trap 'exit_status=$?
12271 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12273 trap '{ (exit 1); exit 1; }' 1 2 13 15
12275 # Create a (secure) tmp directory for tmp files.
12278 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12279 test -n "$tmp" && test -d "$tmp"
12282 tmp=./conf$$-$RANDOM
12283 (umask 077 && mkdir "$tmp")
12286 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12287 { (exit 1); exit 1; }
12290 # Set up the scripts for CONFIG_FILES section.
12291 # No need to generate them if there are no CONFIG_FILES.
12292 # This happens for instance with `./config.status config.h'.
12293 if test -n "$CONFIG_FILES"; then
12298 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12299 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12302 ac_cs_awk_cr=$ac_cr
12305 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12310 echo "cat >conf$$subs.awk <<_ACEOF" &&
12311 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12313 } >conf$$subs.sh ||
12314 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12315 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12316 { (exit 1); exit 1; }; }
12317 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12319 for ac_last_try in false false false false false :; do
12320 . ./conf$$subs.sh ||
12321 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12322 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12323 { (exit 1); exit 1; }; }
12325 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
12327 elif $ac_last_try; then
12328 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12329 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12330 { (exit 1); exit 1; }; }
12332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12335 rm -f conf$$subs.sh
12337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12338 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12342 s/^/S["/; s/!.*/"]=/
12352 s/\(.\{148\}\).*/\1/
12354 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12359 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12366 s/\(.\{148\}\).*/\1/
12368 s/["\\]/\\&/g; s/^/"/; s/$/"/
12372 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12377 ' <conf$$subs.awk | sed '
12382 ' >>$CONFIG_STATUS || ac_write_fail=1
12383 rm -f conf$$subs.awk
12384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12386 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12387 for (key in S) S_is_set[key] = 1
12393 nfields = split(line, field, "@")
12395 len = length(field[1])
12396 for (i = 2; i < nfields; i++) {
12398 keylen = length(key)
12399 if (S_is_set[key]) {
12401 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12402 len += length(value) + length(field[++i])
12413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12414 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12415 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12418 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12419 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12420 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
12421 { (exit 1); exit 1; }; }
12424 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12425 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12426 # trailing colons and then remove the whole line if VPATH becomes empty
12427 # (actually we leave an empty line to preserve line numbers).
12428 if test "x$srcdir" = x.; then
12429 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12430 s/:*\$(srcdir):*/:/
12431 s/:*\${srcdir}:*/:/
12433 s/^\([^=]*=[ ]*\):*/\1/
12439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12440 fi # test -n "$CONFIG_FILES"
12442 # Set up the scripts for CONFIG_HEADERS section.
12443 # No need to generate them if there are no CONFIG_HEADERS.
12444 # This happens for instance with `./config.status Makefile'.
12445 if test -n "$CONFIG_HEADERS"; then
12446 cat >"$tmp/defines.awk" <<\_ACAWK ||
12450 # Transform confdefs.h into an awk script `defines.awk', embedded as
12451 # here-document in config.status, that substitutes the proper values into
12452 # config.h.in to produce config.h.
12454 # Create a delimiter string that does not exist in confdefs.h, to ease
12455 # handling of long lines.
12457 for ac_last_try in false false :; do
12458 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12459 if test -z "$ac_t"; then
12461 elif $ac_last_try; then
12462 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12463 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12464 { (exit 1); exit 1; }; }
12466 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12470 # For the awk script, D is an array of macro values keyed by name,
12471 # likewise P contains macro parameters if any. Preserve backslash
12472 # newline sequences.
12474 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12476 s/.\{148\}/&'"$ac_delim"'/g
12479 s/^[ ]*#[ ]*define[ ][ ]*/ /
12486 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12488 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12493 D["\1"]=" \3\\\\\\n"\\/p
12495 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12500 s/.\{148\}/&'"$ac_delim"'/g
12505 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12508 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12510 ' <confdefs.h | sed '
12511 s/'"$ac_delim"'/"\\\
12512 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12515 for (key in D) D_is_set[key] = 1
12518 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12520 split(line, arg, " ")
12521 if (arg[1] == "#") {
12525 defundef = substr(arg[1], 2)
12528 split(mac1, mac2, "(") #)
12530 if (D_is_set[macro]) {
12531 # Preserve the white space surrounding the "#".
12532 prefix = substr(line, 1, index(line, defundef) - 1)
12533 print prefix "define", macro P[macro] D[macro]
12536 # Replace #undef with comments. This is necessary, for example,
12537 # in the case of _POSIX_SOURCE, which is predefined and required
12538 # on some systems where configure will not decide to define it.
12539 if (defundef == "undef") {
12540 print "/*", line, "*/"
12548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12549 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12550 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12551 { (exit 1); exit 1; }; }
12552 fi # test -n "$CONFIG_HEADERS"
12555 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12560 :[FHLC]) ac_mode=$ac_tag; continue;;
12562 case $ac_mode$ac_tag in
12564 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12565 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12566 { (exit 1); exit 1; }; };;
12567 :[FH]-) ac_tag=-:-;;
12568 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12585 -) ac_f="$tmp/stdin";;
12586 *) # Look for the file first in the build tree, then in the source tree
12587 # (if the path is not absolute). The absolute path cannot be DOS-style,
12588 # because $ac_f cannot contain `:'.
12592 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12594 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12595 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12596 { (exit 1); exit 1; }; };;
12598 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12599 ac_file_inputs="$ac_file_inputs '$ac_f'"
12602 # Let's still pretend it is `configure' which instantiates (i.e., don't
12603 # use $as_me), people would be surprised to read:
12604 # /* config.h. Generated by config.status. */
12605 configure_input='Generated from '`
12606 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12608 if test x"$ac_file" != x-; then
12609 configure_input="$ac_file. $configure_input"
12610 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12611 $as_echo "$as_me: creating $ac_file" >&6;}
12613 # Neutralize special characters interpreted by sed in replacement strings.
12614 case $configure_input in #(
12615 *\&* | *\|* | *\\* )
12616 ac_sed_conf_input=`$as_echo "$configure_input" |
12617 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12618 *) ac_sed_conf_input=$configure_input;;
12622 *:-:* | *:-) cat >"$tmp/stdin" \
12623 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12624 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12625 { (exit 1); exit 1; }; } ;;
12630 ac_dir=`$as_dirname -- "$ac_file" ||
12631 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12632 X"$ac_file" : 'X\(//\)[^/]' \| \
12633 X"$ac_file" : 'X\(//\)$' \| \
12634 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12635 $as_echo X"$ac_file" |
12636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12640 /^X\(\/\/\)[^/].*/{
12655 -*) as_dir=./$as_dir;;
12657 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12661 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12662 *) as_qdir=$as_dir;;
12664 as_dirs="'$as_qdir' $as_dirs"
12665 as_dir=`$as_dirname -- "$as_dir" ||
12666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12667 X"$as_dir" : 'X\(//\)[^/]' \| \
12668 X"$as_dir" : 'X\(//\)$' \| \
12669 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12670 $as_echo X"$as_dir" |
12671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12675 /^X\(\/\/\)[^/].*/{
12688 test -d "$as_dir" && break
12690 test -z "$as_dirs" || eval "mkdir $as_dirs"
12691 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12692 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12693 { (exit 1); exit 1; }; }; }
12697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12699 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12700 # A ".." for each directory in $ac_dir_suffix.
12701 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12702 case $ac_top_builddir_sub in
12703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12707 ac_abs_top_builddir=$ac_pwd
12708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12709 # for backward compatibility:
12710 ac_top_builddir=$ac_top_build_prefix
12713 .) # We are building in place.
12715 ac_top_srcdir=$ac_top_builddir_sub
12716 ac_abs_top_srcdir=$ac_pwd ;;
12717 [\\/]* | ?:[\\/]* ) # Absolute name.
12718 ac_srcdir=$srcdir$ac_dir_suffix;
12719 ac_top_srcdir=$srcdir
12720 ac_abs_top_srcdir=$srcdir ;;
12721 *) # Relative name.
12722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12723 ac_top_srcdir=$ac_top_build_prefix$srcdir
12724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12736 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12737 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12742 # If the template does not know about datarootdir, expand it.
12743 # FIXME: This hack should be removed a few years after 2.60.
12744 ac_datarootdir_hack=; ac_datarootdir_seen=
12757 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12758 *datarootdir*) ac_datarootdir_seen=yes;;
12759 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12760 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12761 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12764 ac_datarootdir_hack='
12765 s&@datadir@&$datadir&g
12766 s&@docdir@&$docdir&g
12767 s&@infodir@&$infodir&g
12768 s&@localedir@&$localedir&g
12769 s&@mandir@&$mandir&g
12770 s&\\\${datarootdir}&$datarootdir&g' ;;
12774 # Neutralize VPATH when `$srcdir' = `.'.
12775 # Shell code in configure.ac might set extrasub.
12776 # FIXME: do we really want to maintain this feature?
12777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12778 ac_sed_extra="$ac_vpsub
12781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12783 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12784 s|@configure_input@|$ac_sed_conf_input|;t t
12785 s&@top_builddir@&$ac_top_builddir_sub&;t t
12786 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12787 s&@srcdir@&$ac_srcdir&;t t
12788 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12789 s&@top_srcdir@&$ac_top_srcdir&;t t
12790 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12791 s&@builddir@&$ac_builddir&;t t
12792 s&@abs_builddir@&$ac_abs_builddir&;t t
12793 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12794 s&@INSTALL@&$ac_INSTALL&;t t
12795 $ac_datarootdir_hack
12797 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12798 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12799 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12800 { (exit 1); exit 1; }; }
12802 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12803 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12804 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12805 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12806 which seems to be undefined. Please make sure it is defined." >&5
12807 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12808 which seems to be undefined. Please make sure it is defined." >&2;}
12812 -) cat "$tmp/out" && rm -f "$tmp/out";;
12813 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12815 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12816 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12817 { (exit 1); exit 1; }; }
12823 if test x"$ac_file" != x-; then
12825 $as_echo "/* $configure_input */" \
12826 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12827 } >"$tmp/config.h" \
12828 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12829 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12830 { (exit 1); exit 1; }; }
12831 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12832 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12833 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12836 mv "$tmp/config.h" "$ac_file" \
12837 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12838 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12839 { (exit 1); exit 1; }; }
12842 $as_echo "/* $configure_input */" \
12843 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12844 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12845 $as_echo "$as_me: error: could not create -" >&2;}
12846 { (exit 1); exit 1; }; }
12848 # Compute "$ac_file"'s index in $config_headers.
12850 for _am_header in $config_headers :; do
12851 case $_am_header in
12852 "$ac_file" | "$ac_file":* )
12855 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12858 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
12859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12860 X"$ac_file" : 'X\(//\)[^/]' \| \
12861 X"$ac_file" : 'X\(//\)$' \| \
12862 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12863 $as_echo X"$ac_file" |
12864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12868 /^X\(\/\/\)[^/].*/{
12880 s/.*/./; q'`/stamp-h$_am_stamp_count
12883 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12884 $as_echo "$as_me: executing $ac_file commands" >&6;}
12889 case $ac_file$ac_mode in
12890 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12891 # Strip MF so we end up with the name of the file.
12892 mf=`echo "$mf" | sed -e 's/:.*$//'`
12893 # Check whether this is an Automake generated Makefile or not.
12894 # We used to match only the files named `Makefile.in', but
12895 # some people rename them; so instead we look at the file content.
12896 # Grep'ing the first line is not enough: some people post-process
12897 # each Makefile.in and add a new line on top of each file to say so.
12898 # So let's grep whole file.
12899 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12900 dirpart=`$as_dirname -- "$mf" ||
12901 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12902 X"$mf" : 'X\(//\)[^/]' \| \
12903 X"$mf" : 'X\(//\)$' \| \
12904 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12910 /^X\(\/\/\)[^/].*/{
12926 # Extract the definition of DEPDIR, am__include, and am__quote
12927 # from the Makefile without running `make'.
12928 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12929 test -z "$DEPDIR" && continue
12930 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12931 test -z "am__include" && continue
12932 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12933 # When using ansi2knr, U may be empty or an underscore; expand it
12934 U=`sed -n 's/^U = //p' < "$mf"`
12935 # Find all dependency output files, they are included files with
12936 # $(DEPDIR) in their names. We invoke sed twice because it is the
12937 # simplest approach to changing $(DEPDIR) to its actual value in the
12939 for file in `sed -n "
12940 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12941 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12942 # Make sure the directory exists.
12943 test -f "$dirpart/$file" && continue
12944 fdir=`$as_dirname -- "$file" ||
12945 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12946 X"$file" : 'X\(//\)[^/]' \| \
12947 X"$file" : 'X\(//\)$' \| \
12948 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12949 $as_echo X"$file" |
12950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12954 /^X\(\/\/\)[^/].*/{
12967 { as_dir=$dirpart/$fdir
12969 -*) as_dir=./$as_dir;;
12971 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12975 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12976 *) as_qdir=$as_dir;;
12978 as_dirs="'$as_qdir' $as_dirs"
12979 as_dir=`$as_dirname -- "$as_dir" ||
12980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12981 X"$as_dir" : 'X\(//\)[^/]' \| \
12982 X"$as_dir" : 'X\(//\)$' \| \
12983 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12984 $as_echo X"$as_dir" |
12985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12989 /^X\(\/\/\)[^/].*/{
13002 test -d "$as_dir" && break
13004 test -z "$as_dirs" || eval "mkdir $as_dirs"
13005 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13006 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13007 { (exit 1); exit 1; }; }; }
13008 # echo "creating $dirpart/$file"
13009 echo '# dummy' > "$dirpart/$file"
13013 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
13014 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
13021 { (exit 0); exit 0; }
13023 chmod +x $CONFIG_STATUS
13024 ac_clean_files=$ac_clean_files_save
13026 test $ac_write_fail = 0 ||
13027 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13028 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13029 { (exit 1); exit 1; }; }
13032 # configure is writing to config.log, and then calls config.status.
13033 # config.status does its own redirection, appending to config.log.
13034 # Unfortunately, on DOS this fails, as config.log is still kept open
13035 # by configure, so config.status won't be able to write to it; its
13036 # output is simply discarded. So we exec the FD to /dev/null,
13037 # effectively closing config.log, so it can be properly (re)opened and
13038 # appended to by config.status. When coming back to configure, we
13039 # need to make the FD available again.
13040 if test "$no_create" != yes; then
13042 ac_config_status_args=
13043 test "$silent" = yes &&
13044 ac_config_status_args="$ac_config_status_args --quiet"
13046 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13048 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13049 # would make configure fail if this is the last instruction.
13050 $ac_cs_success || { (exit 1); exit 1; }
13052 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13053 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
13054 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
13059 -*) as_dir=./$as_dir;;
13061 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13065 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13066 *) as_qdir=$as_dir;;
13068 as_dirs="'$as_qdir' $as_dirs"
13069 as_dir=`$as_dirname -- "$as_dir" ||
13070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13071 X"$as_dir" : 'X\(//\)[^/]' \| \
13072 X"$as_dir" : 'X\(//\)$' \| \
13073 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13074 $as_echo X"$as_dir" |
13075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13079 /^X\(\/\/\)[^/].*/{
13092 test -d "$as_dir" && break
13094 test -z "$as_dirs" || eval "mkdir $as_dirs"
13095 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13096 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13097 { (exit 1); exit 1; }; }; }
13101 echo "Configuration complete"
13104 if test "x$HAVE_GTK" = x; then
13105 if test "x$HAVE_COCOA" = x; then
13106 echo " User interface: none"
13108 echo " User interface: Cocoa"
13111 echo " User interface: GTK"
13114 if test "x$SH4_TRANSLATOR" = "x"; then
13115 echo " SH4 translator: None (emulation core only)"
13117 echo " SH4 translator: $SH4_TRANSLATOR"
13120 if test "x$VIDEO_DRIVERS" = "x"; then
13121 echo " Video drivers: none (no supported GL found)"
13123 echo " Video drivers: $VIDEO_DRIVERS"
13126 if test "x$AUDIO_DRIVERS" = "x"; then
13127 echo " Audio drivers: none (no supported output devices found)"
13129 echo " Audio drivers: $AUDIO_DRIVERS"
13132 if test "x$CDROM_DRIVER" = "x"; then
13133 echo " CD-ROM driver: none (no supported cd-rom devices found)"
13135 echo " CD-ROM driver: $CDROM_DRIVER"
.