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
817 ac_precious_vars='build_alias
843 # Initialize some variables set by options.
845 ac_init_version=false
846 ac_unrecognized_opts=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
857 program_transform_name=s,x,x,
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE}'
882 infodir='${datarootdir}/info'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
931 cache_file=config.cache ;;
933 -datadir | --datadir | --datadi | --datad)
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
950 { (exit 1); exit 1; }; }
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
960 eval enable_$ac_useropt=no ;;
962 -docdir | --docdir | --docdi | --doc | --do)
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
977 { (exit 1); exit 1; }; }
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
987 eval enable_$ac_useropt=\$ac_optarg ;;
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 htmldir=$ac_optarg ;;
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1032 -libdir | --libdir | --libdi | --libd)
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
1050 | --localstate | --localstat | --localsta | --localst | --locals)
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054 localstatedir=$ac_optarg ;;
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1101 -program-transform-name | --program-transform-name \
1102 | --program-transform-nam | --program-transform-na \
1103 | --program-transform-n | --program-transform- \
1104 | --program-transform | --program-transfor \
1105 | --program-transfo | --program-transf \
1106 | --program-trans | --program-tran \
1107 | --progr-tra | --program-tr | --program-t)
1108 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1123 -psdir | --psdir | --psdi | --psd | --ps)
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 sbindir=$ac_optarg ;;
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 sharedstatedir=$ac_optarg ;;
1149 -site | --site | --sit)
1151 -site=* | --site=* | --sit=*)
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1182 { (exit 1); exit 1; }; }
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1192 eval with_$ac_useropt=\$ac_optarg ;;
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1199 { (exit 1); exit 1; }; }
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1209 eval with_$ac_useropt=no ;;
1212 # Obsolete; use --with-x.
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1229 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1230 Try \`$0 --help' for more information." >&2
1231 { (exit 1); exit 1; }; }
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1238 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1239 { (exit 1); exit 1; }; }
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1257 { (exit 1); exit 1; }; }
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1263 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1264 { (exit 1); exit 1; }; } ;;
1265 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1282 # Be sure to have absolute directory names.
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1288 { (exit 1); exit 1; }; }
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1296 target=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312 test "$silent" = yes && exec 6>/dev/null
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1319 { (exit 1); exit 1; }; }
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1322 { (exit 1); exit 1; }; }
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1357 ac_srcdir_defaulted=no
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1362 { (exit 1); exit 1; }; }
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1367 { (exit 1); exit 1; }; }
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1393 \`configure' configures this package to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 if test -n "$ac_init_help"; then
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-maintainer-mode enable make rules and dependencies not useful
1470 (and sometimes confusing) to the casual installer
1471 --disable-dependency-tracking speeds up one-time build
1472 --enable-dependency-tracking do not reject slow dependency extractors
1473 --enable-strict-warn Enable strict compilation warnings
1474 --disable-translator Disable the SH4 translator (Enabled by default)
1475 --disable-optimized Disable compile-time optimizations (Enabled by
1477 --enable-profiled Enable profiling build (implies disable-optimized)
1478 --enable-trace Enable generation of IO traces (warning: hurts
1480 --enable-watch Enable watchpoints in the debugger (warning: hurts
1482 --enable-sh4stats Enable statistics on executed sh4 instructions
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-osmesa Build with the osmesa GL library (software
1489 --with-gtk Build with the GTK UI. Default on X11 systems
1490 --with-esd Build with support for the ESounD audio system
1491 --with-pulse Build with support for the PulseAudio audio system
1493 Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
1498 LIBS libraries to pass to the linker, e.g. -l<library>
1499 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
1501 CCAS assembler compiler command (defaults to CC)
1502 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1504 PKG_CONFIG path to pkg-config utility
1506 C compiler flags for LIBPNG, overriding pkg-config
1507 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1508 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1509 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1510 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1511 GTK_LIBS linker flags for GTK, overriding pkg-config
1513 C compiler flags for PULSE, overriding pkg-config
1514 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1516 C compiler flags for ESOUND, overriding pkg-config
1517 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1518 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1519 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1521 Use these variables to override the choices made by `configure' or to help
1522 it to find libraries and programs with nonstandard names/locations.
1528 if test "$ac_init_help" = "recursive"; then
1529 # If there are subdirs, report their specific --help.
1530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531 test -d "$ac_dir" ||
1532 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1553 .) # We are building in place.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for guested configure.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1577 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1587 generated by GNU Autoconf 2.62
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1596 cat >config.log <<_ACEOF
1597 This file contains any messages produced by compilers while
1598 running configure, to aid debugging if configure makes a mistake.
1600 It was created by $as_me, which was
1601 generated by GNU Autoconf 2.62. Invocation command line was
1613 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1619 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1622 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1623 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1624 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1625 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1626 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1627 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1628 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 test -z "$as_dir" && as_dir=.
1637 $as_echo "PATH: $as_dir"
1653 # Keep a trace of the command line.
1654 # Strip out --no-create and --no-recursion so they do not pile up.
1655 # Strip out --silent because we don't want to record it for future runs.
1656 # Also quote any args containing shell meta-characters.
1657 # Make two passes to allow for proper duplicate-argument suppression.
1661 ac_must_keep_next=false
1667 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669 | -silent | --silent | --silen | --sile | --sil)
1672 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1677 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1678 if test $ac_must_keep_next = true; then
1679 ac_must_keep_next=false # Got value, back to normal.
1682 *=* | --config-cache | -C | -disable-* | --disable-* \
1683 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685 | -with-* | --with-* | -without-* | --without-* | --x)
1686 case "$ac_configure_args0 " in
1687 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690 -* ) ac_must_keep_next=true ;;
1693 ac_configure_args="$ac_configure_args '$ac_arg'"
1698 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1701 # When interrupted or exit'd, cleanup temporary files, and complete
1702 # config.log. We remove comments because anyway the quotes in there
1703 # would cause problems or look ugly.
1704 # WARNING: Use '\'' to represent an apostrophe within the trap.
1705 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1706 trap 'exit_status=$?
1707 # Save into config.log some information that might help in debugging.
1712 ## ---------------- ##
1713 ## Cache variables. ##
1714 ## ---------------- ##
1717 # The following way of writing the cache mishandles newlines in values,
1719 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720 eval ac_val=\$$ac_var
1724 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728 _ | IFS | as_nl) ;; #(
1729 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1730 *) $as_unset $ac_var ;;
1735 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1736 *${as_nl}ac_space=\ *)
1738 "s/'\''/'\''\\\\'\'''\''/g;
1739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1742 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1750 ## ----------------- ##
1751 ## Output variables. ##
1752 ## ----------------- ##
1755 for ac_var in $ac_subst_vars
1757 eval ac_val=\$$ac_var
1759 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 $as_echo "$ac_var='\''$ac_val'\''"
1765 if test -n "$ac_subst_files"; then
1767 ## ------------------- ##
1768 ## File substitutions. ##
1769 ## ------------------- ##
1772 for ac_var in $ac_subst_files
1774 eval ac_val=\$$ac_var
1776 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778 $as_echo "$ac_var='\''$ac_val'\''"
1783 if test -s confdefs.h; then
1793 test "$ac_signal" != 0 &&
1794 $as_echo "$as_me: caught signal $ac_signal"
1795 $as_echo "$as_me: exit $exit_status"
1797 rm -f core *.core core.conftest.* &&
1798 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1801 for ac_signal in 1 2 13 15; do
1802 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1806 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1807 rm -f -r conftest* confdefs.h
1809 # Predefined preprocessor variables.
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_NAME "$PACKAGE_NAME"
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_STRING "$PACKAGE_STRING"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1836 # Let the site file select an alternate cache file if it wants to.
1837 # Prefer an explicitly selected file to automatically selected ones.
1840 if test -n "$CONFIG_SITE"; then
1841 ac_site_file1=$CONFIG_SITE
1842 elif test "x$prefix" != xNONE; then
1843 ac_site_file1=$prefix/share/config.site
1844 ac_site_file2=$prefix/etc/config.site
1846 ac_site_file1=$ac_default_prefix/share/config.site
1847 ac_site_file2=$ac_default_prefix/etc/config.site
1849 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1851 test "x$ac_site_file" = xNONE && continue
1852 if test -r "$ac_site_file"; then
1853 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1854 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1855 sed 's/^/| /' "$ac_site_file" >&5
1860 if test -r "$cache_file"; then
1861 # Some versions of bash will fail to source /dev/null (special
1862 # files actually), so we avoid doing that.
1863 if test -f "$cache_file"; then
1864 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1865 $as_echo "$as_me: loading cache $cache_file" >&6;}
1867 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1868 *) . "./$cache_file";;
1872 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1873 $as_echo "$as_me: creating cache $cache_file" >&6;}
1877 # Check that the precious variables saved in the cache have kept the same
1879 ac_cache_corrupted=false
1880 for ac_var in $ac_precious_vars; do
1881 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1882 eval ac_new_set=\$ac_env_${ac_var}_set
1883 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1884 eval ac_new_val=\$ac_env_${ac_var}_value
1885 case $ac_old_set,$ac_new_set in
1887 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1888 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1889 ac_cache_corrupted=: ;;
1891 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1892 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1893 ac_cache_corrupted=: ;;
1896 if test "x$ac_old_val" != "x$ac_new_val"; then
1897 # differences in whitespace do not lead to failure.
1898 ac_old_val_w=`echo x $ac_old_val`
1899 ac_new_val_w=`echo x $ac_new_val`
1900 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1902 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1903 ac_cache_corrupted=:
1905 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1906 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1907 eval $ac_var=\$ac_old_val
1909 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1910 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1911 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1912 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1915 # Pass precious variables to config.status.
1916 if test "$ac_new_set" = set; then
1918 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 *) ac_arg=$ac_var=$ac_new_val ;;
1921 case " $ac_configure_args " in
1922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1923 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1927 if $ac_cache_corrupted; then
1928 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1929 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1930 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1931 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1932 { (exit 1); exit 1; }; }
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958 am__api_version="1.9"
1960 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1961 if test -f "$ac_dir/install-sh"; then
1963 ac_install_sh="$ac_aux_dir/install-sh -c"
1965 elif test -f "$ac_dir/install.sh"; then
1967 ac_install_sh="$ac_aux_dir/install.sh -c"
1969 elif test -f "$ac_dir/shtool"; then
1971 ac_install_sh="$ac_aux_dir/shtool install -c"
1975 if test -z "$ac_aux_dir"; then
1976 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1977 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1978 { (exit 1); exit 1; }; }
1981 # These three variables are undocumented and unsupported,
1982 # and are intended to be withdrawn in a future Autoconf release.
1983 # They can cause serious problems if a builder's source tree is in a directory
1984 # whose full name contains unusual characters.
1985 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1986 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1987 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1990 # Find a good install program. We prefer a C program (faster),
1991 # so one script is as good as another. But avoid the broken or
1992 # incompatible versions:
1993 # SysV /etc/install, /usr/sbin/install
1994 # SunOS /usr/etc/install
1995 # IRIX /sbin/install
1997 # AmigaOS /C/install, which installs bootblocks on floppy discs
1998 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1999 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2000 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2001 # OS/2's system install, which has a completely different semantic
2002 # ./install, which can be erroneously created by make from ./install.sh.
2003 # Reject install programs that cannot install multiple files.
2004 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2005 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2006 if test -z "$INSTALL"; then
2007 if test "${ac_cv_path_install+set}" = set; then
2008 $as_echo_n "(cached) " >&6
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir=.
2015 # Account for people who put trailing slashes in PATH elements.
2017 ./ | .// | /cC/* | \
2018 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2019 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2022 # OSF1 and SCO ODT 3.0 have their own names for install.
2023 # Don't use installbsd from OSF since it installs stuff as root
2025 for ac_prog in ginstall scoinst install; do
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2028 if test $ac_prog = install &&
2029 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2030 # AIX install. It has an incompatible calling convention.
2032 elif test $ac_prog = install &&
2033 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2034 # program-specific install script used by HP pwplus--don't use.
2037 rm -rf conftest.one conftest.two conftest.dir
2038 echo one > conftest.one
2039 echo two > conftest.two
2041 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2042 test -s conftest.one && test -s conftest.two &&
2043 test -s conftest.dir/conftest.one &&
2044 test -s conftest.dir/conftest.two
2046 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2059 rm -rf conftest.one conftest.two conftest.dir
2062 if test "${ac_cv_path_install+set}" = set; then
2063 INSTALL=$ac_cv_path_install
2065 # As a last resort, use the slow shell script. Don't cache a
2066 # value for INSTALL within a source directory, because that will
2067 # break other packages using the cache if that directory is
2068 # removed, or if the value is a relative name.
2069 INSTALL=$ac_install_sh
2072 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2073 $as_echo "$INSTALL" >&6; }
2075 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2076 # It thinks the first close brace ends the variable substitution.
2077 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2079 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2081 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2083 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2084 $as_echo_n "checking whether build environment is sane... " >&6; }
2087 echo timestamp > conftest.file
2088 # Do `set' in a subshell so we don't clobber the current shell's
2089 # arguments. Must try -L first in case configure is actually a
2090 # symlink; some systems play weird games with the mod time of symlinks
2091 # (eg FreeBSD returns the mod time of the symlink's containing
2094 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2095 if test "$*" = "X"; then
2097 set X `ls -t $srcdir/configure conftest.file`
2100 if test "$*" != "X $srcdir/configure conftest.file" \
2101 && test "$*" != "X conftest.file $srcdir/configure"; then
2103 # If neither matched, then we have a broken ls. This can happen
2104 # if, for instance, CONFIG_SHELL is bash and it inherits a
2105 # broken ls alias from the environment. This has actually
2106 # happened. Such a system could not be considered "sane".
2107 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2108 alias in your environment" >&5
2109 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2110 alias in your environment" >&2;}
2111 { (exit 1); exit 1; }; }
2114 test "$2" = conftest.file
2120 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2121 Check your system clock" >&5
2122 $as_echo "$as_me: error: newly created file is older than distributed files!
2123 Check your system clock" >&2;}
2124 { (exit 1); exit 1; }; }
2126 { $as_echo "$as_me:$LINENO: result: yes" >&5
2127 $as_echo "yes" >&6; }
2128 test "$program_prefix" != NONE &&
2129 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2130 # Use a double $ so make ignores it.
2131 test "$program_suffix" != NONE &&
2132 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2133 # Double any \ or $.
2134 # By default was `s,x,x', remove it if useless.
2135 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2136 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2138 # expand $ac_aux_dir to an absolute path
2139 am_aux_dir=`cd $ac_aux_dir && pwd`
2141 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2142 # Use eval to expand $SHELL
2143 if eval "$MISSING --run true"; then
2144 am_missing_run="$MISSING --run "
2147 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2148 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2151 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2152 # We used to keeping the `.' as first argument, in order to
2153 # allow $(mkdir_p) to be used without argument. As in
2154 # $(mkdir_p) $(somedir)
2155 # where $(somedir) is conditionally defined. However this is wrong
2157 # 1. if the package is installed by a user who cannot write `.'
2158 # make install will fail,
2159 # 2. the above comment should most certainly read
2160 # $(mkdir_p) $(DESTDIR)$(somedir)
2161 # so it does not work when $(somedir) is undefined and
2162 # $(DESTDIR) is not.
2163 # To support the latter case, we have to write
2164 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2165 # so the `.' trick is pointless.
2166 mkdir_p='mkdir -p --'
2168 # On NextStep and OpenStep, the `mkdir' command does not
2169 # recognize any option. It will interpret all options as
2170 # directories to create, and then abort because `.' already
2172 for d in ./-p ./--version;
2174 test -d $d && rmdir $d
2176 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2177 if test -f "$ac_aux_dir/mkinstalldirs"; then
2178 mkdir_p='$(mkinstalldirs)'
2180 mkdir_p='$(install_sh) -d'
2184 for ac_prog in gawk mawk nawk awk
2186 # Extract the first word of "$ac_prog", so it can be a program name with args.
2187 set dummy $ac_prog; ac_word=$2
2188 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 $as_echo_n "checking for $ac_word... " >&6; }
2190 if test "${ac_cv_prog_AWK+set}" = set; then
2191 $as_echo_n "(cached) " >&6
2193 if test -n "$AWK"; then
2194 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_AWK="$ac_prog"
2204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 if test -n "$AWK"; then
2215 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2216 $as_echo "$AWK" >&6; }
2218 { $as_echo "$as_me:$LINENO: result: no" >&5
2219 $as_echo "no" >&6; }
2223 test -n "$AWK" && break
2226 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2227 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2229 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2230 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2231 $as_echo_n "(cached) " >&6
2233 cat >conftest.make <<\_ACEOF
2236 @echo '@@@%%%=$(MAKE)=@@@%%%'
2238 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2239 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2241 eval ac_cv_prog_make_${ac_make}_set=yes;;
2243 eval ac_cv_prog_make_${ac_make}_set=no;;
2247 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2248 { $as_echo "$as_me:$LINENO: result: yes" >&5
2249 $as_echo "yes" >&6; }
2252 { $as_echo "$as_me:$LINENO: result: no" >&5
2253 $as_echo "no" >&6; }
2254 SET_MAKE="MAKE=${MAKE-make}"
2257 rm -rf .tst 2>/dev/null
2258 mkdir .tst 2>/dev/null
2259 if test -d .tst; then
2264 rmdir .tst 2>/dev/null
2266 # test to see if srcdir already configured
2267 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2268 test -f $srcdir/config.status; then
2269 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2270 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2271 { (exit 1); exit 1; }; }
2274 # test whether we have cygpath
2275 if test -z "$CYGPATH_W"; then
2276 if (cygpath --version) >/dev/null 2>/dev/null; then
2277 CYGPATH_W='cygpath -w'
2284 # Define the identity of the package.
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE "$PACKAGE"
2294 cat >>confdefs.h <<_ACEOF
2295 #define VERSION "$VERSION"
2298 # Some tools Automake needs.
2300 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2303 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2306 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2309 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2312 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2314 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2316 # Installed binaries are usually stripped using `strip' when the user
2317 # run `make install-strip'. However `strip' might not be the right
2318 # tool to use in cross-compilation environments, therefore Automake
2319 # will honor the `STRIP' environment variable to overrule this program.
2320 if test "$cross_compiling" != no; then
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2323 set dummy ${ac_tool_prefix}strip; ac_word=$2
2324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 $as_echo_n "checking for $ac_word... " >&6; }
2326 if test "${ac_cv_prog_STRIP+set}" = set; then
2327 $as_echo_n "(cached) " >&6
2329 if test -n "$STRIP"; then
2330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 STRIP=$ac_cv_prog_STRIP
2350 if test -n "$STRIP"; then
2351 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2352 $as_echo "$STRIP" >&6; }
2354 { $as_echo "$as_me:$LINENO: result: no" >&5
2355 $as_echo "no" >&6; }
2360 if test -z "$ac_cv_prog_STRIP"; then
2362 # Extract the first word of "strip", so it can be a program name with args.
2363 set dummy strip; ac_word=$2
2364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 $as_echo_n "checking for $ac_word... " >&6; }
2366 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2367 $as_echo_n "(cached) " >&6
2369 if test -n "$ac_ct_STRIP"; then
2370 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_ac_ct_STRIP="strip"
2380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2390 if test -n "$ac_ct_STRIP"; then
2391 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2392 $as_echo "$ac_ct_STRIP" >&6; }
2394 { $as_echo "$as_me:$LINENO: result: no" >&5
2395 $as_echo "no" >&6; }
2398 if test "x$ac_ct_STRIP" = x; then
2401 case $cross_compiling:$ac_tool_warned in
2403 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2404 whose name does not start with the host triplet. If you think this
2405 configuration is useful to you, please write to autoconf@gnu.org." >&5
2406 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2407 whose name does not start with the host triplet. If you think this
2408 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2409 ac_tool_warned=yes ;;
2414 STRIP="$ac_cv_prog_STRIP"
2418 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2420 # We need awk for the "check" target. The system "awk" is bad on
2422 # Always define AMTAR for backward compatibility.
2424 AMTAR=${AMTAR-"${am_missing_run}tar"}
2426 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2432 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2433 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2434 # Check whether --enable-maintainer-mode was given.
2435 if test "${enable_maintainer_mode+set}" = set; then
2436 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2438 USE_MAINTAINER_MODE=no
2441 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2442 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2445 if test $USE_MAINTAINER_MODE = yes; then
2446 MAINTAINER_MODE_TRUE=
2447 MAINTAINER_MODE_FALSE='#'
2449 MAINTAINER_MODE_TRUE='#'
2450 MAINTAINER_MODE_FALSE=
2453 MAINT=$MAINTAINER_MODE_TRUE
2456 ac_config_headers="$ac_config_headers config.h"
2459 DEPDIR="${am__leading_dot}deps"
2461 ac_config_commands="$ac_config_commands depfiles"
2464 am_make=${MAKE-make}
2465 cat > confinc << 'END'
2470 # If we don't find an include directive, just comment out the code.
2471 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2472 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2476 # First try GNU make style include.
2477 echo "include confinc" > confmf
2478 # We grep out `Entering directory' and `Leaving directory'
2479 # messages which can occur if `w' ends up in MAKEFLAGS.
2480 # In particular we don't look at `^make:' because GNU make might
2481 # be invoked under some other name (usually "gmake"), in which
2482 # case it prints its new name instead of `make'.
2483 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2488 # Now try BSD make style include.
2489 if test "$am__include" = "#"; then
2490 echo '.include "confinc"' > confmf
2491 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2492 am__include=.include
2499 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2500 $as_echo "$_am_result" >&6; }
2501 rm -f confinc confmf
2503 # Check whether --enable-dependency-tracking was given.
2504 if test "${enable_dependency_tracking+set}" = set; then
2505 enableval=$enable_dependency_tracking;
2508 if test "x$enable_dependency_tracking" != xno; then
2509 am_depcomp="$ac_aux_dir/depcomp"
2514 if test "x$enable_dependency_tracking" != xno; then
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535 $as_echo_n "(cached) " >&6
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 if test -n "$CC"; then
2559 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2560 $as_echo "$CC" >&6; }
2562 { $as_echo "$as_me:$LINENO: result: no" >&5
2563 $as_echo "no" >&6; }
2568 if test -z "$ac_cv_prog_CC"; then
2570 # Extract the first word of "gcc", so it can be a program name with args.
2571 set dummy gcc; ac_word=$2
2572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2575 $as_echo_n "(cached) " >&6
2577 if test -n "$ac_ct_CC"; then
2578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_ac_ct_CC="gcc"
2588 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2598 if test -n "$ac_ct_CC"; then
2599 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2600 $as_echo "$ac_ct_CC" >&6; }
2602 { $as_echo "$as_me:$LINENO: result: no" >&5
2603 $as_echo "no" >&6; }
2606 if test "x$ac_ct_CC" = x; then
2609 case $cross_compiling:$ac_tool_warned in
2611 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet. If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&5
2614 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2615 whose name does not start with the host triplet. If you think this
2616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2617 ac_tool_warned=yes ;;
2625 if test -z "$CC"; then
2626 if test -n "$ac_tool_prefix"; then
2627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2628 set dummy ${ac_tool_prefix}cc; ac_word=$2
2629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 $as_echo_n "checking for $ac_word... " >&6; }
2631 if test "${ac_cv_prog_CC+set}" = set; then
2632 $as_echo_n "(cached) " >&6
2634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_CC="${ac_tool_prefix}cc"
2645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 if test -n "$CC"; then
2656 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2657 $as_echo "$CC" >&6; }
2659 { $as_echo "$as_me:$LINENO: result: no" >&5
2660 $as_echo "no" >&6; }
2666 if test -z "$CC"; then
2667 # Extract the first word of "cc", so it can be a program name with args.
2668 set dummy cc; ac_word=$2
2669 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if test "${ac_cv_prog_CC+set}" = set; then
2672 $as_echo_n "(cached) " >&6
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2686 ac_prog_rejected=yes
2690 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 if test $ac_prog_rejected = yes; then
2698 # We found a bogon in the path, so make sure we never use it.
2699 set dummy $ac_cv_prog_CC
2701 if test $# != 0; then
2702 # We chose a different compiler from the bogus one.
2703 # However, it has the same basename, so the bogon will be chosen
2704 # first if we set CC to just the basename; use the full file name.
2706 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2712 if test -n "$CC"; then
2713 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2714 $as_echo "$CC" >&6; }
2716 { $as_echo "$as_me:$LINENO: result: no" >&5
2717 $as_echo "no" >&6; }
2722 if test -z "$CC"; then
2723 if test -n "$ac_tool_prefix"; then
2724 for ac_prog in cl.exe
2726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2727 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if test "${ac_cv_prog_CC+set}" = set; then
2731 $as_echo_n "(cached) " >&6
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 if test -n "$CC"; then
2755 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2756 $as_echo "$CC" >&6; }
2758 { $as_echo "$as_me:$LINENO: result: no" >&5
2759 $as_echo "no" >&6; }
2763 test -n "$CC" && break
2766 if test -z "$CC"; then
2768 for ac_prog in cl.exe
2770 # Extract the first word of "$ac_prog", so it can be a program name with args.
2771 set dummy $ac_prog; ac_word=$2
2772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2775 $as_echo_n "(cached) " >&6
2777 if test -n "$ac_ct_CC"; then
2778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_ac_ct_CC="$ac_prog"
2788 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2798 if test -n "$ac_ct_CC"; then
2799 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2800 $as_echo "$ac_ct_CC" >&6; }
2802 { $as_echo "$as_me:$LINENO: result: no" >&5
2803 $as_echo "no" >&6; }
2807 test -n "$ac_ct_CC" && break
2810 if test "x$ac_ct_CC" = x; then
2813 case $cross_compiling:$ac_tool_warned in
2815 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2816 whose name does not start with the host triplet. If you think this
2817 configuration is useful to you, please write to autoconf@gnu.org." >&5
2818 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2819 whose name does not start with the host triplet. If you think this
2820 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2821 ac_tool_warned=yes ;;
2830 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2831 See \`config.log' for more details." >&5
2832 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2833 See \`config.log' for more details." >&2;}
2834 { (exit 1); exit 1; }; }
2836 # Provide some information about the compiler.
2837 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2840 { (ac_try="$ac_compiler --version >&5"
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2846 $as_echo "$ac_try_echo") >&5
2847 (eval "$ac_compiler --version >&5") 2>&5
2849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }
2851 { (ac_try="$ac_compiler -v >&5"
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857 $as_echo "$ac_try_echo") >&5
2858 (eval "$ac_compiler -v >&5") 2>&5
2860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2862 { (ac_try="$ac_compiler -V >&5"
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2868 $as_echo "$ac_try_echo") >&5
2869 (eval "$ac_compiler -V >&5") 2>&5
2871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2889 ac_clean_files_save=$ac_clean_files
2890 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2891 # Try to create an executable without -o first, disregard a.out.
2892 # It will help us diagnose broken compilers, and finding out an intuition
2894 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2895 $as_echo_n "checking for C compiler default output file name... " >&6; }
2896 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2898 # The possible output files:
2899 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2902 for ac_file in $ac_files
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2906 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2911 if { (ac_try="$ac_link_default"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2917 $as_echo "$ac_try_echo") >&5
2918 (eval "$ac_link_default") 2>&5
2920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; then
2922 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2923 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2924 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2925 # so that the user can short-circuit this test for compilers unknown to
2927 for ac_file in $ac_files ''
2929 test -f "$ac_file" || continue
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2934 # We found the default executable, but exeext='' is most
2938 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2940 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942 # We set ac_cv_exeext here because the later test for it is not
2943 # safe: cross compilers may not add the suffix if given an `-o'
2944 # argument, so we may need to know it at that point already.
2945 # Even if this section looks crufty: it has the advantage of
2952 test "$ac_cv_exeext" = no && ac_cv_exeext=
2958 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2959 $as_echo "$ac_file" >&6; }
2960 if test -z "$ac_file"; then
2961 $as_echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2964 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2965 See \`config.log' for more details." >&5
2966 $as_echo "$as_me: error: C compiler cannot create executables
2967 See \`config.log' for more details." >&2;}
2968 { (exit 77); exit 77; }; }
2971 ac_exeext=$ac_cv_exeext
2973 # Check that the compiler produces executables we can run. If not, either
2974 # the compiler is broken, or we cross compile.
2975 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2976 $as_echo_n "checking whether the C compiler works... " >&6; }
2977 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2978 # If not cross compiling, check that we can run a simple program.
2979 if test "$cross_compiling" != yes; then
2980 if { ac_try='./$ac_file'
2981 { (case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2986 $as_echo "$ac_try_echo") >&5
2987 (eval "$ac_try") 2>&5
2989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; }; then
2993 if test "$cross_compiling" = maybe; then
2996 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2997 If you meant to cross compile, use \`--host'.
2998 See \`config.log' for more details." >&5
2999 $as_echo "$as_me: error: cannot run C compiled programs.
3000 If you meant to cross compile, use \`--host'.
3001 See \`config.log' for more details." >&2;}
3002 { (exit 1); exit 1; }; }
3006 { $as_echo "$as_me:$LINENO: result: yes" >&5
3007 $as_echo "yes" >&6; }
3009 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3010 ac_clean_files=$ac_clean_files_save
3011 # Check that the compiler produces executables we can run. If not, either
3012 # the compiler is broken, or we cross compile.
3013 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3014 $as_echo_n "checking whether we are cross compiling... " >&6; }
3015 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3016 $as_echo "$cross_compiling" >&6; }
3018 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3019 $as_echo_n "checking for suffix of executables... " >&6; }
3020 if { (ac_try="$ac_link"
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3026 $as_echo "$ac_try_echo") >&5
3027 (eval "$ac_link") 2>&5
3029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; then
3031 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3032 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3033 # work properly (i.e., refer to `conftest.exe'), while it won't with
3035 for ac_file in conftest.exe conftest conftest.*; do
3036 test -f "$ac_file" || continue
3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3039 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3045 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3046 See \`config.log' for more details." >&5
3047 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3048 See \`config.log' for more details." >&2;}
3049 { (exit 1); exit 1; }; }
3052 rm -f conftest$ac_cv_exeext
3053 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3054 $as_echo "$ac_cv_exeext" >&6; }
3056 rm -f conftest.$ac_ext
3057 EXEEXT=$ac_cv_exeext
3059 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3060 $as_echo_n "checking for suffix of object files... " >&6; }
3061 if test "${ac_cv_objext+set}" = set; then
3062 $as_echo_n "(cached) " >&6
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3079 rm -f conftest.o conftest.obj
3080 if { (ac_try="$ac_compile"
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3086 $as_echo "$ac_try_echo") >&5
3087 (eval "$ac_compile") 2>&5
3089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; then
3091 for ac_file in conftest.o conftest.obj conftest.*; do
3092 test -f "$ac_file" || continue;
3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3100 $as_echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3104 See \`config.log' for more details." >&5
3105 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3106 See \`config.log' for more details." >&2;}
3107 { (exit 1); exit 1; }; }
3110 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3112 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3113 $as_echo "$ac_cv_objext" >&6; }
3114 OBJEXT=$ac_cv_objext
3116 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3117 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3118 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3119 $as_echo_n "(cached) " >&6
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3139 rm -f conftest.$ac_objext
3140 if { (ac_try="$ac_compile"
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3146 $as_echo "$ac_try_echo") >&5
3147 (eval "$ac_compile") 2>conftest.er1
3149 grep -v '^ *+' conftest.er1 >conftest.err
3151 cat conftest.err >&5
3152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } && {
3154 test -z "$ac_c_werror_flag" ||
3155 test ! -s conftest.err
3156 } && test -s conftest.$ac_objext; then
3159 $as_echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3169 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3170 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3171 if test $ac_compiler_gnu = yes; then
3176 ac_test_CFLAGS=${CFLAGS+set}
3177 ac_save_CFLAGS=$CFLAGS
3178 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3179 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3180 if test "${ac_cv_prog_cc_g+set}" = set; then
3181 $as_echo_n "(cached) " >&6
3183 ac_save_c_werror_flag=$ac_c_werror_flag
3184 ac_c_werror_flag=yes
3187 cat >conftest.$ac_ext <<_ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3202 rm -f conftest.$ac_objext
3203 if { (ac_try="$ac_compile"
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3209 $as_echo "$ac_try_echo") >&5
3210 (eval "$ac_compile") 2>conftest.er1
3212 grep -v '^ *+' conftest.er1 >conftest.err
3214 cat conftest.err >&5
3215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } && {
3217 test -z "$ac_c_werror_flag" ||
3218 test ! -s conftest.err
3219 } && test -s conftest.$ac_objext; then
3222 $as_echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3226 cat >conftest.$ac_ext <<_ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3241 rm -f conftest.$ac_objext
3242 if { (ac_try="$ac_compile"
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3248 $as_echo "$ac_try_echo") >&5
3249 (eval "$ac_compile") 2>conftest.er1
3251 grep -v '^ *+' conftest.er1 >conftest.err
3253 cat conftest.err >&5
3254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } && {
3256 test -z "$ac_c_werror_flag" ||
3257 test ! -s conftest.err
3258 } && test -s conftest.$ac_objext; then
3261 $as_echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 ac_c_werror_flag=$ac_save_c_werror_flag
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3281 rm -f conftest.$ac_objext
3282 if { (ac_try="$ac_compile"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3288 $as_echo "$ac_try_echo") >&5
3289 (eval "$ac_compile") 2>conftest.er1
3291 grep -v '^ *+' conftest.er1 >conftest.err
3293 cat conftest.err >&5
3294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } && {
3296 test -z "$ac_c_werror_flag" ||
3297 test ! -s conftest.err
3298 } && test -s conftest.$ac_objext; then
3301 $as_echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 ac_c_werror_flag=$ac_save_c_werror_flag
3316 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3317 $as_echo "$ac_cv_prog_cc_g" >&6; }
3318 if test "$ac_test_CFLAGS" = set; then
3319 CFLAGS=$ac_save_CFLAGS
3320 elif test $ac_cv_prog_cc_g = yes; then
3321 if test "$GCC" = yes; then
3327 if test "$GCC" = yes; then
3333 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3334 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3335 if test "${ac_cv_prog_cc_c89+set}" = set; then
3336 $as_echo_n "(cached) " >&6
3338 ac_cv_prog_cc_c89=no
3340 cat >conftest.$ac_ext <<_ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3348 #include <sys/types.h>
3349 #include <sys/stat.h>
3350 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3351 struct buf { int x; };
3352 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3353 static char *e (p, i)
3359 static char *f (char * (*g) (char **, int), char **p, ...)
3364 s = g (p, va_arg (v,int));
3369 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3370 function prototypes and stuff, but not '\xHH' hex character constants.
3371 These don't provoke an error unfortunately, instead are silently treated
3372 as 'x'. The following induces an error, until -std is added to get
3373 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3374 array size at least. It's necessary to write '\x00'==0 to get something
3375 that's true only with -std. */
3376 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3378 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3379 inside strings and character constants. */
3381 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3383 int test (int i, double x);
3384 struct s1 {int (*f) (int a);};
3385 struct s2 {int (*f) (double a);};
3386 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3392 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3397 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3398 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3400 CC="$ac_save_CC $ac_arg"
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409 (eval "$ac_compile") 2>conftest.er1
3411 grep -v '^ *+' conftest.er1 >conftest.err
3413 cat conftest.err >&5
3414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } && {
3416 test -z "$ac_c_werror_flag" ||
3417 test ! -s conftest.err
3418 } && test -s conftest.$ac_objext; then
3419 ac_cv_prog_cc_c89=$ac_arg
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3427 rm -f core conftest.err conftest.$ac_objext
3428 test "x$ac_cv_prog_cc_c89" != "xno" && break
3430 rm -f conftest.$ac_ext
3435 case "x$ac_cv_prog_cc_c89" in
3437 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3438 $as_echo "none needed" >&6; } ;;
3440 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3441 $as_echo "unsupported" >&6; } ;;
3443 CC="$CC $ac_cv_prog_cc_c89"
3444 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3445 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455 depcc="$CC" am_compiler_list=
3457 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3458 $as_echo_n "checking dependency style of $depcc... " >&6; }
3459 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3460 $as_echo_n "(cached) " >&6
3462 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3463 # We make a subdir and do the tests there. Otherwise we can end up
3464 # making bogus files that we don't know about and never remove. For
3465 # instance it was reported that on HP-UX the gcc test will end up
3466 # making a dummy file named `D' -- because `-MD' means `put the output
3469 # Copy depcomp to subdir because otherwise we won't find it if we're
3470 # using a relative directory.
3471 cp "$am_depcomp" conftest.dir
3473 # We will build objects and dependencies in a subdirectory because
3474 # it helps to detect inapplicable dependency modes. For instance
3475 # both Tru64's cc and ICC support -MD to output dependencies as a
3476 # side effect of compilation, but ICC will put the dependencies in
3477 # the current directory while Tru64 will put them in the object
3481 am_cv_CC_dependencies_compiler_type=none
3482 if test "$am_compiler_list" = ""; then
3483 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3485 for depmode in $am_compiler_list; do
3486 # Setup a source with many dependencies, because some compilers
3487 # like to wrap large dependency lists on column 80 (with \), and
3488 # we should not choose a depcomp mode which is confused by this.
3490 # We need to recreate these files for each test, as the compiler may
3491 # overwrite some of them when testing with obscure command lines.
3492 # This happens at least with the AIX C compiler.
3494 for i in 1 2 3 4 5 6; do
3495 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3496 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3497 # Solaris 8's {/usr,}/bin/sh.
3498 touch sub/conftst$i.h
3500 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3504 # after this tag, mechanisms are not by side-effect, so they'll
3505 # only be used when explicitly requested
3506 if test "x$enable_dependency_tracking" = xyes; then
3514 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3515 # mode. It turns out that the SunPro C++ compiler does not properly
3516 # handle `-M -o', and we need to detect this.
3517 if depmode=$depmode \
3518 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3519 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3520 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3521 >/dev/null 2>conftest.err &&
3522 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3523 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3524 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3525 # icc doesn't choke on unknown options, it will just issue warnings
3526 # or remarks (even with -Werror). So we grep stderr for any message
3527 # that says an option was ignored or not supported.
3528 # When given -MP, icc 7.0 and 7.1 complain thusly:
3529 # icc: Command line warning: ignoring option '-M'; no argument required
3530 # The diagnosis changed in icc 8.0:
3531 # icc: Command line remark: option '-MP' not supported
3532 if (grep 'ignoring option' conftest.err ||
3533 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3534 am_cv_CC_dependencies_compiler_type=$depmode
3543 am_cv_CC_dependencies_compiler_type=none
3547 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3548 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3549 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3554 test "x$enable_dependency_tracking" != xno \
3555 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3557 am__fastdepCC_FALSE='#'
3559 am__fastdepCC_TRUE='#'
3560 am__fastdepCC_FALSE=
3566 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3567 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3568 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3569 $as_echo_n "(cached) " >&6
3571 ac_check_lib_save_LIBS=$LIBS
3572 LIBS="-lcposix $LIBS"
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3580 /* Override any GCC internal prototype to avoid an error.
3581 Use char because int might match the return type of a GCC
3582 builtin and then its argument prototype would still apply. */
3595 rm -f conftest.$ac_objext conftest$ac_exeext
3596 if { (ac_try="$ac_link"
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3602 $as_echo "$ac_try_echo") >&5
3603 (eval "$ac_link") 2>conftest.er1
3605 grep -v '^ *+' conftest.er1 >conftest.err
3607 cat conftest.err >&5
3608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } && {
3610 test -z "$ac_c_werror_flag" ||
3611 test ! -s conftest.err
3612 } && test -s conftest$ac_exeext && {
3613 test "$cross_compiling" = yes ||
3614 $as_test_x conftest$ac_exeext
3616 ac_cv_lib_cposix_strerror=yes
3618 $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 ac_cv_lib_cposix_strerror=no
3624 rm -rf conftest.dSYM
3625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3626 conftest$ac_exeext conftest.$ac_ext
3627 LIBS=$ac_check_lib_save_LIBS
3629 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3630 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3631 if test $ac_cv_lib_cposix_strerror = yes; then
3632 LIBS="$LIBS -lcposix"
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642 if test -n "$ac_tool_prefix"; then
3643 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3644 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3646 $as_echo_n "checking for $ac_word... " >&6; }
3647 if test "${ac_cv_prog_CC+set}" = set; then
3648 $as_echo_n "(cached) " >&6
3650 if test -n "$CC"; then
3651 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3660 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 if test -n "$CC"; then
3672 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3673 $as_echo "$CC" >&6; }
3675 { $as_echo "$as_me:$LINENO: result: no" >&5
3676 $as_echo "no" >&6; }
3681 if test -z "$ac_cv_prog_CC"; then
3683 # Extract the first word of "gcc", so it can be a program name with args.
3684 set dummy gcc; ac_word=$2
3685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3688 $as_echo_n "(cached) " >&6
3690 if test -n "$ac_ct_CC"; then
3691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700 ac_cv_prog_ac_ct_CC="gcc"
3701 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3711 if test -n "$ac_ct_CC"; then
3712 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3713 $as_echo "$ac_ct_CC" >&6; }
3715 { $as_echo "$as_me:$LINENO: result: no" >&5
3716 $as_echo "no" >&6; }
3719 if test "x$ac_ct_CC" = x; then
3722 case $cross_compiling:$ac_tool_warned in
3724 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3725 whose name does not start with the host triplet. If you think this
3726 configuration is useful to you, please write to autoconf@gnu.org." >&5
3727 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3728 whose name does not start with the host triplet. If you think this
3729 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3730 ac_tool_warned=yes ;;
3738 if test -z "$CC"; then
3739 if test -n "$ac_tool_prefix"; then
3740 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3741 set dummy ${ac_tool_prefix}cc; ac_word=$2
3742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if test "${ac_cv_prog_CC+set}" = set; then
3745 $as_echo_n "(cached) " >&6
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3757 ac_cv_prog_CC="${ac_tool_prefix}cc"
3758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 if test -n "$CC"; then
3769 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3772 { $as_echo "$as_me:$LINENO: result: no" >&5
3773 $as_echo "no" >&6; }
3779 if test -z "$CC"; then
3780 # Extract the first word of "cc", so it can be a program name with args.
3781 set dummy cc; ac_word=$2
3782 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if test "${ac_cv_prog_CC+set}" = set; then
3785 $as_echo_n "(cached) " >&6
3787 if test -n "$CC"; then
3788 ac_cv_prog_CC="$CC" # Let the user override the test.
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3799 ac_prog_rejected=yes
3803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 if test $ac_prog_rejected = yes; then
3811 # We found a bogon in the path, so make sure we never use it.
3812 set dummy $ac_cv_prog_CC
3814 if test $# != 0; then
3815 # We chose a different compiler from the bogus one.
3816 # However, it has the same basename, so the bogon will be chosen
3817 # first if we set CC to just the basename; use the full file name.
3819 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3825 if test -n "$CC"; then
3826 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3827 $as_echo "$CC" >&6; }
3829 { $as_echo "$as_me:$LINENO: result: no" >&5
3830 $as_echo "no" >&6; }
3835 if test -z "$CC"; then
3836 if test -n "$ac_tool_prefix"; then
3837 for ac_prog in cl.exe
3839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3841 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if test "${ac_cv_prog_CC+set}" = set; then
3844 $as_echo_n "(cached) " >&6
3846 if test -n "$CC"; then
3847 ac_cv_prog_CC="$CC" # Let the user override the test.
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3857 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 if test -n "$CC"; then
3868 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3869 $as_echo "$CC" >&6; }
3871 { $as_echo "$as_me:$LINENO: result: no" >&5
3872 $as_echo "no" >&6; }
3876 test -n "$CC" && break
3879 if test -z "$CC"; then
3881 for ac_prog in cl.exe
3883 # Extract the first word of "$ac_prog", so it can be a program name with args.
3884 set dummy $ac_prog; ac_word=$2
3885 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3888 $as_echo_n "(cached) " >&6
3890 if test -n "$ac_ct_CC"; then
3891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900 ac_cv_prog_ac_ct_CC="$ac_prog"
3901 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3911 if test -n "$ac_ct_CC"; then
3912 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3913 $as_echo "$ac_ct_CC" >&6; }
3915 { $as_echo "$as_me:$LINENO: result: no" >&5
3916 $as_echo "no" >&6; }
3920 test -n "$ac_ct_CC" && break
3923 if test "x$ac_ct_CC" = x; then
3926 case $cross_compiling:$ac_tool_warned in
3928 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3929 whose name does not start with the host triplet. If you think this
3930 configuration is useful to you, please write to autoconf@gnu.org." >&5
3931 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3932 whose name does not start with the host triplet. If you think this
3933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3934 ac_tool_warned=yes ;;
3943 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3944 See \`config.log' for more details." >&5
3945 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3946 See \`config.log' for more details." >&2;}
3947 { (exit 1); exit 1; }; }
3949 # Provide some information about the compiler.
3950 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3953 { (ac_try="$ac_compiler --version >&5"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3959 $as_echo "$ac_try_echo") >&5
3960 (eval "$ac_compiler --version >&5") 2>&5
3962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }
3964 { (ac_try="$ac_compiler -v >&5"
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3970 $as_echo "$ac_try_echo") >&5
3971 (eval "$ac_compiler -v >&5") 2>&5
3973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }
3975 { (ac_try="$ac_compiler -V >&5"
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3981 $as_echo "$ac_try_echo") >&5
3982 (eval "$ac_compiler -V >&5") 2>&5
3984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }
3987 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3988 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3989 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3990 $as_echo_n "(cached) " >&6
3992 cat >conftest.$ac_ext <<_ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
4010 rm -f conftest.$ac_objext
4011 if { (ac_try="$ac_compile"
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4017 $as_echo "$ac_try_echo") >&5
4018 (eval "$ac_compile") 2>conftest.er1
4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 cat conftest.err >&5
4023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } && {
4025 test -z "$ac_c_werror_flag" ||
4026 test ! -s conftest.err
4027 } && test -s conftest.$ac_objext; then
4030 $as_echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4040 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4041 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4042 if test $ac_compiler_gnu = yes; then
4047 ac_test_CFLAGS=${CFLAGS+set}
4048 ac_save_CFLAGS=$CFLAGS
4049 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4050 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4051 if test "${ac_cv_prog_cc_g+set}" = set; then
4052 $as_echo_n "(cached) " >&6
4054 ac_save_c_werror_flag=$ac_c_werror_flag
4055 ac_c_werror_flag=yes
4058 cat >conftest.$ac_ext <<_ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4073 rm -f conftest.$ac_objext
4074 if { (ac_try="$ac_compile"
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4080 $as_echo "$ac_try_echo") >&5
4081 (eval "$ac_compile") 2>conftest.er1
4083 grep -v '^ *+' conftest.er1 >conftest.err
4085 cat conftest.err >&5
4086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } && {
4088 test -z "$ac_c_werror_flag" ||
4089 test ! -s conftest.err
4090 } && test -s conftest.$ac_objext; then
4093 $as_echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4097 cat >conftest.$ac_ext <<_ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4112 rm -f conftest.$ac_objext
4113 if { (ac_try="$ac_compile"
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4119 $as_echo "$ac_try_echo") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4122 grep -v '^ *+' conftest.er1 >conftest.err
4124 cat conftest.err >&5
4125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && {
4127 test -z "$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 } && test -s conftest.$ac_objext; then
4132 $as_echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 ac_c_werror_flag=$ac_save_c_werror_flag
4137 cat >conftest.$ac_ext <<_ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4152 rm -f conftest.$ac_objext
4153 if { (ac_try="$ac_compile"
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4159 $as_echo "$ac_try_echo") >&5
4160 (eval "$ac_compile") 2>conftest.er1
4162 grep -v '^ *+' conftest.er1 >conftest.err
4164 cat conftest.err >&5
4165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } && {
4167 test -z "$ac_c_werror_flag" ||
4168 test ! -s conftest.err
4169 } && test -s conftest.$ac_objext; then
4172 $as_echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 ac_c_werror_flag=$ac_save_c_werror_flag
4187 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4188 $as_echo "$ac_cv_prog_cc_g" >&6; }
4189 if test "$ac_test_CFLAGS" = set; then
4190 CFLAGS=$ac_save_CFLAGS
4191 elif test $ac_cv_prog_cc_g = yes; then
4192 if test "$GCC" = yes; then
4198 if test "$GCC" = yes; then
4204 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4205 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4206 if test "${ac_cv_prog_cc_c89+set}" = set; then
4207 $as_echo_n "(cached) " >&6
4209 ac_cv_prog_cc_c89=no
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4219 #include <sys/types.h>
4220 #include <sys/stat.h>
4221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4222 struct buf { int x; };
4223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4224 static char *e (p, i)
4230 static char *f (char * (*g) (char **, int), char **p, ...)
4235 s = g (p, va_arg (v,int));
4240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4241 function prototypes and stuff, but not '\xHH' hex character constants.
4242 These don't provoke an error unfortunately, instead are silently treated
4243 as 'x'. The following induces an error, until -std is added to get
4244 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4245 array size at least. It's necessary to write '\x00'==0 to get something
4246 that's true only with -std. */
4247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4250 inside strings and character constants. */
4252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4254 int test (int i, double x);
4255 struct s1 {int (*f) (int a);};
4256 struct s2 {int (*f) (double a);};
4257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4263 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4269 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4271 CC="$ac_save_CC $ac_arg"
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4279 $as_echo "$ac_try_echo") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 } && test -s conftest.$ac_objext; then
4290 ac_cv_prog_cc_c89=$ac_arg
4292 $as_echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4298 rm -f core conftest.err conftest.$ac_objext
4299 test "x$ac_cv_prog_cc_c89" != "xno" && break
4301 rm -f conftest.$ac_ext
4306 case "x$ac_cv_prog_cc_c89" in
4308 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4309 $as_echo "none needed" >&6; } ;;
4311 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4312 $as_echo "unsupported" >&6; } ;;
4314 CC="$CC $ac_cv_prog_cc_c89"
4315 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4316 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 depcc="$CC" am_compiler_list=
4328 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4329 $as_echo_n "checking dependency style of $depcc... " >&6; }
4330 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4331 $as_echo_n "(cached) " >&6
4333 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4334 # We make a subdir and do the tests there. Otherwise we can end up
4335 # making bogus files that we don't know about and never remove. For
4336 # instance it was reported that on HP-UX the gcc test will end up
4337 # making a dummy file named `D' -- because `-MD' means `put the output
4340 # Copy depcomp to subdir because otherwise we won't find it if we're
4341 # using a relative directory.
4342 cp "$am_depcomp" conftest.dir
4344 # We will build objects and dependencies in a subdirectory because
4345 # it helps to detect inapplicable dependency modes. For instance
4346 # both Tru64's cc and ICC support -MD to output dependencies as a
4347 # side effect of compilation, but ICC will put the dependencies in
4348 # the current directory while Tru64 will put them in the object
4352 am_cv_CC_dependencies_compiler_type=none
4353 if test "$am_compiler_list" = ""; then
4354 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4356 for depmode in $am_compiler_list; do
4357 # Setup a source with many dependencies, because some compilers
4358 # like to wrap large dependency lists on column 80 (with \), and
4359 # we should not choose a depcomp mode which is confused by this.
4361 # We need to recreate these files for each test, as the compiler may
4362 # overwrite some of them when testing with obscure command lines.
4363 # This happens at least with the AIX C compiler.
4365 for i in 1 2 3 4 5 6; do
4366 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4367 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4368 # Solaris 8's {/usr,}/bin/sh.
4369 touch sub/conftst$i.h
4371 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4375 # after this tag, mechanisms are not by side-effect, so they'll
4376 # only be used when explicitly requested
4377 if test "x$enable_dependency_tracking" = xyes; then
4385 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4386 # mode. It turns out that the SunPro C++ compiler does not properly
4387 # handle `-M -o', and we need to detect this.
4388 if depmode=$depmode \
4389 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4390 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4391 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4392 >/dev/null 2>conftest.err &&
4393 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4394 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4395 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4396 # icc doesn't choke on unknown options, it will just issue warnings
4397 # or remarks (even with -Werror). So we grep stderr for any message
4398 # that says an option was ignored or not supported.
4399 # When given -MP, icc 7.0 and 7.1 complain thusly:
4400 # icc: Command line warning: ignoring option '-M'; no argument required
4401 # The diagnosis changed in icc 8.0:
4402 # icc: Command line remark: option '-MP' not supported
4403 if (grep 'ignoring option' conftest.err ||
4404 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4405 am_cv_CC_dependencies_compiler_type=$depmode
4414 am_cv_CC_dependencies_compiler_type=none
4418 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4419 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4420 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4425 test "x$enable_dependency_tracking" != xno \
4426 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4428 am__fastdepCC_FALSE='#'
4430 am__fastdepCC_TRUE='#'
4431 am__fastdepCC_FALSE=
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440 if test -n "$ac_tool_prefix"; then
4441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4442 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if test "${ac_cv_prog_CC+set}" = set; then
4446 $as_echo_n "(cached) " >&6
4448 if test -n "$CC"; then
4449 ac_cv_prog_CC="$CC" # Let the user override the test.
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 if test -n "$CC"; then
4470 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4471 $as_echo "$CC" >&6; }
4473 { $as_echo "$as_me:$LINENO: result: no" >&5
4474 $as_echo "no" >&6; }
4479 if test -z "$ac_cv_prog_CC"; then
4481 # Extract the first word of "gcc", so it can be a program name with args.
4482 set dummy gcc; ac_word=$2
4483 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4486 $as_echo_n "(cached) " >&6
4488 if test -n "$ac_ct_CC"; then
4489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_ac_ct_CC="gcc"
4499 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4509 if test -n "$ac_ct_CC"; then
4510 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4511 $as_echo "$ac_ct_CC" >&6; }
4513 { $as_echo "$as_me:$LINENO: result: no" >&5
4514 $as_echo "no" >&6; }
4517 if test "x$ac_ct_CC" = x; then
4520 case $cross_compiling:$ac_tool_warned in
4522 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4523 whose name does not start with the host triplet. If you think this
4524 configuration is useful to you, please write to autoconf@gnu.org." >&5
4525 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4526 whose name does not start with the host triplet. If you think this
4527 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4528 ac_tool_warned=yes ;;
4536 if test -z "$CC"; then
4537 if test -n "$ac_tool_prefix"; then
4538 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4539 set dummy ${ac_tool_prefix}cc; ac_word=$2
4540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_prog_CC+set}" = set; then
4543 $as_echo_n "(cached) " >&6
4545 if test -n "$CC"; then
4546 ac_cv_prog_CC="$CC" # Let the user override the test.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_CC="${ac_tool_prefix}cc"
4556 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 if test -n "$CC"; then
4567 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4568 $as_echo "$CC" >&6; }
4570 { $as_echo "$as_me:$LINENO: result: no" >&5
4571 $as_echo "no" >&6; }
4577 if test -z "$CC"; then
4578 # Extract the first word of "cc", so it can be a program name with args.
4579 set dummy cc; ac_word=$2
4580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if test "${ac_cv_prog_CC+set}" = set; then
4583 $as_echo_n "(cached) " >&6
4585 if test -n "$CC"; then
4586 ac_cv_prog_CC="$CC" # Let the user override the test.
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4597 ac_prog_rejected=yes
4601 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 if test $ac_prog_rejected = yes; then
4609 # We found a bogon in the path, so make sure we never use it.
4610 set dummy $ac_cv_prog_CC
4612 if test $# != 0; then
4613 # We chose a different compiler from the bogus one.
4614 # However, it has the same basename, so the bogon will be chosen
4615 # first if we set CC to just the basename; use the full file name.
4617 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4623 if test -n "$CC"; then
4624 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4625 $as_echo "$CC" >&6; }
4627 { $as_echo "$as_me:$LINENO: result: no" >&5
4628 $as_echo "no" >&6; }
4633 if test -z "$CC"; then
4634 if test -n "$ac_tool_prefix"; then
4635 for ac_prog in cl.exe
4637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if test "${ac_cv_prog_CC+set}" = set; then
4642 $as_echo_n "(cached) " >&6
4644 if test -n "$CC"; then
4645 ac_cv_prog_CC="$CC" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 if test -n "$CC"; then
4666 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4667 $as_echo "$CC" >&6; }
4669 { $as_echo "$as_me:$LINENO: result: no" >&5
4670 $as_echo "no" >&6; }
4674 test -n "$CC" && break
4677 if test -z "$CC"; then
4679 for ac_prog in cl.exe
4681 # Extract the first word of "$ac_prog", so it can be a program name with args.
4682 set dummy $ac_prog; ac_word=$2
4683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4686 $as_echo_n "(cached) " >&6
4688 if test -n "$ac_ct_CC"; then
4689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 ac_cv_prog_ac_ct_CC="$ac_prog"
4699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4709 if test -n "$ac_ct_CC"; then
4710 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4711 $as_echo "$ac_ct_CC" >&6; }
4713 { $as_echo "$as_me:$LINENO: result: no" >&5
4714 $as_echo "no" >&6; }
4718 test -n "$ac_ct_CC" && break
4721 if test "x$ac_ct_CC" = x; then
4724 case $cross_compiling:$ac_tool_warned in
4726 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4727 whose name does not start with the host triplet. If you think this
4728 configuration is useful to you, please write to autoconf@gnu.org." >&5
4729 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4730 whose name does not start with the host triplet. If you think this
4731 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4732 ac_tool_warned=yes ;;
4741 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4742 See \`config.log' for more details." >&5
4743 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4744 See \`config.log' for more details." >&2;}
4745 { (exit 1); exit 1; }; }
4747 # Provide some information about the compiler.
4748 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4751 { (ac_try="$ac_compiler --version >&5"
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4757 $as_echo "$ac_try_echo") >&5
4758 (eval "$ac_compiler --version >&5") 2>&5
4760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }
4762 { (ac_try="$ac_compiler -v >&5"
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4768 $as_echo "$ac_try_echo") >&5
4769 (eval "$ac_compiler -v >&5") 2>&5
4771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }
4773 { (ac_try="$ac_compiler -V >&5"
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4779 $as_echo "$ac_try_echo") >&5
4780 (eval "$ac_compiler -V >&5") 2>&5
4782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }
4785 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4786 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4787 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4788 $as_echo_n "(cached) " >&6
4790 cat >conftest.$ac_ext <<_ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4808 rm -f conftest.$ac_objext
4809 if { (ac_try="$ac_compile"
4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812 *) ac_try_echo=$ac_try;;
4814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4815 $as_echo "$ac_try_echo") >&5
4816 (eval "$ac_compile") 2>conftest.er1
4818 grep -v '^ *+' conftest.er1 >conftest.err
4820 cat conftest.err >&5
4821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } && {
4823 test -z "$ac_c_werror_flag" ||
4824 test ! -s conftest.err
4825 } && test -s conftest.$ac_objext; then
4828 $as_echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4838 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4839 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4840 if test $ac_compiler_gnu = yes; then
4845 ac_test_CFLAGS=${CFLAGS+set}
4846 ac_save_CFLAGS=$CFLAGS
4847 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4848 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4849 if test "${ac_cv_prog_cc_g+set}" = set; then
4850 $as_echo_n "(cached) " >&6
4852 ac_save_c_werror_flag=$ac_c_werror_flag
4853 ac_c_werror_flag=yes
4856 cat >conftest.$ac_ext <<_ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4871 rm -f conftest.$ac_objext
4872 if { (ac_try="$ac_compile"
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4878 $as_echo "$ac_try_echo") >&5
4879 (eval "$ac_compile") 2>conftest.er1
4881 grep -v '^ *+' conftest.er1 >conftest.err
4883 cat conftest.err >&5
4884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } && {
4886 test -z "$ac_c_werror_flag" ||
4887 test ! -s conftest.err
4888 } && test -s conftest.$ac_objext; then
4891 $as_echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4895 cat >conftest.$ac_ext <<_ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4910 rm -f conftest.$ac_objext
4911 if { (ac_try="$ac_compile"
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4917 $as_echo "$ac_try_echo") >&5
4918 (eval "$ac_compile") 2>conftest.er1
4920 grep -v '^ *+' conftest.er1 >conftest.err
4922 cat conftest.err >&5
4923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } && {
4925 test -z "$ac_c_werror_flag" ||
4926 test ! -s conftest.err
4927 } && test -s conftest.$ac_objext; then
4930 $as_echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 ac_c_werror_flag=$ac_save_c_werror_flag
4935 cat >conftest.$ac_ext <<_ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4950 rm -f conftest.$ac_objext
4951 if { (ac_try="$ac_compile"
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4957 $as_echo "$ac_try_echo") >&5
4958 (eval "$ac_compile") 2>conftest.er1
4960 grep -v '^ *+' conftest.er1 >conftest.err
4962 cat conftest.err >&5
4963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } && {
4965 test -z "$ac_c_werror_flag" ||
4966 test ! -s conftest.err
4967 } && test -s conftest.$ac_objext; then
4970 $as_echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 ac_c_werror_flag=$ac_save_c_werror_flag
4985 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4986 $as_echo "$ac_cv_prog_cc_g" >&6; }
4987 if test "$ac_test_CFLAGS" = set; then
4988 CFLAGS=$ac_save_CFLAGS
4989 elif test $ac_cv_prog_cc_g = yes; then
4990 if test "$GCC" = yes; then
4996 if test "$GCC" = yes; then
5002 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5003 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5004 if test "${ac_cv_prog_cc_c89+set}" = set; then
5005 $as_echo_n "(cached) " >&6
5007 ac_cv_prog_cc_c89=no
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5017 #include <sys/types.h>
5018 #include <sys/stat.h>
5019 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5020 struct buf { int x; };
5021 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5022 static char *e (p, i)
5028 static char *f (char * (*g) (char **, int), char **p, ...)
5033 s = g (p, va_arg (v,int));
5038 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5039 function prototypes and stuff, but not '\xHH' hex character constants.
5040 These don't provoke an error unfortunately, instead are silently treated
5041 as 'x'. The following induces an error, until -std is added to get
5042 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5043 array size at least. It's necessary to write '\x00'==0 to get something
5044 that's true only with -std. */
5045 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5047 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5048 inside strings and character constants. */
5050 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5052 int test (int i, double x);
5053 struct s1 {int (*f) (int a);};
5054 struct s2 {int (*f) (double a);};
5055 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5061 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5066 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5067 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5069 CC="$ac_save_CC $ac_arg"
5070 rm -f conftest.$ac_objext
5071 if { (ac_try="$ac_compile"
5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5077 $as_echo "$ac_try_echo") >&5
5078 (eval "$ac_compile") 2>conftest.er1
5080 grep -v '^ *+' conftest.er1 >conftest.err
5082 cat conftest.err >&5
5083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } && {
5085 test -z "$ac_c_werror_flag" ||
5086 test ! -s conftest.err
5087 } && test -s conftest.$ac_objext; then
5088 ac_cv_prog_cc_c89=$ac_arg
5090 $as_echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5096 rm -f core conftest.err conftest.$ac_objext
5097 test "x$ac_cv_prog_cc_c89" != "xno" && break
5099 rm -f conftest.$ac_ext
5104 case "x$ac_cv_prog_cc_c89" in
5106 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5107 $as_echo "none needed" >&6; } ;;
5109 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5110 $as_echo "unsupported" >&6; } ;;
5112 CC="$CC $ac_cv_prog_cc_c89"
5113 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5114 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5119 ac_cpp='$CPP $CPPFLAGS'
5120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5124 depcc="$CC" am_compiler_list=
5126 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5127 $as_echo_n "checking dependency style of $depcc... " >&6; }
5128 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5129 $as_echo_n "(cached) " >&6
5131 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5132 # We make a subdir and do the tests there. Otherwise we can end up
5133 # making bogus files that we don't know about and never remove. For
5134 # instance it was reported that on HP-UX the gcc test will end up
5135 # making a dummy file named `D' -- because `-MD' means `put the output
5138 # Copy depcomp to subdir because otherwise we won't find it if we're
5139 # using a relative directory.
5140 cp "$am_depcomp" conftest.dir
5142 # We will build objects and dependencies in a subdirectory because
5143 # it helps to detect inapplicable dependency modes. For instance
5144 # both Tru64's cc and ICC support -MD to output dependencies as a
5145 # side effect of compilation, but ICC will put the dependencies in
5146 # the current directory while Tru64 will put them in the object
5150 am_cv_CC_dependencies_compiler_type=none
5151 if test "$am_compiler_list" = ""; then
5152 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5154 for depmode in $am_compiler_list; do
5155 # Setup a source with many dependencies, because some compilers
5156 # like to wrap large dependency lists on column 80 (with \), and
5157 # we should not choose a depcomp mode which is confused by this.
5159 # We need to recreate these files for each test, as the compiler may
5160 # overwrite some of them when testing with obscure command lines.
5161 # This happens at least with the AIX C compiler.
5163 for i in 1 2 3 4 5 6; do
5164 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5165 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5166 # Solaris 8's {/usr,}/bin/sh.
5167 touch sub/conftst$i.h
5169 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5173 # after this tag, mechanisms are not by side-effect, so they'll
5174 # only be used when explicitly requested
5175 if test "x$enable_dependency_tracking" = xyes; then
5183 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5184 # mode. It turns out that the SunPro C++ compiler does not properly
5185 # handle `-M -o', and we need to detect this.
5186 if depmode=$depmode \
5187 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5188 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5189 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5190 >/dev/null 2>conftest.err &&
5191 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5192 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5193 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5194 # icc doesn't choke on unknown options, it will just issue warnings
5195 # or remarks (even with -Werror). So we grep stderr for any message
5196 # that says an option was ignored or not supported.
5197 # When given -MP, icc 7.0 and 7.1 complain thusly:
5198 # icc: Command line warning: ignoring option '-M'; no argument required
5199 # The diagnosis changed in icc 8.0:
5200 # icc: Command line remark: option '-MP' not supported
5201 if (grep 'ignoring option' conftest.err ||
5202 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5203 am_cv_CC_dependencies_compiler_type=$depmode
5212 am_cv_CC_dependencies_compiler_type=none
5216 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5217 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5218 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5223 test "x$enable_dependency_tracking" != xno \
5224 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5226 am__fastdepCC_FALSE='#'
5228 am__fastdepCC_TRUE='#'
5229 am__fastdepCC_FALSE=
5234 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5236 # By default we simply use the C compiler to build assembly code.
5238 test "${CCAS+set}" = set || CCAS=$CC
5239 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5244 ac_cpp='$CPP $CPPFLAGS'
5245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5249 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5250 # On Suns, sometimes $CPP names a directory.
5251 if test -n "$CPP" && test -d "$CPP"; then
5254 if test -z "$CPP"; then
5255 if test "${ac_cv_prog_CPP+set}" = set; then
5256 $as_echo_n "(cached) " >&6
5258 # Double quotes because CPP needs to be expanded
5259 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5262 for ac_c_preproc_warn_flag in '' yes
5264 # Use a header file that comes with gcc, so configuring glibc
5265 # with a fresh cross-compiler works.
5266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5267 # <limits.h> exists even on freestanding compilers.
5268 # On the NeXT, cc -E runs the code through the compiler's parser,
5269 # not just through cpp. "Syntax error" is here to catch this case.
5270 cat >conftest.$ac_ext <<_ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5277 # include <limits.h>
5279 # include <assert.h>
5283 if { (ac_try="$ac_cpp conftest.$ac_ext"
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5289 $as_echo "$ac_try_echo") >&5
5290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5292 grep -v '^ *+' conftest.er1 >conftest.err
5294 cat conftest.err >&5
5295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } >/dev/null && {
5297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5298 test ! -s conftest.err
5302 $as_echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5305 # Broken: fails on valid input.
5309 rm -f conftest.err conftest.$ac_ext
5311 # OK, works on sane cases. Now check whether nonexistent headers
5312 # can be detected and how.
5313 cat >conftest.$ac_ext <<_ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 #include <ac_nonexistent.h>
5321 if { (ac_try="$ac_cpp conftest.$ac_ext"
5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324 *) ac_try_echo=$ac_try;;
5326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5327 $as_echo "$ac_try_echo") >&5
5328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5330 grep -v '^ *+' conftest.er1 >conftest.err
5332 cat conftest.err >&5
5333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } >/dev/null && {
5335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5336 test ! -s conftest.err
5338 # Broken: success on invalid input.
5341 $as_echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5344 # Passes both tests.
5349 rm -f conftest.err conftest.$ac_ext
5352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5353 rm -f conftest.err conftest.$ac_ext
5354 if $ac_preproc_ok; then
5366 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5367 $as_echo "$CPP" >&6; }
5369 for ac_c_preproc_warn_flag in '' yes
5371 # Use a header file that comes with gcc, so configuring glibc
5372 # with a fresh cross-compiler works.
5373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5374 # <limits.h> exists even on freestanding compilers.
5375 # On the NeXT, cc -E runs the code through the compiler's parser,
5376 # not just through cpp. "Syntax error" is here to catch this case.
5377 cat >conftest.$ac_ext <<_ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5384 # include <limits.h>
5386 # include <assert.h>
5390 if { (ac_try="$ac_cpp conftest.$ac_ext"
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5396 $as_echo "$ac_try_echo") >&5
5397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5399 grep -v '^ *+' conftest.er1 >conftest.err
5401 cat conftest.err >&5
5402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } >/dev/null && {
5404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5405 test ! -s conftest.err
5409 $as_echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5412 # Broken: fails on valid input.
5416 rm -f conftest.err conftest.$ac_ext
5418 # OK, works on sane cases. Now check whether nonexistent headers
5419 # can be detected and how.
5420 cat >conftest.$ac_ext <<_ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 #include <ac_nonexistent.h>
5428 if { (ac_try="$ac_cpp conftest.$ac_ext"
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5434 $as_echo "$ac_try_echo") >&5
5435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5437 grep -v '^ *+' conftest.er1 >conftest.err
5439 cat conftest.err >&5
5440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } >/dev/null && {
5442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5445 # Broken: success on invalid input.
5448 $as_echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5451 # Passes both tests.
5456 rm -f conftest.err conftest.$ac_ext
5459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5460 rm -f conftest.err conftest.$ac_ext
5461 if $ac_preproc_ok; then
5464 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5465 See \`config.log' for more details." >&5
5466 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5467 See \`config.log' for more details." >&2;}
5468 { (exit 1); exit 1; }; }
5472 ac_cpp='$CPP $CPPFLAGS'
5473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5479 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5480 if test "${ac_cv_path_GREP+set}" = set; then
5481 $as_echo_n "(cached) " >&6
5483 if test -z "$GREP"; then
5484 ac_path_GREP_found=false
5485 # Loop through the user's path and test for each of PROGNAME-LIST
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5490 test -z "$as_dir" && as_dir=.
5491 for ac_prog in grep ggrep; do
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5494 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5495 # Check for GNU ac_path_GREP and select it if it is found.
5496 # Check for GNU $ac_path_GREP
5497 case `"$ac_path_GREP" --version 2>&1` in
5499 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5502 $as_echo_n 0123456789 >"conftest.in"
5505 cat "conftest.in" "conftest.in" >"conftest.tmp"
5506 mv "conftest.tmp" "conftest.in"
5507 cp "conftest.in" "conftest.nl"
5508 $as_echo 'GREP' >> "conftest.nl"
5509 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5511 ac_count=`expr $ac_count + 1`
5512 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5513 # Best one so far, save it but keep looking for a better one
5514 ac_cv_path_GREP="$ac_path_GREP"
5515 ac_path_GREP_max=$ac_count
5517 # 10*(2^10) chars as input seems more than enough
5518 test $ac_count -gt 10 && break
5520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5523 $ac_path_GREP_found && break 3
5528 if test -z "$ac_cv_path_GREP"; then
5529 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5530 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5531 { (exit 1); exit 1; }; }
5534 ac_cv_path_GREP=$GREP
5538 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5539 $as_echo "$ac_cv_path_GREP" >&6; }
5540 GREP="$ac_cv_path_GREP"
5543 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5544 $as_echo_n "checking for egrep... " >&6; }
5545 if test "${ac_cv_path_EGREP+set}" = set; then
5546 $as_echo_n "(cached) " >&6
5548 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5549 then ac_cv_path_EGREP="$GREP -E"
5551 if test -z "$EGREP"; then
5552 ac_path_EGREP_found=false
5553 # Loop through the user's path and test for each of PROGNAME-LIST
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5558 test -z "$as_dir" && as_dir=.
5559 for ac_prog in egrep; do
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5562 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5563 # Check for GNU ac_path_EGREP and select it if it is found.
5564 # Check for GNU $ac_path_EGREP
5565 case `"$ac_path_EGREP" --version 2>&1` in
5567 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5570 $as_echo_n 0123456789 >"conftest.in"
5573 cat "conftest.in" "conftest.in" >"conftest.tmp"
5574 mv "conftest.tmp" "conftest.in"
5575 cp "conftest.in" "conftest.nl"
5576 $as_echo 'EGREP' >> "conftest.nl"
5577 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5579 ac_count=`expr $ac_count + 1`
5580 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5581 # Best one so far, save it but keep looking for a better one
5582 ac_cv_path_EGREP="$ac_path_EGREP"
5583 ac_path_EGREP_max=$ac_count
5585 # 10*(2^10) chars as input seems more than enough
5586 test $ac_count -gt 10 && break
5588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5591 $ac_path_EGREP_found && break 3
5596 if test -z "$ac_cv_path_EGREP"; then
5597 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5598 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5599 { (exit 1); exit 1; }; }
5602 ac_cv_path_EGREP=$EGREP
5607 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5608 $as_echo "$ac_cv_path_EGREP" >&6; }
5609 EGREP="$ac_cv_path_EGREP"
5612 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5613 $as_echo_n "checking for ANSI C header files... " >&6; }
5614 if test "${ac_cv_header_stdc+set}" = set; then
5615 $as_echo_n "(cached) " >&6
5617 cat >conftest.$ac_ext <<_ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5636 rm -f conftest.$ac_objext
5637 if { (ac_try="$ac_compile"
5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5643 $as_echo "$ac_try_echo") >&5
5644 (eval "$ac_compile") 2>conftest.er1
5646 grep -v '^ *+' conftest.er1 >conftest.err
5648 cat conftest.err >&5
5649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } && {
5651 test -z "$ac_c_werror_flag" ||
5652 test ! -s conftest.err
5653 } && test -s conftest.$ac_objext; then
5654 ac_cv_header_stdc=yes
5656 $as_echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5659 ac_cv_header_stdc=no
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664 if test $ac_cv_header_stdc = yes; then
5665 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5676 $EGREP "memchr" >/dev/null 2>&1; then
5679 ac_cv_header_stdc=no
5685 if test $ac_cv_header_stdc = yes; then
5686 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5687 cat >conftest.$ac_ext <<_ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5697 $EGREP "free" >/dev/null 2>&1; then
5700 ac_cv_header_stdc=no
5706 if test $ac_cv_header_stdc = yes; then
5707 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5708 if test "$cross_compiling" = yes; then
5711 cat >conftest.$ac_ext <<_ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5719 #if ((' ' & 0x0FF) == 0x020)
5720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5723 # define ISLOWER(c) \
5724 (('a' <= (c) && (c) <= 'i') \
5725 || ('j' <= (c) && (c) <= 'r') \
5726 || ('s' <= (c) && (c) <= 'z'))
5727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5735 for (i = 0; i < 256; i++)
5736 if (XOR (islower (i), ISLOWER (i))
5737 || toupper (i) != TOUPPER (i))
5742 rm -f conftest$ac_exeext
5743 if { (ac_try="$ac_link"
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5749 $as_echo "$ac_try_echo") >&5
5750 (eval "$ac_link") 2>&5
5752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5754 { (case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5759 $as_echo "$ac_try_echo") >&5
5760 (eval "$ac_try") 2>&5
5762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5766 $as_echo "$as_me: program exited with status $ac_status" >&5
5767 $as_echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5771 ac_cv_header_stdc=no
5773 rm -rf conftest.dSYM
5774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5780 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5781 $as_echo "$ac_cv_header_stdc" >&6; }
5782 if test $ac_cv_header_stdc = yes; then
5784 cat >>confdefs.h <<\_ACEOF
5785 #define STDC_HEADERS 1
5790 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5800 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5801 inttypes.h stdint.h unistd.h
5803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5804 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5805 $as_echo_n "checking for $ac_header... " >&6; }
5806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5807 $as_echo_n "(cached) " >&6
5809 cat >conftest.$ac_ext <<_ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 $ac_includes_default
5817 #include <$ac_header>
5819 rm -f conftest.$ac_objext
5820 if { (ac_try="$ac_compile"
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5826 $as_echo "$ac_try_echo") >&5
5827 (eval "$ac_compile") 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } && {
5834 test -z "$ac_c_werror_flag" ||
5835 test ! -s conftest.err
5836 } && test -s conftest.$ac_objext; then
5837 eval "$as_ac_Header=yes"
5839 $as_echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 eval "$as_ac_Header=no"
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5847 ac_res=`eval 'as_val=${'$as_ac_Header'}
5848 $as_echo "$as_val"'`
5849 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5850 $as_echo "$ac_res" >&6; }
5851 if test `eval 'as_val=${'$as_ac_Header'}
5852 $as_echo "$as_val"'` = yes; then
5853 cat >>confdefs.h <<_ACEOF
5854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5862 # The cast to long int works around a bug in the HP C Compiler
5863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5865 # This bug is HP SR number 8606223364.
5866 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
5867 $as_echo_n "checking size of void *... " >&6; }
5868 if test "${ac_cv_sizeof_void_p+set}" = set; then
5869 $as_echo_n "(cached) " >&6
5871 if test "$cross_compiling" = yes; then
5872 # Depending upon the size, compute the lo and hi bounds.
5873 cat >conftest.$ac_ext <<_ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5879 $ac_includes_default
5883 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
5890 rm -f conftest.$ac_objext
5891 if { (ac_try="$ac_compile"
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5897 $as_echo "$ac_try_echo") >&5
5898 (eval "$ac_compile") 2>conftest.er1
5900 grep -v '^ *+' conftest.er1 >conftest.err
5902 cat conftest.err >&5
5903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && {
5905 test -z "$ac_c_werror_flag" ||
5906 test ! -s conftest.err
5907 } && test -s conftest.$ac_objext; then
5910 cat >conftest.$ac_ext <<_ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 $ac_includes_default
5920 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
5927 rm -f conftest.$ac_objext
5928 if { (ac_try="$ac_compile"
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5934 $as_echo "$ac_try_echo") >&5
5935 (eval "$ac_compile") 2>conftest.er1
5937 grep -v '^ *+' conftest.er1 >conftest.err
5939 cat conftest.err >&5
5940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && {
5942 test -z "$ac_c_werror_flag" ||
5943 test ! -s conftest.err
5944 } && test -s conftest.$ac_objext; then
5945 ac_hi=$ac_mid; break
5947 $as_echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5950 ac_lo=`expr $ac_mid + 1`
5951 if test $ac_lo -le $ac_mid; then
5955 ac_mid=`expr 2 '*' $ac_mid + 1`
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961 $as_echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5964 cat >conftest.$ac_ext <<_ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5970 $ac_includes_default
5974 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
5981 rm -f conftest.$ac_objext
5982 if { (ac_try="$ac_compile"
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5988 $as_echo "$ac_try_echo") >&5
5989 (eval "$ac_compile") 2>conftest.er1
5991 grep -v '^ *+' conftest.er1 >conftest.err
5993 cat conftest.err >&5
5994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && {
5996 test -z "$ac_c_werror_flag" ||
5997 test ! -s conftest.err
5998 } && test -s conftest.$ac_objext; then
6001 cat >conftest.$ac_ext <<_ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 $ac_includes_default
6011 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6018 rm -f conftest.$ac_objext
6019 if { (ac_try="$ac_compile"
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6025 $as_echo "$ac_try_echo") >&5
6026 (eval "$ac_compile") 2>conftest.er1
6028 grep -v '^ *+' conftest.er1 >conftest.err
6030 cat conftest.err >&5
6031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } && {
6033 test -z "$ac_c_werror_flag" ||
6034 test ! -s conftest.err
6035 } && test -s conftest.$ac_objext; then
6036 ac_lo=$ac_mid; break
6038 $as_echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6041 ac_hi=`expr '(' $ac_mid ')' - 1`
6042 if test $ac_mid -le $ac_hi; then
6046 ac_mid=`expr 2 '*' $ac_mid`
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 $as_echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 # Binary search between lo and hi bounds.
6063 while test "x$ac_lo" != "x$ac_hi"; do
6064 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6065 cat >conftest.$ac_ext <<_ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 $ac_includes_default
6075 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6082 rm -f conftest.$ac_objext
6083 if { (ac_try="$ac_compile"
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6089 $as_echo "$ac_try_echo") >&5
6090 (eval "$ac_compile") 2>conftest.er1
6092 grep -v '^ *+' conftest.er1 >conftest.err
6094 cat conftest.err >&5
6095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } && {
6097 test -z "$ac_c_werror_flag" ||
6098 test ! -s conftest.err
6099 } && test -s conftest.$ac_objext; then
6102 $as_echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6105 ac_lo=`expr '(' $ac_mid ')' + 1`
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6112 '') if test "$ac_cv_type_void_p" = yes; then
6113 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6114 See \`config.log' for more details." >&5
6115 $as_echo "$as_me: error: cannot compute sizeof (void *)
6116 See \`config.log' for more details." >&2;}
6117 { (exit 77); exit 77; }; }
6119 ac_cv_sizeof_void_p=0
6123 cat >conftest.$ac_ext <<_ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 $ac_includes_default
6130 static long int longval () { return (long int) (sizeof (void *)); }
6131 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6138 FILE *f = fopen ("conftest.val", "w");
6141 if (((long int) (sizeof (void *))) < 0)
6143 long int i = longval ();
6144 if (i != ((long int) (sizeof (void *))))
6146 fprintf (f, "%ld", i);
6150 unsigned long int i = ulongval ();
6151 if (i != ((long int) (sizeof (void *))))
6153 fprintf (f, "%lu", i);
6155 /* Do not output a trailing newline, as this causes \r\n confusion
6156 on some platforms. */
6157 return ferror (f) || fclose (f) != 0;
6163 rm -f conftest$ac_exeext
6164 if { (ac_try="$ac_link"
6166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167 *) ac_try_echo=$ac_try;;
6169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6170 $as_echo "$ac_try_echo") >&5
6171 (eval "$ac_link") 2>&5
6173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6175 { (case "(($ac_try" in
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6180 $as_echo "$ac_try_echo") >&5
6181 (eval "$ac_try") 2>&5
6183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_sizeof_void_p=`cat conftest.val`
6187 $as_echo "$as_me: program exited with status $ac_status" >&5
6188 $as_echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6192 if test "$ac_cv_type_void_p" = yes; then
6193 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6194 See \`config.log' for more details." >&5
6195 $as_echo "$as_me: error: cannot compute sizeof (void *)
6196 See \`config.log' for more details." >&2;}
6197 { (exit 77); exit 77; }; }
6199 ac_cv_sizeof_void_p=0
6202 rm -rf conftest.dSYM
6203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6207 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6208 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6212 cat >>confdefs.h <<_ACEOF
6213 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6217 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6218 $as_echo_n "checking for ANSI C header files... " >&6; }
6219 if test "${ac_cv_header_stdc+set}" = set; then
6220 $as_echo_n "(cached) " >&6
6222 cat >conftest.$ac_ext <<_ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6241 rm -f conftest.$ac_objext
6242 if { (ac_try="$ac_compile"
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6248 $as_echo "$ac_try_echo") >&5
6249 (eval "$ac_compile") 2>conftest.er1
6251 grep -v '^ *+' conftest.er1 >conftest.err
6253 cat conftest.err >&5
6254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } && {
6256 test -z "$ac_c_werror_flag" ||
6257 test ! -s conftest.err
6258 } && test -s conftest.$ac_objext; then
6259 ac_cv_header_stdc=yes
6261 $as_echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 ac_cv_header_stdc=no
6267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 if test $ac_cv_header_stdc = yes; then
6270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6271 cat >conftest.$ac_ext <<_ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6281 $EGREP "memchr" >/dev/null 2>&1; then
6284 ac_cv_header_stdc=no
6290 if test $ac_cv_header_stdc = yes; then
6291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6302 $EGREP "free" >/dev/null 2>&1; then
6305 ac_cv_header_stdc=no
6311 if test $ac_cv_header_stdc = yes; then
6312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6313 if test "$cross_compiling" = yes; then
6316 cat >conftest.$ac_ext <<_ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6324 #if ((' ' & 0x0FF) == 0x020)
6325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6328 # define ISLOWER(c) \
6329 (('a' <= (c) && (c) <= 'i') \
6330 || ('j' <= (c) && (c) <= 'r') \
6331 || ('s' <= (c) && (c) <= 'z'))
6332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6340 for (i = 0; i < 256; i++)
6341 if (XOR (islower (i), ISLOWER (i))
6342 || toupper (i) != TOUPPER (i))
6347 rm -f conftest$ac_exeext
6348 if { (ac_try="$ac_link"
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6354 $as_echo "$ac_try_echo") >&5
6355 (eval "$ac_link") 2>&5
6357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6359 { (case "(($ac_try" in
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6364 $as_echo "$ac_try_echo") >&5
6365 (eval "$ac_try") 2>&5
6367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
6371 $as_echo "$as_me: program exited with status $ac_status" >&5
6372 $as_echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6376 ac_cv_header_stdc=no
6378 rm -rf conftest.dSYM
6379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6385 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6386 $as_echo "$ac_cv_header_stdc" >&6; }
6387 if test $ac_cv_header_stdc = yes; then
6389 cat >>confdefs.h <<\_ACEOF
6390 #define STDC_HEADERS 1
6395 # Make sure we can run config.sub.
6396 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6397 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6398 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6399 { (exit 1); exit 1; }; }
6401 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6402 $as_echo_n "checking build system type... " >&6; }
6403 if test "${ac_cv_build+set}" = set; then
6404 $as_echo_n "(cached) " >&6
6406 ac_build_alias=$build_alias
6407 test "x$ac_build_alias" = x &&
6408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6409 test "x$ac_build_alias" = x &&
6410 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6411 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6412 { (exit 1); exit 1; }; }
6413 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6414 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6415 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6416 { (exit 1); exit 1; }; }
6419 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6420 $as_echo "$ac_cv_build" >&6; }
6421 case $ac_cv_build in
6423 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6424 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6425 { (exit 1); exit 1; }; };;
6428 ac_save_IFS=$IFS; IFS='-'
6434 # Remember, the first character of IFS is used to create $*,
6435 # except with old shells:
6438 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6441 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6442 $as_echo_n "checking host system type... " >&6; }
6443 if test "${ac_cv_host+set}" = set; then
6444 $as_echo_n "(cached) " >&6
6446 if test "x$host_alias" = x; then
6447 ac_cv_host=$ac_cv_build
6449 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6450 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6451 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6452 { (exit 1); exit 1; }; }
6456 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6457 $as_echo "$ac_cv_host" >&6; }
6460 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6461 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6462 { (exit 1); exit 1; }; };;
6465 ac_save_IFS=$IFS; IFS='-'
6471 # Remember, the first character of IFS is used to create $*,
6472 # except with old shells:
6475 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6479 # Extract the first word of "pod2man", so it can be a program name with args.
6480 set dummy pod2man; ac_word=$2
6481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_path_POD2MAN+set}" = set; then
6484 $as_echo_n "(cached) " >&6
6488 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
6499 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 POD2MAN=$ac_cv_path_POD2MAN
6510 if test -n "$POD2MAN"; then
6511 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
6512 $as_echo "$POD2MAN" >&6; }
6514 { $as_echo "$as_me:$LINENO: result: no" >&5
6515 $as_echo "no" >&6; }
6519 # Extract the first word of "pod2html", so it can be a program name with args.
6520 set dummy pod2html; ac_word=$2
6521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if test "${ac_cv_path_POD2HTML+set}" = set; then
6524 $as_echo_n "(cached) " >&6
6528 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
6539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 POD2HTML=$ac_cv_path_POD2HTML
6550 if test -n "$POD2HTML"; then
6551 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
6552 $as_echo "$POD2HTML" >&6; }
6554 { $as_echo "$as_me:$LINENO: result: no" >&5
6555 $as_echo "no" >&6; }
6561 # Check whether --enable-strict-warn was given.
6562 if test "${enable_strict_warn+set}" = set; then
6563 enableval=$enable_strict_warn; CFLAGS="$CFLAGS -Werror -Wall -Wno-unused"
6566 # Check whether --enable-translator was given.
6567 if test "${enable_translator+set}" = set; then
6568 enableval=$enable_translator; true
6570 enable_translator=yes
6573 # Check whether --enable-optimized was given.
6574 if test "${enable_optimized+set}" = set; then
6575 enableval=$enable_optimized; true
6577 enable_optimized=yes
6580 # Check whether --enable-profiled was given.
6581 if test "${enable_profiled+set}" = set; then
6582 enableval=$enable_profiled; if test "$enableval" == "yes"; then
6583 enable_profiled=yes;
6587 # Check whether --enable-trace was given.
6588 if test "${enable_trace+set}" = set; then
6589 enableval=$enable_trace; if test "$enableval" == "yes"; then
6591 cat >>confdefs.h <<\_ACEOF
6592 #define ENABLE_TRACE_IO 1
6598 # Check whether --enable-watch was given.
6599 if test "${enable_watch+set}" = set; then
6600 enableval=$enable_watch; if test "$enableval" == "yes"; then
6602 cat >>confdefs.h <<\_ACEOF
6603 #define ENABLE_WATCH 1
6609 # Check whether --enable-sh4stats was given.
6610 if test "${enable_sh4stats+set}" = set; then
6611 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
6613 cat >>confdefs.h <<\_ACEOF
6614 #define ENABLE_SH4STATS 1
6621 # Check whether --with-osmesa was given.
6622 if test "${with_osmesa+set}" = set; then
6623 withval=$with_osmesa;
6629 # Check whether --with-gtk was given.
6630 if test "${with_gtk+set}" = set; then
6631 withval=$with_gtk; with_gtk=yes
6637 # Check whether --with-esd was given.
6638 if test "${with_esd+set}" = set; then
6643 # Check whether --with-pulse was given.
6644 if test "${with_pulse+set}" = set; then
6645 withval=$with_pulse;
6650 if test "x$enable_profiled" = "xyes"; then
6651 CFLAGS="-g -pg -fprofile-arcs"
6652 LDFLAGS="$LDFLAGS -pg";
6653 elif test "x$enable_optimized" = "xyes"; then
6654 CFLAGS="-g -O2 -fexceptions -fomit-frame-pointer"
6656 cat >>confdefs.h <<\_ACEOF
6657 #define HAVE_EXCEPTIONS 1
6661 cat >>confdefs.h <<\_ACEOF
6662 #define HAVE_FASTCALL 1
6669 if test "x$GCC" = "xyes"; then
6670 CFLAGS="$CFLAGS -fno-strict-aliasing"
6675 lxdream_save_cppflags="$CPPFLAGS"
6676 CPPFLAGS="$CPPFLAGS -x objective-c"
6677 cat >conftest.$ac_ext <<_ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6692 rm -f conftest.$ac_objext
6693 if { (ac_try="$ac_compile"
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6699 $as_echo "$ac_try_echo") >&5
6700 (eval "$ac_compile") 2>conftest.er1
6702 grep -v '^ *+' conftest.er1 >conftest.err
6704 cat conftest.err >&5
6705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && {
6707 test -z "$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 } && test -s conftest.$ac_objext; then
6712 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6713 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6714 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6715 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6716 $as_echo_n "(cached) " >&6
6718 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6719 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6721 # Is the header compilable?
6722 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
6723 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
6724 cat >conftest.$ac_ext <<_ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 $ac_includes_default
6731 #include <Cocoa/Cocoa.h>
6733 rm -f conftest.$ac_objext
6734 if { (ac_try="$ac_compile"
6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737 *) ac_try_echo=$ac_try;;
6739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6740 $as_echo "$ac_try_echo") >&5
6741 (eval "$ac_compile") 2>conftest.er1
6743 grep -v '^ *+' conftest.er1 >conftest.err
6745 cat conftest.err >&5
6746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } && {
6748 test -z "$ac_c_werror_flag" ||
6749 test ! -s conftest.err
6750 } && test -s conftest.$ac_objext; then
6751 ac_header_compiler=yes
6753 $as_echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6756 ac_header_compiler=no
6759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6761 $as_echo "$ac_header_compiler" >&6; }
6763 # Is the header present?
6764 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
6765 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
6766 cat >conftest.$ac_ext <<_ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6772 #include <Cocoa/Cocoa.h>
6774 if { (ac_try="$ac_cpp conftest.$ac_ext"
6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777 *) ac_try_echo=$ac_try;;
6779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6780 $as_echo "$ac_try_echo") >&5
6781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6783 grep -v '^ *+' conftest.er1 >conftest.err
6785 cat conftest.err >&5
6786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } >/dev/null && {
6788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6789 test ! -s conftest.err
6791 ac_header_preproc=yes
6793 $as_echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6796 ac_header_preproc=no
6799 rm -f conftest.err conftest.$ac_ext
6800 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6801 $as_echo "$ac_header_preproc" >&6; }
6803 # So? What about this header?
6804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6806 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6807 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6808 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
6809 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
6810 ac_header_preproc=yes
6813 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
6814 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
6815 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
6816 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
6817 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
6818 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
6819 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
6820 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6821 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
6822 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
6823 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
6824 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
6828 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6829 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6830 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6831 $as_echo_n "(cached) " >&6
6833 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
6835 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6836 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6839 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
6843 LIBS="$LIBS -framework AppKit"
6844 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"
6845 CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
6846 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
6848 cat >>confdefs.h <<\_ACEOF
6849 #define HAVE_COCOA 1
6853 cat >>confdefs.h <<\_ACEOF
6854 #define APPLE_BUILD 1
6857 if test "x$with_gtk" = "xx11"; then
6867 $as_echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6870 CPPFLAGS="$lxdream_save_cppflags"
6873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
6884 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
6886 cat >>confdefs.h <<\_ACEOF
6887 #define OSX_BUNDLE 1
6894 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6895 if test -n "$ac_tool_prefix"; then
6896 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6897 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6898 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6901 $as_echo_n "(cached) " >&6
6905 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6916 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6927 if test -n "$PKG_CONFIG"; then
6928 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6929 $as_echo "$PKG_CONFIG" >&6; }
6931 { $as_echo "$as_me:$LINENO: result: no" >&5
6932 $as_echo "no" >&6; }
6937 if test -z "$ac_cv_path_PKG_CONFIG"; then
6938 ac_pt_PKG_CONFIG=$PKG_CONFIG
6939 # Extract the first word of "pkg-config", so it can be a program name with args.
6940 set dummy pkg-config; ac_word=$2
6941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6944 $as_echo_n "(cached) " >&6
6946 case $ac_pt_PKG_CONFIG in
6948 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6970 if test -n "$ac_pt_PKG_CONFIG"; then
6971 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6972 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6974 { $as_echo "$as_me:$LINENO: result: no" >&5
6975 $as_echo "no" >&6; }
6978 if test "x$ac_pt_PKG_CONFIG" = x; then
6981 case $cross_compiling:$ac_tool_warned in
6983 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6984 whose name does not start with the host triplet. If you think this
6985 configuration is useful to you, please write to autoconf@gnu.org." >&5
6986 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6987 whose name does not start with the host triplet. If you think this
6988 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6989 ac_tool_warned=yes ;;
6991 PKG_CONFIG=$ac_pt_PKG_CONFIG
6994 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6998 if test -n "$PKG_CONFIG"; then
6999 _pkg_min_version=0.9.0
7000 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7001 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7002 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7003 { $as_echo "$as_me:$LINENO: result: yes" >&5
7004 $as_echo "yes" >&6; }
7006 { $as_echo "$as_me:$LINENO: result: no" >&5
7007 $as_echo "no" >&6; }
7014 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
7015 $as_echo_n "checking for LIBPNG... " >&6; }
7017 if test -n "$PKG_CONFIG"; then
7018 if test -n "$LIBPNG_CFLAGS"; then
7019 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
7021 if test -n "$PKG_CONFIG" && \
7022 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
7023 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
7025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; then
7027 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
7035 if test -n "$PKG_CONFIG"; then
7036 if test -n "$LIBPNG_LIBS"; then
7037 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
7039 if test -n "$PKG_CONFIG" && \
7040 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
7041 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
7043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; then
7045 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
7056 if test $pkg_failed = yes; then
7058 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7059 _pkg_short_errors_supported=yes
7061 _pkg_short_errors_supported=no
7063 if test $_pkg_short_errors_supported = yes; then
7064 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
7066 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
7068 # Put the nasty error message in config.log where it belongs
7069 echo "$LIBPNG_PKG_ERRORS" >&5
7071 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
7075 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7076 installed software in a non-standard prefix.
7078 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7079 and LIBPNG_LIBS to avoid the need to call pkg-config.
7080 See the pkg-config man page for more details.
7082 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
7086 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7087 installed software in a non-standard prefix.
7089 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7090 and LIBPNG_LIBS to avoid the need to call pkg-config.
7091 See the pkg-config man page for more details.
7093 { (exit 1); exit 1; }; }
7094 elif test $pkg_failed = untried; then
7095 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7096 is in your PATH or set the PKG_CONFIG environment variable to the full
7099 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7100 and LIBPNG_LIBS to avoid the need to call pkg-config.
7101 See the pkg-config man page for more details.
7103 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7104 See \`config.log' for more details." >&5
7105 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7106 is in your PATH or set the PKG_CONFIG environment variable to the full
7109 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7110 and LIBPNG_LIBS to avoid the need to call pkg-config.
7111 See the pkg-config man page for more details.
7113 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7114 See \`config.log' for more details." >&2;}
7115 { (exit 1); exit 1; }; }
7117 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
7118 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
7119 { $as_echo "$as_me:$LINENO: result: yes" >&5
7120 $as_echo "yes" >&6; }
7125 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
7126 $as_echo_n "checking for uncompress in -lz... " >&6; }
7127 if test "${ac_cv_lib_z_uncompress+set}" = set; then
7128 $as_echo_n "(cached) " >&6
7130 ac_check_lib_save_LIBS=$LIBS
7132 cat >conftest.$ac_ext <<_ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7139 /* Override any GCC internal prototype to avoid an error.
7140 Use char because int might match the return type of a GCC
7141 builtin and then its argument prototype would still apply. */
7149 return uncompress ();
7154 rm -f conftest.$ac_objext conftest$ac_exeext
7155 if { (ac_try="$ac_link"
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7161 $as_echo "$ac_try_echo") >&5
7162 (eval "$ac_link") 2>conftest.er1
7164 grep -v '^ *+' conftest.er1 >conftest.err
7166 cat conftest.err >&5
7167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } && {
7169 test -z "$ac_c_werror_flag" ||
7170 test ! -s conftest.err
7171 } && test -s conftest$ac_exeext && {
7172 test "$cross_compiling" = yes ||
7173 $as_test_x conftest$ac_exeext
7175 ac_cv_lib_z_uncompress=yes
7177 $as_echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7180 ac_cv_lib_z_uncompress=no
7183 rm -rf conftest.dSYM
7184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7185 conftest$ac_exeext conftest.$ac_ext
7186 LIBS=$ac_check_lib_save_LIBS
7188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
7189 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
7190 if test $ac_cv_lib_z_uncompress = yes; then
7191 cat >>confdefs.h <<_ACEOF
7199 echo "Zlib (libz.so) could not be found, but is required."
7204 if test "x$with_gtk" = "xno"; then
7207 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
7208 $as_echo_n "checking for GLIB... " >&6; }
7210 if test -n "$PKG_CONFIG"; then
7211 if test -n "$GLIB_CFLAGS"; then
7212 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
7214 if test -n "$PKG_CONFIG" && \
7215 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7216 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; then
7220 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
7228 if test -n "$PKG_CONFIG"; then
7229 if test -n "$GLIB_LIBS"; then
7230 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
7232 if test -n "$PKG_CONFIG" && \
7233 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7234 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; then
7238 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
7249 if test $pkg_failed = yes; then
7251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7252 _pkg_short_errors_supported=yes
7254 _pkg_short_errors_supported=no
7256 if test $_pkg_short_errors_supported = yes; then
7257 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
7259 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
7261 # Put the nasty error message in config.log where it belongs
7262 echo "$GLIB_PKG_ERRORS" >&5
7264 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
7268 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7269 installed software in a non-standard prefix.
7271 Alternatively, you may set the environment variables GLIB_CFLAGS
7272 and GLIB_LIBS to avoid the need to call pkg-config.
7273 See the pkg-config man page for more details.
7275 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
7279 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7280 installed software in a non-standard prefix.
7282 Alternatively, you may set the environment variables GLIB_CFLAGS
7283 and GLIB_LIBS to avoid the need to call pkg-config.
7284 See the pkg-config man page for more details.
7286 { (exit 1); exit 1; }; }
7287 elif test $pkg_failed = untried; then
7288 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7289 is in your PATH or set the PKG_CONFIG environment variable to the full
7292 Alternatively, you may set the environment variables GLIB_CFLAGS
7293 and GLIB_LIBS to avoid the need to call pkg-config.
7294 See the pkg-config man page for more details.
7296 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7297 See \`config.log' for more details." >&5
7298 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7299 is in your PATH or set the PKG_CONFIG environment variable to the full
7302 Alternatively, you may set the environment variables GLIB_CFLAGS
7303 and GLIB_LIBS to avoid the need to call pkg-config.
7304 See the pkg-config man page for more details.
7306 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7307 See \`config.log' for more details." >&2;}
7308 { (exit 1); exit 1; }; }
7310 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
7311 GLIB_LIBS=$pkg_cv_GLIB_LIBS
7312 { $as_echo "$as_me:$LINENO: result: yes" >&5
7313 $as_echo "yes" >&6; }
7319 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
7320 $as_echo_n "checking for GTK... " >&6; }
7322 if test -n "$PKG_CONFIG"; then
7323 if test -n "$GTK_CFLAGS"; then
7324 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7326 if test -n "$PKG_CONFIG" && \
7327 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7328 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; then
7332 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
7340 if test -n "$PKG_CONFIG"; then
7341 if test -n "$GTK_LIBS"; then
7342 pkg_cv_GTK_LIBS="$GTK_LIBS"
7344 if test -n "$PKG_CONFIG" && \
7345 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7346 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; then
7350 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
7361 if test $pkg_failed = yes; then
7363 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7364 _pkg_short_errors_supported=yes
7366 _pkg_short_errors_supported=no
7368 if test $_pkg_short_errors_supported = yes; then
7369 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
7371 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
7373 # Put the nasty error message in config.log where it belongs
7374 echo "$GTK_PKG_ERRORS" >&5
7376 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
7380 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7381 installed software in a non-standard prefix.
7383 Alternatively, you may set the environment variables GTK_CFLAGS
7384 and GTK_LIBS to avoid the need to call pkg-config.
7385 See the pkg-config man page for more details.
7387 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
7391 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7392 installed software in a non-standard prefix.
7394 Alternatively, you may set the environment variables GTK_CFLAGS
7395 and GTK_LIBS to avoid the need to call pkg-config.
7396 See the pkg-config man page for more details.
7398 { (exit 1); exit 1; }; }
7399 elif test $pkg_failed = untried; then
7400 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7401 is in your PATH or set the PKG_CONFIG environment variable to the full
7404 Alternatively, you may set the environment variables GTK_CFLAGS
7405 and GTK_LIBS to avoid the need to call pkg-config.
7406 See the pkg-config man page for more details.
7408 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7409 See \`config.log' for more details." >&5
7410 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7411 is in your PATH or set the PKG_CONFIG environment variable to the full
7414 Alternatively, you may set the environment variables GTK_CFLAGS
7415 and GTK_LIBS to avoid the need to call pkg-config.
7416 See the pkg-config man page for more details.
7418 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7419 See \`config.log' for more details." >&2;}
7420 { (exit 1); exit 1; }; }
7422 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7423 GTK_LIBS=$pkg_cv_GTK_LIBS
7424 { $as_echo "$as_me:$LINENO: result: yes" >&5
7425 $as_echo "yes" >&6; }
7429 cat >>confdefs.h <<\_ACEOF
7436 LIBS="$LIBS $GTK_LIBS"
7437 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
7438 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
7439 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
7440 $as_echo_n "(cached) " >&6
7442 cat >conftest.$ac_ext <<_ACEOF
7445 cat confdefs.h >>conftest.$ac_ext
7446 cat >>conftest.$ac_ext <<_ACEOF
7447 /* end confdefs.h. */
7448 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
7449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7450 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
7452 /* System header to define __stub macros and hopefully few prototypes,
7453 which can conflict with char gdk_x11_display_get_xdisplay (); below.
7454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7455 <limits.h> exists even on freestanding compilers. */
7458 # include <limits.h>
7460 # include <assert.h>
7463 #undef gdk_x11_display_get_xdisplay
7465 /* Override any GCC internal prototype to avoid an error.
7466 Use char because int might match the return type of a GCC
7467 builtin and then its argument prototype would still apply. */
7471 char gdk_x11_display_get_xdisplay ();
7472 /* The GNU C library defines this for functions which it implements
7473 to always fail with ENOSYS. Some functions are actually named
7474 something starting with __ and the normal name is an alias. */
7475 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
7482 return gdk_x11_display_get_xdisplay ();
7487 rm -f conftest.$ac_objext conftest$ac_exeext
7488 if { (ac_try="$ac_link"
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7494 $as_echo "$ac_try_echo") >&5
7495 (eval "$ac_link") 2>conftest.er1
7497 grep -v '^ *+' conftest.er1 >conftest.err
7499 cat conftest.err >&5
7500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest$ac_exeext && {
7505 test "$cross_compiling" = yes ||
7506 $as_test_x conftest$ac_exeext
7508 ac_cv_func_gdk_x11_display_get_xdisplay=yes
7510 $as_echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513 ac_cv_func_gdk_x11_display_get_xdisplay=no
7516 rm -rf conftest.dSYM
7517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7518 conftest$ac_exeext conftest.$ac_ext
7520 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
7521 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
7522 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
7526 cat >>confdefs.h <<\_ACEOF
7527 #define HAVE_GTK_X11 1
7532 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
7533 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
7534 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
7535 $as_echo_n "(cached) " >&6
7537 cat >conftest.$ac_ext <<_ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
7544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7545 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
7547 /* System header to define __stub macros and hopefully few prototypes,
7548 which can conflict with char gdk_quartz_window_get_nsview (); below.
7549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7550 <limits.h> exists even on freestanding compilers. */
7553 # include <limits.h>
7555 # include <assert.h>
7558 #undef gdk_quartz_window_get_nsview
7560 /* Override any GCC internal prototype to avoid an error.
7561 Use char because int might match the return type of a GCC
7562 builtin and then its argument prototype would still apply. */
7566 char gdk_quartz_window_get_nsview ();
7567 /* The GNU C library defines this for functions which it implements
7568 to always fail with ENOSYS. Some functions are actually named
7569 something starting with __ and the normal name is an alias. */
7570 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
7577 return gdk_quartz_window_get_nsview ();
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (ac_try="$ac_link"
7585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7589 $as_echo "$ac_try_echo") >&5
7590 (eval "$ac_link") 2>conftest.er1
7592 grep -v '^ *+' conftest.er1 >conftest.err
7594 cat conftest.err >&5
7595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest$ac_exeext && {
7600 test "$cross_compiling" = yes ||
7601 $as_test_x conftest$ac_exeext
7603 ac_cv_func_gdk_quartz_window_get_nsview=yes
7605 $as_echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7608 ac_cv_func_gdk_quartz_window_get_nsview=no
7611 rm -rf conftest.dSYM
7612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7613 conftest$ac_exeext conftest.$ac_ext
7615 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
7616 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
7617 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
7621 cat >>confdefs.h <<\_ACEOF
7622 #define HAVE_GTK_OSX 1
7631 if test "$HAVE_GTK" = 'yes'; then
7640 if test "x$with_osmesa" != xno; then
7644 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
7645 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
7646 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
7647 $as_echo_n "(cached) " >&6
7649 ac_check_lib_save_LIBS=$LIBS
7650 LIBS="-lOSMesa $LIBS"
7651 cat >conftest.$ac_ext <<_ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7658 /* Override any GCC internal prototype to avoid an error.
7659 Use char because int might match the return type of a GCC
7660 builtin and then its argument prototype would still apply. */
7664 char OSMesaCreateContext ();
7668 return OSMesaCreateContext ();
7673 rm -f conftest.$ac_objext conftest$ac_exeext
7674 if { (ac_try="$ac_link"
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7680 $as_echo "$ac_try_echo") >&5
7681 (eval "$ac_link") 2>conftest.er1
7683 grep -v '^ *+' conftest.er1 >conftest.err
7685 cat conftest.err >&5
7686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } && {
7688 test -z "$ac_c_werror_flag" ||
7689 test ! -s conftest.err
7690 } && test -s conftest$ac_exeext && {
7691 test "$cross_compiling" = yes ||
7692 $as_test_x conftest$ac_exeext
7694 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
7696 $as_echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 ac_cv_lib_OSMesa_OSMesaCreateContext=no
7702 rm -rf conftest.dSYM
7703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7704 conftest$ac_exeext conftest.$ac_ext
7705 LIBS=$ac_check_lib_save_LIBS
7707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
7708 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
7709 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
7710 cat >>confdefs.h <<_ACEOF
7711 #define HAVE_LIBOSMESA 1
7714 LIBS="-lOSMesa $LIBS"
7717 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
7718 See \`config.log' for more details." >&5
7719 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
7720 See \`config.log' for more details." >&2;}
7721 { (exit 1); exit 1; }; }
7724 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7725 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7726 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7727 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7728 $as_echo_n "(cached) " >&6
7730 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7731 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7733 # Is the header compilable?
7734 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
7735 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
7736 cat >conftest.$ac_ext <<_ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7742 $ac_includes_default
7743 #include <GL/osmesa.h>
7745 rm -f conftest.$ac_objext
7746 if { (ac_try="$ac_compile"
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7752 $as_echo "$ac_try_echo") >&5
7753 (eval "$ac_compile") 2>conftest.er1
7755 grep -v '^ *+' conftest.er1 >conftest.err
7757 cat conftest.err >&5
7758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } && {
7760 test -z "$ac_c_werror_flag" ||
7761 test ! -s conftest.err
7762 } && test -s conftest.$ac_objext; then
7763 ac_header_compiler=yes
7765 $as_echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7768 ac_header_compiler=no
7771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7773 $as_echo "$ac_header_compiler" >&6; }
7775 # Is the header present?
7776 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
7777 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
7778 cat >conftest.$ac_ext <<_ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 #include <GL/osmesa.h>
7786 if { (ac_try="$ac_cpp conftest.$ac_ext"
7788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789 *) ac_try_echo=$ac_try;;
7791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7792 $as_echo "$ac_try_echo") >&5
7793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7795 grep -v '^ *+' conftest.er1 >conftest.err
7797 cat conftest.err >&5
7798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } >/dev/null && {
7800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7801 test ! -s conftest.err
7803 ac_header_preproc=yes
7805 $as_echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7808 ac_header_preproc=no
7811 rm -f conftest.err conftest.$ac_ext
7812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7813 $as_echo "$ac_header_preproc" >&6; }
7815 # So? What about this header?
7816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7818 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
7819 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7820 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
7821 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
7822 ac_header_preproc=yes
7825 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
7826 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
7827 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
7828 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
7829 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
7830 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
7831 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
7832 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
7833 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
7834 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
7835 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
7836 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
7840 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7841 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7842 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7843 $as_echo_n "(cached) " >&6
7845 ac_cv_header_GL_osmesa_h=$ac_header_preproc
7847 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7848 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7851 if test $ac_cv_header_GL_osmesa_h = yes; then
7854 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
7855 See \`config.log' for more details." >&5
7856 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
7857 See \`config.log' for more details." >&2;}
7858 { (exit 1); exit 1; }; }
7863 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
7865 cat >>confdefs.h <<\_ACEOF
7866 #define HAVE_OSMESA 1
7872 if test "x$APPLE_BUILD" != 'xyes'; then
7874 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
7875 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
7876 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
7877 $as_echo_n "(cached) " >&6
7879 ac_check_lib_save_LIBS=$LIBS
7881 cat >conftest.$ac_ext <<_ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7888 /* Override any GCC internal prototype to avoid an error.
7889 Use char because int might match the return type of a GCC
7890 builtin and then its argument prototype would still apply. */
7898 return glVertex3f ();
7903 rm -f conftest.$ac_objext conftest$ac_exeext
7904 if { (ac_try="$ac_link"
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7910 $as_echo "$ac_try_echo") >&5
7911 (eval "$ac_link") 2>conftest.er1
7913 grep -v '^ *+' conftest.er1 >conftest.err
7915 cat conftest.err >&5
7916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } && {
7918 test -z "$ac_c_werror_flag" ||
7919 test ! -s conftest.err
7920 } && test -s conftest$ac_exeext && {
7921 test "$cross_compiling" = yes ||
7922 $as_test_x conftest$ac_exeext
7924 ac_cv_lib_GL_glVertex3f=yes
7926 $as_echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 ac_cv_lib_GL_glVertex3f=no
7932 rm -rf conftest.dSYM
7933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7934 conftest$ac_exeext conftest.$ac_ext
7935 LIBS=$ac_check_lib_save_LIBS
7937 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
7938 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
7939 if test $ac_cv_lib_GL_glVertex3f = yes; then
7940 cat >>confdefs.h <<_ACEOF
7941 #define HAVE_LIBGL 1
7948 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7949 See \`config.log' for more details." >&5
7950 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7951 See \`config.log' for more details." >&2;}
7952 { (exit 1); exit 1; }; }
7955 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7956 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7957 $as_echo_n "checking for GL/gl.h... " >&6; }
7958 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7959 $as_echo_n "(cached) " >&6
7961 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7962 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
7964 # Is the header compilable?
7965 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
7966 $as_echo_n "checking GL/gl.h usability... " >&6; }
7967 cat >conftest.$ac_ext <<_ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973 $ac_includes_default
7976 rm -f conftest.$ac_objext
7977 if { (ac_try="$ac_compile"
7979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7980 *) ac_try_echo=$ac_try;;
7982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7983 $as_echo "$ac_try_echo") >&5
7984 (eval "$ac_compile") 2>conftest.er1
7986 grep -v '^ *+' conftest.er1 >conftest.err
7988 cat conftest.err >&5
7989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } && {
7991 test -z "$ac_c_werror_flag" ||
7992 test ! -s conftest.err
7993 } && test -s conftest.$ac_objext; then
7994 ac_header_compiler=yes
7996 $as_echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7999 ac_header_compiler=no
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8004 $as_echo "$ac_header_compiler" >&6; }
8006 # Is the header present?
8007 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
8008 $as_echo_n "checking GL/gl.h presence... " >&6; }
8009 cat >conftest.$ac_ext <<_ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8017 if { (ac_try="$ac_cpp conftest.$ac_ext"
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8023 $as_echo "$ac_try_echo") >&5
8024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8026 grep -v '^ *+' conftest.er1 >conftest.err
8028 cat conftest.err >&5
8029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } >/dev/null && {
8031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8034 ac_header_preproc=yes
8036 $as_echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8039 ac_header_preproc=no
8042 rm -f conftest.err conftest.$ac_ext
8043 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8044 $as_echo "$ac_header_preproc" >&6; }
8046 # So? What about this header?
8047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8049 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8050 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8051 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
8052 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
8053 ac_header_preproc=yes
8056 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
8057 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
8058 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
8059 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
8060 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
8061 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
8062 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
8063 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8064 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
8065 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
8066 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
8067 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
8071 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
8072 $as_echo_n "checking for GL/gl.h... " >&6; }
8073 if test "${ac_cv_header_GL_gl_h+set}" = set; then
8074 $as_echo_n "(cached) " >&6
8076 ac_cv_header_GL_gl_h=$ac_header_preproc
8078 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
8079 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
8082 if test $ac_cv_header_GL_gl_h = yes; then
8086 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
8087 See \`config.log' for more details." >&5
8088 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
8089 See \`config.log' for more details." >&2;}
8090 { (exit 1); exit 1; }; }
8095 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
8096 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
8097 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
8098 $as_echo_n "(cached) " >&6
8100 cat >conftest.$ac_ext <<_ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
8107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8108 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
8110 /* System header to define __stub macros and hopefully few prototypes,
8111 which can conflict with char NSOpenGLGetVersion (); below.
8112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8113 <limits.h> exists even on freestanding compilers. */
8116 # include <limits.h>
8118 # include <assert.h>
8121 #undef NSOpenGLGetVersion
8123 /* Override any GCC internal prototype to avoid an error.
8124 Use char because int might match the return type of a GCC
8125 builtin and then its argument prototype would still apply. */
8129 char NSOpenGLGetVersion ();
8130 /* The GNU C library defines this for functions which it implements
8131 to always fail with ENOSYS. Some functions are actually named
8132 something starting with __ and the normal name is an alias. */
8133 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
8140 return NSOpenGLGetVersion ();
8145 rm -f conftest.$ac_objext conftest$ac_exeext
8146 if { (ac_try="$ac_link"
8148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149 *) ac_try_echo=$ac_try;;
8151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8152 $as_echo "$ac_try_echo") >&5
8153 (eval "$ac_link") 2>conftest.er1
8155 grep -v '^ *+' conftest.er1 >conftest.err
8157 cat conftest.err >&5
8158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } && {
8160 test -z "$ac_c_werror_flag" ||
8161 test ! -s conftest.err
8162 } && test -s conftest$ac_exeext && {
8163 test "$cross_compiling" = yes ||
8164 $as_test_x conftest$ac_exeext
8166 ac_cv_func_NSOpenGLGetVersion=yes
8168 $as_echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ac_cv_func_NSOpenGLGetVersion=no
8174 rm -rf conftest.dSYM
8175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8176 conftest$ac_exeext conftest.$ac_ext
8178 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
8179 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
8180 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
8183 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
8185 cat >>confdefs.h <<\_ACEOF
8193 if test "x$HAVE_GTK_X11" = "xyes"; then
8194 if test "x$APPLE_BUILD" = "xyes"; then
8195 LIBS="$LIBS -L/usr/X11/lib -lGL"
8197 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
8198 $as_echo_n "checking for glXQueryVersion... " >&6; }
8199 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
8200 $as_echo_n "(cached) " >&6
8202 cat >conftest.$ac_ext <<_ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
8209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8210 #define glXQueryVersion innocuous_glXQueryVersion
8212 /* System header to define __stub macros and hopefully few prototypes,
8213 which can conflict with char glXQueryVersion (); below.
8214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8215 <limits.h> exists even on freestanding compilers. */
8218 # include <limits.h>
8220 # include <assert.h>
8223 #undef glXQueryVersion
8225 /* Override any GCC internal prototype to avoid an error.
8226 Use char because int might match the return type of a GCC
8227 builtin and then its argument prototype would still apply. */
8231 char glXQueryVersion ();
8232 /* The GNU C library defines this for functions which it implements
8233 to always fail with ENOSYS. Some functions are actually named
8234 something starting with __ and the normal name is an alias. */
8235 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
8242 return glXQueryVersion ();
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (ac_try="$ac_link"
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8254 $as_echo "$ac_try_echo") >&5
8255 (eval "$ac_link") 2>conftest.er1
8257 grep -v '^ *+' conftest.er1 >conftest.err
8259 cat conftest.err >&5
8260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && {
8262 test -z "$ac_c_werror_flag" ||
8263 test ! -s conftest.err
8264 } && test -s conftest$ac_exeext && {
8265 test "$cross_compiling" = yes ||
8266 $as_test_x conftest$ac_exeext
8268 ac_cv_func_glXQueryVersion=yes
8270 $as_echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8273 ac_cv_func_glXQueryVersion=no
8276 rm -rf conftest.dSYM
8277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8278 conftest$ac_exeext conftest.$ac_ext
8280 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
8281 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
8282 if test $ac_cv_func_glXQueryVersion = yes; then
8285 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
8287 cat >>confdefs.h <<\_ACEOF
8303 if test "x$HAVE_OSMESA" = "xyes"; then
8305 VIDEO_OSMESA_FALSE='#'
8307 VIDEO_OSMESA_TRUE='#'
8313 if test "x$HAVE_GLX" = "xyes"; then
8323 if test "x$HAVE_NSGL" = "xyes"; then
8325 VIDEO_NSGL_FALSE='#'
8332 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
8333 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
8334 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
8335 $as_echo_n "(cached) " >&6
8337 cat >conftest.$ac_ext <<_ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8343 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
8344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8345 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
8347 /* System header to define __stub macros and hopefully few prototypes,
8348 which can conflict with char glGenFramebuffersEXT (); below.
8349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8350 <limits.h> exists even on freestanding compilers. */
8353 # include <limits.h>
8355 # include <assert.h>
8358 #undef glGenFramebuffersEXT
8360 /* Override any GCC internal prototype to avoid an error.
8361 Use char because int might match the return type of a GCC
8362 builtin and then its argument prototype would still apply. */
8366 char glGenFramebuffersEXT ();
8367 /* The GNU C library defines this for functions which it implements
8368 to always fail with ENOSYS. Some functions are actually named
8369 something starting with __ and the normal name is an alias. */
8370 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
8377 return glGenFramebuffersEXT ();
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (ac_try="$ac_link"
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8389 $as_echo "$ac_try_echo") >&5
8390 (eval "$ac_link") 2>conftest.er1
8392 grep -v '^ *+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && {
8397 test -z "$ac_c_werror_flag" ||
8398 test ! -s conftest.err
8399 } && test -s conftest$ac_exeext && {
8400 test "$cross_compiling" = yes ||
8401 $as_test_x conftest$ac_exeext
8403 ac_cv_func_glGenFramebuffersEXT=yes
8405 $as_echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8408 ac_cv_func_glGenFramebuffersEXT=no
8411 rm -rf conftest.dSYM
8412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8413 conftest$ac_exeext conftest.$ac_ext
8415 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
8416 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
8417 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
8419 cat >>confdefs.h <<\_ACEOF
8420 #define HAVE_OPENGL_FBO 1
8425 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
8426 $as_echo_n "checking for glCreateShader... " >&6; }
8427 if test "${ac_cv_func_glCreateShader+set}" = set; then
8428 $as_echo_n "(cached) " >&6
8430 cat >conftest.$ac_ext <<_ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8436 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
8437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8438 #define glCreateShader innocuous_glCreateShader
8440 /* System header to define __stub macros and hopefully few prototypes,
8441 which can conflict with char glCreateShader (); below.
8442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8443 <limits.h> exists even on freestanding compilers. */
8446 # include <limits.h>
8448 # include <assert.h>
8451 #undef glCreateShader
8453 /* Override any GCC internal prototype to avoid an error.
8454 Use char because int might match the return type of a GCC
8455 builtin and then its argument prototype would still apply. */
8459 char glCreateShader ();
8460 /* The GNU C library defines this for functions which it implements
8461 to always fail with ENOSYS. Some functions are actually named
8462 something starting with __ and the normal name is an alias. */
8463 #if defined __stub_glCreateShader || defined __stub___glCreateShader
8470 return glCreateShader ();
8475 rm -f conftest.$ac_objext conftest$ac_exeext
8476 if { (ac_try="$ac_link"
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8482 $as_echo "$ac_try_echo") >&5
8483 (eval "$ac_link") 2>conftest.er1
8485 grep -v '^ *+' conftest.er1 >conftest.err
8487 cat conftest.err >&5
8488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } && {
8490 test -z "$ac_c_werror_flag" ||
8491 test ! -s conftest.err
8492 } && test -s conftest$ac_exeext && {
8493 test "$cross_compiling" = yes ||
8494 $as_test_x conftest$ac_exeext
8496 ac_cv_func_glCreateShader=yes
8498 $as_echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8501 ac_cv_func_glCreateShader=no
8504 rm -rf conftest.dSYM
8505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8506 conftest$ac_exeext conftest.$ac_ext
8508 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
8509 $as_echo "$ac_cv_func_glCreateShader" >&6; }
8510 if test $ac_cv_func_glCreateShader = yes; then
8512 cat >>confdefs.h <<\_ACEOF
8513 #define HAVE_OPENGL_SHADER 1
8518 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
8519 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
8520 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
8521 $as_echo_n "(cached) " >&6
8523 cat >conftest.$ac_ext <<_ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
8530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8531 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
8533 /* System header to define __stub macros and hopefully few prototypes,
8534 which can conflict with char glCreateShaderObjectARB (); below.
8535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8536 <limits.h> exists even on freestanding compilers. */
8539 # include <limits.h>
8541 # include <assert.h>
8544 #undef glCreateShaderObjectARB
8546 /* Override any GCC internal prototype to avoid an error.
8547 Use char because int might match the return type of a GCC
8548 builtin and then its argument prototype would still apply. */
8552 char glCreateShaderObjectARB ();
8553 /* The GNU C library defines this for functions which it implements
8554 to always fail with ENOSYS. Some functions are actually named
8555 something starting with __ and the normal name is an alias. */
8556 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
8563 return glCreateShaderObjectARB ();
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (ac_try="$ac_link"
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8575 $as_echo "$ac_try_echo") >&5
8576 (eval "$ac_link") 2>conftest.er1
8578 grep -v '^ *+' conftest.er1 >conftest.err
8580 cat conftest.err >&5
8581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } && {
8583 test -z "$ac_c_werror_flag" ||
8584 test ! -s conftest.err
8585 } && test -s conftest$ac_exeext && {
8586 test "$cross_compiling" = yes ||
8587 $as_test_x conftest$ac_exeext
8589 ac_cv_func_glCreateShaderObjectARB=yes
8591 $as_echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8594 ac_cv_func_glCreateShaderObjectARB=no
8597 rm -rf conftest.dSYM
8598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8599 conftest$ac_exeext conftest.$ac_ext
8601 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
8602 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
8603 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
8605 cat >>confdefs.h <<\_ACEOF
8606 #define HAVE_OPENGL_SHADER_ARB 1
8611 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
8612 $as_echo_n "checking for glClampColorARB... " >&6; }
8613 if test "${ac_cv_func_glClampColorARB+set}" = set; then
8614 $as_echo_n "(cached) " >&6
8616 cat >conftest.$ac_ext <<_ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
8623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8624 #define glClampColorARB innocuous_glClampColorARB
8626 /* System header to define __stub macros and hopefully few prototypes,
8627 which can conflict with char glClampColorARB (); below.
8628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629 <limits.h> exists even on freestanding compilers. */
8632 # include <limits.h>
8634 # include <assert.h>
8637 #undef glClampColorARB
8639 /* Override any GCC internal prototype to avoid an error.
8640 Use char because int might match the return type of a GCC
8641 builtin and then its argument prototype would still apply. */
8645 char glClampColorARB ();
8646 /* The GNU C library defines this for functions which it implements
8647 to always fail with ENOSYS. Some functions are actually named
8648 something starting with __ and the normal name is an alias. */
8649 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
8656 return glClampColorARB ();
8661 rm -f conftest.$ac_objext conftest$ac_exeext
8662 if { (ac_try="$ac_link"
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8668 $as_echo "$ac_try_echo") >&5
8669 (eval "$ac_link") 2>conftest.er1
8671 grep -v '^ *+' conftest.er1 >conftest.err
8673 cat conftest.err >&5
8674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } && {
8676 test -z "$ac_c_werror_flag" ||
8677 test ! -s conftest.err
8678 } && test -s conftest$ac_exeext && {
8679 test "$cross_compiling" = yes ||
8680 $as_test_x conftest$ac_exeext
8682 ac_cv_func_glClampColorARB=yes
8684 $as_echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.$ac_ext >&5
8687 ac_cv_func_glClampColorARB=no
8690 rm -rf conftest.dSYM
8691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8692 conftest$ac_exeext conftest.$ac_ext
8694 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
8695 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
8696 if test $ac_cv_func_glClampColorARB = yes; then
8698 cat >>confdefs.h <<\_ACEOF
8699 #define HAVE_OPENGL_CLAMP_COLOR 1
8707 if test "x$enable_translator" != "xno"; then
8709 i386|i486|i586|i686|x86_64)
8710 SH4_TRANSLATOR="x86"
8712 cat >>confdefs.h <<_ACEOF
8713 #define SH4_TRANSLATOR TARGET_X86
8720 if test "$SH4_TRANSLATOR" = "x86"; then
8722 BUILD_SH4X86_FALSE='#'
8724 BUILD_SH4X86_TRUE='#'
8729 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8730 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
8731 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
8732 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8733 $as_echo_n "(cached) " >&6
8735 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
8736 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
8738 # Is the header compilable?
8739 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
8740 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
8741 cat >conftest.$ac_ext <<_ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8747 $ac_includes_default
8748 #include <CoreAudio/CoreAudio.h>
8750 rm -f conftest.$ac_objext
8751 if { (ac_try="$ac_compile"
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8757 $as_echo "$ac_try_echo") >&5
8758 (eval "$ac_compile") 2>conftest.er1
8760 grep -v '^ *+' conftest.er1 >conftest.err
8762 cat conftest.err >&5
8763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
8767 } && test -s conftest.$ac_objext; then
8768 ac_header_compiler=yes
8770 $as_echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 ac_header_compiler=no
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8778 $as_echo "$ac_header_compiler" >&6; }
8780 # Is the header present?
8781 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
8782 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
8783 cat >conftest.$ac_ext <<_ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 #include <CoreAudio/CoreAudio.h>
8791 if { (ac_try="$ac_cpp conftest.$ac_ext"
8793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794 *) ac_try_echo=$ac_try;;
8796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8797 $as_echo "$ac_try_echo") >&5
8798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8800 grep -v '^ *+' conftest.er1 >conftest.err
8802 cat conftest.err >&5
8803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } >/dev/null && {
8805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8806 test ! -s conftest.err
8808 ac_header_preproc=yes
8810 $as_echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8813 ac_header_preproc=no
8816 rm -f conftest.err conftest.$ac_ext
8817 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8818 $as_echo "$ac_header_preproc" >&6; }
8820 # So? What about this header?
8821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8823 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8824 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8825 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
8826 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
8827 ac_header_preproc=yes
8830 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
8831 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
8832 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
8833 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
8834 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
8835 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
8836 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
8837 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
8838 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
8839 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
8840 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
8841 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
8845 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
8846 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
8847 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8848 $as_echo_n "(cached) " >&6
8850 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
8852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
8853 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
8856 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
8859 LIBS="$LIBS -framework CoreAudio"
8860 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
8862 cat >>confdefs.h <<\_ACEOF
8863 #define HAVE_CORE_AUDIO 1
8873 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
8882 if test "x$with_pulse" != "xno"; then
8885 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
8886 $as_echo_n "checking for PULSE... " >&6; }
8888 if test -n "$PKG_CONFIG"; then
8889 if test -n "$PULSE_CFLAGS"; then
8890 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
8892 if test -n "$PKG_CONFIG" && \
8893 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8894 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; then
8898 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
8906 if test -n "$PKG_CONFIG"; then
8907 if test -n "$PULSE_LIBS"; then
8908 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
8910 if test -n "$PKG_CONFIG" && \
8911 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8912 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; then
8916 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
8927 if test $pkg_failed = yes; then
8929 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8930 _pkg_short_errors_supported=yes
8932 _pkg_short_errors_supported=no
8934 if test $_pkg_short_errors_supported = yes; then
8935 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
8937 PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
8939 # Put the nasty error message in config.log where it belongs
8940 echo "$PULSE_PKG_ERRORS" >&5
8942 { $as_echo "$as_me:$LINENO: result: no" >&5
8943 $as_echo "no" >&6; }
8945 if test "x$with_pulse" = "xyes"; then
8946 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
8947 See \`config.log' for more details." >&5
8948 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
8949 See \`config.log' for more details." >&2;}
8950 { (exit 1); exit 1; }; }
8953 elif test $pkg_failed = untried; then
8955 if test "x$with_pulse" = "xyes"; then
8956 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
8957 See \`config.log' for more details." >&5
8958 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
8959 See \`config.log' for more details." >&2;}
8960 { (exit 1); exit 1; }; }
8964 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
8965 PULSE_LIBS=$pkg_cv_PULSE_LIBS
8966 { $as_echo "$as_me:$LINENO: result: yes" >&5
8967 $as_echo "yes" >&6; }
8970 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
8972 cat >>confdefs.h <<\_ACEOF
8973 #define HAVE_PULSE 1
8981 if test "$HAVE_PULSE" = 'yes' ; then
8983 AUDIO_PULSE_FALSE='#'
8985 AUDIO_PULSE_TRUE='#'
8990 if test "x$with_esd" != "xno"; then
8993 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
8994 $as_echo_n "checking for ESOUND... " >&6; }
8996 if test -n "$PKG_CONFIG"; then
8997 if test -n "$ESOUND_CFLAGS"; then
8998 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
9000 if test -n "$PKG_CONFIG" && \
9001 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
9002 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
9004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; then
9006 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
9014 if test -n "$PKG_CONFIG"; then
9015 if test -n "$ESOUND_LIBS"; then
9016 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
9018 if test -n "$PKG_CONFIG" && \
9019 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
9020 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
9022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; then
9024 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
9035 if test $pkg_failed = yes; then
9037 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9038 _pkg_short_errors_supported=yes
9040 _pkg_short_errors_supported=no
9042 if test $_pkg_short_errors_supported = yes; then
9043 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
9045 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
9047 # Put the nasty error message in config.log where it belongs
9048 echo "$ESOUND_PKG_ERRORS" >&5
9050 { $as_echo "$as_me:$LINENO: result: no" >&5
9051 $as_echo "no" >&6; }
9053 if test "x$with_esd" = "xyes"; then
9054 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
9055 See \`config.log' for more details." >&5
9056 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
9057 See \`config.log' for more details." >&2;}
9058 { (exit 1); exit 1; }; }
9061 elif test $pkg_failed = untried; then
9063 if test "x$with_esd" = "xyes"; then
9064 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
9065 See \`config.log' for more details." >&5
9066 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
9067 See \`config.log' for more details." >&2;}
9068 { (exit 1); exit 1; }; }
9072 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
9073 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
9074 { $as_echo "$as_me:$LINENO: result: yes" >&5
9075 $as_echo "yes" >&6; }
9078 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
9080 cat >>confdefs.h <<\_ACEOF
9081 #define HAVE_ESOUND 1
9089 if test "$HAVE_ESOUND" = 'yes' ; then
9091 AUDIO_ESOUND_FALSE='#'
9093 AUDIO_ESOUND_TRUE='#'
9100 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
9101 $as_echo_n "checking for ALSA... " >&6; }
9103 if test -n "$PKG_CONFIG"; then
9104 if test -n "$ALSA_CFLAGS"; then
9105 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
9107 if test -n "$PKG_CONFIG" && \
9108 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
9109 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
9111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; then
9113 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
9121 if test -n "$PKG_CONFIG"; then
9122 if test -n "$ALSA_LIBS"; then
9123 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
9125 if test -n "$PKG_CONFIG" && \
9126 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
9127 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
9129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; then
9131 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
9142 if test $pkg_failed = yes; then
9144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9145 _pkg_short_errors_supported=yes
9147 _pkg_short_errors_supported=no
9149 if test $_pkg_short_errors_supported = yes; then
9150 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
9152 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
9154 # Put the nasty error message in config.log where it belongs
9155 echo "$ALSA_PKG_ERRORS" >&5
9157 { $as_echo "$as_me:$LINENO: result: no" >&5
9158 $as_echo "no" >&6; }
9160 elif test $pkg_failed = untried; then
9163 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
9164 ALSA_LIBS=$pkg_cv_ALSA_LIBS
9165 { $as_echo "$as_me:$LINENO: result: yes" >&5
9166 $as_echo "yes" >&6; }
9169 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
9171 cat >>confdefs.h <<\_ACEOF
9178 if test "$HAVE_ALSA" = 'yes' ; then
9180 AUDIO_ALSA_FALSE='#'
9188 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9189 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
9190 $as_echo_n "checking for linux/cdrom.h... " >&6; }
9191 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9192 $as_echo_n "(cached) " >&6
9194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
9195 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
9197 # Is the header compilable?
9198 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
9199 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
9200 cat >conftest.$ac_ext <<_ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9206 $ac_includes_default
9207 #include <linux/cdrom.h>
9209 rm -f conftest.$ac_objext
9210 if { (ac_try="$ac_compile"
9212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213 *) ac_try_echo=$ac_try;;
9215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9216 $as_echo "$ac_try_echo") >&5
9217 (eval "$ac_compile") 2>conftest.er1
9219 grep -v '^ *+' conftest.er1 >conftest.err
9221 cat conftest.err >&5
9222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } && {
9224 test -z "$ac_c_werror_flag" ||
9225 test ! -s conftest.err
9226 } && test -s conftest.$ac_objext; then
9227 ac_header_compiler=yes
9229 $as_echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9232 ac_header_compiler=no
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9237 $as_echo "$ac_header_compiler" >&6; }
9239 # Is the header present?
9240 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
9241 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
9242 cat >conftest.$ac_ext <<_ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9248 #include <linux/cdrom.h>
9250 if { (ac_try="$ac_cpp conftest.$ac_ext"
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9256 $as_echo "$ac_try_echo") >&5
9257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9259 grep -v '^ *+' conftest.er1 >conftest.err
9261 cat conftest.err >&5
9262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } >/dev/null && {
9264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9265 test ! -s conftest.err
9267 ac_header_preproc=yes
9269 $as_echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9272 ac_header_preproc=no
9275 rm -f conftest.err conftest.$ac_ext
9276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9277 $as_echo "$ac_header_preproc" >&6; }
9279 # So? What about this header?
9280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9282 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
9283 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9284 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
9285 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
9286 ac_header_preproc=yes
9289 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
9290 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
9291 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
9292 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
9293 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
9294 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
9295 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
9296 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
9297 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
9298 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
9299 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
9300 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
9304 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
9305 $as_echo_n "checking for linux/cdrom.h... " >&6; }
9306 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9307 $as_echo_n "(cached) " >&6
9309 ac_cv_header_linux_cdrom_h=$ac_header_preproc
9311 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
9312 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
9315 if test $ac_cv_header_linux_cdrom_h = yes; then
9322 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
9323 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
9324 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
9325 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
9326 $as_echo_n "(cached) " >&6
9328 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
9329 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
9331 # Is the header compilable?
9332 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
9333 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
9334 cat >conftest.$ac_ext <<_ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h. */
9340 $ac_includes_default
9341 #include <IOKit/IOKitLib.h>
9343 rm -f conftest.$ac_objext
9344 if { (ac_try="$ac_compile"
9346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347 *) ac_try_echo=$ac_try;;
9349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9350 $as_echo "$ac_try_echo") >&5
9351 (eval "$ac_compile") 2>conftest.er1
9353 grep -v '^ *+' conftest.er1 >conftest.err
9355 cat conftest.err >&5
9356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } && {
9358 test -z "$ac_c_werror_flag" ||
9359 test ! -s conftest.err
9360 } && test -s conftest.$ac_objext; then
9361 ac_header_compiler=yes
9363 $as_echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 ac_header_compiler=no
9369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9370 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9371 $as_echo "$ac_header_compiler" >&6; }
9373 # Is the header present?
9374 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
9375 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
9376 cat >conftest.$ac_ext <<_ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382 #include <IOKit/IOKitLib.h>
9384 if { (ac_try="$ac_cpp conftest.$ac_ext"
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9390 $as_echo "$ac_try_echo") >&5
9391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9393 grep -v '^ *+' conftest.er1 >conftest.err
9395 cat conftest.err >&5
9396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } >/dev/null && {
9398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9399 test ! -s conftest.err
9401 ac_header_preproc=yes
9403 $as_echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_header_preproc=no
9409 rm -f conftest.err conftest.$ac_ext
9410 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9411 $as_echo "$ac_header_preproc" >&6; }
9413 # So? What about this header?
9414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9416 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9417 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9418 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
9419 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
9420 ac_header_preproc=yes
9423 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
9424 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
9425 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
9426 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
9427 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
9428 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
9429 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
9430 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9431 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
9432 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
9433 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
9434 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
9438 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
9439 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
9440 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
9441 $as_echo_n "(cached) " >&6
9443 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
9445 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
9446 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
9449 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
9452 LIBS="$LIBS -framework IOKit"
9460 if test "x$CDROM_DRIVER" = "xlinux"; then
9462 CDROM_LINUX_FALSE='#'
9464 CDROM_LINUX_TRUE='#'
9470 if test "x$CDROM_DRIVER" = "xosx"; then
9480 if test "x$CDROM_DRIVER" = "x"; then
9482 CDROM_NONE_FALSE='#'
9489 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9490 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9491 $as_echo_n "checking for linux/joystick.h... " >&6; }
9492 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9493 $as_echo_n "(cached) " >&6
9495 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9496 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9498 # Is the header compilable?
9499 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
9500 $as_echo_n "checking linux/joystick.h usability... " >&6; }
9501 cat >conftest.$ac_ext <<_ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 $ac_includes_default
9508 #include <linux/joystick.h>
9510 rm -f conftest.$ac_objext
9511 if { (ac_try="$ac_compile"
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9517 $as_echo "$ac_try_echo") >&5
9518 (eval "$ac_compile") 2>conftest.er1
9520 grep -v '^ *+' conftest.er1 >conftest.err
9522 cat conftest.err >&5
9523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } && {
9525 test -z "$ac_c_werror_flag" ||
9526 test ! -s conftest.err
9527 } && test -s conftest.$ac_objext; then
9528 ac_header_compiler=yes
9530 $as_echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9533 ac_header_compiler=no
9536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9537 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9538 $as_echo "$ac_header_compiler" >&6; }
9540 # Is the header present?
9541 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
9542 $as_echo_n "checking linux/joystick.h presence... " >&6; }
9543 cat >conftest.$ac_ext <<_ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 #include <linux/joystick.h>
9551 if { (ac_try="$ac_cpp conftest.$ac_ext"
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9557 $as_echo "$ac_try_echo") >&5
9558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9560 grep -v '^ *+' conftest.er1 >conftest.err
9562 cat conftest.err >&5
9563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } >/dev/null && {
9565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9566 test ! -s conftest.err
9568 ac_header_preproc=yes
9570 $as_echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9573 ac_header_preproc=no
9576 rm -f conftest.err conftest.$ac_ext
9577 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9578 $as_echo "$ac_header_preproc" >&6; }
9580 # So? What about this header?
9581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9583 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
9584 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9585 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
9586 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
9587 ac_header_preproc=yes
9590 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
9591 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
9592 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
9593 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
9594 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
9595 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
9596 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
9597 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
9598 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
9599 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
9600 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
9601 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
9605 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9606 $as_echo_n "checking for linux/joystick.h... " >&6; }
9607 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9608 $as_echo_n "(cached) " >&6
9610 ac_cv_header_linux_joystick_h=$ac_header_preproc
9612 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9613 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9616 if test $ac_cv_header_linux_joystick_h = yes; then
9618 HAVE_LINUX_JOYSTICK_H=yes
9620 cat >>confdefs.h <<\_ACEOF
9621 #define HAVE_LINUX_JOYSTICK 1
9625 echo "Linux Joystick support not found, building without it."
9631 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
9640 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
9641 set dummy sh-elf-gcc; ac_word=$2
9642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9643 $as_echo_n "checking for $ac_word... " >&6; }
9644 if test "${ac_cv_path_SHCC+set}" = set; then
9645 $as_echo_n "(cached) " >&6
9649 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656 test -z "$as_dir" && as_dir=.
9657 for ac_exec_ext in '' $ac_executable_extensions; do
9658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9659 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
9660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9670 SHCC=$ac_cv_path_SHCC
9671 if test -n "$SHCC"; then
9672 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
9673 $as_echo "$SHCC" >&6; }
9675 { $as_echo "$as_me:$LINENO: result: no" >&5
9676 $as_echo "no" >&6; }
9680 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
9681 set dummy sh-elf-ld; ac_word=$2
9682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9683 $as_echo_n "checking for $ac_word... " >&6; }
9684 if test "${ac_cv_path_SHLD+set}" = set; then
9685 $as_echo_n "(cached) " >&6
9689 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
9692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696 test -z "$as_dir" && as_dir=.
9697 for ac_exec_ext in '' $ac_executable_extensions; do
9698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9699 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
9700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9710 SHLD=$ac_cv_path_SHLD
9711 if test -n "$SHLD"; then
9712 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
9713 $as_echo "$SHLD" >&6; }
9715 { $as_echo "$as_me:$LINENO: result: no" >&5
9716 $as_echo "no" >&6; }
9720 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
9721 set dummy sh-elf-objcopy; ac_word=$2
9722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9723 $as_echo_n "checking for $ac_word... " >&6; }
9724 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
9725 $as_echo_n "(cached) " >&6
9729 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
9732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9736 test -z "$as_dir" && as_dir=.
9737 for ac_exec_ext in '' $ac_executable_extensions; do
9738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9739 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
9751 if test -n "$SHOBJCOPY"; then
9752 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
9753 $as_echo "$SHOBJCOPY" >&6; }
9755 { $as_echo "$as_me:$LINENO: result: no" >&5
9756 $as_echo "no" >&6; }
9760 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
9761 set dummy arm-elf-gcc; ac_word=$2
9762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9763 $as_echo_n "checking for $ac_word... " >&6; }
9764 if test "${ac_cv_path_ARMCC+set}" = set; then
9765 $as_echo_n "(cached) " >&6
9769 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776 test -z "$as_dir" && as_dir=.
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9779 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
9780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9790 ARMCC=$ac_cv_path_ARMCC
9791 if test -n "$ARMCC"; then
9792 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
9793 $as_echo "$ARMCC" >&6; }
9795 { $as_echo "$as_me:$LINENO: result: no" >&5
9796 $as_echo "no" >&6; }
9800 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
9801 set dummy arm-elf-ld; ac_word=$2
9802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9803 $as_echo_n "checking for $ac_word... " >&6; }
9804 if test "${ac_cv_path_ARMLD+set}" = set; then
9805 $as_echo_n "(cached) " >&6
9809 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
9812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816 test -z "$as_dir" && as_dir=.
9817 for ac_exec_ext in '' $ac_executable_extensions; do
9818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9819 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
9820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9830 ARMLD=$ac_cv_path_ARMLD
9831 if test -n "$ARMLD"; then
9832 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
9833 $as_echo "$ARMLD" >&6; }
9835 { $as_echo "$as_me:$LINENO: result: no" >&5
9836 $as_echo "no" >&6; }
9840 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
9841 set dummy arm-elf-objcopy; ac_word=$2
9842 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9843 $as_echo_n "checking for $ac_word... " >&6; }
9844 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
9845 $as_echo_n "(cached) " >&6
9849 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
9852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856 test -z "$as_dir" && as_dir=.
9857 for ac_exec_ext in '' $ac_executable_extensions; do
9858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9859 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9870 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
9871 if test -n "$ARMOBJCOPY"; then
9872 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
9873 $as_echo "$ARMOBJCOPY" >&6; }
9875 { $as_echo "$as_me:$LINENO: result: no" >&5
9876 $as_echo "no" >&6; }
9881 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
9883 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
9887 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
9889 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
9895 if test "$BUILD_SH" = "yes"; then
9897 BUILD_SYSTEST_FALSE='#'
9899 BUILD_SYSTEST_TRUE='#'
9900 BUILD_SYSTEST_FALSE=
9905 if test "$BUILD_ARM" = "yes"; then
9907 BUILD_ARMTEST_FALSE='#'
9909 BUILD_ARMTEST_TRUE='#'
9910 BUILD_ARMTEST_FALSE=
9915 GETTEXT_PACKAGE=lxdream
9918 cat >>confdefs.h <<_ACEOF
9919 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
9923 ALL_LINGUAS="de es it pt_BR"
9926 for ac_header in locale.h
9928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9930 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9931 $as_echo_n "checking for $ac_header... " >&6; }
9932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9933 $as_echo_n "(cached) " >&6
9935 ac_res=`eval 'as_val=${'$as_ac_Header'}
9936 $as_echo "$as_val"'`
9937 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9938 $as_echo "$ac_res" >&6; }
9940 # Is the header compilable?
9941 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9942 $as_echo_n "checking $ac_header usability... " >&6; }
9943 cat >conftest.$ac_ext <<_ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 $ac_includes_default
9950 #include <$ac_header>
9952 rm -f conftest.$ac_objext
9953 if { (ac_try="$ac_compile"
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9959 $as_echo "$ac_try_echo") >&5
9960 (eval "$ac_compile") 2>conftest.er1
9962 grep -v '^ *+' conftest.er1 >conftest.err
9964 cat conftest.err >&5
9965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } && {
9967 test -z "$ac_c_werror_flag" ||
9968 test ! -s conftest.err
9969 } && test -s conftest.$ac_objext; then
9970 ac_header_compiler=yes
9972 $as_echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 ac_header_compiler=no
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9980 $as_echo "$ac_header_compiler" >&6; }
9982 # Is the header present?
9983 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9984 $as_echo_n "checking $ac_header presence... " >&6; }
9985 cat >conftest.$ac_ext <<_ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 #include <$ac_header>
9993 if { (ac_try="$ac_cpp conftest.$ac_ext"
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9999 $as_echo "$ac_try_echo") >&5
10000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10002 grep -v '^ *+' conftest.er1 >conftest.err
10004 cat conftest.err >&5
10005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } >/dev/null && {
10007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10010 ac_header_preproc=yes
10012 $as_echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 ac_header_preproc=no
10018 rm -f conftest.err conftest.$ac_ext
10019 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10020 $as_echo "$ac_header_preproc" >&6; }
10022 # So? What about this header?
10023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10026 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10028 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10029 ac_header_preproc=yes
10032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10033 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10035 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10037 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10039 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10041 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10043 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10047 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10048 $as_echo_n "checking for $ac_header... " >&6; }
10049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10050 $as_echo_n "(cached) " >&6
10052 eval "$as_ac_Header=\$ac_header_preproc"
10054 ac_res=`eval 'as_val=${'$as_ac_Header'}
10055 $as_echo "$as_val"'`
10056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10057 $as_echo "$ac_res" >&6; }
10060 if test `eval 'as_val=${'$as_ac_Header'}
10061 $as_echo "$as_val"'` = yes; then
10062 cat >>confdefs.h <<_ACEOF
10063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10070 if test $ac_cv_header_locale_h = yes; then
10071 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10072 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10073 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10074 $as_echo_n "(cached) " >&6
10076 cat >conftest.$ac_ext <<_ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 #include <locale.h>
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (ac_try="$ac_link"
10093 case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10098 $as_echo "$ac_try_echo") >&5
10099 (eval "$ac_link") 2>conftest.er1
10101 grep -v '^ *+' conftest.er1 >conftest.err
10103 cat conftest.err >&5
10104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } && {
10106 test -z "$ac_c_werror_flag" ||
10107 test ! -s conftest.err
10108 } && test -s conftest$ac_exeext && {
10109 test "$cross_compiling" = yes ||
10110 $as_test_x conftest$ac_exeext
10112 am_cv_val_LC_MESSAGES=yes
10114 $as_echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 am_cv_val_LC_MESSAGES=no
10120 rm -rf conftest.dSYM
10121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10122 conftest$ac_exeext conftest.$ac_ext
10124 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10125 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10126 if test $am_cv_val_LC_MESSAGES = yes; then
10128 cat >>confdefs.h <<\_ACEOF
10129 #define HAVE_LC_MESSAGES 1
10137 gt_cv_have_gettext=no
10143 if test "${ac_cv_header_libintl_h+set}" = set; then
10144 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
10145 $as_echo_n "checking for libintl.h... " >&6; }
10146 if test "${ac_cv_header_libintl_h+set}" = set; then
10147 $as_echo_n "(cached) " >&6
10149 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10150 $as_echo "$ac_cv_header_libintl_h" >&6; }
10152 # Is the header compilable?
10153 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
10154 $as_echo_n "checking libintl.h usability... " >&6; }
10155 cat >conftest.$ac_ext <<_ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10161 $ac_includes_default
10162 #include <libintl.h>
10164 rm -f conftest.$ac_objext
10165 if { (ac_try="$ac_compile"
10166 case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10171 $as_echo "$ac_try_echo") >&5
10172 (eval "$ac_compile") 2>conftest.er1
10174 grep -v '^ *+' conftest.er1 >conftest.err
10176 cat conftest.err >&5
10177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } && {
10179 test -z "$ac_c_werror_flag" ||
10180 test ! -s conftest.err
10181 } && test -s conftest.$ac_objext; then
10182 ac_header_compiler=yes
10184 $as_echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ac_header_compiler=no
10190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10191 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10192 $as_echo "$ac_header_compiler" >&6; }
10194 # Is the header present?
10195 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
10196 $as_echo_n "checking libintl.h presence... " >&6; }
10197 cat >conftest.$ac_ext <<_ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10203 #include <libintl.h>
10205 if { (ac_try="$ac_cpp conftest.$ac_ext"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10211 $as_echo "$ac_try_echo") >&5
10212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10214 grep -v '^ *+' conftest.er1 >conftest.err
10216 cat conftest.err >&5
10217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } >/dev/null && {
10219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10222 ac_header_preproc=yes
10224 $as_echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 ac_header_preproc=no
10230 rm -f conftest.err conftest.$ac_ext
10231 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10232 $as_echo "$ac_header_preproc" >&6; }
10234 # So? What about this header?
10235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10237 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10238 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10239 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
10240 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
10241 ac_header_preproc=yes
10244 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
10245 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
10246 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
10247 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
10248 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
10249 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
10250 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
10251 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10252 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
10253 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
10254 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
10255 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
10259 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
10260 $as_echo_n "checking for libintl.h... " >&6; }
10261 if test "${ac_cv_header_libintl_h+set}" = set; then
10262 $as_echo_n "(cached) " >&6
10264 ac_cv_header_libintl_h=$ac_header_preproc
10266 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10267 $as_echo "$ac_cv_header_libintl_h" >&6; }
10270 if test $ac_cv_header_libintl_h = yes; then
10271 gt_cv_func_dgettext_libintl="no"
10272 libintl_extra_libs=""
10275 # First check in libc
10277 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
10278 $as_echo_n "checking for ngettext in libc... " >&6; }
10279 if test "${gt_cv_func_ngettext_libc+set}" = set; then
10280 $as_echo_n "(cached) " >&6
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10289 #include <libintl.h>
10294 return !ngettext ("","", 1)
10299 rm -f conftest.$ac_objext conftest$ac_exeext
10300 if { (ac_try="$ac_link"
10301 case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10306 $as_echo "$ac_try_echo") >&5
10307 (eval "$ac_link") 2>conftest.er1
10309 grep -v '^ *+' conftest.er1 >conftest.err
10311 cat conftest.err >&5
10312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } && {
10314 test -z "$ac_c_werror_flag" ||
10315 test ! -s conftest.err
10316 } && test -s conftest$ac_exeext && {
10317 test "$cross_compiling" = yes ||
10318 $as_test_x conftest$ac_exeext
10320 gt_cv_func_ngettext_libc=yes
10322 $as_echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 gt_cv_func_ngettext_libc=no
10328 rm -rf conftest.dSYM
10329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10330 conftest$ac_exeext conftest.$ac_ext
10333 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
10334 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
10336 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10337 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
10338 $as_echo_n "checking for dgettext in libc... " >&6; }
10339 if test "${gt_cv_func_dgettext_libc+set}" = set; then
10340 $as_echo_n "(cached) " >&6
10342 cat >conftest.$ac_ext <<_ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10349 #include <libintl.h>
10354 return !dgettext ("","")
10359 rm -f conftest.$ac_objext conftest$ac_exeext
10360 if { (ac_try="$ac_link"
10361 case "(($ac_try" in
10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363 *) ac_try_echo=$ac_try;;
10365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10366 $as_echo "$ac_try_echo") >&5
10367 (eval "$ac_link") 2>conftest.er1
10369 grep -v '^ *+' conftest.er1 >conftest.err
10371 cat conftest.err >&5
10372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } && {
10374 test -z "$ac_c_werror_flag" ||
10375 test ! -s conftest.err
10376 } && test -s conftest$ac_exeext && {
10377 test "$cross_compiling" = yes ||
10378 $as_test_x conftest$ac_exeext
10380 gt_cv_func_dgettext_libc=yes
10382 $as_echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10385 gt_cv_func_dgettext_libc=no
10388 rm -rf conftest.dSYM
10389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10390 conftest$ac_exeext conftest.$ac_ext
10393 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
10394 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
10397 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10399 for ac_func in bind_textdomain_codeset
10401 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10402 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10403 $as_echo_n "checking for $ac_func... " >&6; }
10404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10405 $as_echo_n "(cached) " >&6
10407 cat >conftest.$ac_ext <<_ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10415 #define $ac_func innocuous_$ac_func
10417 /* System header to define __stub macros and hopefully few prototypes,
10418 which can conflict with char $ac_func (); below.
10419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10420 <limits.h> exists even on freestanding compilers. */
10423 # include <limits.h>
10425 # include <assert.h>
10430 /* Override any GCC internal prototype to avoid an error.
10431 Use char because int might match the return type of a GCC
10432 builtin and then its argument prototype would still apply. */
10437 /* The GNU C library defines this for functions which it implements
10438 to always fail with ENOSYS. Some functions are actually named
10439 something starting with __ and the normal name is an alias. */
10440 #if defined __stub_$ac_func || defined __stub___$ac_func
10447 return $ac_func ();
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (ac_try="$ac_link"
10454 case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10459 $as_echo "$ac_try_echo") >&5
10460 (eval "$ac_link") 2>conftest.er1
10462 grep -v '^ *+' conftest.er1 >conftest.err
10464 cat conftest.err >&5
10465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } && {
10467 test -z "$ac_c_werror_flag" ||
10468 test ! -s conftest.err
10469 } && test -s conftest$ac_exeext && {
10470 test "$cross_compiling" = yes ||
10471 $as_test_x conftest$ac_exeext
10473 eval "$as_ac_var=yes"
10475 $as_echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10478 eval "$as_ac_var=no"
10481 rm -rf conftest.dSYM
10482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10483 conftest$ac_exeext conftest.$ac_ext
10485 ac_res=`eval 'as_val=${'$as_ac_var'}
10486 $as_echo "$as_val"'`
10487 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10488 $as_echo "$ac_res" >&6; }
10489 if test `eval 'as_val=${'$as_ac_var'}
10490 $as_echo "$as_val"'` = yes; then
10491 cat >>confdefs.h <<_ACEOF
10492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10501 # If we don't have everything we want, check in libintl
10503 if test "$gt_cv_func_dgettext_libc" != "yes" \
10504 || test "$gt_cv_func_ngettext_libc" != "yes" \
10505 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
10507 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
10508 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
10509 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
10510 $as_echo_n "(cached) " >&6
10512 ac_check_lib_save_LIBS=$LIBS
10513 LIBS="-lintl $LIBS"
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10521 /* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
10527 char bindtextdomain ();
10531 return bindtextdomain ();
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10543 $as_echo "$ac_try_echo") >&5
10544 (eval "$ac_link") 2>conftest.er1
10546 grep -v '^ *+' conftest.er1 >conftest.err
10548 cat conftest.err >&5
10549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } && {
10551 test -z "$ac_c_werror_flag" ||
10552 test ! -s conftest.err
10553 } && test -s conftest$ac_exeext && {
10554 test "$cross_compiling" = yes ||
10555 $as_test_x conftest$ac_exeext
10557 ac_cv_lib_intl_bindtextdomain=yes
10559 $as_echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10562 ac_cv_lib_intl_bindtextdomain=no
10565 rm -rf conftest.dSYM
10566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10567 conftest$ac_exeext conftest.$ac_ext
10568 LIBS=$ac_check_lib_save_LIBS
10570 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
10571 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
10572 if test $ac_cv_lib_intl_bindtextdomain = yes; then
10573 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10574 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10575 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10576 $as_echo_n "(cached) " >&6
10578 ac_check_lib_save_LIBS=$LIBS
10579 LIBS="-lintl $LIBS"
10580 cat >conftest.$ac_ext <<_ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10587 /* Override any GCC internal prototype to avoid an error.
10588 Use char because int might match the return type of a GCC
10589 builtin and then its argument prototype would still apply. */
10597 return ngettext ();
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (ac_try="$ac_link"
10604 case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10609 $as_echo "$ac_try_echo") >&5
10610 (eval "$ac_link") 2>conftest.er1
10612 grep -v '^ *+' conftest.er1 >conftest.err
10614 cat conftest.err >&5
10615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } && {
10617 test -z "$ac_c_werror_flag" ||
10618 test ! -s conftest.err
10619 } && test -s conftest$ac_exeext && {
10620 test "$cross_compiling" = yes ||
10621 $as_test_x conftest$ac_exeext
10623 ac_cv_lib_intl_ngettext=yes
10625 $as_echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10628 ac_cv_lib_intl_ngettext=no
10631 rm -rf conftest.dSYM
10632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10633 conftest$ac_exeext conftest.$ac_ext
10634 LIBS=$ac_check_lib_save_LIBS
10636 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10637 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10638 if test $ac_cv_lib_intl_ngettext = yes; then
10639 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
10640 $as_echo_n "checking for dgettext in -lintl... " >&6; }
10641 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
10642 $as_echo_n "(cached) " >&6
10644 ac_check_lib_save_LIBS=$LIBS
10645 LIBS="-lintl $LIBS"
10646 cat >conftest.$ac_ext <<_ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10653 /* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10663 return dgettext ();
10668 rm -f conftest.$ac_objext conftest$ac_exeext
10669 if { (ac_try="$ac_link"
10670 case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10675 $as_echo "$ac_try_echo") >&5
10676 (eval "$ac_link") 2>conftest.er1
10678 grep -v '^ *+' conftest.er1 >conftest.err
10680 cat conftest.err >&5
10681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } && {
10683 test -z "$ac_c_werror_flag" ||
10684 test ! -s conftest.err
10685 } && test -s conftest$ac_exeext && {
10686 test "$cross_compiling" = yes ||
10687 $as_test_x conftest$ac_exeext
10689 ac_cv_lib_intl_dgettext=yes
10691 $as_echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.$ac_ext >&5
10694 ac_cv_lib_intl_dgettext=no
10697 rm -rf conftest.dSYM
10698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10699 conftest$ac_exeext conftest.$ac_ext
10700 LIBS=$ac_check_lib_save_LIBS
10702 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
10703 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
10704 if test $ac_cv_lib_intl_dgettext = yes; then
10705 gt_cv_func_dgettext_libintl=yes
10713 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
10714 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
10715 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
10716 { $as_echo "$as_me:$LINENO: result: " >&5
10718 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10719 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10720 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10721 $as_echo_n "(cached) " >&6
10723 ac_check_lib_save_LIBS=$LIBS
10724 LIBS="-lintl -liconv $LIBS"
10725 cat >conftest.$ac_ext <<_ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10732 /* Override any GCC internal prototype to avoid an error.
10733 Use char because int might match the return type of a GCC
10734 builtin and then its argument prototype would still apply. */
10742 return ngettext ();
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (ac_try="$ac_link"
10749 case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10754 $as_echo "$ac_try_echo") >&5
10755 (eval "$ac_link") 2>conftest.er1
10757 grep -v '^ *+' conftest.er1 >conftest.err
10759 cat conftest.err >&5
10760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } && {
10762 test -z "$ac_c_werror_flag" ||
10763 test ! -s conftest.err
10764 } && test -s conftest$ac_exeext && {
10765 test "$cross_compiling" = yes ||
10766 $as_test_x conftest$ac_exeext
10768 ac_cv_lib_intl_ngettext=yes
10770 $as_echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10773 ac_cv_lib_intl_ngettext=no
10776 rm -rf conftest.dSYM
10777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10778 conftest$ac_exeext conftest.$ac_ext
10779 LIBS=$ac_check_lib_save_LIBS
10781 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10782 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10783 if test $ac_cv_lib_intl_ngettext = yes; then
10784 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
10785 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
10786 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
10787 $as_echo_n "(cached) " >&6
10789 ac_check_lib_save_LIBS=$LIBS
10790 LIBS="-lintl -liconv $LIBS"
10791 cat >conftest.$ac_ext <<_ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10798 /* Override any GCC internal prototype to avoid an error.
10799 Use char because int might match the return type of a GCC
10800 builtin and then its argument prototype would still apply. */
10808 return dcgettext ();
10813 rm -f conftest.$ac_objext conftest$ac_exeext
10814 if { (ac_try="$ac_link"
10815 case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10820 $as_echo "$ac_try_echo") >&5
10821 (eval "$ac_link") 2>conftest.er1
10823 grep -v '^ *+' conftest.er1 >conftest.err
10825 cat conftest.err >&5
10826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } && {
10828 test -z "$ac_c_werror_flag" ||
10829 test ! -s conftest.err
10830 } && test -s conftest$ac_exeext && {
10831 test "$cross_compiling" = yes ||
10832 $as_test_x conftest$ac_exeext
10834 ac_cv_lib_intl_dcgettext=yes
10836 $as_echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10839 ac_cv_lib_intl_dcgettext=no
10842 rm -rf conftest.dSYM
10843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10844 conftest$ac_exeext conftest.$ac_ext
10845 LIBS=$ac_check_lib_save_LIBS
10847 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
10848 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
10849 if test $ac_cv_lib_intl_dcgettext = yes; then
10850 gt_cv_func_dgettext_libintl=yes
10851 libintl_extra_libs=-liconv
10863 # If we found libintl, then check in it for bind_textdomain_codeset();
10864 # we'll prefer libc if neither have bind_textdomain_codeset(),
10865 # and both have dgettext and ngettext
10867 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
10868 glib_save_LIBS="$LIBS"
10869 LIBS="$LIBS -lintl $libintl_extra_libs"
10870 unset ac_cv_func_bind_textdomain_codeset
10872 for ac_func in bind_textdomain_codeset
10874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10875 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10876 $as_echo_n "checking for $ac_func... " >&6; }
10877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10878 $as_echo_n "(cached) " >&6
10880 cat >conftest.$ac_ext <<_ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10888 #define $ac_func innocuous_$ac_func
10890 /* System header to define __stub macros and hopefully few prototypes,
10891 which can conflict with char $ac_func (); below.
10892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10893 <limits.h> exists even on freestanding compilers. */
10896 # include <limits.h>
10898 # include <assert.h>
10903 /* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10910 /* The GNU C library defines this for functions which it implements
10911 to always fail with ENOSYS. Some functions are actually named
10912 something starting with __ and the normal name is an alias. */
10913 #if defined __stub_$ac_func || defined __stub___$ac_func
10920 return $ac_func ();
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10932 $as_echo "$ac_try_echo") >&5
10933 (eval "$ac_link") 2>conftest.er1
10935 grep -v '^ *+' conftest.er1 >conftest.err
10937 cat conftest.err >&5
10938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } && {
10940 test -z "$ac_c_werror_flag" ||
10941 test ! -s conftest.err
10942 } && test -s conftest$ac_exeext && {
10943 test "$cross_compiling" = yes ||
10944 $as_test_x conftest$ac_exeext
10946 eval "$as_ac_var=yes"
10948 $as_echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10951 eval "$as_ac_var=no"
10954 rm -rf conftest.dSYM
10955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10956 conftest$ac_exeext conftest.$ac_ext
10958 ac_res=`eval 'as_val=${'$as_ac_var'}
10959 $as_echo "$as_val"'`
10960 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10961 $as_echo "$ac_res" >&6; }
10962 if test `eval 'as_val=${'$as_ac_var'}
10963 $as_echo "$as_val"'` = yes; then
10964 cat >>confdefs.h <<_ACEOF
10965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10971 LIBS="$glib_save_LIBS"
10973 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
10974 gt_cv_func_dgettext_libc=no
10976 if test "$gt_cv_func_dgettext_libc" = "yes" \
10977 && test "$gt_cv_func_ngettext_libc" = "yes"; then
10978 gt_cv_func_dgettext_libintl=no
10984 if test "$gt_cv_func_dgettext_libc" = "yes" \
10985 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10986 gt_cv_have_gettext=yes
10989 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10990 INTLLIBS="-lintl $libintl_extra_libs"
10993 if test "$gt_cv_have_gettext" = "yes"; then
10995 cat >>confdefs.h <<\_ACEOF
10996 #define HAVE_GETTEXT 1
10999 # Extract the first word of "msgfmt", so it can be a program name with args.
11000 set dummy msgfmt; ac_word=$2
11001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11002 $as_echo_n "checking for $ac_word... " >&6; }
11003 if test "${ac_cv_path_MSGFMT+set}" = set; then
11004 $as_echo_n "(cached) " >&6
11008 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11012 for ac_dir in $PATH; do
11013 test -z "$ac_dir" && ac_dir=.
11014 if test -f $ac_dir/$ac_word; then
11015 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
11016 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11022 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
11026 MSGFMT="$ac_cv_path_MSGFMT"
11027 if test "$MSGFMT" != "no"; then
11028 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
11029 $as_echo "$MSGFMT" >&6; }
11031 { $as_echo "$as_me:$LINENO: result: no" >&5
11032 $as_echo "no" >&6; }
11034 if test "$MSGFMT" != "no"; then
11035 glib_save_LIBS="$LIBS"
11036 LIBS="$LIBS $INTLLIBS"
11038 for ac_func in dcgettext
11040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11041 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11042 $as_echo_n "checking for $ac_func... " >&6; }
11043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11044 $as_echo_n "(cached) " >&6
11046 cat >conftest.$ac_ext <<_ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11054 #define $ac_func innocuous_$ac_func
11056 /* System header to define __stub macros and hopefully few prototypes,
11057 which can conflict with char $ac_func (); below.
11058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11059 <limits.h> exists even on freestanding compilers. */
11062 # include <limits.h>
11064 # include <assert.h>
11069 /* Override any GCC internal prototype to avoid an error.
11070 Use char because int might match the return type of a GCC
11071 builtin and then its argument prototype would still apply. */
11076 /* The GNU C library defines this for functions which it implements
11077 to always fail with ENOSYS. Some functions are actually named
11078 something starting with __ and the normal name is an alias. */
11079 #if defined __stub_$ac_func || defined __stub___$ac_func
11086 return $ac_func ();
11091 rm -f conftest.$ac_objext conftest$ac_exeext
11092 if { (ac_try="$ac_link"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11098 $as_echo "$ac_try_echo") >&5
11099 (eval "$ac_link") 2>conftest.er1
11101 grep -v '^ *+' conftest.er1 >conftest.err
11103 cat conftest.err >&5
11104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && {
11106 test -z "$ac_c_werror_flag" ||
11107 test ! -s conftest.err
11108 } && test -s conftest$ac_exeext && {
11109 test "$cross_compiling" = yes ||
11110 $as_test_x conftest$ac_exeext
11112 eval "$as_ac_var=yes"
11114 $as_echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11117 eval "$as_ac_var=no"
11120 rm -rf conftest.dSYM
11121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11122 conftest$ac_exeext conftest.$ac_ext
11124 ac_res=`eval 'as_val=${'$as_ac_var'}
11125 $as_echo "$as_val"'`
11126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11127 $as_echo "$ac_res" >&6; }
11128 if test `eval 'as_val=${'$as_ac_var'}
11129 $as_echo "$as_val"'` = yes; then
11130 cat >>confdefs.h <<_ACEOF
11131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11138 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
11139 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
11140 cat >conftest.foo <<_ACEOF
11144 "Content-Type: text/plain; charset=UTF-8\n"
11145 "Project-Id-Version: test 1.0\n"
11146 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
11147 "Last-Translator: test <foo@bar.xx>\n"
11148 "Language-Team: C <LL@li.org>\n"
11149 "MIME-Version: 1.0\n"
11150 "Content-Transfer-Encoding: 8bit\n"
11153 if { ($as_echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
11154 (msgfmt -c -o /dev/null conftest.foo) 2>&5
11156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; then
11158 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
11159 $as_echo "yes" >&6; }
11160 else { $as_echo "$as_me:$LINENO: result: no" >&5
11161 $as_echo "no" >&6; }
11162 echo "$as_me: failed input was:" >&5
11163 sed 's/^/| /' conftest.foo >&5
11166 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11167 set dummy gmsgfmt; ac_word=$2
11168 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11169 $as_echo_n "checking for $ac_word... " >&6; }
11170 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11171 $as_echo_n "(cached) " >&6
11175 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11179 for as_dir in $PATH
11182 test -z "$as_dir" && as_dir=.
11183 for ac_exec_ext in '' $ac_executable_extensions; do
11184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11185 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11186 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11193 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11197 GMSGFMT=$ac_cv_path_GMSGFMT
11198 if test -n "$GMSGFMT"; then
11199 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11200 $as_echo "$GMSGFMT" >&6; }
11202 { $as_echo "$as_me:$LINENO: result: no" >&5
11203 $as_echo "no" >&6; }
11207 # Extract the first word of "xgettext", so it can be a program name with args.
11208 set dummy xgettext; ac_word=$2
11209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11212 $as_echo_n "(cached) " >&6
11214 case "$XGETTEXT" in
11216 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11220 for ac_dir in $PATH; do
11221 test -z "$ac_dir" && ac_dir=.
11222 if test -f $ac_dir/$ac_word; then
11223 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
11224 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11230 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11234 XGETTEXT="$ac_cv_path_XGETTEXT"
11235 if test "$XGETTEXT" != ":"; then
11236 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11237 $as_echo "$XGETTEXT" >&6; }
11239 { $as_echo "$as_me:$LINENO: result: no" >&5
11240 $as_echo "no" >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11253 extern int _nl_msg_cat_cntr;
11254 return _nl_msg_cat_cntr
11259 rm -f conftest.$ac_objext conftest$ac_exeext
11260 if { (ac_try="$ac_link"
11261 case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11266 $as_echo "$ac_try_echo") >&5
11267 (eval "$ac_link") 2>conftest.er1
11269 grep -v '^ *+' conftest.er1 >conftest.err
11271 cat conftest.err >&5
11272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && {
11274 test -z "$ac_c_werror_flag" ||
11275 test ! -s conftest.err
11276 } && test -s conftest$ac_exeext && {
11277 test "$cross_compiling" = yes ||
11278 $as_test_x conftest$ac_exeext
11283 $as_echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11288 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
11289 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
11290 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
11291 $as_echo_n "(cached) " >&6
11293 cat >conftest.$ac_ext <<_ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
11300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11301 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
11303 /* System header to define __stub macros and hopefully few prototypes,
11304 which can conflict with char bind_textdomain_codeset (); below.
11305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11306 <limits.h> exists even on freestanding compilers. */
11309 # include <limits.h>
11311 # include <assert.h>
11314 #undef bind_textdomain_codeset
11316 /* Override any GCC internal prototype to avoid an error.
11317 Use char because int might match the return type of a GCC
11318 builtin and then its argument prototype would still apply. */
11322 char bind_textdomain_codeset ();
11323 /* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
11333 return bind_textdomain_codeset ();
11338 rm -f conftest.$ac_objext conftest$ac_exeext
11339 if { (ac_try="$ac_link"
11340 case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11345 $as_echo "$ac_try_echo") >&5
11346 (eval "$ac_link") 2>conftest.er1
11348 grep -v '^ *+' conftest.er1 >conftest.err
11350 cat conftest.err >&5
11351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && {
11353 test -z "$ac_c_werror_flag" ||
11354 test ! -s conftest.err
11355 } && test -s conftest$ac_exeext && {
11356 test "$cross_compiling" = yes ||
11357 $as_test_x conftest$ac_exeext
11359 ac_cv_func_bind_textdomain_codeset=yes
11361 $as_echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 ac_cv_func_bind_textdomain_codeset=no
11367 rm -rf conftest.dSYM
11368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11369 conftest$ac_exeext conftest.$ac_ext
11371 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
11372 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
11373 if test $ac_cv_func_bind_textdomain_codeset = yes; then
11389 rm -rf conftest.dSYM
11390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11391 conftest$ac_exeext conftest.$ac_ext
11392 LIBS="$glib_save_LIBS"
11395 gt_cv_have_gettext=no
11403 if test "$gt_cv_have_gettext" = "yes" ; then
11405 cat >>confdefs.h <<\_ACEOF
11406 #define ENABLE_NLS 1
11411 if test "$XGETTEXT" != ":"; then
11412 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
11415 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11416 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11421 # We need to process the po/ directory.
11424 ac_config_commands="$ac_config_commands default-1"
11427 for lang in $ALL_LINGUAS; do
11428 GMOFILES="$GMOFILES $lang.gmo"
11429 POFILES="$POFILES $lang.po"
11444 if test "$gt_cv_have_gettext" = "yes"; then
11445 if test "x$ALL_LINGUAS" = "x"; then
11448 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11449 $as_echo_n "checking for catalogs to be installed... " >&6; }
11451 for presentlang in $ALL_LINGUAS; do
11453 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
11454 desiredlanguages="$LINGUAS"
11456 desiredlanguages="$ALL_LINGUAS"
11458 for desiredlang in $desiredlanguages; do
11459 # Use the presentlang catalog if desiredlang is
11460 # a. equal to presentlang, or
11461 # b. a variant of presentlang (because in this case,
11462 # presentlang can be used as a fallback for messages
11463 # which are not translated in the desiredlang catalog).
11464 case "$desiredlang" in
11465 "$presentlang"*) useit=yes;;
11468 if test $useit = yes; then
11469 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
11472 LINGUAS=$NEW_LINGUAS
11473 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
11474 $as_echo "$LINGUAS" >&6; }
11477 if test -n "$LINGUAS"; then
11478 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
11483 if test -n "$ac_aux_dir"; then
11484 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11486 if test -z "$MKINSTALLDIRS"; then
11487 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11491 test -d po || mkdir po
11492 if test "x$srcdir" != "x."; then
11493 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
11494 posrcprefix="$srcdir/"
11496 posrcprefix="../$srcdir/"
11502 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
11503 < $srcdir/po/POTFILES.in > po/POTFILES
11506 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
11508 cat >confcache <<\_ACEOF
11509 # This file is a shell script that caches the results of configure
11510 # tests run on this system so they can be shared between configure
11511 # scripts and configure runs, see configure's option --config-cache.
11512 # It is not useful on other systems. If it contains results you don't
11513 # want to keep, you may remove or edit it.
11515 # config.status only pays attention to the cache file if you give it
11516 # the --recheck option to rerun configure.
11518 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11519 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11520 # following values.
11524 # The following way of writing the cache mishandles newlines in values,
11525 # but we know of no workaround that is simple, portable, and efficient.
11526 # So, we kill variables containing newlines.
11527 # Ultrix sh set writes to stderr and can't be redirected directly,
11528 # and sets the high bit in the cache file unless we assign to the vars.
11530 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11531 eval ac_val=\$$ac_var
11535 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11536 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11539 _ | IFS | as_nl) ;; #(
11540 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11541 *) $as_unset $ac_var ;;
11547 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11548 *${as_nl}ac_space=\ *)
11549 # `set' does not quote correctly, so add quotes (double-quote
11550 # substitution turns \\\\ into \\, and sed turns \\ into \).
11553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11556 # `set' quotes correctly as required by POSIX, so do not add quotes.
11557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11566 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11568 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11570 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11571 if test -w "$cache_file"; then
11572 test "x$cache_file" != "x/dev/null" &&
11573 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11574 $as_echo "$as_me: updating cache $cache_file" >&6;}
11575 cat confcache >$cache_file
11577 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11578 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11583 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11584 # Let make expand exec_prefix.
11585 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11587 DEFS=-DHAVE_CONFIG_H
11591 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11592 # 1. Remove the extension, and $U if already installed.
11593 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11594 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11595 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11596 # will be set to the directory where LIBOBJS objects are built.
11597 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11598 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11600 LIBOBJS=$ac_libobjs
11602 LTLIBOBJS=$ac_ltlibobjs
11605 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11606 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11607 Usually this means the macro was only invoked conditionally." >&5
11608 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11609 Usually this means the macro was only invoked conditionally." >&2;}
11610 { (exit 1); exit 1; }; }
11612 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11613 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11614 Usually this means the macro was only invoked conditionally." >&5
11615 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11616 Usually this means the macro was only invoked conditionally." >&2;}
11617 { (exit 1); exit 1; }; }
11619 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11620 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11621 Usually this means the macro was only invoked conditionally." >&5
11622 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11623 Usually this means the macro was only invoked conditionally." >&2;}
11624 { (exit 1); exit 1; }; }
11626 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11627 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11628 Usually this means the macro was only invoked conditionally." >&5
11629 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11630 Usually this means the macro was only invoked conditionally." >&2;}
11631 { (exit 1); exit 1; }; }
11633 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11634 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11635 Usually this means the macro was only invoked conditionally." >&5
11636 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11637 Usually this means the macro was only invoked conditionally." >&2;}
11638 { (exit 1); exit 1; }; }
11640 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
11641 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
11642 Usually this means the macro was only invoked conditionally." >&5
11643 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
11644 Usually this means the macro was only invoked conditionally." >&2;}
11645 { (exit 1); exit 1; }; }
11647 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
11648 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
11649 Usually this means the macro was only invoked conditionally." >&5
11650 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
11651 Usually this means the macro was only invoked conditionally." >&2;}
11652 { (exit 1); exit 1; }; }
11654 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
11655 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
11656 Usually this means the macro was only invoked conditionally." >&5
11657 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
11658 Usually this means the macro was only invoked conditionally." >&2;}
11659 { (exit 1); exit 1; }; }
11661 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
11662 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
11663 Usually this means the macro was only invoked conditionally." >&5
11664 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
11665 Usually this means the macro was only invoked conditionally." >&2;}
11666 { (exit 1); exit 1; }; }
11668 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
11669 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
11670 Usually this means the macro was only invoked conditionally." >&5
11671 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
11672 Usually this means the macro was only invoked conditionally." >&2;}
11673 { (exit 1); exit 1; }; }
11675 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
11676 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
11677 Usually this means the macro was only invoked conditionally." >&5
11678 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
11679 Usually this means the macro was only invoked conditionally." >&2;}
11680 { (exit 1); exit 1; }; }
11682 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
11683 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
11684 Usually this means the macro was only invoked conditionally." >&5
11685 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
11686 Usually this means the macro was only invoked conditionally." >&2;}
11687 { (exit 1); exit 1; }; }
11689 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
11690 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
11691 Usually this means the macro was only invoked conditionally." >&5
11692 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
11693 Usually this means the macro was only invoked conditionally." >&2;}
11694 { (exit 1); exit 1; }; }
11696 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
11697 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
11698 Usually this means the macro was only invoked conditionally." >&5
11699 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
11700 Usually this means the macro was only invoked conditionally." >&2;}
11701 { (exit 1); exit 1; }; }
11703 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
11704 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
11705 Usually this means the macro was only invoked conditionally." >&5
11706 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
11707 Usually this means the macro was only invoked conditionally." >&2;}
11708 { (exit 1); exit 1; }; }
11710 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
11711 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
11712 Usually this means the macro was only invoked conditionally." >&5
11713 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
11714 Usually this means the macro was only invoked conditionally." >&2;}
11715 { (exit 1); exit 1; }; }
11717 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
11718 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
11719 Usually this means the macro was only invoked conditionally." >&5
11720 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
11721 Usually this means the macro was only invoked conditionally." >&2;}
11722 { (exit 1); exit 1; }; }
11724 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
11725 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
11726 Usually this means the macro was only invoked conditionally." >&5
11727 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
11728 Usually this means the macro was only invoked conditionally." >&2;}
11729 { (exit 1); exit 1; }; }
11731 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
11732 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
11733 Usually this means the macro was only invoked conditionally." >&5
11734 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
11735 Usually this means the macro was only invoked conditionally." >&2;}
11736 { (exit 1); exit 1; }; }
11738 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
11739 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
11740 Usually this means the macro was only invoked conditionally." >&5
11741 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
11742 Usually this means the macro was only invoked conditionally." >&2;}
11743 { (exit 1); exit 1; }; }
11745 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
11746 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
11747 Usually this means the macro was only invoked conditionally." >&5
11748 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
11749 Usually this means the macro was only invoked conditionally." >&2;}
11750 { (exit 1); exit 1; }; }
11753 : ${CONFIG_STATUS=./config.status}
11755 ac_clean_files_save=$ac_clean_files
11756 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11757 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11758 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11759 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11761 # Generated by $as_me.
11762 # Run this file to recreate the current configuration.
11763 # Compiler output produced by configure, useful for debugging
11764 # configure, is in config.log if it exists.
11767 ac_cs_recheck=false
11769 SHELL=\${CONFIG_SHELL-$SHELL}
11772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11773 ## --------------------- ##
11774 ## M4sh Initialization. ##
11775 ## --------------------- ##
11777 # Be more Bourne compatible
11778 DUALCASE=1; export DUALCASE # for MKS sh
11779 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11782 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11783 # is contrary to our usage. Disable this feature.
11784 alias -g '${1+"$@"}'='"$@"'
11785 setopt NO_GLOB_SUBST
11787 case `(set -o) 2>/dev/null` in
11788 *posix*) set -o posix ;;
11797 # Avoid depending upon Character Ranges.
11798 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11799 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11800 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11801 as_cr_digits='0123456789'
11802 as_cr_alnum=$as_cr_Letters$as_cr_digits
11807 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11808 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11809 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11810 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11811 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11812 as_echo='printf %s\n'
11813 as_echo_n='printf %s'
11815 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11816 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11817 as_echo_n='/usr/ucb/echo -n'
11819 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11820 as_echo_n_body='eval
11824 expr "X$arg" : "X\\(.*\\)$as_nl";
11825 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11827 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11829 export as_echo_n_body
11830 as_echo_n='sh -c $as_echo_n_body as_echo'
11832 export as_echo_body
11833 as_echo='sh -c $as_echo_body as_echo'
11836 # The user is always right.
11837 if test "${PATH_SEPARATOR+set}" != set; then
11839 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11840 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11845 # Support unset when possible.
11846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11854 # We need space, tab and new line, in precisely that order. Quoting is
11855 # there to prevent editors from complaining about space-tab.
11856 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11857 # splitting by setting IFS to empty value.)
11860 # Find who we are. Look in the path if we contain no directory separator.
11862 *[\\/]* ) as_myself=$0 ;;
11863 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in $PATH
11867 test -z "$as_dir" && as_dir=.
11868 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11874 # We did not find ourselves, most probably we were run as `sh COMMAND'
11875 # in which case we are not to be found in the path.
11876 if test "x$as_myself" = x; then
11879 if test ! -f "$as_myself"; then
11880 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11881 { (exit 1); exit 1; }
11884 # Work around bugs in pre-3.0 UWIN ksh.
11885 for as_var in ENV MAIL MAILPATH
11886 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11898 # Required to use basename.
11899 if expr a : '\(a\)' >/dev/null 2>&1 &&
11900 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11906 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11907 as_basename=basename
11913 # Name of the executable.
11914 as_me=`$as_basename -- "$0" ||
11915 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11916 X"$0" : 'X\(//\)$' \| \
11917 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11919 sed '/^.*\/\([^/][^/]*\)\/*$/{
11938 as_lineno_1=$LINENO
11939 as_lineno_2=$LINENO
11940 test "x$as_lineno_1" != "x$as_lineno_2" &&
11941 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11943 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11944 # uniformly replaced by the line number. The first 'sed' inserts a
11945 # line-number line after each line using $LINENO; the second 'sed'
11946 # does the real work. The second script uses 'N' to pair each
11947 # line-number line with the line containing $LINENO, and appends
11948 # trailing '-' during substitution so that $LINENO is not a special
11949 # case at line end.
11950 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11951 # scripts with optimization help from Paolo Bonzini. Blame Lee
11952 # E. McMahon (1931-1989) for sed's syntax. :-)
11964 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11967 ' >$as_me.lineno &&
11968 chmod +x "$as_me.lineno" ||
11969 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11970 { (exit 1); exit 1; }; }
11972 # Don't try to exec as it changes $[0], causing all sort of problems
11973 # (the dirname of $[0] is not the place where we might find the
11974 # original and so on. Autoconf is especially sensitive to this).
11975 . "./$as_me.lineno"
11976 # Exit status is that of the last command.
11981 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11987 ECHO_C= ECHO_N= ECHO_T=
11988 case `echo -n x` in
11990 case `echo 'x\c'` in
11991 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11997 if expr a : '\(a\)' >/dev/null 2>&1 &&
11998 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12004 rm -f conf$$ conf$$.exe conf$$.file
12005 if test -d conf$$.dir; then
12006 rm -f conf$$.dir/conf$$.file
12009 mkdir conf$$.dir 2>/dev/null
12011 if (echo >conf$$.file) 2>/dev/null; then
12012 if ln -s conf$$.file conf$$ 2>/dev/null; then
12014 # ... but there are two gotchas:
12015 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12016 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12017 # In both cases, we have to default to `cp -p'.
12018 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12020 elif ln conf$$.file conf$$ 2>/dev/null; then
12028 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12029 rmdir conf$$.dir 2>/dev/null
12031 if mkdir -p . 2>/dev/null; then
12034 test -d ./-p && rmdir ./-p
12038 if test -x / >/dev/null 2>&1; then
12039 as_test_x='test -x'
12041 if ls -dL / >/dev/null 2>&1; then
12048 if test -d "$1"; then
12054 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12055 ???[sx]*):;;*)false;;esac;fi
12059 as_executable_p=$as_test_x
12061 # Sed expression to map a string onto a valid CPP name.
12062 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12064 # Sed expression to map a string onto a valid variable name.
12065 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12070 # Save the log message, to keep $[0] and so on meaningful, and to
12071 # report actual input values of CONFIG_FILES etc. instead of their
12072 # values after options handling.
12074 This file was extended by $as_me, which was
12075 generated by GNU Autoconf 2.62. Invocation command line was
12077 CONFIG_FILES = $CONFIG_FILES
12078 CONFIG_HEADERS = $CONFIG_HEADERS
12079 CONFIG_LINKS = $CONFIG_LINKS
12080 CONFIG_COMMANDS = $CONFIG_COMMANDS
12083 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12089 # Files that config.status was made for.
12090 config_files="$ac_config_files"
12091 config_headers="$ac_config_headers"
12092 config_commands="$ac_config_commands"
12096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12098 \`$as_me' instantiates files from templates according to the
12099 current configuration.
12101 Usage: $0 [OPTIONS] [FILE]...
12103 -h, --help print this help, then exit
12104 -V, --version print version number and configuration settings, then exit
12105 -q, --quiet do not print progress messages
12106 -d, --debug don't remove temporary files
12107 --recheck update $as_me by reconfiguring in the same conditions
12108 --file=FILE[:TEMPLATE]
12109 instantiate the configuration file FILE
12110 --header=FILE[:TEMPLATE]
12111 instantiate the configuration header FILE
12113 Configuration files:
12116 Configuration headers:
12119 Configuration commands:
12122 Report bugs to <bug-autoconf@gnu.org>."
12125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12128 configured by $0, generated by GNU Autoconf 2.62,
12129 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12131 Copyright (C) 2008 Free Software Foundation, Inc.
12132 This config.status script is free software; the Free Software Foundation
12133 gives unlimited permission to copy, distribute and modify it."
12139 test -n "\$AWK" || AWK=awk
12142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12143 # The default lists apply if the user does not specify any file.
12149 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12150 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12161 # Handling of the options.
12162 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12164 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12165 $as_echo "$ac_cs_version"; exit ;;
12166 --debug | --debu | --deb | --de | --d | -d )
12168 --file | --fil | --fi | --f )
12171 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12173 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12174 ac_need_defaults=false;;
12175 --header | --heade | --head | --hea )
12178 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12180 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12181 ac_need_defaults=false;;
12183 # Conflict between --help and --header
12184 { $as_echo "$as_me: error: ambiguous option: $1
12185 Try \`$0 --help' for more information." >&2
12186 { (exit 1); exit 1; }; };;
12187 --help | --hel | -h )
12188 $as_echo "$ac_cs_usage"; exit ;;
12189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12190 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12193 # This is an error.
12194 -*) { $as_echo "$as_me: error: unrecognized option: $1
12195 Try \`$0 --help' for more information." >&2
12196 { (exit 1); exit 1; }; } ;;
12198 *) ac_config_targets="$ac_config_targets $1"
12199 ac_need_defaults=false ;;
12205 ac_configure_extra_args=
12207 if $ac_cs_silent; then
12209 ac_configure_extra_args="$ac_configure_extra_args --silent"
12213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12214 if \$ac_cs_recheck; then
12215 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12217 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12218 CONFIG_SHELL='$SHELL'
12219 export CONFIG_SHELL
12224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12229 ## Running $as_me. ##
12235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12239 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12246 # Handling of arguments.
12247 for ac_config_target in $ac_config_targets
12249 case $ac_config_target in
12250 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12251 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12252 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12253 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12254 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12255 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12256 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12257 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
12259 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12260 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12261 { (exit 1); exit 1; }; };;
12266 # If the user did not use the arguments to specify the items to instantiate,
12267 # then the envvar interface is used. Set only those that are not.
12268 # We use the long form for the default assignment because of an extremely
12269 # bizarre bug on SunOS 4.1.3.
12270 if $ac_need_defaults; then
12271 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12272 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12273 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12276 # Have a temporary directory for convenience. Make it in the build tree
12277 # simply because there is no reason against having it here, and in addition,
12278 # creating and moving files from /tmp can sometimes cause problems.
12279 # Hook for its removal unless debugging.
12280 # Note that there is a small window in which the directory will not be cleaned:
12281 # after its creation but before its name has been assigned to `$tmp'.
12285 trap 'exit_status=$?
12286 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12288 trap '{ (exit 1); exit 1; }' 1 2 13 15
12290 # Create a (secure) tmp directory for tmp files.
12293 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12294 test -n "$tmp" && test -d "$tmp"
12297 tmp=./conf$$-$RANDOM
12298 (umask 077 && mkdir "$tmp")
12301 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12302 { (exit 1); exit 1; }
12305 # Set up the scripts for CONFIG_FILES section.
12306 # No need to generate them if there are no CONFIG_FILES.
12307 # This happens for instance with `./config.status config.h'.
12308 if test -n "$CONFIG_FILES"; then
12313 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12314 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12317 ac_cs_awk_cr=$ac_cr
12320 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12325 echo "cat >conf$$subs.awk <<_ACEOF" &&
12326 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12328 } >conf$$subs.sh ||
12329 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12330 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12331 { (exit 1); exit 1; }; }
12332 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12334 for ac_last_try in false false false false false :; do
12335 . ./conf$$subs.sh ||
12336 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12337 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12338 { (exit 1); exit 1; }; }
12340 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
12342 elif $ac_last_try; then
12343 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12344 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12345 { (exit 1); exit 1; }; }
12347 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12350 rm -f conf$$subs.sh
12352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12353 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12357 s/^/S["/; s/!.*/"]=/
12367 s/\(.\{148\}\).*/\1/
12369 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12381 s/\(.\{148\}\).*/\1/
12383 s/["\\]/\\&/g; s/^/"/; s/$/"/
12387 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12392 ' <conf$$subs.awk | sed '
12397 ' >>$CONFIG_STATUS || ac_write_fail=1
12398 rm -f conf$$subs.awk
12399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12401 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12402 for (key in S) S_is_set[key] = 1
12408 nfields = split(line, field, "@")
12410 len = length(field[1])
12411 for (i = 2; i < nfields; i++) {
12413 keylen = length(key)
12414 if (S_is_set[key]) {
12416 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12417 len += length(value) + length(field[++i])
12428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12429 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12430 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12433 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12434 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12435 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
12436 { (exit 1); exit 1; }; }
12439 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12440 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12441 # trailing colons and then remove the whole line if VPATH becomes empty
12442 # (actually we leave an empty line to preserve line numbers).
12443 if test "x$srcdir" = x.; then
12444 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12445 s/:*\$(srcdir):*/:/
12446 s/:*\${srcdir}:*/:/
12448 s/^\([^=]*=[ ]*\):*/\1/
12454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12455 fi # test -n "$CONFIG_FILES"
12457 # Set up the scripts for CONFIG_HEADERS section.
12458 # No need to generate them if there are no CONFIG_HEADERS.
12459 # This happens for instance with `./config.status Makefile'.
12460 if test -n "$CONFIG_HEADERS"; then
12461 cat >"$tmp/defines.awk" <<\_ACAWK ||
12465 # Transform confdefs.h into an awk script `defines.awk', embedded as
12466 # here-document in config.status, that substitutes the proper values into
12467 # config.h.in to produce config.h.
12469 # Create a delimiter string that does not exist in confdefs.h, to ease
12470 # handling of long lines.
12472 for ac_last_try in false false :; do
12473 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12474 if test -z "$ac_t"; then
12476 elif $ac_last_try; then
12477 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12478 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12479 { (exit 1); exit 1; }; }
12481 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12485 # For the awk script, D is an array of macro values keyed by name,
12486 # likewise P contains macro parameters if any. Preserve backslash
12487 # newline sequences.
12489 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12491 s/.\{148\}/&'"$ac_delim"'/g
12494 s/^[ ]*#[ ]*define[ ][ ]*/ /
12501 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12503 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12507 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12508 D["\1"]=" \3\\\\\\n"\\/p
12510 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12515 s/.\{148\}/&'"$ac_delim"'/g
12520 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12523 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12525 ' <confdefs.h | sed '
12526 s/'"$ac_delim"'/"\\\
12527 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12530 for (key in D) D_is_set[key] = 1
12533 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12535 split(line, arg, " ")
12536 if (arg[1] == "#") {
12540 defundef = substr(arg[1], 2)
12543 split(mac1, mac2, "(") #)
12545 if (D_is_set[macro]) {
12546 # Preserve the white space surrounding the "#".
12547 prefix = substr(line, 1, index(line, defundef) - 1)
12548 print prefix "define", macro P[macro] D[macro]
12551 # Replace #undef with comments. This is necessary, for example,
12552 # in the case of _POSIX_SOURCE, which is predefined and required
12553 # on some systems where configure will not decide to define it.
12554 if (defundef == "undef") {
12555 print "/*", line, "*/"
12563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12564 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12565 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12566 { (exit 1); exit 1; }; }
12567 fi # test -n "$CONFIG_HEADERS"
12570 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12575 :[FHLC]) ac_mode=$ac_tag; continue;;
12577 case $ac_mode$ac_tag in
12579 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12580 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12581 { (exit 1); exit 1; }; };;
12582 :[FH]-) ac_tag=-:-;;
12583 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12600 -) ac_f="$tmp/stdin";;
12601 *) # Look for the file first in the build tree, then in the source tree
12602 # (if the path is not absolute). The absolute path cannot be DOS-style,
12603 # because $ac_f cannot contain `:'.
12607 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12609 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12610 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12611 { (exit 1); exit 1; }; };;
12613 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12614 ac_file_inputs="$ac_file_inputs '$ac_f'"
12617 # Let's still pretend it is `configure' which instantiates (i.e., don't
12618 # use $as_me), people would be surprised to read:
12619 # /* config.h. Generated by config.status. */
12620 configure_input='Generated from '`
12621 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12623 if test x"$ac_file" != x-; then
12624 configure_input="$ac_file. $configure_input"
12625 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12626 $as_echo "$as_me: creating $ac_file" >&6;}
12628 # Neutralize special characters interpreted by sed in replacement strings.
12629 case $configure_input in #(
12630 *\&* | *\|* | *\\* )
12631 ac_sed_conf_input=`$as_echo "$configure_input" |
12632 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12633 *) ac_sed_conf_input=$configure_input;;
12637 *:-:* | *:-) cat >"$tmp/stdin" \
12638 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12639 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12640 { (exit 1); exit 1; }; } ;;
12645 ac_dir=`$as_dirname -- "$ac_file" ||
12646 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12647 X"$ac_file" : 'X\(//\)[^/]' \| \
12648 X"$ac_file" : 'X\(//\)$' \| \
12649 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12650 $as_echo X"$ac_file" |
12651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12655 /^X\(\/\/\)[^/].*/{
12670 -*) as_dir=./$as_dir;;
12672 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12676 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12677 *) as_qdir=$as_dir;;
12679 as_dirs="'$as_qdir' $as_dirs"
12680 as_dir=`$as_dirname -- "$as_dir" ||
12681 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12682 X"$as_dir" : 'X\(//\)[^/]' \| \
12683 X"$as_dir" : 'X\(//\)$' \| \
12684 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12685 $as_echo X"$as_dir" |
12686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12690 /^X\(\/\/\)[^/].*/{
12703 test -d "$as_dir" && break
12705 test -z "$as_dirs" || eval "mkdir $as_dirs"
12706 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12707 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12708 { (exit 1); exit 1; }; }; }
12712 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12714 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12715 # A ".." for each directory in $ac_dir_suffix.
12716 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12717 case $ac_top_builddir_sub in
12718 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12719 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12722 ac_abs_top_builddir=$ac_pwd
12723 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12724 # for backward compatibility:
12725 ac_top_builddir=$ac_top_build_prefix
12728 .) # We are building in place.
12730 ac_top_srcdir=$ac_top_builddir_sub
12731 ac_abs_top_srcdir=$ac_pwd ;;
12732 [\\/]* | ?:[\\/]* ) # Absolute name.
12733 ac_srcdir=$srcdir$ac_dir_suffix;
12734 ac_top_srcdir=$srcdir
12735 ac_abs_top_srcdir=$srcdir ;;
12736 *) # Relative name.
12737 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12738 ac_top_srcdir=$ac_top_build_prefix$srcdir
12739 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12741 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12751 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12752 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12757 # If the template does not know about datarootdir, expand it.
12758 # FIXME: This hack should be removed a few years after 2.60.
12759 ac_datarootdir_hack=; ac_datarootdir_seen=
12772 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12773 *datarootdir*) ac_datarootdir_seen=yes;;
12774 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12775 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12776 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12779 ac_datarootdir_hack='
12780 s&@datadir@&$datadir&g
12781 s&@docdir@&$docdir&g
12782 s&@infodir@&$infodir&g
12783 s&@localedir@&$localedir&g
12784 s&@mandir@&$mandir&g
12785 s&\\\${datarootdir}&$datarootdir&g' ;;
12789 # Neutralize VPATH when `$srcdir' = `.'.
12790 # Shell code in configure.ac might set extrasub.
12791 # FIXME: do we really want to maintain this feature?
12792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12793 ac_sed_extra="$ac_vpsub
12796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12799 s|@configure_input@|$ac_sed_conf_input|;t t
12800 s&@top_builddir@&$ac_top_builddir_sub&;t t
12801 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12802 s&@srcdir@&$ac_srcdir&;t t
12803 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12804 s&@top_srcdir@&$ac_top_srcdir&;t t
12805 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12806 s&@builddir@&$ac_builddir&;t t
12807 s&@abs_builddir@&$ac_abs_builddir&;t t
12808 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12809 s&@INSTALL@&$ac_INSTALL&;t t
12810 $ac_datarootdir_hack
12812 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12813 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12814 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12815 { (exit 1); exit 1; }; }
12817 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12818 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12819 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12820 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12821 which seems to be undefined. Please make sure it is defined." >&5
12822 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12823 which seems to be undefined. Please make sure it is defined." >&2;}
12827 -) cat "$tmp/out" && rm -f "$tmp/out";;
12828 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12830 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12831 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12832 { (exit 1); exit 1; }; }
12838 if test x"$ac_file" != x-; then
12840 $as_echo "/* $configure_input */" \
12841 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12842 } >"$tmp/config.h" \
12843 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12844 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12845 { (exit 1); exit 1; }; }
12846 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12847 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12848 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12851 mv "$tmp/config.h" "$ac_file" \
12852 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12853 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12854 { (exit 1); exit 1; }; }
12857 $as_echo "/* $configure_input */" \
12858 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12859 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12860 $as_echo "$as_me: error: could not create -" >&2;}
12861 { (exit 1); exit 1; }; }
12863 # Compute "$ac_file"'s index in $config_headers.
12865 for _am_header in $config_headers :; do
12866 case $_am_header in
12867 "$ac_file" | "$ac_file":* )
12870 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12873 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
12874 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12875 X"$ac_file" : 'X\(//\)[^/]' \| \
12876 X"$ac_file" : 'X\(//\)$' \| \
12877 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12878 $as_echo X"$ac_file" |
12879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12883 /^X\(\/\/\)[^/].*/{
12895 s/.*/./; q'`/stamp-h$_am_stamp_count
12898 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12899 $as_echo "$as_me: executing $ac_file commands" >&6;}
12904 case $ac_file$ac_mode in
12905 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12906 # Strip MF so we end up with the name of the file.
12907 mf=`echo "$mf" | sed -e 's/:.*$//'`
12908 # Check whether this is an Automake generated Makefile or not.
12909 # We used to match only the files named `Makefile.in', but
12910 # some people rename them; so instead we look at the file content.
12911 # Grep'ing the first line is not enough: some people post-process
12912 # each Makefile.in and add a new line on top of each file to say so.
12913 # So let's grep whole file.
12914 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12915 dirpart=`$as_dirname -- "$mf" ||
12916 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12917 X"$mf" : 'X\(//\)[^/]' \| \
12918 X"$mf" : 'X\(//\)$' \| \
12919 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12925 /^X\(\/\/\)[^/].*/{
12941 # Extract the definition of DEPDIR, am__include, and am__quote
12942 # from the Makefile without running `make'.
12943 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12944 test -z "$DEPDIR" && continue
12945 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12946 test -z "am__include" && continue
12947 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12948 # When using ansi2knr, U may be empty or an underscore; expand it
12949 U=`sed -n 's/^U = //p' < "$mf"`
12950 # Find all dependency output files, they are included files with
12951 # $(DEPDIR) in their names. We invoke sed twice because it is the
12952 # simplest approach to changing $(DEPDIR) to its actual value in the
12954 for file in `sed -n "
12955 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12956 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12957 # Make sure the directory exists.
12958 test -f "$dirpart/$file" && continue
12959 fdir=`$as_dirname -- "$file" ||
12960 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12961 X"$file" : 'X\(//\)[^/]' \| \
12962 X"$file" : 'X\(//\)$' \| \
12963 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12964 $as_echo X"$file" |
12965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12969 /^X\(\/\/\)[^/].*/{
12982 { as_dir=$dirpart/$fdir
12984 -*) as_dir=./$as_dir;;
12986 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12990 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12991 *) as_qdir=$as_dir;;
12993 as_dirs="'$as_qdir' $as_dirs"
12994 as_dir=`$as_dirname -- "$as_dir" ||
12995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12996 X"$as_dir" : 'X\(//\)[^/]' \| \
12997 X"$as_dir" : 'X\(//\)$' \| \
12998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12999 $as_echo X"$as_dir" |
13000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13004 /^X\(\/\/\)[^/].*/{
13017 test -d "$as_dir" && break
13019 test -z "$as_dirs" || eval "mkdir $as_dirs"
13020 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13021 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13022 { (exit 1); exit 1; }; }; }
13023 # echo "creating $dirpart/$file"
13024 echo '# dummy' > "$dirpart/$file"
13028 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
13029 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
13036 { (exit 0); exit 0; }
13038 chmod +x $CONFIG_STATUS
13039 ac_clean_files=$ac_clean_files_save
13041 test $ac_write_fail = 0 ||
13042 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13043 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13044 { (exit 1); exit 1; }; }
13047 # configure is writing to config.log, and then calls config.status.
13048 # config.status does its own redirection, appending to config.log.
13049 # Unfortunately, on DOS this fails, as config.log is still kept open
13050 # by configure, so config.status won't be able to write to it; its
13051 # output is simply discarded. So we exec the FD to /dev/null,
13052 # effectively closing config.log, so it can be properly (re)opened and
13053 # appended to by config.status. When coming back to configure, we
13054 # need to make the FD available again.
13055 if test "$no_create" != yes; then
13057 ac_config_status_args=
13058 test "$silent" = yes &&
13059 ac_config_status_args="$ac_config_status_args --quiet"
13061 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13063 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13064 # would make configure fail if this is the last instruction.
13065 $ac_cs_success || { (exit 1); exit 1; }
13067 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13068 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
13069 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
13074 -*) as_dir=./$as_dir;;
13076 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13080 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13081 *) as_qdir=$as_dir;;
13083 as_dirs="'$as_qdir' $as_dirs"
13084 as_dir=`$as_dirname -- "$as_dir" ||
13085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13086 X"$as_dir" : 'X\(//\)[^/]' \| \
13087 X"$as_dir" : 'X\(//\)$' \| \
13088 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13089 $as_echo X"$as_dir" |
13090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13094 /^X\(\/\/\)[^/].*/{
13107 test -d "$as_dir" && break
13109 test -z "$as_dirs" || eval "mkdir $as_dirs"
13110 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13111 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13112 { (exit 1); exit 1; }; }; }
13116 echo "Configuration complete"
13119 if test "x$HAVE_GTK" = x; then
13120 if test "x$HAVE_COCOA" = x; then
13121 echo " User interface: none"
13123 echo " User interface: Cocoa"
13126 echo " User interface: GTK"
13129 if test "x$SH4_TRANSLATOR" = "x"; then
13130 echo " SH4 translator: None (emulation core only)"
13132 echo " SH4 translator: $SH4_TRANSLATOR"
13135 if test "x$VIDEO_DRIVERS" = "x"; then
13136 echo " Video drivers: none (no supported GL found)"
13138 echo " Video drivers: $VIDEO_DRIVERS"
13141 if test "x$AUDIO_DRIVERS" = "x"; then
13142 echo " Audio drivers: none (no supported output devices found)"
13144 echo " Audio drivers: $AUDIO_DRIVERS"
13147 if test "x$CDROM_DRIVER" = "x"; then
13148 echo " CD-ROM driver: none (no supported cd-rom devices found)"
13150 echo " CD-ROM driver: $CDROM_DRIVER"
.