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
796 enable_option_checking
797 enable_maintainer_mode
798 enable_dependency_tracking
805 ac_precious_vars='build_alias
831 # Initialize some variables set by options.
833 ac_init_version=false
834 ac_unrecognized_opts=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
845 program_transform_name=s,x,x,
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE}'
870 infodir='${datarootdir}/info'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
938 { (exit 1); exit 1; }; }
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
948 eval enable_$ac_useropt=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
965 { (exit 1); exit 1; }; }
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
975 eval enable_$ac_useropt=\$ac_optarg ;;
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
990 -help | --help | --hel | --he | -h)
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 htmldir=$ac_optarg ;;
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1020 -libdir | --libdir | --libdi | --libd)
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1111 -psdir | --psdir | --psdi | --psd | --ps)
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 sbindir=$ac_optarg ;;
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 sharedstatedir=$ac_optarg ;;
1137 -site | --site | --sit)
1139 -site=* | --site=* | --sit=*)
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1170 { (exit 1); exit 1; }; }
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1180 eval with_$ac_useropt=\$ac_optarg ;;
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1187 { (exit 1); exit 1; }; }
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1197 eval with_$ac_useropt=no ;;
1200 # Obsolete; use --with-x.
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1217 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1218 Try \`$0 --help' for more information." >&2
1219 { (exit 1); exit 1; }; }
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1226 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1227 { (exit 1); exit 1; }; }
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1245 { (exit 1); exit 1; }; }
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1251 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1252 { (exit 1); exit 1; }; } ;;
1253 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1270 # Be sure to have absolute directory names.
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1276 { (exit 1); exit 1; }; }
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1284 target=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 test "$silent" = yes && exec 6>/dev/null
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1307 { (exit 1); exit 1; }; }
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1310 { (exit 1); exit 1; }; }
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1350 { (exit 1); exit 1; }; }
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1355 { (exit 1); exit 1; }; }
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 # Report the --help message.
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1381 \`configure' configures this package to adapt to many kinds of systems.
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1388 Defaults for the options are specified in brackets.
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1412 For better control, use the options below.
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 if test -n "$ac_init_help"; then
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-maintainer-mode enable make rules and dependencies not useful
1458 (and sometimes confusing) to the casual installer
1459 --disable-dependency-tracking speeds up one-time build
1460 --enable-dependency-tracking do not reject slow dependency extractors
1461 --enable-trace Enable generation of IO traces (warning: hurts
1463 --enable-watch Enable watchpoints in the debugger (warning: hurts
1465 --enable-sh4stats Enable statistics on executed sh4 instructions
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-osmesa Build with the osmesa GL library (software
1472 --with-gtk Build with the GTK UI. Default on X11 systems
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 CCAS assembler compiler command (defaults to CC)
1483 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1485 PKG_CONFIG path to pkg-config utility
1487 C compiler flags for LIBPNG, overriding pkg-config
1488 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1489 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1490 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1491 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1492 GTK_LIBS linker flags for GTK, overriding pkg-config
1494 C compiler flags for PULSE, overriding pkg-config
1495 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1497 C compiler flags for ESOUND, overriding pkg-config
1498 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1499 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1500 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1534 .) # We are building in place.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1568 generated by GNU Autoconf 2.62
1570 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1571 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1577 cat >config.log <<_ACEOF
1578 This file contains any messages produced by compilers while
1579 running configure, to aid debugging if configure makes a mistake.
1581 It was created by $as_me, which was
1582 generated by GNU Autoconf 2.62. Invocation command line was
1594 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1595 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1596 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1597 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1598 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1601 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1603 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1604 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1605 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1606 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1607 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1608 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1609 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 test -z "$as_dir" && as_dir=.
1618 $as_echo "PATH: $as_dir"
1634 # Keep a trace of the command line.
1635 # Strip out --no-create and --no-recursion so they do not pile up.
1636 # Strip out --silent because we don't want to record it for future runs.
1637 # Also quote any args containing shell meta-characters.
1638 # Make two passes to allow for proper duplicate-argument suppression.
1642 ac_must_keep_next=false
1648 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1650 | -silent | --silent | --silen | --sile | --sil)
1653 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1656 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1659 if test $ac_must_keep_next = true; then
1660 ac_must_keep_next=false # Got value, back to normal.
1663 *=* | --config-cache | -C | -disable-* | --disable-* \
1664 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1665 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1666 | -with-* | --with-* | -without-* | --without-* | --x)
1667 case "$ac_configure_args0 " in
1668 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1671 -* ) ac_must_keep_next=true ;;
1674 ac_configure_args="$ac_configure_args '$ac_arg'"
1679 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1680 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682 # When interrupted or exit'd, cleanup temporary files, and complete
1683 # config.log. We remove comments because anyway the quotes in there
1684 # would cause problems or look ugly.
1685 # WARNING: Use '\'' to represent an apostrophe within the trap.
1686 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1687 trap 'exit_status=$?
1688 # Save into config.log some information that might help in debugging.
1693 ## ---------------- ##
1694 ## Cache variables. ##
1695 ## ---------------- ##
1698 # The following way of writing the cache mishandles newlines in values,
1700 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1701 eval ac_val=\$$ac_var
1705 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1706 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1709 _ | IFS | as_nl) ;; #(
1710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1711 *) $as_unset $ac_var ;;
1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1736 for ac_var in $ac_subst_vars
1738 eval ac_val=\$$ac_var
1740 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 $as_echo "$ac_var='\''$ac_val'\''"
1746 if test -n "$ac_subst_files"; then
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1753 for ac_var in $ac_subst_files
1755 eval ac_val=\$$ac_var
1757 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 $as_echo "$ac_var='\''$ac_val'\''"
1764 if test -s confdefs.h; then
1774 test "$ac_signal" != 0 &&
1775 $as_echo "$as_me: caught signal $ac_signal"
1776 $as_echo "$as_me: exit $exit_status"
1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1790 # Predefined preprocessor variables.
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer an explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 ac_site_file1=$CONFIG_SITE
1823 elif test "x$prefix" != xNONE; then
1824 ac_site_file1=$prefix/share/config.site
1825 ac_site_file2=$prefix/etc/config.site
1827 ac_site_file1=$ac_default_prefix/share/config.site
1828 ac_site_file2=$ac_default_prefix/etc/config.site
1830 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1832 test "x$ac_site_file" = xNONE && continue
1833 if test -r "$ac_site_file"; then
1834 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1835 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1836 sed 's/^/| /' "$ac_site_file" >&5
1841 if test -r "$cache_file"; then
1842 # Some versions of bash will fail to source /dev/null (special
1843 # files actually), so we avoid doing that.
1844 if test -f "$cache_file"; then
1845 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1846 $as_echo "$as_me: loading cache $cache_file" >&6;}
1848 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1849 *) . "./$cache_file";;
1853 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1854 $as_echo "$as_me: creating cache $cache_file" >&6;}
1858 # Check that the precious variables saved in the cache have kept the same
1860 ac_cache_corrupted=false
1861 for ac_var in $ac_precious_vars; do
1862 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1863 eval ac_new_set=\$ac_env_${ac_var}_set
1864 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1865 eval ac_new_val=\$ac_env_${ac_var}_value
1866 case $ac_old_set,$ac_new_set in
1868 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1869 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1870 ac_cache_corrupted=: ;;
1872 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1873 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1877 if test "x$ac_old_val" != "x$ac_new_val"; then
1878 # differences in whitespace do not lead to failure.
1879 ac_old_val_w=`echo x $ac_old_val`
1880 ac_new_val_w=`echo x $ac_new_val`
1881 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1882 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884 ac_cache_corrupted=:
1886 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1887 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1888 eval $ac_var=\$ac_old_val
1890 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1891 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1892 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1893 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1896 # Pass precious variables to config.status.
1897 if test "$ac_new_set" = set; then
1899 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 *) ac_arg=$ac_var=$ac_new_val ;;
1902 case " $ac_configure_args " in
1903 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1904 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1908 if $ac_cache_corrupted; then
1909 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913 { (exit 1); exit 1; }; }
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939 am__api_version="1.9"
1941 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1942 if test -f "$ac_dir/install-sh"; then
1944 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 elif test -f "$ac_dir/install.sh"; then
1948 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 elif test -f "$ac_dir/shtool"; then
1952 ac_install_sh="$ac_aux_dir/shtool install -c"
1956 if test -z "$ac_aux_dir"; then
1957 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1958 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1959 { (exit 1); exit 1; }; }
1962 # These three variables are undocumented and unsupported,
1963 # and are intended to be withdrawn in a future Autoconf release.
1964 # They can cause serious problems if a builder's source tree is in a directory
1965 # whose full name contains unusual characters.
1966 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1967 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1968 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971 # Find a good install program. We prefer a C program (faster),
1972 # so one script is as good as another. But avoid the broken or
1973 # incompatible versions:
1974 # SysV /etc/install, /usr/sbin/install
1975 # SunOS /usr/etc/install
1976 # IRIX /sbin/install
1978 # AmigaOS /C/install, which installs bootblocks on floppy discs
1979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1982 # OS/2's system install, which has a completely different semantic
1983 # ./install, which can be erroneously created by make from ./install.sh.
1984 # Reject install programs that cannot install multiple files.
1985 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1986 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1987 if test -z "$INSTALL"; then
1988 if test "${ac_cv_path_install+set}" = set; then
1989 $as_echo_n "(cached) " >&6
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 # Account for people who put trailing slashes in PATH elements.
1998 ./ | .// | /cC/* | \
1999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2003 # OSF1 and SCO ODT 3.0 have their own names for install.
2004 # Don't use installbsd from OSF since it installs stuff as root
2006 for ac_prog in ginstall scoinst install; do
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2009 if test $ac_prog = install &&
2010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # AIX install. It has an incompatible calling convention.
2013 elif test $ac_prog = install &&
2014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # program-specific install script used by HP pwplus--don't use.
2018 rm -rf conftest.one conftest.two conftest.dir
2019 echo one > conftest.one
2020 echo two > conftest.two
2022 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2023 test -s conftest.one && test -s conftest.two &&
2024 test -s conftest.dir/conftest.one &&
2025 test -s conftest.dir/conftest.two
2027 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2040 rm -rf conftest.one conftest.two conftest.dir
2043 if test "${ac_cv_path_install+set}" = set; then
2044 INSTALL=$ac_cv_path_install
2046 # As a last resort, use the slow shell script. Don't cache a
2047 # value for INSTALL within a source directory, because that will
2048 # break other packages using the cache if that directory is
2049 # removed, or if the value is a relative name.
2050 INSTALL=$ac_install_sh
2053 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2054 $as_echo "$INSTALL" >&6; }
2056 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2057 # It thinks the first close brace ends the variable substitution.
2058 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2060 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2062 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2064 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2065 $as_echo_n "checking whether build environment is sane... " >&6; }
2068 echo timestamp > conftest.file
2069 # Do `set' in a subshell so we don't clobber the current shell's
2070 # arguments. Must try -L first in case configure is actually a
2071 # symlink; some systems play weird games with the mod time of symlinks
2072 # (eg FreeBSD returns the mod time of the symlink's containing
2075 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2076 if test "$*" = "X"; then
2078 set X `ls -t $srcdir/configure conftest.file`
2081 if test "$*" != "X $srcdir/configure conftest.file" \
2082 && test "$*" != "X conftest.file $srcdir/configure"; then
2084 # If neither matched, then we have a broken ls. This can happen
2085 # if, for instance, CONFIG_SHELL is bash and it inherits a
2086 # broken ls alias from the environment. This has actually
2087 # happened. Such a system could not be considered "sane".
2088 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2089 alias in your environment" >&5
2090 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2091 alias in your environment" >&2;}
2092 { (exit 1); exit 1; }; }
2095 test "$2" = conftest.file
2101 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2102 Check your system clock" >&5
2103 $as_echo "$as_me: error: newly created file is older than distributed files!
2104 Check your system clock" >&2;}
2105 { (exit 1); exit 1; }; }
2107 { $as_echo "$as_me:$LINENO: result: yes" >&5
2108 $as_echo "yes" >&6; }
2109 test "$program_prefix" != NONE &&
2110 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2111 # Use a double $ so make ignores it.
2112 test "$program_suffix" != NONE &&
2113 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2114 # Double any \ or $.
2115 # By default was `s,x,x', remove it if useless.
2116 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2117 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2119 # expand $ac_aux_dir to an absolute path
2120 am_aux_dir=`cd $ac_aux_dir && pwd`
2122 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2123 # Use eval to expand $SHELL
2124 if eval "$MISSING --run true"; then
2125 am_missing_run="$MISSING --run "
2128 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2129 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2132 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2133 # We used to keeping the `.' as first argument, in order to
2134 # allow $(mkdir_p) to be used without argument. As in
2135 # $(mkdir_p) $(somedir)
2136 # where $(somedir) is conditionally defined. However this is wrong
2138 # 1. if the package is installed by a user who cannot write `.'
2139 # make install will fail,
2140 # 2. the above comment should most certainly read
2141 # $(mkdir_p) $(DESTDIR)$(somedir)
2142 # so it does not work when $(somedir) is undefined and
2143 # $(DESTDIR) is not.
2144 # To support the latter case, we have to write
2145 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2146 # so the `.' trick is pointless.
2147 mkdir_p='mkdir -p --'
2149 # On NextStep and OpenStep, the `mkdir' command does not
2150 # recognize any option. It will interpret all options as
2151 # directories to create, and then abort because `.' already
2153 for d in ./-p ./--version;
2155 test -d $d && rmdir $d
2157 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2158 if test -f "$ac_aux_dir/mkinstalldirs"; then
2159 mkdir_p='$(mkinstalldirs)'
2161 mkdir_p='$(install_sh) -d'
2165 for ac_prog in gawk mawk nawk awk
2167 # Extract the first word of "$ac_prog", so it can be a program name with args.
2168 set dummy $ac_prog; ac_word=$2
2169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 $as_echo_n "checking for $ac_word... " >&6; }
2171 if test "${ac_cv_prog_AWK+set}" = set; then
2172 $as_echo_n "(cached) " >&6
2174 if test -n "$AWK"; then
2175 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 ac_cv_prog_AWK="$ac_prog"
2185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 if test -n "$AWK"; then
2196 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2197 $as_echo "$AWK" >&6; }
2199 { $as_echo "$as_me:$LINENO: result: no" >&5
2200 $as_echo "no" >&6; }
2204 test -n "$AWK" && break
2207 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2208 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2210 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2211 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2212 $as_echo_n "(cached) " >&6
2214 cat >conftest.make <<\_ACEOF
2217 @echo '@@@%%%=$(MAKE)=@@@%%%'
2219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2220 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2222 eval ac_cv_prog_make_${ac_make}_set=yes;;
2224 eval ac_cv_prog_make_${ac_make}_set=no;;
2228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2229 { $as_echo "$as_me:$LINENO: result: yes" >&5
2230 $as_echo "yes" >&6; }
2233 { $as_echo "$as_me:$LINENO: result: no" >&5
2234 $as_echo "no" >&6; }
2235 SET_MAKE="MAKE=${MAKE-make}"
2238 rm -rf .tst 2>/dev/null
2239 mkdir .tst 2>/dev/null
2240 if test -d .tst; then
2245 rmdir .tst 2>/dev/null
2247 # test to see if srcdir already configured
2248 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2249 test -f $srcdir/config.status; then
2250 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2251 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2252 { (exit 1); exit 1; }; }
2255 # test whether we have cygpath
2256 if test -z "$CYGPATH_W"; then
2257 if (cygpath --version) >/dev/null 2>/dev/null; then
2258 CYGPATH_W='cygpath -w'
2265 # Define the identity of the package.
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE "$PACKAGE"
2275 cat >>confdefs.h <<_ACEOF
2276 #define VERSION "$VERSION"
2279 # Some tools Automake needs.
2281 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2287 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2293 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2295 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2297 # Installed binaries are usually stripped using `strip' when the user
2298 # run `make install-strip'. However `strip' might not be the right
2299 # tool to use in cross-compilation environments, therefore Automake
2300 # will honor the `STRIP' environment variable to overrule this program.
2301 if test "$cross_compiling" != no; then
2302 if test -n "$ac_tool_prefix"; then
2303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2304 set dummy ${ac_tool_prefix}strip; ac_word=$2
2305 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 $as_echo_n "checking for $ac_word... " >&6; }
2307 if test "${ac_cv_prog_STRIP+set}" = set; then
2308 $as_echo_n "(cached) " >&6
2310 if test -n "$STRIP"; then
2311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 STRIP=$ac_cv_prog_STRIP
2331 if test -n "$STRIP"; then
2332 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2333 $as_echo "$STRIP" >&6; }
2335 { $as_echo "$as_me:$LINENO: result: no" >&5
2336 $as_echo "no" >&6; }
2341 if test -z "$ac_cv_prog_STRIP"; then
2343 # Extract the first word of "strip", so it can be a program name with args.
2344 set dummy strip; ac_word=$2
2345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 $as_echo_n "checking for $ac_word... " >&6; }
2347 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2348 $as_echo_n "(cached) " >&6
2350 if test -n "$ac_ct_STRIP"; then
2351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_ac_ct_STRIP="strip"
2361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2371 if test -n "$ac_ct_STRIP"; then
2372 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2373 $as_echo "$ac_ct_STRIP" >&6; }
2375 { $as_echo "$as_me:$LINENO: result: no" >&5
2376 $as_echo "no" >&6; }
2379 if test "x$ac_ct_STRIP" = x; then
2382 case $cross_compiling:$ac_tool_warned in
2384 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2385 whose name does not start with the host triplet. If you think this
2386 configuration is useful to you, please write to autoconf@gnu.org." >&5
2387 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2388 whose name does not start with the host triplet. If you think this
2389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2390 ac_tool_warned=yes ;;
2395 STRIP="$ac_cv_prog_STRIP"
2399 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2401 # We need awk for the "check" target. The system "awk" is bad on
2403 # Always define AMTAR for backward compatibility.
2405 AMTAR=${AMTAR-"${am_missing_run}tar"}
2407 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2413 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2414 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2415 # Check whether --enable-maintainer-mode was given.
2416 if test "${enable_maintainer_mode+set}" = set; then
2417 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2419 USE_MAINTAINER_MODE=no
2422 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2423 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2426 if test $USE_MAINTAINER_MODE = yes; then
2427 MAINTAINER_MODE_TRUE=
2428 MAINTAINER_MODE_FALSE='#'
2430 MAINTAINER_MODE_TRUE='#'
2431 MAINTAINER_MODE_FALSE=
2434 MAINT=$MAINTAINER_MODE_TRUE
2437 ac_config_headers="$ac_config_headers config.h"
2440 DEPDIR="${am__leading_dot}deps"
2442 ac_config_commands="$ac_config_commands depfiles"
2445 am_make=${MAKE-make}
2446 cat > confinc << 'END'
2451 # If we don't find an include directive, just comment out the code.
2452 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2453 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2457 # First try GNU make style include.
2458 echo "include confinc" > confmf
2459 # We grep out `Entering directory' and `Leaving directory'
2460 # messages which can occur if `w' ends up in MAKEFLAGS.
2461 # In particular we don't look at `^make:' because GNU make might
2462 # be invoked under some other name (usually "gmake"), in which
2463 # case it prints its new name instead of `make'.
2464 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2469 # Now try BSD make style include.
2470 if test "$am__include" = "#"; then
2471 echo '.include "confinc"' > confmf
2472 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2473 am__include=.include
2480 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2481 $as_echo "$_am_result" >&6; }
2482 rm -f confinc confmf
2484 # Check whether --enable-dependency-tracking was given.
2485 if test "${enable_dependency_tracking+set}" = set; then
2486 enableval=$enable_dependency_tracking;
2489 if test "x$enable_dependency_tracking" != xno; then
2490 am_depcomp="$ac_aux_dir/depcomp"
2495 if test "x$enable_dependency_tracking" != xno; then
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516 $as_echo_n "(cached) " >&6
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 if test -n "$CC"; then
2540 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2541 $as_echo "$CC" >&6; }
2543 { $as_echo "$as_me:$LINENO: result: no" >&5
2544 $as_echo "no" >&6; }
2549 if test -z "$ac_cv_prog_CC"; then
2551 # Extract the first word of "gcc", so it can be a program name with args.
2552 set dummy gcc; ac_word=$2
2553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2556 $as_echo_n "(cached) " >&6
2558 if test -n "$ac_ct_CC"; then
2559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_ac_ct_CC="gcc"
2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579 if test -n "$ac_ct_CC"; then
2580 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2581 $as_echo "$ac_ct_CC" >&6; }
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584 $as_echo "no" >&6; }
2587 if test "x$ac_ct_CC" = x; then
2590 case $cross_compiling:$ac_tool_warned in
2592 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2593 whose name does not start with the host triplet. If you think this
2594 configuration is useful to you, please write to autoconf@gnu.org." >&5
2595 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2596 whose name does not start with the host triplet. If you think this
2597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2598 ac_tool_warned=yes ;;
2606 if test -z "$CC"; then
2607 if test -n "$ac_tool_prefix"; then
2608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2609 set dummy ${ac_tool_prefix}cc; ac_word=$2
2610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if test "${ac_cv_prog_CC+set}" = set; then
2613 $as_echo_n "(cached) " >&6
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_CC="${ac_tool_prefix}cc"
2626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 if test -n "$CC"; then
2637 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2638 $as_echo "$CC" >&6; }
2640 { $as_echo "$as_me:$LINENO: result: no" >&5
2641 $as_echo "no" >&6; }
2647 if test -z "$CC"; then
2648 # Extract the first word of "cc", so it can be a program name with args.
2649 set dummy cc; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_CC+set}" = set; then
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2667 ac_prog_rejected=yes
2671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 if test $ac_prog_rejected = yes; then
2679 # We found a bogon in the path, so make sure we never use it.
2680 set dummy $ac_cv_prog_CC
2682 if test $# != 0; then
2683 # We chose a different compiler from the bogus one.
2684 # However, it has the same basename, so the bogon will be chosen
2685 # first if we set CC to just the basename; use the full file name.
2687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2693 if test -n "$CC"; then
2694 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2695 $as_echo "$CC" >&6; }
2697 { $as_echo "$as_me:$LINENO: result: no" >&5
2698 $as_echo "no" >&6; }
2703 if test -z "$CC"; then
2704 if test -n "$ac_tool_prefix"; then
2705 for ac_prog in cl.exe
2707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_CC+set}" = set; then
2712 $as_echo_n "(cached) " >&6
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 if test -n "$CC"; then
2736 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2739 { $as_echo "$as_me:$LINENO: result: no" >&5
2740 $as_echo "no" >&6; }
2744 test -n "$CC" && break
2747 if test -z "$CC"; then
2749 for ac_prog in cl.exe
2751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2752 set dummy $ac_prog; ac_word=$2
2753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2756 $as_echo_n "(cached) " >&6
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_ac_ct_CC="$ac_prog"
2769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779 if test -n "$ac_ct_CC"; then
2780 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2781 $as_echo "$ac_ct_CC" >&6; }
2783 { $as_echo "$as_me:$LINENO: result: no" >&5
2784 $as_echo "no" >&6; }
2788 test -n "$ac_ct_CC" && break
2791 if test "x$ac_ct_CC" = x; then
2794 case $cross_compiling:$ac_tool_warned in
2796 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2797 whose name does not start with the host triplet. If you think this
2798 configuration is useful to you, please write to autoconf@gnu.org." >&5
2799 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2800 whose name does not start with the host triplet. If you think this
2801 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2802 ac_tool_warned=yes ;;
2811 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2812 See \`config.log' for more details." >&5
2813 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2814 See \`config.log' for more details." >&2;}
2815 { (exit 1); exit 1; }; }
2817 # Provide some information about the compiler.
2818 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2821 { (ac_try="$ac_compiler --version >&5"
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2827 $as_echo "$ac_try_echo") >&5
2828 (eval "$ac_compiler --version >&5") 2>&5
2830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }
2832 { (ac_try="$ac_compiler -v >&5"
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2838 $as_echo "$ac_try_echo") >&5
2839 (eval "$ac_compiler -v >&5") 2>&5
2841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }
2843 { (ac_try="$ac_compiler -V >&5"
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2849 $as_echo "$ac_try_echo") >&5
2850 (eval "$ac_compiler -V >&5") 2>&5
2852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }
2855 cat >conftest.$ac_ext <<_ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2870 ac_clean_files_save=$ac_clean_files
2871 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2872 # Try to create an executable without -o first, disregard a.out.
2873 # It will help us diagnose broken compilers, and finding out an intuition
2875 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2876 $as_echo_n "checking for C compiler default output file name... " >&6; }
2877 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2879 # The possible output files:
2880 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2883 for ac_file in $ac_files
2886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2887 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2892 if { (ac_try="$ac_link_default"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2898 $as_echo "$ac_try_echo") >&5
2899 (eval "$ac_link_default") 2>&5
2901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; then
2903 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2904 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2905 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2906 # so that the user can short-circuit this test for compilers unknown to
2908 for ac_file in $ac_files ''
2910 test -f "$ac_file" || continue
2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2915 # We found the default executable, but exeext='' is most
2919 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2921 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2923 # We set ac_cv_exeext here because the later test for it is not
2924 # safe: cross compilers may not add the suffix if given an `-o'
2925 # argument, so we may need to know it at that point already.
2926 # Even if this section looks crufty: it has the advantage of
2933 test "$ac_cv_exeext" = no && ac_cv_exeext=
2939 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2940 $as_echo "$ac_file" >&6; }
2941 if test -z "$ac_file"; then
2942 $as_echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2946 See \`config.log' for more details." >&5
2947 $as_echo "$as_me: error: C compiler cannot create executables
2948 See \`config.log' for more details." >&2;}
2949 { (exit 77); exit 77; }; }
2952 ac_exeext=$ac_cv_exeext
2954 # Check that the compiler produces executables we can run. If not, either
2955 # the compiler is broken, or we cross compile.
2956 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2957 $as_echo_n "checking whether the C compiler works... " >&6; }
2958 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2959 # If not cross compiling, check that we can run a simple program.
2960 if test "$cross_compiling" != yes; then
2961 if { ac_try='./$ac_file'
2962 { (case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2967 $as_echo "$ac_try_echo") >&5
2968 (eval "$ac_try") 2>&5
2970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2974 if test "$cross_compiling" = maybe; then
2977 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2978 If you meant to cross compile, use \`--host'.
2979 See \`config.log' for more details." >&5
2980 $as_echo "$as_me: error: cannot run C compiled programs.
2981 If you meant to cross compile, use \`--host'.
2982 See \`config.log' for more details." >&2;}
2983 { (exit 1); exit 1; }; }
2987 { $as_echo "$as_me:$LINENO: result: yes" >&5
2988 $as_echo "yes" >&6; }
2990 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2991 ac_clean_files=$ac_clean_files_save
2992 # Check that the compiler produces executables we can run. If not, either
2993 # the compiler is broken, or we cross compile.
2994 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2995 $as_echo_n "checking whether we are cross compiling... " >&6; }
2996 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2997 $as_echo "$cross_compiling" >&6; }
2999 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3000 $as_echo_n "checking for suffix of executables... " >&6; }
3001 if { (ac_try="$ac_link"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3007 $as_echo "$ac_try_echo") >&5
3008 (eval "$ac_link") 2>&5
3010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; then
3012 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3013 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3014 # work properly (i.e., refer to `conftest.exe'), while it won't with
3016 for ac_file in conftest.exe conftest conftest.*; do
3017 test -f "$ac_file" || continue
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3020 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3026 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3027 See \`config.log' for more details." >&5
3028 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3029 See \`config.log' for more details." >&2;}
3030 { (exit 1); exit 1; }; }
3033 rm -f conftest$ac_cv_exeext
3034 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3035 $as_echo "$ac_cv_exeext" >&6; }
3037 rm -f conftest.$ac_ext
3038 EXEEXT=$ac_cv_exeext
3040 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3041 $as_echo_n "checking for suffix of object files... " >&6; }
3042 if test "${ac_cv_objext+set}" = set; then
3043 $as_echo_n "(cached) " >&6
3045 cat >conftest.$ac_ext <<_ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3060 rm -f conftest.o conftest.obj
3061 if { (ac_try="$ac_compile"
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3067 $as_echo "$ac_try_echo") >&5
3068 (eval "$ac_compile") 2>&5
3070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; then
3072 for ac_file in conftest.o conftest.obj conftest.*; do
3073 test -f "$ac_file" || continue;
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3076 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3081 $as_echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3085 See \`config.log' for more details." >&5
3086 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3087 See \`config.log' for more details." >&2;}
3088 { (exit 1); exit 1; }; }
3091 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3093 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3094 $as_echo "$ac_cv_objext" >&6; }
3095 OBJEXT=$ac_cv_objext
3097 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3098 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3099 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3100 $as_echo_n "(cached) " >&6
3102 cat >conftest.$ac_ext <<_ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3127 $as_echo "$ac_try_echo") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } && {
3135 test -z "$ac_c_werror_flag" ||
3136 test ! -s conftest.err
3137 } && test -s conftest.$ac_objext; then
3140 $as_echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3150 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3151 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3152 if test $ac_compiler_gnu = yes; then
3157 ac_test_CFLAGS=${CFLAGS+set}
3158 ac_save_CFLAGS=$CFLAGS
3159 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3160 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3161 if test "${ac_cv_prog_cc_g+set}" = set; then
3162 $as_echo_n "(cached) " >&6
3164 ac_save_c_werror_flag=$ac_c_werror_flag
3165 ac_c_werror_flag=yes
3168 cat >conftest.$ac_ext <<_ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3190 $as_echo "$ac_try_echo") >&5
3191 (eval "$ac_compile") 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } && {
3198 test -z "$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 } && test -s conftest.$ac_objext; then
3203 $as_echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3207 cat >conftest.$ac_ext <<_ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3222 rm -f conftest.$ac_objext
3223 if { (ac_try="$ac_compile"
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3229 $as_echo "$ac_try_echo") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3232 grep -v '^ *+' conftest.er1 >conftest.err
3234 cat conftest.err >&5
3235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } && {
3237 test -z "$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 } && test -s conftest.$ac_objext; then
3242 $as_echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 ac_c_werror_flag=$ac_save_c_werror_flag
3247 cat >conftest.$ac_ext <<_ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3262 rm -f conftest.$ac_objext
3263 if { (ac_try="$ac_compile"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3269 $as_echo "$ac_try_echo") >&5
3270 (eval "$ac_compile") 2>conftest.er1
3272 grep -v '^ *+' conftest.er1 >conftest.err
3274 cat conftest.err >&5
3275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } && {
3277 test -z "$ac_c_werror_flag" ||
3278 test ! -s conftest.err
3279 } && test -s conftest.$ac_objext; then
3282 $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 ac_c_werror_flag=$ac_save_c_werror_flag
3297 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3298 $as_echo "$ac_cv_prog_cc_g" >&6; }
3299 if test "$ac_test_CFLAGS" = set; then
3300 CFLAGS=$ac_save_CFLAGS
3301 elif test $ac_cv_prog_cc_g = yes; then
3302 if test "$GCC" = yes; then
3308 if test "$GCC" = yes; then
3314 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3315 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3316 if test "${ac_cv_prog_cc_c89+set}" = set; then
3317 $as_echo_n "(cached) " >&6
3319 ac_cv_prog_cc_c89=no
3321 cat >conftest.$ac_ext <<_ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3329 #include <sys/types.h>
3330 #include <sys/stat.h>
3331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3332 struct buf { int x; };
3333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3334 static char *e (p, i)
3340 static char *f (char * (*g) (char **, int), char **p, ...)
3345 s = g (p, va_arg (v,int));
3350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3351 function prototypes and stuff, but not '\xHH' hex character constants.
3352 These don't provoke an error unfortunately, instead are silently treated
3353 as 'x'. The following induces an error, until -std is added to get
3354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3355 array size at least. It's necessary to write '\x00'==0 to get something
3356 that's true only with -std. */
3357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3360 inside strings and character constants. */
3362 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3381 CC="$ac_save_CC $ac_arg"
3382 rm -f conftest.$ac_objext
3383 if { (ac_try="$ac_compile"
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3389 $as_echo "$ac_try_echo") >&5
3390 (eval "$ac_compile") 2>conftest.er1
3392 grep -v '^ *+' conftest.er1 >conftest.err
3394 cat conftest.err >&5
3395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } && {
3397 test -z "$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 } && test -s conftest.$ac_objext; then
3400 ac_cv_prog_cc_c89=$ac_arg
3402 $as_echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3408 rm -f core conftest.err conftest.$ac_objext
3409 test "x$ac_cv_prog_cc_c89" != "xno" && break
3411 rm -f conftest.$ac_ext
3416 case "x$ac_cv_prog_cc_c89" in
3418 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3419 $as_echo "none needed" >&6; } ;;
3421 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3422 $as_echo "unsupported" >&6; } ;;
3424 CC="$CC $ac_cv_prog_cc_c89"
3425 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3426 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 depcc="$CC" am_compiler_list=
3438 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3439 $as_echo_n "checking dependency style of $depcc... " >&6; }
3440 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3441 $as_echo_n "(cached) " >&6
3443 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3444 # We make a subdir and do the tests there. Otherwise we can end up
3445 # making bogus files that we don't know about and never remove. For
3446 # instance it was reported that on HP-UX the gcc test will end up
3447 # making a dummy file named `D' -- because `-MD' means `put the output
3450 # Copy depcomp to subdir because otherwise we won't find it if we're
3451 # using a relative directory.
3452 cp "$am_depcomp" conftest.dir
3454 # We will build objects and dependencies in a subdirectory because
3455 # it helps to detect inapplicable dependency modes. For instance
3456 # both Tru64's cc and ICC support -MD to output dependencies as a
3457 # side effect of compilation, but ICC will put the dependencies in
3458 # the current directory while Tru64 will put them in the object
3462 am_cv_CC_dependencies_compiler_type=none
3463 if test "$am_compiler_list" = ""; then
3464 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3466 for depmode in $am_compiler_list; do
3467 # Setup a source with many dependencies, because some compilers
3468 # like to wrap large dependency lists on column 80 (with \), and
3469 # we should not choose a depcomp mode which is confused by this.
3471 # We need to recreate these files for each test, as the compiler may
3472 # overwrite some of them when testing with obscure command lines.
3473 # This happens at least with the AIX C compiler.
3475 for i in 1 2 3 4 5 6; do
3476 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3477 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3478 # Solaris 8's {/usr,}/bin/sh.
3479 touch sub/conftst$i.h
3481 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3485 # after this tag, mechanisms are not by side-effect, so they'll
3486 # only be used when explicitly requested
3487 if test "x$enable_dependency_tracking" = xyes; then
3495 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3496 # mode. It turns out that the SunPro C++ compiler does not properly
3497 # handle `-M -o', and we need to detect this.
3498 if depmode=$depmode \
3499 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3500 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3501 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3502 >/dev/null 2>conftest.err &&
3503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3504 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3506 # icc doesn't choke on unknown options, it will just issue warnings
3507 # or remarks (even with -Werror). So we grep stderr for any message
3508 # that says an option was ignored or not supported.
3509 # When given -MP, icc 7.0 and 7.1 complain thusly:
3510 # icc: Command line warning: ignoring option '-M'; no argument required
3511 # The diagnosis changed in icc 8.0:
3512 # icc: Command line remark: option '-MP' not supported
3513 if (grep 'ignoring option' conftest.err ||
3514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3515 am_cv_CC_dependencies_compiler_type=$depmode
3524 am_cv_CC_dependencies_compiler_type=none
3528 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3529 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3530 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3535 test "x$enable_dependency_tracking" != xno \
3536 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3538 am__fastdepCC_FALSE='#'
3540 am__fastdepCC_TRUE='#'
3541 am__fastdepCC_FALSE=
3547 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3548 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3549 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3550 $as_echo_n "(cached) " >&6
3552 ac_check_lib_save_LIBS=$LIBS
3553 LIBS="-lcposix $LIBS"
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3561 /* Override any GCC internal prototype to avoid an error.
3562 Use char because int might match the return type of a GCC
3563 builtin and then its argument prototype would still apply. */
3576 rm -f conftest.$ac_objext conftest$ac_exeext
3577 if { (ac_try="$ac_link"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3583 $as_echo "$ac_try_echo") >&5
3584 (eval "$ac_link") 2>conftest.er1
3586 grep -v '^ *+' conftest.er1 >conftest.err
3588 cat conftest.err >&5
3589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } && {
3591 test -z "$ac_c_werror_flag" ||
3592 test ! -s conftest.err
3593 } && test -s conftest$ac_exeext && {
3594 test "$cross_compiling" = yes ||
3595 $as_test_x conftest$ac_exeext
3597 ac_cv_lib_cposix_strerror=yes
3599 $as_echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 ac_cv_lib_cposix_strerror=no
3605 rm -rf conftest.dSYM
3606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3607 conftest$ac_exeext conftest.$ac_ext
3608 LIBS=$ac_check_lib_save_LIBS
3610 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3611 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3612 if test $ac_cv_lib_cposix_strerror = yes; then
3613 LIBS="$LIBS -lcposix"
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 if test -n "$ac_tool_prefix"; then
3624 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3625 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3626 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_CC+set}" = set; then
3629 $as_echo_n "(cached) " >&6
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 if test -n "$CC"; then
3653 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3654 $as_echo "$CC" >&6; }
3656 { $as_echo "$as_me:$LINENO: result: no" >&5
3657 $as_echo "no" >&6; }
3662 if test -z "$ac_cv_prog_CC"; then
3664 # Extract the first word of "gcc", so it can be a program name with args.
3665 set dummy gcc; ac_word=$2
3666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3669 $as_echo_n "(cached) " >&6
3671 if test -n "$ac_ct_CC"; then
3672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_ac_ct_CC="gcc"
3682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3692 if test -n "$ac_ct_CC"; then
3693 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3694 $as_echo "$ac_ct_CC" >&6; }
3696 { $as_echo "$as_me:$LINENO: result: no" >&5
3697 $as_echo "no" >&6; }
3700 if test "x$ac_ct_CC" = x; then
3703 case $cross_compiling:$ac_tool_warned in
3705 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3706 whose name does not start with the host triplet. If you think this
3707 configuration is useful to you, please write to autoconf@gnu.org." >&5
3708 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3709 whose name does not start with the host triplet. If you think this
3710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3711 ac_tool_warned=yes ;;
3719 if test -z "$CC"; then
3720 if test -n "$ac_tool_prefix"; then
3721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3722 set dummy ${ac_tool_prefix}cc; ac_word=$2
3723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if test "${ac_cv_prog_CC+set}" = set; then
3726 $as_echo_n "(cached) " >&6
3728 if test -n "$CC"; then
3729 ac_cv_prog_CC="$CC" # Let the user override the test.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3738 ac_cv_prog_CC="${ac_tool_prefix}cc"
3739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 if test -n "$CC"; then
3750 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3751 $as_echo "$CC" >&6; }
3753 { $as_echo "$as_me:$LINENO: result: no" >&5
3754 $as_echo "no" >&6; }
3760 if test -z "$CC"; then
3761 # Extract the first word of "cc", so it can be a program name with args.
3762 set dummy cc; ac_word=$2
3763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if test "${ac_cv_prog_CC+set}" = set; then
3766 $as_echo_n "(cached) " >&6
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3780 ac_prog_rejected=yes
3784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 if test $ac_prog_rejected = yes; then
3792 # We found a bogon in the path, so make sure we never use it.
3793 set dummy $ac_cv_prog_CC
3795 if test $# != 0; then
3796 # We chose a different compiler from the bogus one.
3797 # However, it has the same basename, so the bogon will be chosen
3798 # first if we set CC to just the basename; use the full file name.
3800 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3806 if test -n "$CC"; then
3807 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3808 $as_echo "$CC" >&6; }
3810 { $as_echo "$as_me:$LINENO: result: no" >&5
3811 $as_echo "no" >&6; }
3816 if test -z "$CC"; then
3817 if test -n "$ac_tool_prefix"; then
3818 for ac_prog in cl.exe
3820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 $as_echo_n "checking for $ac_word... " >&6; }
3824 if test "${ac_cv_prog_CC+set}" = set; then
3825 $as_echo_n "(cached) " >&6
3827 if test -n "$CC"; then
3828 ac_cv_prog_CC="$CC" # Let the user override the test.
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3838 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 if test -n "$CC"; then
3849 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3850 $as_echo "$CC" >&6; }
3852 { $as_echo "$as_me:$LINENO: result: no" >&5
3853 $as_echo "no" >&6; }
3857 test -n "$CC" && break
3860 if test -z "$CC"; then
3862 for ac_prog in cl.exe
3864 # Extract the first word of "$ac_prog", so it can be a program name with args.
3865 set dummy $ac_prog; ac_word=$2
3866 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3867 $as_echo_n "checking for $ac_word... " >&6; }
3868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3869 $as_echo_n "(cached) " >&6
3871 if test -n "$ac_ct_CC"; then
3872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3881 ac_cv_prog_ac_ct_CC="$ac_prog"
3882 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3892 if test -n "$ac_ct_CC"; then
3893 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3894 $as_echo "$ac_ct_CC" >&6; }
3896 { $as_echo "$as_me:$LINENO: result: no" >&5
3897 $as_echo "no" >&6; }
3901 test -n "$ac_ct_CC" && break
3904 if test "x$ac_ct_CC" = x; then
3907 case $cross_compiling:$ac_tool_warned in
3909 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3910 whose name does not start with the host triplet. If you think this
3911 configuration is useful to you, please write to autoconf@gnu.org." >&5
3912 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3913 whose name does not start with the host triplet. If you think this
3914 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3915 ac_tool_warned=yes ;;
3924 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3925 See \`config.log' for more details." >&5
3926 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3927 See \`config.log' for more details." >&2;}
3928 { (exit 1); exit 1; }; }
3930 # Provide some information about the compiler.
3931 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3934 { (ac_try="$ac_compiler --version >&5"
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3940 $as_echo "$ac_try_echo") >&5
3941 (eval "$ac_compiler --version >&5") 2>&5
3943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }
3945 { (ac_try="$ac_compiler -v >&5"
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3951 $as_echo "$ac_try_echo") >&5
3952 (eval "$ac_compiler -v >&5") 2>&5
3954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }
3956 { (ac_try="$ac_compiler -V >&5"
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3962 $as_echo "$ac_try_echo") >&5
3963 (eval "$ac_compiler -V >&5") 2>&5
3965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }
3968 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3969 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3971 $as_echo_n "(cached) " >&6
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3998 $as_echo "$ac_try_echo") >&5
3999 (eval "$ac_compile") 2>conftest.er1
4001 grep -v '^ *+' conftest.er1 >conftest.err
4003 cat conftest.err >&5
4004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && {
4006 test -z "$ac_c_werror_flag" ||
4007 test ! -s conftest.err
4008 } && test -s conftest.$ac_objext; then
4011 $as_echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4021 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4022 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4023 if test $ac_compiler_gnu = yes; then
4028 ac_test_CFLAGS=${CFLAGS+set}
4029 ac_save_CFLAGS=$CFLAGS
4030 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4031 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4032 if test "${ac_cv_prog_cc_g+set}" = set; then
4033 $as_echo_n "(cached) " >&6
4035 ac_save_c_werror_flag=$ac_c_werror_flag
4036 ac_c_werror_flag=yes
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4054 rm -f conftest.$ac_objext
4055 if { (ac_try="$ac_compile"
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4061 $as_echo "$ac_try_echo") >&5
4062 (eval "$ac_compile") 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && {
4069 test -z "$ac_c_werror_flag" ||
4070 test ! -s conftest.err
4071 } && test -s conftest.$ac_objext; then
4074 $as_echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4093 rm -f conftest.$ac_objext
4094 if { (ac_try="$ac_compile"
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4100 $as_echo "$ac_try_echo") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } && {
4108 test -z "$ac_c_werror_flag" ||
4109 test ! -s conftest.err
4110 } && test -s conftest.$ac_objext; then
4113 $as_echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4118 cat >conftest.$ac_ext <<_ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4140 $as_echo "$ac_try_echo") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4153 $as_echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 ac_c_werror_flag=$ac_save_c_werror_flag
4168 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4169 $as_echo "$ac_cv_prog_cc_g" >&6; }
4170 if test "$ac_test_CFLAGS" = set; then
4171 CFLAGS=$ac_save_CFLAGS
4172 elif test $ac_cv_prog_cc_g = yes; then
4173 if test "$GCC" = yes; then
4179 if test "$GCC" = yes; then
4185 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4186 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4187 if test "${ac_cv_prog_cc_c89+set}" = set; then
4188 $as_echo_n "(cached) " >&6
4190 ac_cv_prog_cc_c89=no
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4200 #include <sys/types.h>
4201 #include <sys/stat.h>
4202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4203 struct buf { int x; };
4204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4205 static char *e (p, i)
4211 static char *f (char * (*g) (char **, int), char **p, ...)
4216 s = g (p, va_arg (v,int));
4221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4222 function prototypes and stuff, but not '\xHH' hex character constants.
4223 These don't provoke an error unfortunately, instead are silently treated
4224 as 'x'. The following induces an error, until -std is added to get
4225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4226 array size at least. It's necessary to write '\x00'==0 to get something
4227 that's true only with -std. */
4228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4230 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4231 inside strings and character constants. */
4233 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4235 int test (int i, double x);
4236 struct s1 {int (*f) (int a);};
4237 struct s2 {int (*f) (double a);};
4238 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4244 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4249 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4250 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4252 CC="$ac_save_CC $ac_arg"
4253 rm -f conftest.$ac_objext
4254 if { (ac_try="$ac_compile"
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4260 $as_echo "$ac_try_echo") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && {
4268 test -z "$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 } && test -s conftest.$ac_objext; then
4271 ac_cv_prog_cc_c89=$ac_arg
4273 $as_echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4279 rm -f core conftest.err conftest.$ac_objext
4280 test "x$ac_cv_prog_cc_c89" != "xno" && break
4282 rm -f conftest.$ac_ext
4287 case "x$ac_cv_prog_cc_c89" in
4289 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4290 $as_echo "none needed" >&6; } ;;
4292 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4293 $as_echo "unsupported" >&6; } ;;
4295 CC="$CC $ac_cv_prog_cc_c89"
4296 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4297 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4302 ac_cpp='$CPP $CPPFLAGS'
4303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307 depcc="$CC" am_compiler_list=
4309 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4310 $as_echo_n "checking dependency style of $depcc... " >&6; }
4311 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4312 $as_echo_n "(cached) " >&6
4314 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4315 # We make a subdir and do the tests there. Otherwise we can end up
4316 # making bogus files that we don't know about and never remove. For
4317 # instance it was reported that on HP-UX the gcc test will end up
4318 # making a dummy file named `D' -- because `-MD' means `put the output
4321 # Copy depcomp to subdir because otherwise we won't find it if we're
4322 # using a relative directory.
4323 cp "$am_depcomp" conftest.dir
4325 # We will build objects and dependencies in a subdirectory because
4326 # it helps to detect inapplicable dependency modes. For instance
4327 # both Tru64's cc and ICC support -MD to output dependencies as a
4328 # side effect of compilation, but ICC will put the dependencies in
4329 # the current directory while Tru64 will put them in the object
4333 am_cv_CC_dependencies_compiler_type=none
4334 if test "$am_compiler_list" = ""; then
4335 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4337 for depmode in $am_compiler_list; do
4338 # Setup a source with many dependencies, because some compilers
4339 # like to wrap large dependency lists on column 80 (with \), and
4340 # we should not choose a depcomp mode which is confused by this.
4342 # We need to recreate these files for each test, as the compiler may
4343 # overwrite some of them when testing with obscure command lines.
4344 # This happens at least with the AIX C compiler.
4346 for i in 1 2 3 4 5 6; do
4347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4348 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4349 # Solaris 8's {/usr,}/bin/sh.
4350 touch sub/conftst$i.h
4352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4356 # after this tag, mechanisms are not by side-effect, so they'll
4357 # only be used when explicitly requested
4358 if test "x$enable_dependency_tracking" = xyes; then
4366 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4367 # mode. It turns out that the SunPro C++ compiler does not properly
4368 # handle `-M -o', and we need to detect this.
4369 if depmode=$depmode \
4370 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4371 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4372 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4373 >/dev/null 2>conftest.err &&
4374 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4375 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4376 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4377 # icc doesn't choke on unknown options, it will just issue warnings
4378 # or remarks (even with -Werror). So we grep stderr for any message
4379 # that says an option was ignored or not supported.
4380 # When given -MP, icc 7.0 and 7.1 complain thusly:
4381 # icc: Command line warning: ignoring option '-M'; no argument required
4382 # The diagnosis changed in icc 8.0:
4383 # icc: Command line remark: option '-MP' not supported
4384 if (grep 'ignoring option' conftest.err ||
4385 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4386 am_cv_CC_dependencies_compiler_type=$depmode
4395 am_cv_CC_dependencies_compiler_type=none
4399 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4400 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4401 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4406 test "x$enable_dependency_tracking" != xno \
4407 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4409 am__fastdepCC_FALSE='#'
4411 am__fastdepCC_TRUE='#'
4412 am__fastdepCC_FALSE=
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421 if test -n "$ac_tool_prefix"; then
4422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4424 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if test "${ac_cv_prog_CC+set}" = set; then
4427 $as_echo_n "(cached) " >&6
4429 if test -n "$CC"; then
4430 ac_cv_prog_CC="$CC" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 if test -n "$CC"; then
4451 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4452 $as_echo "$CC" >&6; }
4454 { $as_echo "$as_me:$LINENO: result: no" >&5
4455 $as_echo "no" >&6; }
4460 if test -z "$ac_cv_prog_CC"; then
4462 # Extract the first word of "gcc", so it can be a program name with args.
4463 set dummy gcc; ac_word=$2
4464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4467 $as_echo_n "(cached) " >&6
4469 if test -n "$ac_ct_CC"; then
4470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_ac_ct_CC="gcc"
4480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4490 if test -n "$ac_ct_CC"; then
4491 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4492 $as_echo "$ac_ct_CC" >&6; }
4494 { $as_echo "$as_me:$LINENO: result: no" >&5
4495 $as_echo "no" >&6; }
4498 if test "x$ac_ct_CC" = x; then
4501 case $cross_compiling:$ac_tool_warned in
4503 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4504 whose name does not start with the host triplet. If you think this
4505 configuration is useful to you, please write to autoconf@gnu.org." >&5
4506 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4507 whose name does not start with the host triplet. If you think this
4508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4509 ac_tool_warned=yes ;;
4517 if test -z "$CC"; then
4518 if test -n "$ac_tool_prefix"; then
4519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4520 set dummy ${ac_tool_prefix}cc; ac_word=$2
4521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if test "${ac_cv_prog_CC+set}" = set; then
4524 $as_echo_n "(cached) " >&6
4526 if test -n "$CC"; then
4527 ac_cv_prog_CC="$CC" # Let the user override the test.
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_CC="${ac_tool_prefix}cc"
4537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 if test -n "$CC"; then
4548 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4549 $as_echo "$CC" >&6; }
4551 { $as_echo "$as_me:$LINENO: result: no" >&5
4552 $as_echo "no" >&6; }
4558 if test -z "$CC"; then
4559 # Extract the first word of "cc", so it can be a program name with args.
4560 set dummy cc; ac_word=$2
4561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_CC+set}" = set; then
4564 $as_echo_n "(cached) " >&6
4566 if test -n "$CC"; then
4567 ac_cv_prog_CC="$CC" # Let the user override the test.
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4578 ac_prog_rejected=yes
4582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 if test $ac_prog_rejected = yes; then
4590 # We found a bogon in the path, so make sure we never use it.
4591 set dummy $ac_cv_prog_CC
4593 if test $# != 0; then
4594 # We chose a different compiler from the bogus one.
4595 # However, it has the same basename, so the bogon will be chosen
4596 # first if we set CC to just the basename; use the full file name.
4598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4604 if test -n "$CC"; then
4605 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4606 $as_echo "$CC" >&6; }
4608 { $as_echo "$as_me:$LINENO: result: no" >&5
4609 $as_echo "no" >&6; }
4614 if test -z "$CC"; then
4615 if test -n "$ac_tool_prefix"; then
4616 for ac_prog in cl.exe
4618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4620 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623 $as_echo_n "(cached) " >&6
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4636 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 if test -n "$CC"; then
4647 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4648 $as_echo "$CC" >&6; }
4650 { $as_echo "$as_me:$LINENO: result: no" >&5
4651 $as_echo "no" >&6; }
4655 test -n "$CC" && break
4658 if test -z "$CC"; then
4660 for ac_prog in cl.exe
4662 # Extract the first word of "$ac_prog", so it can be a program name with args.
4663 set dummy $ac_prog; ac_word=$2
4664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 $as_echo_n "checking for $ac_word... " >&6; }
4666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4667 $as_echo_n "(cached) " >&6
4669 if test -n "$ac_ct_CC"; then
4670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 ac_cv_prog_ac_ct_CC="$ac_prog"
4680 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4690 if test -n "$ac_ct_CC"; then
4691 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4692 $as_echo "$ac_ct_CC" >&6; }
4694 { $as_echo "$as_me:$LINENO: result: no" >&5
4695 $as_echo "no" >&6; }
4699 test -n "$ac_ct_CC" && break
4702 if test "x$ac_ct_CC" = x; then
4705 case $cross_compiling:$ac_tool_warned in
4707 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4708 whose name does not start with the host triplet. If you think this
4709 configuration is useful to you, please write to autoconf@gnu.org." >&5
4710 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4711 whose name does not start with the host triplet. If you think this
4712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4713 ac_tool_warned=yes ;;
4722 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4723 See \`config.log' for more details." >&5
4724 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4725 See \`config.log' for more details." >&2;}
4726 { (exit 1); exit 1; }; }
4728 # Provide some information about the compiler.
4729 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4732 { (ac_try="$ac_compiler --version >&5"
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4738 $as_echo "$ac_try_echo") >&5
4739 (eval "$ac_compiler --version >&5") 2>&5
4741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }
4743 { (ac_try="$ac_compiler -v >&5"
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750 (eval "$ac_compiler -v >&5") 2>&5
4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }
4754 { (ac_try="$ac_compiler -V >&5"
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4760 $as_echo "$ac_try_echo") >&5
4761 (eval "$ac_compiler -V >&5") 2>&5
4763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }
4766 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4767 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4768 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4769 $as_echo_n "(cached) " >&6
4771 cat >conftest.$ac_ext <<_ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4796 $as_echo "$ac_try_echo") >&5
4797 (eval "$ac_compile") 2>conftest.er1
4799 grep -v '^ *+' conftest.er1 >conftest.err
4801 cat conftest.err >&5
4802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } && {
4804 test -z "$ac_c_werror_flag" ||
4805 test ! -s conftest.err
4806 } && test -s conftest.$ac_objext; then
4809 $as_echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4819 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4820 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4821 if test $ac_compiler_gnu = yes; then
4826 ac_test_CFLAGS=${CFLAGS+set}
4827 ac_save_CFLAGS=$CFLAGS
4828 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4829 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4830 if test "${ac_cv_prog_cc_g+set}" = set; then
4831 $as_echo_n "(cached) " >&6
4833 ac_save_c_werror_flag=$ac_c_werror_flag
4834 ac_c_werror_flag=yes
4837 cat >conftest.$ac_ext <<_ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4852 rm -f conftest.$ac_objext
4853 if { (ac_try="$ac_compile"
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4859 $as_echo "$ac_try_echo") >&5
4860 (eval "$ac_compile") 2>conftest.er1
4862 grep -v '^ *+' conftest.er1 >conftest.err
4864 cat conftest.err >&5
4865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } && {
4867 test -z "$ac_c_werror_flag" ||
4868 test ! -s conftest.err
4869 } && test -s conftest.$ac_objext; then
4872 $as_echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4876 cat >conftest.$ac_ext <<_ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4891 rm -f conftest.$ac_objext
4892 if { (ac_try="$ac_compile"
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4898 $as_echo "$ac_try_echo") >&5
4899 (eval "$ac_compile") 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
4903 cat conftest.err >&5
4904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest.$ac_objext; then
4911 $as_echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4914 ac_c_werror_flag=$ac_save_c_werror_flag
4916 cat >conftest.$ac_ext <<_ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4938 $as_echo "$ac_try_echo") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4941 grep -v '^ *+' conftest.er1 >conftest.err
4943 cat conftest.err >&5
4944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.$ac_objext; then
4951 $as_echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 ac_c_werror_flag=$ac_save_c_werror_flag
4966 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4967 $as_echo "$ac_cv_prog_cc_g" >&6; }
4968 if test "$ac_test_CFLAGS" = set; then
4969 CFLAGS=$ac_save_CFLAGS
4970 elif test $ac_cv_prog_cc_g = yes; then
4971 if test "$GCC" = yes; then
4977 if test "$GCC" = yes; then
4983 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4984 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4985 if test "${ac_cv_prog_cc_c89+set}" = set; then
4986 $as_echo_n "(cached) " >&6
4988 ac_cv_prog_cc_c89=no
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4998 #include <sys/types.h>
4999 #include <sys/stat.h>
5000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5001 struct buf { int x; };
5002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5003 static char *e (p, i)
5009 static char *f (char * (*g) (char **, int), char **p, ...)
5014 s = g (p, va_arg (v,int));
5019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5020 function prototypes and stuff, but not '\xHH' hex character constants.
5021 These don't provoke an error unfortunately, instead are silently treated
5022 as 'x'. The following induces an error, until -std is added to get
5023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5024 array size at least. It's necessary to write '\x00'==0 to get something
5025 that's true only with -std. */
5026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5028 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5029 inside strings and character constants. */
5031 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5033 int test (int i, double x);
5034 struct s1 {int (*f) (int a);};
5035 struct s2 {int (*f) (double a);};
5036 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5042 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5047 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5048 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5050 CC="$ac_save_CC $ac_arg"
5051 rm -f conftest.$ac_objext
5052 if { (ac_try="$ac_compile"
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5058 $as_echo "$ac_try_echo") >&5
5059 (eval "$ac_compile") 2>conftest.er1
5061 grep -v '^ *+' conftest.er1 >conftest.err
5063 cat conftest.err >&5
5064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } && {
5066 test -z "$ac_c_werror_flag" ||
5067 test ! -s conftest.err
5068 } && test -s conftest.$ac_objext; then
5069 ac_cv_prog_cc_c89=$ac_arg
5071 $as_echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5077 rm -f core conftest.err conftest.$ac_objext
5078 test "x$ac_cv_prog_cc_c89" != "xno" && break
5080 rm -f conftest.$ac_ext
5085 case "x$ac_cv_prog_cc_c89" in
5087 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5088 $as_echo "none needed" >&6; } ;;
5090 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5091 $as_echo "unsupported" >&6; } ;;
5093 CC="$CC $ac_cv_prog_cc_c89"
5094 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5095 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105 depcc="$CC" am_compiler_list=
5107 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5108 $as_echo_n "checking dependency style of $depcc... " >&6; }
5109 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5110 $as_echo_n "(cached) " >&6
5112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5113 # We make a subdir and do the tests there. Otherwise we can end up
5114 # making bogus files that we don't know about and never remove. For
5115 # instance it was reported that on HP-UX the gcc test will end up
5116 # making a dummy file named `D' -- because `-MD' means `put the output
5119 # Copy depcomp to subdir because otherwise we won't find it if we're
5120 # using a relative directory.
5121 cp "$am_depcomp" conftest.dir
5123 # We will build objects and dependencies in a subdirectory because
5124 # it helps to detect inapplicable dependency modes. For instance
5125 # both Tru64's cc and ICC support -MD to output dependencies as a
5126 # side effect of compilation, but ICC will put the dependencies in
5127 # the current directory while Tru64 will put them in the object
5131 am_cv_CC_dependencies_compiler_type=none
5132 if test "$am_compiler_list" = ""; then
5133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5135 for depmode in $am_compiler_list; do
5136 # Setup a source with many dependencies, because some compilers
5137 # like to wrap large dependency lists on column 80 (with \), and
5138 # we should not choose a depcomp mode which is confused by this.
5140 # We need to recreate these files for each test, as the compiler may
5141 # overwrite some of them when testing with obscure command lines.
5142 # This happens at least with the AIX C compiler.
5144 for i in 1 2 3 4 5 6; do
5145 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5146 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5147 # Solaris 8's {/usr,}/bin/sh.
5148 touch sub/conftst$i.h
5150 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5154 # after this tag, mechanisms are not by side-effect, so they'll
5155 # only be used when explicitly requested
5156 if test "x$enable_dependency_tracking" = xyes; then
5164 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5165 # mode. It turns out that the SunPro C++ compiler does not properly
5166 # handle `-M -o', and we need to detect this.
5167 if depmode=$depmode \
5168 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5169 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5170 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5171 >/dev/null 2>conftest.err &&
5172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5173 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5175 # icc doesn't choke on unknown options, it will just issue warnings
5176 # or remarks (even with -Werror). So we grep stderr for any message
5177 # that says an option was ignored or not supported.
5178 # When given -MP, icc 7.0 and 7.1 complain thusly:
5179 # icc: Command line warning: ignoring option '-M'; no argument required
5180 # The diagnosis changed in icc 8.0:
5181 # icc: Command line remark: option '-MP' not supported
5182 if (grep 'ignoring option' conftest.err ||
5183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5184 am_cv_CC_dependencies_compiler_type=$depmode
5193 am_cv_CC_dependencies_compiler_type=none
5197 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5198 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5199 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5204 test "x$enable_dependency_tracking" != xno \
5205 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5207 am__fastdepCC_FALSE='#'
5209 am__fastdepCC_TRUE='#'
5210 am__fastdepCC_FALSE=
5215 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5217 # By default we simply use the C compiler to build assembly code.
5219 test "${CCAS+set}" = set || CCAS=$CC
5220 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5225 ac_cpp='$CPP $CPPFLAGS'
5226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5230 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5231 # On Suns, sometimes $CPP names a directory.
5232 if test -n "$CPP" && test -d "$CPP"; then
5235 if test -z "$CPP"; then
5236 if test "${ac_cv_prog_CPP+set}" = set; then
5237 $as_echo_n "(cached) " >&6
5239 # Double quotes because CPP needs to be expanded
5240 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5243 for ac_c_preproc_warn_flag in '' yes
5245 # Use a header file that comes with gcc, so configuring glibc
5246 # with a fresh cross-compiler works.
5247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5248 # <limits.h> exists even on freestanding compilers.
5249 # On the NeXT, cc -E runs the code through the compiler's parser,
5250 # not just through cpp. "Syntax error" is here to catch this case.
5251 cat >conftest.$ac_ext <<_ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5258 # include <limits.h>
5260 # include <assert.h>
5264 if { (ac_try="$ac_cpp conftest.$ac_ext"
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5270 $as_echo "$ac_try_echo") >&5
5271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5273 grep -v '^ *+' conftest.er1 >conftest.err
5275 cat conftest.err >&5
5276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } >/dev/null && {
5278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5283 $as_echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 # Broken: fails on valid input.
5290 rm -f conftest.err conftest.$ac_ext
5292 # OK, works on sane cases. Now check whether nonexistent headers
5293 # can be detected and how.
5294 cat >conftest.$ac_ext <<_ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <ac_nonexistent.h>
5302 if { (ac_try="$ac_cpp conftest.$ac_ext"
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5308 $as_echo "$ac_try_echo") >&5
5309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5311 grep -v '^ *+' conftest.er1 >conftest.err
5313 cat conftest.err >&5
5314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } >/dev/null && {
5316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5317 test ! -s conftest.err
5319 # Broken: success on invalid input.
5322 $as_echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5325 # Passes both tests.
5330 rm -f conftest.err conftest.$ac_ext
5333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5334 rm -f conftest.err conftest.$ac_ext
5335 if $ac_preproc_ok; then
5347 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5348 $as_echo "$CPP" >&6; }
5350 for ac_c_preproc_warn_flag in '' yes
5352 # Use a header file that comes with gcc, so configuring glibc
5353 # with a fresh cross-compiler works.
5354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5355 # <limits.h> exists even on freestanding compilers.
5356 # On the NeXT, cc -E runs the code through the compiler's parser,
5357 # not just through cpp. "Syntax error" is here to catch this case.
5358 cat >conftest.$ac_ext <<_ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5365 # include <limits.h>
5367 # include <assert.h>
5371 if { (ac_try="$ac_cpp conftest.$ac_ext"
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5377 $as_echo "$ac_try_echo") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null && {
5385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5390 $as_echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 # Broken: fails on valid input.
5397 rm -f conftest.err conftest.$ac_ext
5399 # OK, works on sane cases. Now check whether nonexistent headers
5400 # can be detected and how.
5401 cat >conftest.$ac_ext <<_ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5409 if { (ac_try="$ac_cpp conftest.$ac_ext"
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5415 $as_echo "$ac_try_echo") >&5
5416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5418 grep -v '^ *+' conftest.er1 >conftest.err
5420 cat conftest.err >&5
5421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } >/dev/null && {
5423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5424 test ! -s conftest.err
5426 # Broken: success on invalid input.
5429 $as_echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5432 # Passes both tests.
5437 rm -f conftest.err conftest.$ac_ext
5440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5441 rm -f conftest.err conftest.$ac_ext
5442 if $ac_preproc_ok; then
5445 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5446 See \`config.log' for more details." >&5
5447 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5448 See \`config.log' for more details." >&2;}
5449 { (exit 1); exit 1; }; }
5453 ac_cpp='$CPP $CPPFLAGS'
5454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5459 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5460 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5461 if test "${ac_cv_path_GREP+set}" = set; then
5462 $as_echo_n "(cached) " >&6
5464 if test -z "$GREP"; then
5465 ac_path_GREP_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5471 test -z "$as_dir" && as_dir=.
5472 for ac_prog in grep ggrep; do
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5475 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5476 # Check for GNU ac_path_GREP and select it if it is found.
5477 # Check for GNU $ac_path_GREP
5478 case `"$ac_path_GREP" --version 2>&1` in
5480 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5483 $as_echo_n 0123456789 >"conftest.in"
5486 cat "conftest.in" "conftest.in" >"conftest.tmp"
5487 mv "conftest.tmp" "conftest.in"
5488 cp "conftest.in" "conftest.nl"
5489 $as_echo 'GREP' >> "conftest.nl"
5490 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492 ac_count=`expr $ac_count + 1`
5493 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5494 # Best one so far, save it but keep looking for a better one
5495 ac_cv_path_GREP="$ac_path_GREP"
5496 ac_path_GREP_max=$ac_count
5498 # 10*(2^10) chars as input seems more than enough
5499 test $ac_count -gt 10 && break
5501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5504 $ac_path_GREP_found && break 3
5509 if test -z "$ac_cv_path_GREP"; then
5510 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5511 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5512 { (exit 1); exit 1; }; }
5515 ac_cv_path_GREP=$GREP
5519 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5520 $as_echo "$ac_cv_path_GREP" >&6; }
5521 GREP="$ac_cv_path_GREP"
5524 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5525 $as_echo_n "checking for egrep... " >&6; }
5526 if test "${ac_cv_path_EGREP+set}" = set; then
5527 $as_echo_n "(cached) " >&6
5529 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5530 then ac_cv_path_EGREP="$GREP -E"
5532 if test -z "$EGREP"; then
5533 ac_path_EGREP_found=false
5534 # Loop through the user's path and test for each of PROGNAME-LIST
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5539 test -z "$as_dir" && as_dir=.
5540 for ac_prog in egrep; do
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5543 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5544 # Check for GNU ac_path_EGREP and select it if it is found.
5545 # Check for GNU $ac_path_EGREP
5546 case `"$ac_path_EGREP" --version 2>&1` in
5548 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5551 $as_echo_n 0123456789 >"conftest.in"
5554 cat "conftest.in" "conftest.in" >"conftest.tmp"
5555 mv "conftest.tmp" "conftest.in"
5556 cp "conftest.in" "conftest.nl"
5557 $as_echo 'EGREP' >> "conftest.nl"
5558 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5559 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5560 ac_count=`expr $ac_count + 1`
5561 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5562 # Best one so far, save it but keep looking for a better one
5563 ac_cv_path_EGREP="$ac_path_EGREP"
5564 ac_path_EGREP_max=$ac_count
5566 # 10*(2^10) chars as input seems more than enough
5567 test $ac_count -gt 10 && break
5569 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5572 $ac_path_EGREP_found && break 3
5577 if test -z "$ac_cv_path_EGREP"; then
5578 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5579 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5580 { (exit 1); exit 1; }; }
5583 ac_cv_path_EGREP=$EGREP
5588 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5589 $as_echo "$ac_cv_path_EGREP" >&6; }
5590 EGREP="$ac_cv_path_EGREP"
5593 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5594 $as_echo_n "checking for ANSI C header files... " >&6; }
5595 if test "${ac_cv_header_stdc+set}" = set; then
5596 $as_echo_n "(cached) " >&6
5598 cat >conftest.$ac_ext <<_ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5617 rm -f conftest.$ac_objext
5618 if { (ac_try="$ac_compile"
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5624 $as_echo "$ac_try_echo") >&5
5625 (eval "$ac_compile") 2>conftest.er1
5627 grep -v '^ *+' conftest.er1 >conftest.err
5629 cat conftest.err >&5
5630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && {
5632 test -z "$ac_c_werror_flag" ||
5633 test ! -s conftest.err
5634 } && test -s conftest.$ac_objext; then
5635 ac_cv_header_stdc=yes
5637 $as_echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_cv_header_stdc=no
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 if test $ac_cv_header_stdc = yes; then
5646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5647 cat >conftest.$ac_ext <<_ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5657 $EGREP "memchr" >/dev/null 2>&1; then
5660 ac_cv_header_stdc=no
5666 if test $ac_cv_header_stdc = yes; then
5667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5668 cat >conftest.$ac_ext <<_ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5678 $EGREP "free" >/dev/null 2>&1; then
5681 ac_cv_header_stdc=no
5687 if test $ac_cv_header_stdc = yes; then
5688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5689 if test "$cross_compiling" = yes; then
5692 cat >conftest.$ac_ext <<_ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5700 #if ((' ' & 0x0FF) == 0x020)
5701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5704 # define ISLOWER(c) \
5705 (('a' <= (c) && (c) <= 'i') \
5706 || ('j' <= (c) && (c) <= 'r') \
5707 || ('s' <= (c) && (c) <= 'z'))
5708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5716 for (i = 0; i < 256; i++)
5717 if (XOR (islower (i), ISLOWER (i))
5718 || toupper (i) != TOUPPER (i))
5723 rm -f conftest$ac_exeext
5724 if { (ac_try="$ac_link"
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5730 $as_echo "$ac_try_echo") >&5
5731 (eval "$ac_link") 2>&5
5733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5735 { (case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5740 $as_echo "$ac_try_echo") >&5
5741 (eval "$ac_try") 2>&5
5743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5747 $as_echo "$as_me: program exited with status $ac_status" >&5
5748 $as_echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5752 ac_cv_header_stdc=no
5754 rm -rf conftest.dSYM
5755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5761 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5762 $as_echo "$ac_cv_header_stdc" >&6; }
5763 if test $ac_cv_header_stdc = yes; then
5765 cat >>confdefs.h <<\_ACEOF
5766 #define STDC_HEADERS 1
5771 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5781 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5782 inttypes.h stdint.h unistd.h
5784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5786 $as_echo_n "checking for $ac_header... " >&6; }
5787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5788 $as_echo_n "(cached) " >&6
5790 cat >conftest.$ac_ext <<_ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 $ac_includes_default
5798 #include <$ac_header>
5800 rm -f conftest.$ac_objext
5801 if { (ac_try="$ac_compile"
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5807 $as_echo "$ac_try_echo") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.$ac_objext; then
5818 eval "$as_ac_Header=yes"
5820 $as_echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 eval "$as_ac_Header=no"
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 ac_res=`eval 'as_val=${'$as_ac_Header'}
5829 $as_echo "$as_val"'`
5830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5831 $as_echo "$ac_res" >&6; }
5832 if test `eval 'as_val=${'$as_ac_Header'}
5833 $as_echo "$as_val"'` = yes; then
5834 cat >>confdefs.h <<_ACEOF
5835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5843 # The cast to long int works around a bug in the HP C Compiler
5844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5846 # This bug is HP SR number 8606223364.
5847 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
5848 $as_echo_n "checking size of void *... " >&6; }
5849 if test "${ac_cv_sizeof_void_p+set}" = set; then
5850 $as_echo_n "(cached) " >&6
5852 if test "$cross_compiling" = yes; then
5853 # Depending upon the size, compute the lo and hi bounds.
5854 cat >conftest.$ac_ext <<_ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5860 $ac_includes_default
5864 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5878 $as_echo "$ac_try_echo") >&5
5879 (eval "$ac_compile") 2>conftest.er1
5881 grep -v '^ *+' conftest.er1 >conftest.err
5883 cat conftest.err >&5
5884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } && {
5886 test -z "$ac_c_werror_flag" ||
5887 test ! -s conftest.err
5888 } && test -s conftest.$ac_objext; then
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 $ac_includes_default
5901 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
5908 rm -f conftest.$ac_objext
5909 if { (ac_try="$ac_compile"
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5915 $as_echo "$ac_try_echo") >&5
5916 (eval "$ac_compile") 2>conftest.er1
5918 grep -v '^ *+' conftest.er1 >conftest.err
5920 cat conftest.err >&5
5921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } && {
5923 test -z "$ac_c_werror_flag" ||
5924 test ! -s conftest.err
5925 } && test -s conftest.$ac_objext; then
5926 ac_hi=$ac_mid; break
5928 $as_echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5931 ac_lo=`expr $ac_mid + 1`
5932 if test $ac_lo -le $ac_mid; then
5936 ac_mid=`expr 2 '*' $ac_mid + 1`
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 $as_echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 cat >conftest.$ac_ext <<_ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 $ac_includes_default
5955 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
5962 rm -f conftest.$ac_objext
5963 if { (ac_try="$ac_compile"
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5969 $as_echo "$ac_try_echo") >&5
5970 (eval "$ac_compile") 2>conftest.er1
5972 grep -v '^ *+' conftest.er1 >conftest.err
5974 cat conftest.err >&5
5975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } && {
5977 test -z "$ac_c_werror_flag" ||
5978 test ! -s conftest.err
5979 } && test -s conftest.$ac_objext; then
5982 cat >conftest.$ac_ext <<_ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 $ac_includes_default
5992 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
5999 rm -f conftest.$ac_objext
6000 if { (ac_try="$ac_compile"
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007 (eval "$ac_compile") 2>conftest.er1
6009 grep -v '^ *+' conftest.er1 >conftest.err
6011 cat conftest.err >&5
6012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } && {
6014 test -z "$ac_c_werror_flag" ||
6015 test ! -s conftest.err
6016 } && test -s conftest.$ac_objext; then
6017 ac_lo=$ac_mid; break
6019 $as_echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 ac_hi=`expr '(' $ac_mid ')' - 1`
6023 if test $ac_mid -le $ac_hi; then
6027 ac_mid=`expr 2 '*' $ac_mid`
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 $as_echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 # Binary search between lo and hi bounds.
6044 while test "x$ac_lo" != "x$ac_hi"; do
6045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6046 cat >conftest.$ac_ext <<_ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 $ac_includes_default
6056 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6063 rm -f conftest.$ac_objext
6064 if { (ac_try="$ac_compile"
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6070 $as_echo "$ac_try_echo") >&5
6071 (eval "$ac_compile") 2>conftest.er1
6073 grep -v '^ *+' conftest.er1 >conftest.err
6075 cat conftest.err >&5
6076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } && {
6078 test -z "$ac_c_werror_flag" ||
6079 test ! -s conftest.err
6080 } && test -s conftest.$ac_objext; then
6083 $as_echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6086 ac_lo=`expr '(' $ac_mid ')' + 1`
6089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6093 '') if test "$ac_cv_type_void_p" = yes; then
6094 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6095 See \`config.log' for more details." >&5
6096 $as_echo "$as_me: error: cannot compute sizeof (void *)
6097 See \`config.log' for more details." >&2;}
6098 { (exit 77); exit 77; }; }
6100 ac_cv_sizeof_void_p=0
6104 cat >conftest.$ac_ext <<_ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 $ac_includes_default
6111 static long int longval () { return (long int) (sizeof (void *)); }
6112 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6119 FILE *f = fopen ("conftest.val", "w");
6122 if (((long int) (sizeof (void *))) < 0)
6124 long int i = longval ();
6125 if (i != ((long int) (sizeof (void *))))
6127 fprintf (f, "%ld", i);
6131 unsigned long int i = ulongval ();
6132 if (i != ((long int) (sizeof (void *))))
6134 fprintf (f, "%lu", i);
6136 /* Do not output a trailing newline, as this causes \r\n confusion
6137 on some platforms. */
6138 return ferror (f) || fclose (f) != 0;
6144 rm -f conftest$ac_exeext
6145 if { (ac_try="$ac_link"
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6151 $as_echo "$ac_try_echo") >&5
6152 (eval "$ac_link") 2>&5
6154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6156 { (case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161 $as_echo "$ac_try_echo") >&5
6162 (eval "$ac_try") 2>&5
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 ac_cv_sizeof_void_p=`cat conftest.val`
6168 $as_echo "$as_me: program exited with status $ac_status" >&5
6169 $as_echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6173 if test "$ac_cv_type_void_p" = yes; then
6174 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6175 See \`config.log' for more details." >&5
6176 $as_echo "$as_me: error: cannot compute sizeof (void *)
6177 See \`config.log' for more details." >&2;}
6178 { (exit 77); exit 77; }; }
6180 ac_cv_sizeof_void_p=0
6183 rm -rf conftest.dSYM
6184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6188 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6189 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6193 cat >>confdefs.h <<_ACEOF
6194 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6198 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6199 $as_echo_n "checking for ANSI C header files... " >&6; }
6200 if test "${ac_cv_header_stdc+set}" = set; then
6201 $as_echo_n "(cached) " >&6
6203 cat >conftest.$ac_ext <<_ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6222 rm -f conftest.$ac_objext
6223 if { (ac_try="$ac_compile"
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6229 $as_echo "$ac_try_echo") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6232 grep -v '^ *+' conftest.er1 >conftest.err
6234 cat conftest.err >&5
6235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 ac_cv_header_stdc=yes
6242 $as_echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6245 ac_cv_header_stdc=no
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250 if test $ac_cv_header_stdc = yes; then
6251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6252 cat >conftest.$ac_ext <<_ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262 $EGREP "memchr" >/dev/null 2>&1; then
6265 ac_cv_header_stdc=no
6271 if test $ac_cv_header_stdc = yes; then
6272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 $EGREP "free" >/dev/null 2>&1; then
6286 ac_cv_header_stdc=no
6292 if test $ac_cv_header_stdc = yes; then
6293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6294 if test "$cross_compiling" = yes; then
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6305 #if ((' ' & 0x0FF) == 0x020)
6306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6309 # define ISLOWER(c) \
6310 (('a' <= (c) && (c) <= 'i') \
6311 || ('j' <= (c) && (c) <= 'r') \
6312 || ('s' <= (c) && (c) <= 'z'))
6313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6321 for (i = 0; i < 256; i++)
6322 if (XOR (islower (i), ISLOWER (i))
6323 || toupper (i) != TOUPPER (i))
6328 rm -f conftest$ac_exeext
6329 if { (ac_try="$ac_link"
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6335 $as_echo "$ac_try_echo") >&5
6336 (eval "$ac_link") 2>&5
6338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6340 { (case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6345 $as_echo "$ac_try_echo") >&5
6346 (eval "$ac_try") 2>&5
6348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6352 $as_echo "$as_me: program exited with status $ac_status" >&5
6353 $as_echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_cv_header_stdc=no
6359 rm -rf conftest.dSYM
6360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6366 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6367 $as_echo "$ac_cv_header_stdc" >&6; }
6368 if test $ac_cv_header_stdc = yes; then
6370 cat >>confdefs.h <<\_ACEOF
6371 #define STDC_HEADERS 1
6376 # Make sure we can run config.sub.
6377 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6378 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6379 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6380 { (exit 1); exit 1; }; }
6382 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6383 $as_echo_n "checking build system type... " >&6; }
6384 if test "${ac_cv_build+set}" = set; then
6385 $as_echo_n "(cached) " >&6
6387 ac_build_alias=$build_alias
6388 test "x$ac_build_alias" = x &&
6389 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6390 test "x$ac_build_alias" = x &&
6391 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6392 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6393 { (exit 1); exit 1; }; }
6394 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6395 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6396 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6397 { (exit 1); exit 1; }; }
6400 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6401 $as_echo "$ac_cv_build" >&6; }
6402 case $ac_cv_build in
6404 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6405 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6406 { (exit 1); exit 1; }; };;
6409 ac_save_IFS=$IFS; IFS='-'
6415 # Remember, the first character of IFS is used to create $*,
6416 # except with old shells:
6419 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6422 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6423 $as_echo_n "checking host system type... " >&6; }
6424 if test "${ac_cv_host+set}" = set; then
6425 $as_echo_n "(cached) " >&6
6427 if test "x$host_alias" = x; then
6428 ac_cv_host=$ac_cv_build
6430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6431 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6432 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6433 { (exit 1); exit 1; }; }
6437 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6438 $as_echo "$ac_cv_host" >&6; }
6441 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6442 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6443 { (exit 1); exit 1; }; };;
6446 ac_save_IFS=$IFS; IFS='-'
6452 # Remember, the first character of IFS is used to create $*,
6453 # except with old shells:
6456 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6459 # Check whether --enable-trace was given.
6460 if test "${enable_trace+set}" = set; then
6461 enableval=$enable_trace; if test "$enableval" == "yes"; then
6463 cat >>confdefs.h <<\_ACEOF
6464 #define ENABLE_TRACE_IO 1
6470 # Check whether --enable-watch was given.
6471 if test "${enable_watch+set}" = set; then
6472 enableval=$enable_watch; if test "$enableval" == "yes"; then
6474 cat >>confdefs.h <<\_ACEOF
6475 #define ENABLE_WATCH 1
6481 # Check whether --enable-sh4stats was given.
6482 if test "${enable_sh4stats+set}" = set; then
6483 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
6485 cat >>confdefs.h <<\_ACEOF
6486 #define ENABLE_SH4STATS 1
6493 # Check whether --with-osmesa was given.
6494 if test "${with_osmesa+set}" = set; then
6495 withval=$with_osmesa;
6501 # Check whether --with-gtk was given.
6502 if test "${with_gtk+set}" = set; then
6503 withval=$with_gtk; with_gtk=yes
6510 lxdream_save_cppflags="$CPPFLAGS"
6511 CPPFLAGS="$CPPFLAGS -x objective-c"
6512 cat >conftest.$ac_ext <<_ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6527 rm -f conftest.$ac_objext
6528 if { (ac_try="$ac_compile"
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6534 $as_echo "$ac_try_echo") >&5
6535 (eval "$ac_compile") 2>conftest.er1
6537 grep -v '^ *+' conftest.er1 >conftest.err
6539 cat conftest.err >&5
6540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } && {
6542 test -z "$ac_c_werror_flag" ||
6543 test ! -s conftest.err
6544 } && test -s conftest.$ac_objext; then
6547 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6548 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6549 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6550 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6551 $as_echo_n "(cached) " >&6
6553 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6554 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6556 # Is the header compilable?
6557 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
6558 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
6559 cat >conftest.$ac_ext <<_ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 $ac_includes_default
6566 #include <Cocoa/Cocoa.h>
6568 rm -f conftest.$ac_objext
6569 if { (ac_try="$ac_compile"
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6575 $as_echo "$ac_try_echo") >&5
6576 (eval "$ac_compile") 2>conftest.er1
6578 grep -v '^ *+' conftest.er1 >conftest.err
6580 cat conftest.err >&5
6581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && {
6583 test -z "$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 } && test -s conftest.$ac_objext; then
6586 ac_header_compiler=yes
6588 $as_echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6591 ac_header_compiler=no
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6596 $as_echo "$ac_header_compiler" >&6; }
6598 # Is the header present?
6599 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
6600 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
6601 cat >conftest.$ac_ext <<_ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 #include <Cocoa/Cocoa.h>
6609 if { (ac_try="$ac_cpp conftest.$ac_ext"
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6615 $as_echo "$ac_try_echo") >&5
6616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6618 grep -v '^ *+' conftest.er1 >conftest.err
6620 cat conftest.err >&5
6621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } >/dev/null && {
6623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6626 ac_header_preproc=yes
6628 $as_echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_header_preproc=no
6634 rm -f conftest.err conftest.$ac_ext
6635 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6636 $as_echo "$ac_header_preproc" >&6; }
6638 # So? What about this header?
6639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6641 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6642 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6643 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
6644 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
6645 ac_header_preproc=yes
6648 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
6649 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
6650 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
6651 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
6652 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
6653 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
6654 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
6655 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6656 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
6657 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
6658 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
6659 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
6663 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6664 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6665 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6666 $as_echo_n "(cached) " >&6
6668 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
6670 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6671 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6674 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
6678 LIBS="$LIBS -framework AppKit"
6679 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"
6681 cat >>confdefs.h <<\_ACEOF
6682 #define HAVE_COCOA 1
6686 cat >>confdefs.h <<\_ACEOF
6687 #define APPLE_BUILD 1
6695 if test "x$with_gtk" = "xx11"; then
6701 $as_echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 CPPFLAGS="$lxdream_save_cppflags"
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
6721 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6728 $as_echo_n "(cached) " >&6
6732 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6754 if test -n "$PKG_CONFIG"; then
6755 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6756 $as_echo "$PKG_CONFIG" >&6; }
6758 { $as_echo "$as_me:$LINENO: result: no" >&5
6759 $as_echo "no" >&6; }
6764 if test -z "$ac_cv_path_PKG_CONFIG"; then
6765 ac_pt_PKG_CONFIG=$PKG_CONFIG
6766 # Extract the first word of "pkg-config", so it can be a program name with args.
6767 set dummy pkg-config; ac_word=$2
6768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6771 $as_echo_n "(cached) " >&6
6773 case $ac_pt_PKG_CONFIG in
6775 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6797 if test -n "$ac_pt_PKG_CONFIG"; then
6798 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6799 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6801 { $as_echo "$as_me:$LINENO: result: no" >&5
6802 $as_echo "no" >&6; }
6805 if test "x$ac_pt_PKG_CONFIG" = x; then
6808 case $cross_compiling:$ac_tool_warned in
6810 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6811 whose name does not start with the host triplet. If you think this
6812 configuration is useful to you, please write to autoconf@gnu.org." >&5
6813 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6814 whose name does not start with the host triplet. If you think this
6815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6816 ac_tool_warned=yes ;;
6818 PKG_CONFIG=$ac_pt_PKG_CONFIG
6821 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6825 if test -n "$PKG_CONFIG"; then
6826 _pkg_min_version=0.9.0
6827 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6828 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6829 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6830 { $as_echo "$as_me:$LINENO: result: yes" >&5
6831 $as_echo "yes" >&6; }
6833 { $as_echo "$as_me:$LINENO: result: no" >&5
6834 $as_echo "no" >&6; }
6841 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
6842 $as_echo_n "checking for LIBPNG... " >&6; }
6844 if test -n "$PKG_CONFIG"; then
6845 if test -n "$LIBPNG_CFLAGS"; then
6846 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
6848 if test -n "$PKG_CONFIG" && \
6849 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6850 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; then
6854 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
6862 if test -n "$PKG_CONFIG"; then
6863 if test -n "$LIBPNG_LIBS"; then
6864 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
6866 if test -n "$PKG_CONFIG" && \
6867 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6868 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; then
6872 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
6883 if test $pkg_failed = yes; then
6885 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6886 _pkg_short_errors_supported=yes
6888 _pkg_short_errors_supported=no
6890 if test $_pkg_short_errors_supported = yes; then
6891 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
6893 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
6895 # Put the nasty error message in config.log where it belongs
6896 echo "$LIBPNG_PKG_ERRORS" >&5
6898 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
6902 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6903 installed software in a non-standard prefix.
6905 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6906 and LIBPNG_LIBS to avoid the need to call pkg-config.
6907 See the pkg-config man page for more details.
6909 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
6913 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6914 installed software in a non-standard prefix.
6916 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6917 and LIBPNG_LIBS to avoid the need to call pkg-config.
6918 See the pkg-config man page for more details.
6920 { (exit 1); exit 1; }; }
6921 elif test $pkg_failed = untried; then
6922 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6923 is in your PATH or set the PKG_CONFIG environment variable to the full
6926 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6927 and LIBPNG_LIBS to avoid the need to call pkg-config.
6928 See the pkg-config man page for more details.
6930 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6931 See \`config.log' for more details." >&5
6932 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6933 is in your PATH or set the PKG_CONFIG environment variable to the full
6936 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6937 and LIBPNG_LIBS to avoid the need to call pkg-config.
6938 See the pkg-config man page for more details.
6940 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6941 See \`config.log' for more details." >&2;}
6942 { (exit 1); exit 1; }; }
6944 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
6945 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
6946 { $as_echo "$as_me:$LINENO: result: yes" >&5
6947 $as_echo "yes" >&6; }
6952 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
6953 $as_echo_n "checking for uncompress in -lz... " >&6; }
6954 if test "${ac_cv_lib_z_uncompress+set}" = set; then
6955 $as_echo_n "(cached) " >&6
6957 ac_check_lib_save_LIBS=$LIBS
6959 cat >conftest.$ac_ext <<_ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6966 /* Override any GCC internal prototype to avoid an error.
6967 Use char because int might match the return type of a GCC
6968 builtin and then its argument prototype would still apply. */
6976 return uncompress ();
6981 rm -f conftest.$ac_objext conftest$ac_exeext
6982 if { (ac_try="$ac_link"
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6988 $as_echo "$ac_try_echo") >&5
6989 (eval "$ac_link") 2>conftest.er1
6991 grep -v '^ *+' conftest.er1 >conftest.err
6993 cat conftest.err >&5
6994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } && {
6996 test -z "$ac_c_werror_flag" ||
6997 test ! -s conftest.err
6998 } && test -s conftest$ac_exeext && {
6999 test "$cross_compiling" = yes ||
7000 $as_test_x conftest$ac_exeext
7002 ac_cv_lib_z_uncompress=yes
7004 $as_echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 ac_cv_lib_z_uncompress=no
7010 rm -rf conftest.dSYM
7011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7012 conftest$ac_exeext conftest.$ac_ext
7013 LIBS=$ac_check_lib_save_LIBS
7015 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
7016 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
7017 if test $ac_cv_lib_z_uncompress = yes; then
7018 cat >>confdefs.h <<_ACEOF
7026 echo "Zlib (libz.so) could not be found, but is required."
7031 if test "x$with_gtk" = "xno"; then
7034 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
7035 $as_echo_n "checking for GLIB... " >&6; }
7037 if test -n "$PKG_CONFIG"; then
7038 if test -n "$GLIB_CFLAGS"; then
7039 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
7041 if test -n "$PKG_CONFIG" && \
7042 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7043 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; then
7047 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
7055 if test -n "$PKG_CONFIG"; then
7056 if test -n "$GLIB_LIBS"; then
7057 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
7059 if test -n "$PKG_CONFIG" && \
7060 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7061 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; then
7065 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
7076 if test $pkg_failed = yes; then
7078 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7079 _pkg_short_errors_supported=yes
7081 _pkg_short_errors_supported=no
7083 if test $_pkg_short_errors_supported = yes; then
7084 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
7086 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
7088 # Put the nasty error message in config.log where it belongs
7089 echo "$GLIB_PKG_ERRORS" >&5
7091 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
7095 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7096 installed software in a non-standard prefix.
7098 Alternatively, you may set the environment variables GLIB_CFLAGS
7099 and GLIB_LIBS to avoid the need to call pkg-config.
7100 See the pkg-config man page for more details.
7102 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
7106 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7107 installed software in a non-standard prefix.
7109 Alternatively, you may set the environment variables GLIB_CFLAGS
7110 and GLIB_LIBS to avoid the need to call pkg-config.
7111 See the pkg-config man page for more details.
7113 { (exit 1); exit 1; }; }
7114 elif test $pkg_failed = untried; then
7115 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7116 is in your PATH or set the PKG_CONFIG environment variable to the full
7119 Alternatively, you may set the environment variables GLIB_CFLAGS
7120 and GLIB_LIBS to avoid the need to call pkg-config.
7121 See the pkg-config man page for more details.
7123 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7124 See \`config.log' for more details." >&5
7125 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7126 is in your PATH or set the PKG_CONFIG environment variable to the full
7129 Alternatively, you may set the environment variables GLIB_CFLAGS
7130 and GLIB_LIBS to avoid the need to call pkg-config.
7131 See the pkg-config man page for more details.
7133 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7134 See \`config.log' for more details." >&2;}
7135 { (exit 1); exit 1; }; }
7137 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
7138 GLIB_LIBS=$pkg_cv_GLIB_LIBS
7139 { $as_echo "$as_me:$LINENO: result: yes" >&5
7140 $as_echo "yes" >&6; }
7146 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
7147 $as_echo_n "checking for GTK... " >&6; }
7149 if test -n "$PKG_CONFIG"; then
7150 if test -n "$GTK_CFLAGS"; then
7151 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7153 if test -n "$PKG_CONFIG" && \
7154 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7155 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; then
7159 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
7167 if test -n "$PKG_CONFIG"; then
7168 if test -n "$GTK_LIBS"; then
7169 pkg_cv_GTK_LIBS="$GTK_LIBS"
7171 if test -n "$PKG_CONFIG" && \
7172 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7173 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; then
7177 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
7188 if test $pkg_failed = yes; then
7190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7191 _pkg_short_errors_supported=yes
7193 _pkg_short_errors_supported=no
7195 if test $_pkg_short_errors_supported = yes; then
7196 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
7198 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
7200 # Put the nasty error message in config.log where it belongs
7201 echo "$GTK_PKG_ERRORS" >&5
7203 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
7207 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7208 installed software in a non-standard prefix.
7210 Alternatively, you may set the environment variables GTK_CFLAGS
7211 and GTK_LIBS to avoid the need to call pkg-config.
7212 See the pkg-config man page for more details.
7214 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
7218 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7219 installed software in a non-standard prefix.
7221 Alternatively, you may set the environment variables GTK_CFLAGS
7222 and GTK_LIBS to avoid the need to call pkg-config.
7223 See the pkg-config man page for more details.
7225 { (exit 1); exit 1; }; }
7226 elif test $pkg_failed = untried; then
7227 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7228 is in your PATH or set the PKG_CONFIG environment variable to the full
7231 Alternatively, you may set the environment variables GTK_CFLAGS
7232 and GTK_LIBS to avoid the need to call pkg-config.
7233 See the pkg-config man page for more details.
7235 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7236 See \`config.log' for more details." >&5
7237 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7238 is in your PATH or set the PKG_CONFIG environment variable to the full
7241 Alternatively, you may set the environment variables GTK_CFLAGS
7242 and GTK_LIBS to avoid the need to call pkg-config.
7243 See the pkg-config man page for more details.
7245 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7246 See \`config.log' for more details." >&2;}
7247 { (exit 1); exit 1; }; }
7249 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7250 GTK_LIBS=$pkg_cv_GTK_LIBS
7251 { $as_echo "$as_me:$LINENO: result: yes" >&5
7252 $as_echo "yes" >&6; }
7256 cat >>confdefs.h <<\_ACEOF
7263 LIBS="$LIBS $GTK_LIBS"
7264 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
7265 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
7266 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
7267 $as_echo_n "(cached) " >&6
7269 cat >conftest.$ac_ext <<_ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h. */
7275 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
7276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7277 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
7279 /* System header to define __stub macros and hopefully few prototypes,
7280 which can conflict with char gdk_x11_display_get_xdisplay (); below.
7281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7282 <limits.h> exists even on freestanding compilers. */
7285 # include <limits.h>
7287 # include <assert.h>
7290 #undef gdk_x11_display_get_xdisplay
7292 /* Override any GCC internal prototype to avoid an error.
7293 Use char because int might match the return type of a GCC
7294 builtin and then its argument prototype would still apply. */
7298 char gdk_x11_display_get_xdisplay ();
7299 /* The GNU C library defines this for functions which it implements
7300 to always fail with ENOSYS. Some functions are actually named
7301 something starting with __ and the normal name is an alias. */
7302 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
7309 return gdk_x11_display_get_xdisplay ();
7314 rm -f conftest.$ac_objext conftest$ac_exeext
7315 if { (ac_try="$ac_link"
7317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7318 *) ac_try_echo=$ac_try;;
7320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7321 $as_echo "$ac_try_echo") >&5
7322 (eval "$ac_link") 2>conftest.er1
7324 grep -v '^ *+' conftest.er1 >conftest.err
7326 cat conftest.err >&5
7327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } && {
7329 test -z "$ac_c_werror_flag" ||
7330 test ! -s conftest.err
7331 } && test -s conftest$ac_exeext && {
7332 test "$cross_compiling" = yes ||
7333 $as_test_x conftest$ac_exeext
7335 ac_cv_func_gdk_x11_display_get_xdisplay=yes
7337 $as_echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7340 ac_cv_func_gdk_x11_display_get_xdisplay=no
7343 rm -rf conftest.dSYM
7344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7345 conftest$ac_exeext conftest.$ac_ext
7347 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
7348 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
7349 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
7353 cat >>confdefs.h <<\_ACEOF
7354 #define HAVE_GTK_X11 1
7359 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
7360 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
7361 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
7362 $as_echo_n "(cached) " >&6
7364 cat >conftest.$ac_ext <<_ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
7371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7372 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
7374 /* System header to define __stub macros and hopefully few prototypes,
7375 which can conflict with char gdk_quartz_window_get_nsview (); below.
7376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7377 <limits.h> exists even on freestanding compilers. */
7380 # include <limits.h>
7382 # include <assert.h>
7385 #undef gdk_quartz_window_get_nsview
7387 /* Override any GCC internal prototype to avoid an error.
7388 Use char because int might match the return type of a GCC
7389 builtin and then its argument prototype would still apply. */
7393 char gdk_quartz_window_get_nsview ();
7394 /* The GNU C library defines this for functions which it implements
7395 to always fail with ENOSYS. Some functions are actually named
7396 something starting with __ and the normal name is an alias. */
7397 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
7404 return gdk_quartz_window_get_nsview ();
7409 rm -f conftest.$ac_objext conftest$ac_exeext
7410 if { (ac_try="$ac_link"
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7416 $as_echo "$ac_try_echo") >&5
7417 (eval "$ac_link") 2>conftest.er1
7419 grep -v '^ *+' conftest.er1 >conftest.err
7421 cat conftest.err >&5
7422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } && {
7424 test -z "$ac_c_werror_flag" ||
7425 test ! -s conftest.err
7426 } && test -s conftest$ac_exeext && {
7427 test "$cross_compiling" = yes ||
7428 $as_test_x conftest$ac_exeext
7430 ac_cv_func_gdk_quartz_window_get_nsview=yes
7432 $as_echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ac_cv_func_gdk_quartz_window_get_nsview=no
7438 rm -rf conftest.dSYM
7439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7440 conftest$ac_exeext conftest.$ac_ext
7442 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
7443 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
7444 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
7448 cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_GTK_OSX 1
7458 if test "$HAVE_GTK" = 'yes'; then
7467 if test "x$with_osmesa" != xno; then
7471 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
7472 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
7473 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
7474 $as_echo_n "(cached) " >&6
7476 ac_check_lib_save_LIBS=$LIBS
7477 LIBS="-lOSMesa $LIBS"
7478 cat >conftest.$ac_ext <<_ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7485 /* Override any GCC internal prototype to avoid an error.
7486 Use char because int might match the return type of a GCC
7487 builtin and then its argument prototype would still apply. */
7491 char OSMesaCreateContext ();
7495 return OSMesaCreateContext ();
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (ac_try="$ac_link"
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7507 $as_echo "$ac_try_echo") >&5
7508 (eval "$ac_link") 2>conftest.er1
7510 grep -v '^ *+' conftest.er1 >conftest.err
7512 cat conftest.err >&5
7513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } && {
7515 test -z "$ac_c_werror_flag" ||
7516 test ! -s conftest.err
7517 } && test -s conftest$ac_exeext && {
7518 test "$cross_compiling" = yes ||
7519 $as_test_x conftest$ac_exeext
7521 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
7523 $as_echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7526 ac_cv_lib_OSMesa_OSMesaCreateContext=no
7529 rm -rf conftest.dSYM
7530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7531 conftest$ac_exeext conftest.$ac_ext
7532 LIBS=$ac_check_lib_save_LIBS
7534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
7535 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
7536 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
7537 cat >>confdefs.h <<_ACEOF
7538 #define HAVE_LIBOSMESA 1
7541 LIBS="-lOSMesa $LIBS"
7544 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
7545 See \`config.log' for more details." >&5
7546 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
7547 See \`config.log' for more details." >&2;}
7548 { (exit 1); exit 1; }; }
7551 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7552 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7553 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7554 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7557 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7558 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7560 # Is the header compilable?
7561 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
7562 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
7563 cat >conftest.$ac_ext <<_ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 $ac_includes_default
7570 #include <GL/osmesa.h>
7572 rm -f conftest.$ac_objext
7573 if { (ac_try="$ac_compile"
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7579 $as_echo "$ac_try_echo") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7582 grep -v '^ *+' conftest.er1 >conftest.err
7584 cat conftest.err >&5
7585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7590 ac_header_compiler=yes
7592 $as_echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 ac_header_compiler=no
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7600 $as_echo "$ac_header_compiler" >&6; }
7602 # Is the header present?
7603 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
7604 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
7605 cat >conftest.$ac_ext <<_ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 #include <GL/osmesa.h>
7613 if { (ac_try="$ac_cpp conftest.$ac_ext"
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7619 $as_echo "$ac_try_echo") >&5
7620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7622 grep -v '^ *+' conftest.er1 >conftest.err
7624 cat conftest.err >&5
7625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } >/dev/null && {
7627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7628 test ! -s conftest.err
7630 ac_header_preproc=yes
7632 $as_echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7635 ac_header_preproc=no
7638 rm -f conftest.err conftest.$ac_ext
7639 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7640 $as_echo "$ac_header_preproc" >&6; }
7642 # So? What about this header?
7643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7645 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
7646 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7647 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
7648 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
7649 ac_header_preproc=yes
7652 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
7653 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
7654 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
7655 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
7656 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
7657 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
7658 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
7659 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
7660 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
7661 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
7662 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
7663 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
7667 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7668 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7669 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7670 $as_echo_n "(cached) " >&6
7672 ac_cv_header_GL_osmesa_h=$ac_header_preproc
7674 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7675 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7678 if test $ac_cv_header_GL_osmesa_h = yes; then
7681 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
7682 See \`config.log' for more details." >&5
7683 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
7684 See \`config.log' for more details." >&2;}
7685 { (exit 1); exit 1; }; }
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_OSMESA 1
7698 if test "x$APPLE_BUILD" != 'xyes'; then
7700 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
7701 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
7702 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
7703 $as_echo_n "(cached) " >&6
7705 ac_check_lib_save_LIBS=$LIBS
7707 cat >conftest.$ac_ext <<_ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7714 /* Override any GCC internal prototype to avoid an error.
7715 Use char because int might match the return type of a GCC
7716 builtin and then its argument prototype would still apply. */
7724 return glVertex3f ();
7729 rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (ac_try="$ac_link"
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7736 $as_echo "$ac_try_echo") >&5
7737 (eval "$ac_link") 2>conftest.er1
7739 grep -v '^ *+' conftest.er1 >conftest.err
7741 cat conftest.err >&5
7742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest$ac_exeext && {
7747 test "$cross_compiling" = yes ||
7748 $as_test_x conftest$ac_exeext
7750 ac_cv_lib_GL_glVertex3f=yes
7752 $as_echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7755 ac_cv_lib_GL_glVertex3f=no
7758 rm -rf conftest.dSYM
7759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7760 conftest$ac_exeext conftest.$ac_ext
7761 LIBS=$ac_check_lib_save_LIBS
7763 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
7764 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
7765 if test $ac_cv_lib_GL_glVertex3f = yes; then
7766 cat >>confdefs.h <<_ACEOF
7767 #define HAVE_LIBGL 1
7774 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7775 See \`config.log' for more details." >&5
7776 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7777 See \`config.log' for more details." >&2;}
7778 { (exit 1); exit 1; }; }
7781 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7782 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7783 $as_echo_n "checking for GL/gl.h... " >&6; }
7784 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7785 $as_echo_n "(cached) " >&6
7787 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7788 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
7790 # Is the header compilable?
7791 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
7792 $as_echo_n "checking GL/gl.h usability... " >&6; }
7793 cat >conftest.$ac_ext <<_ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 $ac_includes_default
7802 rm -f conftest.$ac_objext
7803 if { (ac_try="$ac_compile"
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7809 $as_echo "$ac_try_echo") >&5
7810 (eval "$ac_compile") 2>conftest.er1
7812 grep -v '^ *+' conftest.er1 >conftest.err
7814 cat conftest.err >&5
7815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
7819 } && test -s conftest.$ac_objext; then
7820 ac_header_compiler=yes
7822 $as_echo "$as_me: failed program was:" >&5
7823 sed 's/^/| /' conftest.$ac_ext >&5
7825 ac_header_compiler=no
7828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7829 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7830 $as_echo "$ac_header_compiler" >&6; }
7832 # Is the header present?
7833 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
7834 $as_echo_n "checking GL/gl.h presence... " >&6; }
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7843 if { (ac_try="$ac_cpp conftest.$ac_ext"
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7849 $as_echo "$ac_try_echo") >&5
7850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7852 grep -v '^ *+' conftest.er1 >conftest.err
7854 cat conftest.err >&5
7855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } >/dev/null && {
7857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7858 test ! -s conftest.err
7860 ac_header_preproc=yes
7862 $as_echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7865 ac_header_preproc=no
7868 rm -f conftest.err conftest.$ac_ext
7869 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7870 $as_echo "$ac_header_preproc" >&6; }
7872 # So? What about this header?
7873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7875 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7876 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7877 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
7878 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
7879 ac_header_preproc=yes
7882 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
7883 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
7884 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
7885 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
7886 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
7887 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
7888 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
7889 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7890 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
7891 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
7892 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
7893 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
7897 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7898 $as_echo_n "checking for GL/gl.h... " >&6; }
7899 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7900 $as_echo_n "(cached) " >&6
7902 ac_cv_header_GL_gl_h=$ac_header_preproc
7904 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7905 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
7908 if test $ac_cv_header_GL_gl_h = yes; then
7912 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
7913 See \`config.log' for more details." >&5
7914 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
7915 See \`config.log' for more details." >&2;}
7916 { (exit 1); exit 1; }; }
7921 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
7922 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
7923 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
7924 $as_echo_n "(cached) " >&6
7926 cat >conftest.$ac_ext <<_ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
7933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7934 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
7936 /* System header to define __stub macros and hopefully few prototypes,
7937 which can conflict with char NSOpenGLGetVersion (); below.
7938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7939 <limits.h> exists even on freestanding compilers. */
7942 # include <limits.h>
7944 # include <assert.h>
7947 #undef NSOpenGLGetVersion
7949 /* Override any GCC internal prototype to avoid an error.
7950 Use char because int might match the return type of a GCC
7951 builtin and then its argument prototype would still apply. */
7955 char NSOpenGLGetVersion ();
7956 /* The GNU C library defines this for functions which it implements
7957 to always fail with ENOSYS. Some functions are actually named
7958 something starting with __ and the normal name is an alias. */
7959 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
7966 return NSOpenGLGetVersion ();
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7978 $as_echo "$ac_try_echo") >&5
7979 (eval "$ac_link") 2>conftest.er1
7981 grep -v '^ *+' conftest.er1 >conftest.err
7983 cat conftest.err >&5
7984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } && {
7986 test -z "$ac_c_werror_flag" ||
7987 test ! -s conftest.err
7988 } && test -s conftest$ac_exeext && {
7989 test "$cross_compiling" = yes ||
7990 $as_test_x conftest$ac_exeext
7992 ac_cv_func_NSOpenGLGetVersion=yes
7994 $as_echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 ac_cv_func_NSOpenGLGetVersion=no
8000 rm -rf conftest.dSYM
8001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8002 conftest$ac_exeext conftest.$ac_ext
8004 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
8005 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
8006 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
8010 cat >>confdefs.h <<\_ACEOF
8018 if test "x$HAVE_GTK_X11" = "xyes"; then
8019 if test "x$APPLE_BUILD" = "xyes"; then
8020 LIBS="$LIBS -L/usr/X11/lib -lGL"
8022 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
8023 $as_echo_n "checking for glXQueryVersion... " >&6; }
8024 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
8025 $as_echo_n "(cached) " >&6
8027 cat >conftest.$ac_ext <<_ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8033 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
8034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8035 #define glXQueryVersion innocuous_glXQueryVersion
8037 /* System header to define __stub macros and hopefully few prototypes,
8038 which can conflict with char glXQueryVersion (); below.
8039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8040 <limits.h> exists even on freestanding compilers. */
8043 # include <limits.h>
8045 # include <assert.h>
8048 #undef glXQueryVersion
8050 /* Override any GCC internal prototype to avoid an error.
8051 Use char because int might match the return type of a GCC
8052 builtin and then its argument prototype would still apply. */
8056 char glXQueryVersion ();
8057 /* The GNU C library defines this for functions which it implements
8058 to always fail with ENOSYS. Some functions are actually named
8059 something starting with __ and the normal name is an alias. */
8060 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
8067 return glXQueryVersion ();
8072 rm -f conftest.$ac_objext conftest$ac_exeext
8073 if { (ac_try="$ac_link"
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8079 $as_echo "$ac_try_echo") >&5
8080 (eval "$ac_link") 2>conftest.er1
8082 grep -v '^ *+' conftest.er1 >conftest.err
8084 cat conftest.err >&5
8085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } && {
8087 test -z "$ac_c_werror_flag" ||
8088 test ! -s conftest.err
8089 } && test -s conftest$ac_exeext && {
8090 test "$cross_compiling" = yes ||
8091 $as_test_x conftest$ac_exeext
8093 ac_cv_func_glXQueryVersion=yes
8095 $as_echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 ac_cv_func_glXQueryVersion=no
8101 rm -rf conftest.dSYM
8102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8103 conftest$ac_exeext conftest.$ac_ext
8105 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
8106 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
8107 if test $ac_cv_func_glXQueryVersion = yes; then
8111 cat >>confdefs.h <<\_ACEOF
8124 if test "x$HAVE_OSMESA" = "x" -a "x$HAVE_GLX" = "x" -a "x$HAVE_NSGL" = "x"; then
8125 echo "Warning: Building with no video support"
8130 if test "x$HAVE_OSMESA" = "xyes"; then
8132 VIDEO_OSMESA_FALSE='#'
8134 VIDEO_OSMESA_TRUE='#'
8140 if test "x$HAVE_GLX" = "xyes"; then
8150 if test "x$HAVE_NSGL" = "xyes"; then
8152 VIDEO_NSGL_FALSE='#'
8159 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
8160 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
8161 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
8162 $as_echo_n "(cached) " >&6
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
8171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8172 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
8174 /* System header to define __stub macros and hopefully few prototypes,
8175 which can conflict with char glGenFramebuffersEXT (); below.
8176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8177 <limits.h> exists even on freestanding compilers. */
8180 # include <limits.h>
8182 # include <assert.h>
8185 #undef glGenFramebuffersEXT
8187 /* Override any GCC internal prototype to avoid an error.
8188 Use char because int might match the return type of a GCC
8189 builtin and then its argument prototype would still apply. */
8193 char glGenFramebuffersEXT ();
8194 /* The GNU C library defines this for functions which it implements
8195 to always fail with ENOSYS. Some functions are actually named
8196 something starting with __ and the normal name is an alias. */
8197 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
8204 return glGenFramebuffersEXT ();
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8216 $as_echo "$ac_try_echo") >&5
8217 (eval "$ac_link") 2>conftest.er1
8219 grep -v '^ *+' conftest.er1 >conftest.err
8221 cat conftest.err >&5
8222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } && {
8224 test -z "$ac_c_werror_flag" ||
8225 test ! -s conftest.err
8226 } && test -s conftest$ac_exeext && {
8227 test "$cross_compiling" = yes ||
8228 $as_test_x conftest$ac_exeext
8230 ac_cv_func_glGenFramebuffersEXT=yes
8232 $as_echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8235 ac_cv_func_glGenFramebuffersEXT=no
8238 rm -rf conftest.dSYM
8239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8240 conftest$ac_exeext conftest.$ac_ext
8242 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
8243 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
8244 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
8246 cat >>confdefs.h <<\_ACEOF
8247 #define HAVE_OPENGL_FBO 1
8252 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
8253 $as_echo_n "checking for glCreateShader... " >&6; }
8254 if test "${ac_cv_func_glCreateShader+set}" = set; then
8255 $as_echo_n "(cached) " >&6
8257 cat >conftest.$ac_ext <<_ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8263 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
8264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8265 #define glCreateShader innocuous_glCreateShader
8267 /* System header to define __stub macros and hopefully few prototypes,
8268 which can conflict with char glCreateShader (); below.
8269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270 <limits.h> exists even on freestanding compilers. */
8273 # include <limits.h>
8275 # include <assert.h>
8278 #undef glCreateShader
8280 /* Override any GCC internal prototype to avoid an error.
8281 Use char because int might match the return type of a GCC
8282 builtin and then its argument prototype would still apply. */
8286 char glCreateShader ();
8287 /* The GNU C library defines this for functions which it implements
8288 to always fail with ENOSYS. Some functions are actually named
8289 something starting with __ and the normal name is an alias. */
8290 #if defined __stub_glCreateShader || defined __stub___glCreateShader
8297 return glCreateShader ();
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (ac_try="$ac_link"
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8309 $as_echo "$ac_try_echo") >&5
8310 (eval "$ac_link") 2>conftest.er1
8312 grep -v '^ *+' conftest.er1 >conftest.err
8314 cat conftest.err >&5
8315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } && {
8317 test -z "$ac_c_werror_flag" ||
8318 test ! -s conftest.err
8319 } && test -s conftest$ac_exeext && {
8320 test "$cross_compiling" = yes ||
8321 $as_test_x conftest$ac_exeext
8323 ac_cv_func_glCreateShader=yes
8325 $as_echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 ac_cv_func_glCreateShader=no
8331 rm -rf conftest.dSYM
8332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8333 conftest$ac_exeext conftest.$ac_ext
8335 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
8336 $as_echo "$ac_cv_func_glCreateShader" >&6; }
8337 if test $ac_cv_func_glCreateShader = yes; then
8339 cat >>confdefs.h <<\_ACEOF
8340 #define HAVE_OPENGL_SHADER 1
8345 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
8346 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
8347 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
8348 $as_echo_n "(cached) " >&6
8350 cat >conftest.$ac_ext <<_ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8356 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
8357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8358 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
8360 /* System header to define __stub macros and hopefully few prototypes,
8361 which can conflict with char glCreateShaderObjectARB (); below.
8362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8363 <limits.h> exists even on freestanding compilers. */
8366 # include <limits.h>
8368 # include <assert.h>
8371 #undef glCreateShaderObjectARB
8373 /* Override any GCC internal prototype to avoid an error.
8374 Use char because int might match the return type of a GCC
8375 builtin and then its argument prototype would still apply. */
8379 char glCreateShaderObjectARB ();
8380 /* The GNU C library defines this for functions which it implements
8381 to always fail with ENOSYS. Some functions are actually named
8382 something starting with __ and the normal name is an alias. */
8383 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
8390 return glCreateShaderObjectARB ();
8395 rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (ac_try="$ac_link"
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8402 $as_echo "$ac_try_echo") >&5
8403 (eval "$ac_link") 2>conftest.er1
8405 grep -v '^ *+' conftest.er1 >conftest.err
8407 cat conftest.err >&5
8408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } && {
8410 test -z "$ac_c_werror_flag" ||
8411 test ! -s conftest.err
8412 } && test -s conftest$ac_exeext && {
8413 test "$cross_compiling" = yes ||
8414 $as_test_x conftest$ac_exeext
8416 ac_cv_func_glCreateShaderObjectARB=yes
8418 $as_echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 ac_cv_func_glCreateShaderObjectARB=no
8424 rm -rf conftest.dSYM
8425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8426 conftest$ac_exeext conftest.$ac_ext
8428 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
8429 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
8430 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
8432 cat >>confdefs.h <<\_ACEOF
8433 #define HAVE_OPENGL_SHADER_ARB 1
8441 i386|i486|i586|i686|x86_64)
8442 SH4_TRANSLATOR="x86"
8444 cat >>confdefs.h <<_ACEOF
8445 #define SH4_TRANSLATOR TARGET_X86
8449 echo "Warning: No translator available for $host. Building emulation core only";;
8453 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
8455 BUILD_SH4X86_FALSE='#'
8457 BUILD_SH4X86_TRUE='#'
8463 if test "$SH4_TRANSLATOR" = "x86_64"; then
8465 BUILD_X86_64_FALSE='#'
8467 BUILD_X86_64_TRUE='#'
8474 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
8475 $as_echo_n "checking for PULSE... " >&6; }
8477 if test -n "$PKG_CONFIG"; then
8478 if test -n "$PULSE_CFLAGS"; then
8479 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
8481 if test -n "$PKG_CONFIG" && \
8482 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8483 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; then
8487 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
8495 if test -n "$PKG_CONFIG"; then
8496 if test -n "$PULSE_LIBS"; then
8497 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
8499 if test -n "$PKG_CONFIG" && \
8500 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8501 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; then
8505 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
8516 if test $pkg_failed = yes; then
8518 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8519 _pkg_short_errors_supported=yes
8521 _pkg_short_errors_supported=no
8523 if test $_pkg_short_errors_supported = yes; then
8524 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
8526 PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
8528 # Put the nasty error message in config.log where it belongs
8529 echo "$PULSE_PKG_ERRORS" >&5
8531 { $as_echo "$as_me:$LINENO: result: no" >&5
8532 $as_echo "no" >&6; }
8534 elif test $pkg_failed = untried; then
8537 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
8538 PULSE_LIBS=$pkg_cv_PULSE_LIBS
8539 { $as_echo "$as_me:$LINENO: result: yes" >&5
8540 $as_echo "yes" >&6; }
8544 cat >>confdefs.h <<\_ACEOF
8545 #define HAVE_PULSE 1
8551 if test "$HAVE_PULSE" = 'yes' ; then
8553 AUDIO_PULSE_FALSE='#'
8555 AUDIO_PULSE_TRUE='#'
8562 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
8563 $as_echo_n "checking for ESOUND... " >&6; }
8565 if test -n "$PKG_CONFIG"; then
8566 if test -n "$ESOUND_CFLAGS"; then
8567 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
8569 if test -n "$PKG_CONFIG" && \
8570 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8571 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; then
8575 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
8583 if test -n "$PKG_CONFIG"; then
8584 if test -n "$ESOUND_LIBS"; then
8585 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
8587 if test -n "$PKG_CONFIG" && \
8588 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8589 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; then
8593 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
8604 if test $pkg_failed = yes; then
8606 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8607 _pkg_short_errors_supported=yes
8609 _pkg_short_errors_supported=no
8611 if test $_pkg_short_errors_supported = yes; then
8612 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
8614 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
8616 # Put the nasty error message in config.log where it belongs
8617 echo "$ESOUND_PKG_ERRORS" >&5
8619 { $as_echo "$as_me:$LINENO: result: no" >&5
8620 $as_echo "no" >&6; }
8622 elif test $pkg_failed = untried; then
8625 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
8626 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
8627 { $as_echo "$as_me:$LINENO: result: yes" >&5
8628 $as_echo "yes" >&6; }
8632 cat >>confdefs.h <<\_ACEOF
8633 #define HAVE_ESOUND 1
8639 if test "$HAVE_ESOUND" = 'yes' ; then
8641 AUDIO_ESOUND_FALSE='#'
8643 AUDIO_ESOUND_TRUE='#'
8650 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
8651 $as_echo_n "checking for ALSA... " >&6; }
8653 if test -n "$PKG_CONFIG"; then
8654 if test -n "$ALSA_CFLAGS"; then
8655 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
8657 if test -n "$PKG_CONFIG" && \
8658 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
8659 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
8661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; then
8663 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
8671 if test -n "$PKG_CONFIG"; then
8672 if test -n "$ALSA_LIBS"; then
8673 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
8675 if test -n "$PKG_CONFIG" && \
8676 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
8677 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
8679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; then
8681 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
8692 if test $pkg_failed = yes; then
8694 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8695 _pkg_short_errors_supported=yes
8697 _pkg_short_errors_supported=no
8699 if test $_pkg_short_errors_supported = yes; then
8700 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
8702 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
8704 # Put the nasty error message in config.log where it belongs
8705 echo "$ALSA_PKG_ERRORS" >&5
8707 { $as_echo "$as_me:$LINENO: result: no" >&5
8708 $as_echo "no" >&6; }
8710 elif test $pkg_failed = untried; then
8713 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
8714 ALSA_LIBS=$pkg_cv_ALSA_LIBS
8715 { $as_echo "$as_me:$LINENO: result: yes" >&5
8716 $as_echo "yes" >&6; }
8720 cat >>confdefs.h <<\_ACEOF
8727 if test "$HAVE_ALSA" = 'yes' ; then
8729 AUDIO_ALSA_FALSE='#'
8736 if test "x$HAVE_ESOUND" = "x" -a "x$HAVE_ALSA" = "x" -a "x$HAVE_PULSE" = "x"; then
8737 echo "Warning: Building without audio support"
8740 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8741 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
8742 $as_echo_n "checking for linux/cdrom.h... " >&6; }
8743 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8744 $as_echo_n "(cached) " >&6
8746 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
8747 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
8749 # Is the header compilable?
8750 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
8751 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
8752 cat >conftest.$ac_ext <<_ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 $ac_includes_default
8759 #include <linux/cdrom.h>
8761 rm -f conftest.$ac_objext
8762 if { (ac_try="$ac_compile"
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8768 $as_echo "$ac_try_echo") >&5
8769 (eval "$ac_compile") 2>conftest.er1
8771 grep -v '^ *+' conftest.er1 >conftest.err
8773 cat conftest.err >&5
8774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } && {
8776 test -z "$ac_c_werror_flag" ||
8777 test ! -s conftest.err
8778 } && test -s conftest.$ac_objext; then
8779 ac_header_compiler=yes
8781 $as_echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8784 ac_header_compiler=no
8787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8788 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8789 $as_echo "$ac_header_compiler" >&6; }
8791 # Is the header present?
8792 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
8793 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
8794 cat >conftest.$ac_ext <<_ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 #include <linux/cdrom.h>
8802 if { (ac_try="$ac_cpp conftest.$ac_ext"
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8808 $as_echo "$ac_try_echo") >&5
8809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8811 grep -v '^ *+' conftest.er1 >conftest.err
8813 cat conftest.err >&5
8814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } >/dev/null && {
8816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8817 test ! -s conftest.err
8819 ac_header_preproc=yes
8821 $as_echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8824 ac_header_preproc=no
8827 rm -f conftest.err conftest.$ac_ext
8828 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8829 $as_echo "$ac_header_preproc" >&6; }
8831 # So? What about this header?
8832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8834 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
8835 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8836 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
8837 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
8838 ac_header_preproc=yes
8841 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
8842 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
8843 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
8844 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
8845 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
8846 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
8847 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
8848 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
8849 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
8850 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
8851 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
8852 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
8856 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
8857 $as_echo_n "checking for linux/cdrom.h... " >&6; }
8858 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8859 $as_echo_n "(cached) " >&6
8861 ac_cv_header_linux_cdrom_h=$ac_header_preproc
8863 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
8864 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
8867 if test $ac_cv_header_linux_cdrom_h = yes; then
8868 HAVE_LINUX_CDROM_H=yes
8871 echo "Linux CDROM support not found, building without it."
8877 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
8879 CDROM_LINUX_FALSE='#'
8881 CDROM_LINUX_TRUE='#'
8886 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8887 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
8888 $as_echo_n "checking for linux/joystick.h... " >&6; }
8889 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8890 $as_echo_n "(cached) " >&6
8892 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
8893 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
8895 # Is the header compilable?
8896 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
8897 $as_echo_n "checking linux/joystick.h usability... " >&6; }
8898 cat >conftest.$ac_ext <<_ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904 $ac_includes_default
8905 #include <linux/joystick.h>
8907 rm -f conftest.$ac_objext
8908 if { (ac_try="$ac_compile"
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8914 $as_echo "$ac_try_echo") >&5
8915 (eval "$ac_compile") 2>conftest.er1
8917 grep -v '^ *+' conftest.er1 >conftest.err
8919 cat conftest.err >&5
8920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } && {
8922 test -z "$ac_c_werror_flag" ||
8923 test ! -s conftest.err
8924 } && test -s conftest.$ac_objext; then
8925 ac_header_compiler=yes
8927 $as_echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8930 ac_header_compiler=no
8933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8935 $as_echo "$ac_header_compiler" >&6; }
8937 # Is the header present?
8938 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
8939 $as_echo_n "checking linux/joystick.h presence... " >&6; }
8940 cat >conftest.$ac_ext <<_ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8946 #include <linux/joystick.h>
8948 if { (ac_try="$ac_cpp conftest.$ac_ext"
8950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951 *) ac_try_echo=$ac_try;;
8953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8954 $as_echo "$ac_try_echo") >&5
8955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8957 grep -v '^ *+' conftest.er1 >conftest.err
8959 cat conftest.err >&5
8960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } >/dev/null && {
8962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8963 test ! -s conftest.err
8965 ac_header_preproc=yes
8967 $as_echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 ac_header_preproc=no
8973 rm -f conftest.err conftest.$ac_ext
8974 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8975 $as_echo "$ac_header_preproc" >&6; }
8977 # So? What about this header?
8978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8980 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
8981 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8982 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
8983 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
8984 ac_header_preproc=yes
8987 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
8988 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
8989 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
8990 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
8991 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
8992 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
8993 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
8994 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
8995 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
8996 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
8997 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
8998 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
9002 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9003 $as_echo_n "checking for linux/joystick.h... " >&6; }
9004 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9005 $as_echo_n "(cached) " >&6
9007 ac_cv_header_linux_joystick_h=$ac_header_preproc
9009 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9010 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9013 if test $ac_cv_header_linux_joystick_h = yes; then
9015 HAVE_LINUX_JOYSTICK_H=yes
9017 cat >>confdefs.h <<\_ACEOF
9018 #define HAVE_LINUX_JOYSTICK 1
9022 echo "Linux Joystick support not found, building without it."
9028 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
9037 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
9038 set dummy sh-elf-gcc; ac_word=$2
9039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9040 $as_echo_n "checking for $ac_word... " >&6; }
9041 if test "${ac_cv_path_SHCC+set}" = set; then
9042 $as_echo_n "(cached) " >&6
9046 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
9055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9056 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
9057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 SHCC=$ac_cv_path_SHCC
9068 if test -n "$SHCC"; then
9069 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
9070 $as_echo "$SHCC" >&6; }
9072 { $as_echo "$as_me:$LINENO: result: no" >&5
9073 $as_echo "no" >&6; }
9077 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
9078 set dummy sh-elf-ld; ac_word=$2
9079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9080 $as_echo_n "checking for $ac_word... " >&6; }
9081 if test "${ac_cv_path_SHLD+set}" = set; then
9082 $as_echo_n "(cached) " >&6
9086 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9096 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
9097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9107 SHLD=$ac_cv_path_SHLD
9108 if test -n "$SHLD"; then
9109 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
9110 $as_echo "$SHLD" >&6; }
9112 { $as_echo "$as_me:$LINENO: result: no" >&5
9113 $as_echo "no" >&6; }
9117 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
9118 set dummy sh-elf-objcopy; ac_word=$2
9119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9120 $as_echo_n "checking for $ac_word... " >&6; }
9121 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
9122 $as_echo_n "(cached) " >&6
9126 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9136 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9137 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9147 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
9148 if test -n "$SHOBJCOPY"; then
9149 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
9150 $as_echo "$SHOBJCOPY" >&6; }
9152 { $as_echo "$as_me:$LINENO: result: no" >&5
9153 $as_echo "no" >&6; }
9157 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
9158 set dummy arm-elf-gcc; ac_word=$2
9159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9160 $as_echo_n "checking for $ac_word... " >&6; }
9161 if test "${ac_cv_path_ARMCC+set}" = set; then
9162 $as_echo_n "(cached) " >&6
9166 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9176 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
9177 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9187 ARMCC=$ac_cv_path_ARMCC
9188 if test -n "$ARMCC"; then
9189 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
9190 $as_echo "$ARMCC" >&6; }
9192 { $as_echo "$as_me:$LINENO: result: no" >&5
9193 $as_echo "no" >&6; }
9197 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
9198 set dummy arm-elf-ld; ac_word=$2
9199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9200 $as_echo_n "checking for $ac_word... " >&6; }
9201 if test "${ac_cv_path_ARMLD+set}" = set; then
9202 $as_echo_n "(cached) " >&6
9206 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9216 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
9217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9227 ARMLD=$ac_cv_path_ARMLD
9228 if test -n "$ARMLD"; then
9229 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
9230 $as_echo "$ARMLD" >&6; }
9232 { $as_echo "$as_me:$LINENO: result: no" >&5
9233 $as_echo "no" >&6; }
9237 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
9238 set dummy arm-elf-objcopy; ac_word=$2
9239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9240 $as_echo_n "checking for $ac_word... " >&6; }
9241 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
9242 $as_echo_n "(cached) " >&6
9246 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 test -z "$as_dir" && as_dir=.
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9256 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
9268 if test -n "$ARMOBJCOPY"; then
9269 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
9270 $as_echo "$ARMOBJCOPY" >&6; }
9272 { $as_echo "$as_me:$LINENO: result: no" >&5
9273 $as_echo "no" >&6; }
9278 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
9280 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
9284 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
9286 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
9292 if test "$BUILD_SH" = "yes"; then
9294 BUILD_SYSTEST_FALSE='#'
9296 BUILD_SYSTEST_TRUE='#'
9297 BUILD_SYSTEST_FALSE=
9302 if test "$BUILD_ARM" = "yes"; then
9304 BUILD_ARMTEST_FALSE='#'
9306 BUILD_ARMTEST_TRUE='#'
9307 BUILD_ARMTEST_FALSE=
9312 GETTEXT_PACKAGE=lxdream
9315 cat >>confdefs.h <<_ACEOF
9316 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
9320 ALL_LINGUAS="de es it pt_BR"
9323 for ac_header in locale.h
9325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9327 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9328 $as_echo_n "checking for $ac_header... " >&6; }
9329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9330 $as_echo_n "(cached) " >&6
9332 ac_res=`eval 'as_val=${'$as_ac_Header'}
9333 $as_echo "$as_val"'`
9334 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9335 $as_echo "$ac_res" >&6; }
9337 # Is the header compilable?
9338 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9339 $as_echo_n "checking $ac_header usability... " >&6; }
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 $ac_includes_default
9347 #include <$ac_header>
9349 rm -f conftest.$ac_objext
9350 if { (ac_try="$ac_compile"
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9356 $as_echo "$ac_try_echo") >&5
9357 (eval "$ac_compile") 2>conftest.er1
9359 grep -v '^ *+' conftest.er1 >conftest.err
9361 cat conftest.err >&5
9362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } && {
9364 test -z "$ac_c_werror_flag" ||
9365 test ! -s conftest.err
9366 } && test -s conftest.$ac_objext; then
9367 ac_header_compiler=yes
9369 $as_echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9372 ac_header_compiler=no
9375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9377 $as_echo "$ac_header_compiler" >&6; }
9379 # Is the header present?
9380 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9381 $as_echo_n "checking $ac_header presence... " >&6; }
9382 cat >conftest.$ac_ext <<_ACEOF
9385 cat confdefs.h >>conftest.$ac_ext
9386 cat >>conftest.$ac_ext <<_ACEOF
9387 /* end confdefs.h. */
9388 #include <$ac_header>
9390 if { (ac_try="$ac_cpp conftest.$ac_ext"
9392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393 *) ac_try_echo=$ac_try;;
9395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9396 $as_echo "$ac_try_echo") >&5
9397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9399 grep -v '^ *+' conftest.er1 >conftest.err
9401 cat conftest.err >&5
9402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } >/dev/null && {
9404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9405 test ! -s conftest.err
9407 ac_header_preproc=yes
9409 $as_echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9412 ac_header_preproc=no
9415 rm -f conftest.err conftest.$ac_ext
9416 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9417 $as_echo "$ac_header_preproc" >&6; }
9419 # So? What about this header?
9420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9423 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9425 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9426 ac_header_preproc=yes
9429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9430 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9432 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9434 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9436 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9438 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9440 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9444 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9445 $as_echo_n "checking for $ac_header... " >&6; }
9446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9447 $as_echo_n "(cached) " >&6
9449 eval "$as_ac_Header=\$ac_header_preproc"
9451 ac_res=`eval 'as_val=${'$as_ac_Header'}
9452 $as_echo "$as_val"'`
9453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9454 $as_echo "$ac_res" >&6; }
9457 if test `eval 'as_val=${'$as_ac_Header'}
9458 $as_echo "$as_val"'` = yes; then
9459 cat >>confdefs.h <<_ACEOF
9460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9467 if test $ac_cv_header_locale_h = yes; then
9468 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9469 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9470 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9471 $as_echo_n "(cached) " >&6
9473 cat >conftest.$ac_ext <<_ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9488 rm -f conftest.$ac_objext conftest$ac_exeext
9489 if { (ac_try="$ac_link"
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9495 $as_echo "$ac_try_echo") >&5
9496 (eval "$ac_link") 2>conftest.er1
9498 grep -v '^ *+' conftest.er1 >conftest.err
9500 cat conftest.err >&5
9501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } && {
9503 test -z "$ac_c_werror_flag" ||
9504 test ! -s conftest.err
9505 } && test -s conftest$ac_exeext && {
9506 test "$cross_compiling" = yes ||
9507 $as_test_x conftest$ac_exeext
9509 am_cv_val_LC_MESSAGES=yes
9511 $as_echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9514 am_cv_val_LC_MESSAGES=no
9517 rm -rf conftest.dSYM
9518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9519 conftest$ac_exeext conftest.$ac_ext
9521 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9522 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9523 if test $am_cv_val_LC_MESSAGES = yes; then
9525 cat >>confdefs.h <<\_ACEOF
9526 #define HAVE_LC_MESSAGES 1
9534 gt_cv_have_gettext=no
9540 if test "${ac_cv_header_libintl_h+set}" = set; then
9541 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
9542 $as_echo_n "checking for libintl.h... " >&6; }
9543 if test "${ac_cv_header_libintl_h+set}" = set; then
9544 $as_echo_n "(cached) " >&6
9546 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9547 $as_echo "$ac_cv_header_libintl_h" >&6; }
9549 # Is the header compilable?
9550 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
9551 $as_echo_n "checking libintl.h usability... " >&6; }
9552 cat >conftest.$ac_ext <<_ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9558 $ac_includes_default
9559 #include <libintl.h>
9561 rm -f conftest.$ac_objext
9562 if { (ac_try="$ac_compile"
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9568 $as_echo "$ac_try_echo") >&5
9569 (eval "$ac_compile") 2>conftest.er1
9571 grep -v '^ *+' conftest.er1 >conftest.err
9573 cat conftest.err >&5
9574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } && {
9576 test -z "$ac_c_werror_flag" ||
9577 test ! -s conftest.err
9578 } && test -s conftest.$ac_objext; then
9579 ac_header_compiler=yes
9581 $as_echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9584 ac_header_compiler=no
9587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9588 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9589 $as_echo "$ac_header_compiler" >&6; }
9591 # Is the header present?
9592 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
9593 $as_echo_n "checking libintl.h presence... " >&6; }
9594 cat >conftest.$ac_ext <<_ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 #include <libintl.h>
9602 if { (ac_try="$ac_cpp conftest.$ac_ext"
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9608 $as_echo "$ac_try_echo") >&5
9609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9611 grep -v '^ *+' conftest.er1 >conftest.err
9613 cat conftest.err >&5
9614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } >/dev/null && {
9616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9617 test ! -s conftest.err
9619 ac_header_preproc=yes
9621 $as_echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9624 ac_header_preproc=no
9627 rm -f conftest.err conftest.$ac_ext
9628 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9629 $as_echo "$ac_header_preproc" >&6; }
9631 # So? What about this header?
9632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9634 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9635 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9636 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
9637 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
9638 ac_header_preproc=yes
9641 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
9642 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
9643 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
9644 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
9645 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
9646 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
9647 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
9648 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9649 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
9650 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
9651 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
9652 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
9656 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
9657 $as_echo_n "checking for libintl.h... " >&6; }
9658 if test "${ac_cv_header_libintl_h+set}" = set; then
9659 $as_echo_n "(cached) " >&6
9661 ac_cv_header_libintl_h=$ac_header_preproc
9663 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9664 $as_echo "$ac_cv_header_libintl_h" >&6; }
9667 if test $ac_cv_header_libintl_h = yes; then
9668 gt_cv_func_dgettext_libintl="no"
9669 libintl_extra_libs=""
9672 # First check in libc
9674 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
9675 $as_echo_n "checking for ngettext in libc... " >&6; }
9676 if test "${gt_cv_func_ngettext_libc+set}" = set; then
9677 $as_echo_n "(cached) " >&6
9679 cat >conftest.$ac_ext <<_ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9686 #include <libintl.h>
9691 return !ngettext ("","", 1)
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (ac_try="$ac_link"
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9703 $as_echo "$ac_try_echo") >&5
9704 (eval "$ac_link") 2>conftest.er1
9706 grep -v '^ *+' conftest.er1 >conftest.err
9708 cat conftest.err >&5
9709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } && {
9711 test -z "$ac_c_werror_flag" ||
9712 test ! -s conftest.err
9713 } && test -s conftest$ac_exeext && {
9714 test "$cross_compiling" = yes ||
9715 $as_test_x conftest$ac_exeext
9717 gt_cv_func_ngettext_libc=yes
9719 $as_echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 gt_cv_func_ngettext_libc=no
9725 rm -rf conftest.dSYM
9726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9727 conftest$ac_exeext conftest.$ac_ext
9730 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
9731 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
9733 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9734 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
9735 $as_echo_n "checking for dgettext in libc... " >&6; }
9736 if test "${gt_cv_func_dgettext_libc+set}" = set; then
9737 $as_echo_n "(cached) " >&6
9739 cat >conftest.$ac_ext <<_ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9746 #include <libintl.h>
9751 return !dgettext ("","")
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (ac_try="$ac_link"
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9763 $as_echo "$ac_try_echo") >&5
9764 (eval "$ac_link") 2>conftest.er1
9766 grep -v '^ *+' conftest.er1 >conftest.err
9768 cat conftest.err >&5
9769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } && {
9771 test -z "$ac_c_werror_flag" ||
9772 test ! -s conftest.err
9773 } && test -s conftest$ac_exeext && {
9774 test "$cross_compiling" = yes ||
9775 $as_test_x conftest$ac_exeext
9777 gt_cv_func_dgettext_libc=yes
9779 $as_echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9782 gt_cv_func_dgettext_libc=no
9785 rm -rf conftest.dSYM
9786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9787 conftest$ac_exeext conftest.$ac_ext
9790 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
9791 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
9794 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9796 for ac_func in bind_textdomain_codeset
9798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9799 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9800 $as_echo_n "checking for $ac_func... " >&6; }
9801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9802 $as_echo_n "(cached) " >&6
9804 cat >conftest.$ac_ext <<_ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9812 #define $ac_func innocuous_$ac_func
9814 /* System header to define __stub macros and hopefully few prototypes,
9815 which can conflict with char $ac_func (); below.
9816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9817 <limits.h> exists even on freestanding compilers. */
9820 # include <limits.h>
9822 # include <assert.h>
9827 /* Override any GCC internal prototype to avoid an error.
9828 Use char because int might match the return type of a GCC
9829 builtin and then its argument prototype would still apply. */
9834 /* The GNU C library defines this for functions which it implements
9835 to always fail with ENOSYS. Some functions are actually named
9836 something starting with __ and the normal name is an alias. */
9837 #if defined __stub_$ac_func || defined __stub___$ac_func
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (ac_try="$ac_link"
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9856 $as_echo "$ac_try_echo") >&5
9857 (eval "$ac_link") 2>conftest.er1
9859 grep -v '^ *+' conftest.er1 >conftest.err
9861 cat conftest.err >&5
9862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } && {
9864 test -z "$ac_c_werror_flag" ||
9865 test ! -s conftest.err
9866 } && test -s conftest$ac_exeext && {
9867 test "$cross_compiling" = yes ||
9868 $as_test_x conftest$ac_exeext
9870 eval "$as_ac_var=yes"
9872 $as_echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 eval "$as_ac_var=no"
9878 rm -rf conftest.dSYM
9879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9880 conftest$ac_exeext conftest.$ac_ext
9882 ac_res=`eval 'as_val=${'$as_ac_var'}
9883 $as_echo "$as_val"'`
9884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9885 $as_echo "$ac_res" >&6; }
9886 if test `eval 'as_val=${'$as_ac_var'}
9887 $as_echo "$as_val"'` = yes; then
9888 cat >>confdefs.h <<_ACEOF
9889 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9898 # If we don't have everything we want, check in libintl
9900 if test "$gt_cv_func_dgettext_libc" != "yes" \
9901 || test "$gt_cv_func_ngettext_libc" != "yes" \
9902 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
9904 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
9905 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
9906 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
9907 $as_echo_n "(cached) " >&6
9909 ac_check_lib_save_LIBS=$LIBS
9911 cat >conftest.$ac_ext <<_ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9918 /* Override any GCC internal prototype to avoid an error.
9919 Use char because int might match the return type of a GCC
9920 builtin and then its argument prototype would still apply. */
9924 char bindtextdomain ();
9928 return bindtextdomain ();
9933 rm -f conftest.$ac_objext conftest$ac_exeext
9934 if { (ac_try="$ac_link"
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9940 $as_echo "$ac_try_echo") >&5
9941 (eval "$ac_link") 2>conftest.er1
9943 grep -v '^ *+' conftest.er1 >conftest.err
9945 cat conftest.err >&5
9946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest$ac_exeext && {
9951 test "$cross_compiling" = yes ||
9952 $as_test_x conftest$ac_exeext
9954 ac_cv_lib_intl_bindtextdomain=yes
9956 $as_echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9959 ac_cv_lib_intl_bindtextdomain=no
9962 rm -rf conftest.dSYM
9963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9964 conftest$ac_exeext conftest.$ac_ext
9965 LIBS=$ac_check_lib_save_LIBS
9967 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
9968 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
9969 if test $ac_cv_lib_intl_bindtextdomain = yes; then
9970 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
9971 $as_echo_n "checking for ngettext in -lintl... " >&6; }
9972 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
9973 $as_echo_n "(cached) " >&6
9975 ac_check_lib_save_LIBS=$LIBS
9977 cat >conftest.$ac_ext <<_ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9984 /* Override any GCC internal prototype to avoid an error.
9985 Use char because int might match the return type of a GCC
9986 builtin and then its argument prototype would still apply. */
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (ac_try="$ac_link"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10006 $as_echo "$ac_try_echo") >&5
10007 (eval "$ac_link") 2>conftest.er1
10009 grep -v '^ *+' conftest.er1 >conftest.err
10011 cat conftest.err >&5
10012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } && {
10014 test -z "$ac_c_werror_flag" ||
10015 test ! -s conftest.err
10016 } && test -s conftest$ac_exeext && {
10017 test "$cross_compiling" = yes ||
10018 $as_test_x conftest$ac_exeext
10020 ac_cv_lib_intl_ngettext=yes
10022 $as_echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_cv_lib_intl_ngettext=no
10028 rm -rf conftest.dSYM
10029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10030 conftest$ac_exeext conftest.$ac_ext
10031 LIBS=$ac_check_lib_save_LIBS
10033 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10034 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10035 if test $ac_cv_lib_intl_ngettext = yes; then
10036 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
10037 $as_echo_n "checking for dgettext in -lintl... " >&6; }
10038 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
10039 $as_echo_n "(cached) " >&6
10041 ac_check_lib_save_LIBS=$LIBS
10042 LIBS="-lintl $LIBS"
10043 cat >conftest.$ac_ext <<_ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10050 /* Override any GCC internal prototype to avoid an error.
10051 Use char because int might match the return type of a GCC
10052 builtin and then its argument prototype would still apply. */
10060 return dgettext ();
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (ac_try="$ac_link"
10067 case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10072 $as_echo "$ac_try_echo") >&5
10073 (eval "$ac_link") 2>conftest.er1
10075 grep -v '^ *+' conftest.er1 >conftest.err
10077 cat conftest.err >&5
10078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && {
10080 test -z "$ac_c_werror_flag" ||
10081 test ! -s conftest.err
10082 } && test -s conftest$ac_exeext && {
10083 test "$cross_compiling" = yes ||
10084 $as_test_x conftest$ac_exeext
10086 ac_cv_lib_intl_dgettext=yes
10088 $as_echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10091 ac_cv_lib_intl_dgettext=no
10094 rm -rf conftest.dSYM
10095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10096 conftest$ac_exeext conftest.$ac_ext
10097 LIBS=$ac_check_lib_save_LIBS
10099 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
10100 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
10101 if test $ac_cv_lib_intl_dgettext = yes; then
10102 gt_cv_func_dgettext_libintl=yes
10110 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
10111 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
10112 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
10113 { $as_echo "$as_me:$LINENO: result: " >&5
10115 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10116 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10117 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10118 $as_echo_n "(cached) " >&6
10120 ac_check_lib_save_LIBS=$LIBS
10121 LIBS="-lintl -liconv $LIBS"
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10129 /* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
10139 return ngettext ();
10144 rm -f conftest.$ac_objext conftest$ac_exeext
10145 if { (ac_try="$ac_link"
10146 case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10151 $as_echo "$ac_try_echo") >&5
10152 (eval "$ac_link") 2>conftest.er1
10154 grep -v '^ *+' conftest.er1 >conftest.err
10156 cat conftest.err >&5
10157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } && {
10159 test -z "$ac_c_werror_flag" ||
10160 test ! -s conftest.err
10161 } && test -s conftest$ac_exeext && {
10162 test "$cross_compiling" = yes ||
10163 $as_test_x conftest$ac_exeext
10165 ac_cv_lib_intl_ngettext=yes
10167 $as_echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 ac_cv_lib_intl_ngettext=no
10173 rm -rf conftest.dSYM
10174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10175 conftest$ac_exeext conftest.$ac_ext
10176 LIBS=$ac_check_lib_save_LIBS
10178 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10179 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10180 if test $ac_cv_lib_intl_ngettext = yes; then
10181 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
10182 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
10183 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
10184 $as_echo_n "(cached) " >&6
10186 ac_check_lib_save_LIBS=$LIBS
10187 LIBS="-lintl -liconv $LIBS"
10188 cat >conftest.$ac_ext <<_ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h. */
10195 /* Override any GCC internal prototype to avoid an error.
10196 Use char because int might match the return type of a GCC
10197 builtin and then its argument prototype would still apply. */
10205 return dcgettext ();
10210 rm -f conftest.$ac_objext conftest$ac_exeext
10211 if { (ac_try="$ac_link"
10212 case "(($ac_try" in
10213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214 *) ac_try_echo=$ac_try;;
10216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10217 $as_echo "$ac_try_echo") >&5
10218 (eval "$ac_link") 2>conftest.er1
10220 grep -v '^ *+' conftest.er1 >conftest.err
10222 cat conftest.err >&5
10223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } && {
10225 test -z "$ac_c_werror_flag" ||
10226 test ! -s conftest.err
10227 } && test -s conftest$ac_exeext && {
10228 test "$cross_compiling" = yes ||
10229 $as_test_x conftest$ac_exeext
10231 ac_cv_lib_intl_dcgettext=yes
10233 $as_echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10236 ac_cv_lib_intl_dcgettext=no
10239 rm -rf conftest.dSYM
10240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10241 conftest$ac_exeext conftest.$ac_ext
10242 LIBS=$ac_check_lib_save_LIBS
10244 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
10245 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
10246 if test $ac_cv_lib_intl_dcgettext = yes; then
10247 gt_cv_func_dgettext_libintl=yes
10248 libintl_extra_libs=-liconv
10260 # If we found libintl, then check in it for bind_textdomain_codeset();
10261 # we'll prefer libc if neither have bind_textdomain_codeset(),
10262 # and both have dgettext and ngettext
10264 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
10265 glib_save_LIBS="$LIBS"
10266 LIBS="$LIBS -lintl $libintl_extra_libs"
10267 unset ac_cv_func_bind_textdomain_codeset
10269 for ac_func in bind_textdomain_codeset
10271 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10272 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10273 $as_echo_n "checking for $ac_func... " >&6; }
10274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10275 $as_echo_n "(cached) " >&6
10277 cat >conftest.$ac_ext <<_ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10285 #define $ac_func innocuous_$ac_func
10287 /* System header to define __stub macros and hopefully few prototypes,
10288 which can conflict with char $ac_func (); below.
10289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10290 <limits.h> exists even on freestanding compilers. */
10293 # include <limits.h>
10295 # include <assert.h>
10300 /* Override any GCC internal prototype to avoid an error.
10301 Use char because int might match the return type of a GCC
10302 builtin and then its argument prototype would still apply. */
10307 /* The GNU C library defines this for functions which it implements
10308 to always fail with ENOSYS. Some functions are actually named
10309 something starting with __ and the normal name is an alias. */
10310 #if defined __stub_$ac_func || defined __stub___$ac_func
10317 return $ac_func ();
10322 rm -f conftest.$ac_objext conftest$ac_exeext
10323 if { (ac_try="$ac_link"
10324 case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10329 $as_echo "$ac_try_echo") >&5
10330 (eval "$ac_link") 2>conftest.er1
10332 grep -v '^ *+' conftest.er1 >conftest.err
10334 cat conftest.err >&5
10335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest$ac_exeext && {
10340 test "$cross_compiling" = yes ||
10341 $as_test_x conftest$ac_exeext
10343 eval "$as_ac_var=yes"
10345 $as_echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10348 eval "$as_ac_var=no"
10351 rm -rf conftest.dSYM
10352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10353 conftest$ac_exeext conftest.$ac_ext
10355 ac_res=`eval 'as_val=${'$as_ac_var'}
10356 $as_echo "$as_val"'`
10357 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10358 $as_echo "$ac_res" >&6; }
10359 if test `eval 'as_val=${'$as_ac_var'}
10360 $as_echo "$as_val"'` = yes; then
10361 cat >>confdefs.h <<_ACEOF
10362 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10368 LIBS="$glib_save_LIBS"
10370 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
10371 gt_cv_func_dgettext_libc=no
10373 if test "$gt_cv_func_dgettext_libc" = "yes" \
10374 && test "$gt_cv_func_ngettext_libc" = "yes"; then
10375 gt_cv_func_dgettext_libintl=no
10381 if test "$gt_cv_func_dgettext_libc" = "yes" \
10382 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10383 gt_cv_have_gettext=yes
10386 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10387 INTLLIBS="-lintl $libintl_extra_libs"
10390 if test "$gt_cv_have_gettext" = "yes"; then
10392 cat >>confdefs.h <<\_ACEOF
10393 #define HAVE_GETTEXT 1
10396 # Extract the first word of "msgfmt", so it can be a program name with args.
10397 set dummy msgfmt; ac_word=$2
10398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10399 $as_echo_n "checking for $ac_word... " >&6; }
10400 if test "${ac_cv_path_MSGFMT+set}" = set; then
10401 $as_echo_n "(cached) " >&6
10405 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10409 for ac_dir in $PATH; do
10410 test -z "$ac_dir" && ac_dir=.
10411 if test -f $ac_dir/$ac_word; then
10412 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
10413 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10419 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
10423 MSGFMT="$ac_cv_path_MSGFMT"
10424 if test "$MSGFMT" != "no"; then
10425 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10426 $as_echo "$MSGFMT" >&6; }
10428 { $as_echo "$as_me:$LINENO: result: no" >&5
10429 $as_echo "no" >&6; }
10431 if test "$MSGFMT" != "no"; then
10432 glib_save_LIBS="$LIBS"
10433 LIBS="$LIBS $INTLLIBS"
10435 for ac_func in dcgettext
10437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10438 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10439 $as_echo_n "checking for $ac_func... " >&6; }
10440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10441 $as_echo_n "(cached) " >&6
10443 cat >conftest.$ac_ext <<_ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10451 #define $ac_func innocuous_$ac_func
10453 /* System header to define __stub macros and hopefully few prototypes,
10454 which can conflict with char $ac_func (); below.
10455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10456 <limits.h> exists even on freestanding compilers. */
10459 # include <limits.h>
10461 # include <assert.h>
10466 /* Override any GCC internal prototype to avoid an error.
10467 Use char because int might match the return type of a GCC
10468 builtin and then its argument prototype would still apply. */
10473 /* The GNU C library defines this for functions which it implements
10474 to always fail with ENOSYS. Some functions are actually named
10475 something starting with __ and the normal name is an alias. */
10476 #if defined __stub_$ac_func || defined __stub___$ac_func
10483 return $ac_func ();
10488 rm -f conftest.$ac_objext conftest$ac_exeext
10489 if { (ac_try="$ac_link"
10490 case "(($ac_try" in
10491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10492 *) ac_try_echo=$ac_try;;
10494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10495 $as_echo "$ac_try_echo") >&5
10496 (eval "$ac_link") 2>conftest.er1
10498 grep -v '^ *+' conftest.er1 >conftest.err
10500 cat conftest.err >&5
10501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } && {
10503 test -z "$ac_c_werror_flag" ||
10504 test ! -s conftest.err
10505 } && test -s conftest$ac_exeext && {
10506 test "$cross_compiling" = yes ||
10507 $as_test_x conftest$ac_exeext
10509 eval "$as_ac_var=yes"
10511 $as_echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10514 eval "$as_ac_var=no"
10517 rm -rf conftest.dSYM
10518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10519 conftest$ac_exeext conftest.$ac_ext
10521 ac_res=`eval 'as_val=${'$as_ac_var'}
10522 $as_echo "$as_val"'`
10523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10524 $as_echo "$ac_res" >&6; }
10525 if test `eval 'as_val=${'$as_ac_var'}
10526 $as_echo "$as_val"'` = yes; then
10527 cat >>confdefs.h <<_ACEOF
10528 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10535 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
10536 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
10537 cat >conftest.foo <<_ACEOF
10541 "Content-Type: text/plain; charset=UTF-8\n"
10542 "Project-Id-Version: test 1.0\n"
10543 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
10544 "Last-Translator: test <foo@bar.xx>\n"
10545 "Language-Team: C <LL@li.org>\n"
10546 "MIME-Version: 1.0\n"
10547 "Content-Transfer-Encoding: 8bit\n"
10550 if { ($as_echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
10551 (msgfmt -c -o /dev/null conftest.foo) 2>&5
10553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; then
10555 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
10556 $as_echo "yes" >&6; }
10557 else { $as_echo "$as_me:$LINENO: result: no" >&5
10558 $as_echo "no" >&6; }
10559 echo "$as_me: failed input was:" >&5
10560 sed 's/^/| /' conftest.foo >&5
10563 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10564 set dummy gmsgfmt; ac_word=$2
10565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10566 $as_echo_n "checking for $ac_word... " >&6; }
10567 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10568 $as_echo_n "(cached) " >&6
10572 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576 for as_dir in $PATH
10579 test -z "$as_dir" && as_dir=.
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10582 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10594 GMSGFMT=$ac_cv_path_GMSGFMT
10595 if test -n "$GMSGFMT"; then
10596 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10597 $as_echo "$GMSGFMT" >&6; }
10599 { $as_echo "$as_me:$LINENO: result: no" >&5
10600 $as_echo "no" >&6; }
10604 # Extract the first word of "xgettext", so it can be a program name with args.
10605 set dummy xgettext; ac_word=$2
10606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10607 $as_echo_n "checking for $ac_word... " >&6; }
10608 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10609 $as_echo_n "(cached) " >&6
10611 case "$XGETTEXT" in
10613 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10617 for ac_dir in $PATH; do
10618 test -z "$ac_dir" && ac_dir=.
10619 if test -f $ac_dir/$ac_word; then
10620 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
10621 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
10627 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10631 XGETTEXT="$ac_cv_path_XGETTEXT"
10632 if test "$XGETTEXT" != ":"; then
10633 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10634 $as_echo "$XGETTEXT" >&6; }
10636 { $as_echo "$as_me:$LINENO: result: no" >&5
10637 $as_echo "no" >&6; }
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10650 extern int _nl_msg_cat_cntr;
10651 return _nl_msg_cat_cntr
10656 rm -f conftest.$ac_objext conftest$ac_exeext
10657 if { (ac_try="$ac_link"
10658 case "(($ac_try" in
10659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660 *) ac_try_echo=$ac_try;;
10662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10663 $as_echo "$ac_try_echo") >&5
10664 (eval "$ac_link") 2>conftest.er1
10666 grep -v '^ *+' conftest.er1 >conftest.err
10668 cat conftest.err >&5
10669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } && {
10671 test -z "$ac_c_werror_flag" ||
10672 test ! -s conftest.err
10673 } && test -s conftest$ac_exeext && {
10674 test "$cross_compiling" = yes ||
10675 $as_test_x conftest$ac_exeext
10680 $as_echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10685 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
10686 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
10687 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
10688 $as_echo_n "(cached) " >&6
10690 cat >conftest.$ac_ext <<_ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
10697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10698 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
10700 /* System header to define __stub macros and hopefully few prototypes,
10701 which can conflict with char bind_textdomain_codeset (); below.
10702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10703 <limits.h> exists even on freestanding compilers. */
10706 # include <limits.h>
10708 # include <assert.h>
10711 #undef bind_textdomain_codeset
10713 /* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
10719 char bind_textdomain_codeset ();
10720 /* The GNU C library defines this for functions which it implements
10721 to always fail with ENOSYS. Some functions are actually named
10722 something starting with __ and the normal name is an alias. */
10723 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
10730 return bind_textdomain_codeset ();
10735 rm -f conftest.$ac_objext conftest$ac_exeext
10736 if { (ac_try="$ac_link"
10737 case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10742 $as_echo "$ac_try_echo") >&5
10743 (eval "$ac_link") 2>conftest.er1
10745 grep -v '^ *+' conftest.er1 >conftest.err
10747 cat conftest.err >&5
10748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } && {
10750 test -z "$ac_c_werror_flag" ||
10751 test ! -s conftest.err
10752 } && test -s conftest$ac_exeext && {
10753 test "$cross_compiling" = yes ||
10754 $as_test_x conftest$ac_exeext
10756 ac_cv_func_bind_textdomain_codeset=yes
10758 $as_echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10761 ac_cv_func_bind_textdomain_codeset=no
10764 rm -rf conftest.dSYM
10765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10766 conftest$ac_exeext conftest.$ac_ext
10768 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
10769 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
10770 if test $ac_cv_func_bind_textdomain_codeset = yes; then
10786 rm -rf conftest.dSYM
10787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10788 conftest$ac_exeext conftest.$ac_ext
10789 LIBS="$glib_save_LIBS"
10792 gt_cv_have_gettext=no
10800 if test "$gt_cv_have_gettext" = "yes" ; then
10802 cat >>confdefs.h <<\_ACEOF
10803 #define ENABLE_NLS 1
10808 if test "$XGETTEXT" != ":"; then
10809 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
10812 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10813 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
10818 # We need to process the po/ directory.
10821 ac_config_commands="$ac_config_commands default-1"
10824 for lang in $ALL_LINGUAS; do
10825 GMOFILES="$GMOFILES $lang.gmo"
10826 POFILES="$POFILES $lang.po"
10841 if test "$gt_cv_have_gettext" = "yes"; then
10842 if test "x$ALL_LINGUAS" = "x"; then
10845 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10846 $as_echo_n "checking for catalogs to be installed... " >&6; }
10848 for presentlang in $ALL_LINGUAS; do
10850 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
10851 desiredlanguages="$LINGUAS"
10853 desiredlanguages="$ALL_LINGUAS"
10855 for desiredlang in $desiredlanguages; do
10856 # Use the presentlang catalog if desiredlang is
10857 # a. equal to presentlang, or
10858 # b. a variant of presentlang (because in this case,
10859 # presentlang can be used as a fallback for messages
10860 # which are not translated in the desiredlang catalog).
10861 case "$desiredlang" in
10862 "$presentlang"*) useit=yes;;
10865 if test $useit = yes; then
10866 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
10869 LINGUAS=$NEW_LINGUAS
10870 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
10871 $as_echo "$LINGUAS" >&6; }
10874 if test -n "$LINGUAS"; then
10875 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
10880 if test -n "$ac_aux_dir"; then
10881 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10883 if test -z "$MKINSTALLDIRS"; then
10884 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10888 test -d po || mkdir po
10889 if test "x$srcdir" != "x."; then
10890 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10891 posrcprefix="$srcdir/"
10893 posrcprefix="../$srcdir/"
10899 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10900 < $srcdir/po/POTFILES.in > po/POTFILES
10903 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
10905 cat >confcache <<\_ACEOF
10906 # This file is a shell script that caches the results of configure
10907 # tests run on this system so they can be shared between configure
10908 # scripts and configure runs, see configure's option --config-cache.
10909 # It is not useful on other systems. If it contains results you don't
10910 # want to keep, you may remove or edit it.
10912 # config.status only pays attention to the cache file if you give it
10913 # the --recheck option to rerun configure.
10915 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10916 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10917 # following values.
10921 # The following way of writing the cache mishandles newlines in values,
10922 # but we know of no workaround that is simple, portable, and efficient.
10923 # So, we kill variables containing newlines.
10924 # Ultrix sh set writes to stderr and can't be redirected directly,
10925 # and sets the high bit in the cache file unless we assign to the vars.
10927 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10928 eval ac_val=\$$ac_var
10932 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10933 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10936 _ | IFS | as_nl) ;; #(
10937 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10938 *) $as_unset $ac_var ;;
10944 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10945 *${as_nl}ac_space=\ *)
10946 # `set' does not quote correctly, so add quotes (double-quote
10947 # substitution turns \\\\ into \\, and sed turns \\ into \).
10950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10953 # `set' quotes correctly as required by POSIX, so do not add quotes.
10954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10963 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10965 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10967 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10968 if test -w "$cache_file"; then
10969 test "x$cache_file" != "x/dev/null" &&
10970 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10971 $as_echo "$as_me: updating cache $cache_file" >&6;}
10972 cat confcache >$cache_file
10974 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10975 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10981 # Let make expand exec_prefix.
10982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10984 DEFS=-DHAVE_CONFIG_H
10988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10989 # 1. Remove the extension, and $U if already installed.
10990 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10991 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10992 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10993 # will be set to the directory where LIBOBJS objects are built.
10994 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10995 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10997 LIBOBJS=$ac_libobjs
10999 LTLIBOBJS=$ac_ltlibobjs
11002 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11003 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11004 Usually this means the macro was only invoked conditionally." >&5
11005 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11006 Usually this means the macro was only invoked conditionally." >&2;}
11007 { (exit 1); exit 1; }; }
11009 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11010 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11011 Usually this means the macro was only invoked conditionally." >&5
11012 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11013 Usually this means the macro was only invoked conditionally." >&2;}
11014 { (exit 1); exit 1; }; }
11016 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11017 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11018 Usually this means the macro was only invoked conditionally." >&5
11019 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11020 Usually this means the macro was only invoked conditionally." >&2;}
11021 { (exit 1); exit 1; }; }
11023 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11024 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11025 Usually this means the macro was only invoked conditionally." >&5
11026 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11027 Usually this means the macro was only invoked conditionally." >&2;}
11028 { (exit 1); exit 1; }; }
11030 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11031 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11032 Usually this means the macro was only invoked conditionally." >&5
11033 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11034 Usually this means the macro was only invoked conditionally." >&2;}
11035 { (exit 1); exit 1; }; }
11037 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
11038 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
11039 Usually this means the macro was only invoked conditionally." >&5
11040 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
11041 Usually this means the macro was only invoked conditionally." >&2;}
11042 { (exit 1); exit 1; }; }
11044 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
11045 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
11046 Usually this means the macro was only invoked conditionally." >&5
11047 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
11048 Usually this means the macro was only invoked conditionally." >&2;}
11049 { (exit 1); exit 1; }; }
11051 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
11052 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
11053 Usually this means the macro was only invoked conditionally." >&5
11054 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
11055 Usually this means the macro was only invoked conditionally." >&2;}
11056 { (exit 1); exit 1; }; }
11058 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
11059 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
11060 Usually this means the macro was only invoked conditionally." >&5
11061 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
11062 Usually this means the macro was only invoked conditionally." >&2;}
11063 { (exit 1); exit 1; }; }
11065 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
11066 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
11067 Usually this means the macro was only invoked conditionally." >&5
11068 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
11069 Usually this means the macro was only invoked conditionally." >&2;}
11070 { (exit 1); exit 1; }; }
11072 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
11073 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
11074 Usually this means the macro was only invoked conditionally." >&5
11075 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
11076 Usually this means the macro was only invoked conditionally." >&2;}
11077 { (exit 1); exit 1; }; }
11079 if test -z "${BUILD_X86_64_TRUE}" && test -z "${BUILD_X86_64_FALSE}"; then
11080 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_X86_64\" was never defined.
11081 Usually this means the macro was only invoked conditionally." >&5
11082 $as_echo "$as_me: error: conditional \"BUILD_X86_64\" was never defined.
11083 Usually this means the macro was only invoked conditionally." >&2;}
11084 { (exit 1); exit 1; }; }
11086 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
11087 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
11088 Usually this means the macro was only invoked conditionally." >&5
11089 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
11090 Usually this means the macro was only invoked conditionally." >&2;}
11091 { (exit 1); exit 1; }; }
11093 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
11094 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
11095 Usually this means the macro was only invoked conditionally." >&5
11096 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
11097 Usually this means the macro was only invoked conditionally." >&2;}
11098 { (exit 1); exit 1; }; }
11100 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
11101 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
11102 Usually this means the macro was only invoked conditionally." >&5
11103 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
11104 Usually this means the macro was only invoked conditionally." >&2;}
11105 { (exit 1); exit 1; }; }
11107 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
11108 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
11109 Usually this means the macro was only invoked conditionally." >&5
11110 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
11111 Usually this means the macro was only invoked conditionally." >&2;}
11112 { (exit 1); exit 1; }; }
11114 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
11115 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
11116 Usually this means the macro was only invoked conditionally." >&5
11117 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
11118 Usually this means the macro was only invoked conditionally." >&2;}
11119 { (exit 1); exit 1; }; }
11121 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
11122 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
11123 Usually this means the macro was only invoked conditionally." >&5
11124 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
11125 Usually this means the macro was only invoked conditionally." >&2;}
11126 { (exit 1); exit 1; }; }
11128 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
11129 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
11130 Usually this means the macro was only invoked conditionally." >&5
11131 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
11132 Usually this means the macro was only invoked conditionally." >&2;}
11133 { (exit 1); exit 1; }; }
11136 : ${CONFIG_STATUS=./config.status}
11138 ac_clean_files_save=$ac_clean_files
11139 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11140 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11141 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11142 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11144 # Generated by $as_me.
11145 # Run this file to recreate the current configuration.
11146 # Compiler output produced by configure, useful for debugging
11147 # configure, is in config.log if it exists.
11150 ac_cs_recheck=false
11152 SHELL=\${CONFIG_SHELL-$SHELL}
11155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11156 ## --------------------- ##
11157 ## M4sh Initialization. ##
11158 ## --------------------- ##
11160 # Be more Bourne compatible
11161 DUALCASE=1; export DUALCASE # for MKS sh
11162 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11165 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11166 # is contrary to our usage. Disable this feature.
11167 alias -g '${1+"$@"}'='"$@"'
11168 setopt NO_GLOB_SUBST
11170 case `(set -o) 2>/dev/null` in
11171 *posix*) set -o posix ;;
11180 # Avoid depending upon Character Ranges.
11181 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11182 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11183 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11184 as_cr_digits='0123456789'
11185 as_cr_alnum=$as_cr_Letters$as_cr_digits
11190 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11191 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11193 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11194 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11195 as_echo='printf %s\n'
11196 as_echo_n='printf %s'
11198 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11199 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11200 as_echo_n='/usr/ucb/echo -n'
11202 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11203 as_echo_n_body='eval
11207 expr "X$arg" : "X\\(.*\\)$as_nl";
11208 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11210 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11212 export as_echo_n_body
11213 as_echo_n='sh -c $as_echo_n_body as_echo'
11215 export as_echo_body
11216 as_echo='sh -c $as_echo_body as_echo'
11219 # The user is always right.
11220 if test "${PATH_SEPARATOR+set}" != set; then
11222 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11223 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11228 # Support unset when possible.
11229 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11237 # We need space, tab and new line, in precisely that order. Quoting is
11238 # there to prevent editors from complaining about space-tab.
11239 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11240 # splitting by setting IFS to empty value.)
11243 # Find who we are. Look in the path if we contain no directory separator.
11245 *[\\/]* ) as_myself=$0 ;;
11246 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247 for as_dir in $PATH
11250 test -z "$as_dir" && as_dir=.
11251 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11257 # We did not find ourselves, most probably we were run as `sh COMMAND'
11258 # in which case we are not to be found in the path.
11259 if test "x$as_myself" = x; then
11262 if test ! -f "$as_myself"; then
11263 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11264 { (exit 1); exit 1; }
11267 # Work around bugs in pre-3.0 UWIN ksh.
11268 for as_var in ENV MAIL MAILPATH
11269 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11281 # Required to use basename.
11282 if expr a : '\(a\)' >/dev/null 2>&1 &&
11283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11290 as_basename=basename
11296 # Name of the executable.
11297 as_me=`$as_basename -- "$0" ||
11298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11299 X"$0" : 'X\(//\)$' \| \
11300 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11302 sed '/^.*\/\([^/][^/]*\)\/*$/{
11321 as_lineno_1=$LINENO
11322 as_lineno_2=$LINENO
11323 test "x$as_lineno_1" != "x$as_lineno_2" &&
11324 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11326 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11327 # uniformly replaced by the line number. The first 'sed' inserts a
11328 # line-number line after each line using $LINENO; the second 'sed'
11329 # does the real work. The second script uses 'N' to pair each
11330 # line-number line with the line containing $LINENO, and appends
11331 # trailing '-' during substitution so that $LINENO is not a special
11332 # case at line end.
11333 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11334 # scripts with optimization help from Paolo Bonzini. Blame Lee
11335 # E. McMahon (1931-1989) for sed's syntax. :-)
11347 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11350 ' >$as_me.lineno &&
11351 chmod +x "$as_me.lineno" ||
11352 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11353 { (exit 1); exit 1; }; }
11355 # Don't try to exec as it changes $[0], causing all sort of problems
11356 # (the dirname of $[0] is not the place where we might find the
11357 # original and so on. Autoconf is especially sensitive to this).
11358 . "./$as_me.lineno"
11359 # Exit status is that of the last command.
11364 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11370 ECHO_C= ECHO_N= ECHO_T=
11371 case `echo -n x` in
11373 case `echo 'x\c'` in
11374 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11380 if expr a : '\(a\)' >/dev/null 2>&1 &&
11381 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11387 rm -f conf$$ conf$$.exe conf$$.file
11388 if test -d conf$$.dir; then
11389 rm -f conf$$.dir/conf$$.file
11392 mkdir conf$$.dir 2>/dev/null
11394 if (echo >conf$$.file) 2>/dev/null; then
11395 if ln -s conf$$.file conf$$ 2>/dev/null; then
11397 # ... but there are two gotchas:
11398 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11399 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11400 # In both cases, we have to default to `cp -p'.
11401 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11403 elif ln conf$$.file conf$$ 2>/dev/null; then
11411 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11412 rmdir conf$$.dir 2>/dev/null
11414 if mkdir -p . 2>/dev/null; then
11417 test -d ./-p && rmdir ./-p
11421 if test -x / >/dev/null 2>&1; then
11422 as_test_x='test -x'
11424 if ls -dL / >/dev/null 2>&1; then
11431 if test -d "$1"; then
11437 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11438 ???[sx]*):;;*)false;;esac;fi
11442 as_executable_p=$as_test_x
11444 # Sed expression to map a string onto a valid CPP name.
11445 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11447 # Sed expression to map a string onto a valid variable name.
11448 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11453 # Save the log message, to keep $[0] and so on meaningful, and to
11454 # report actual input values of CONFIG_FILES etc. instead of their
11455 # values after options handling.
11457 This file was extended by $as_me, which was
11458 generated by GNU Autoconf 2.62. Invocation command line was
11460 CONFIG_FILES = $CONFIG_FILES
11461 CONFIG_HEADERS = $CONFIG_HEADERS
11462 CONFIG_LINKS = $CONFIG_LINKS
11463 CONFIG_COMMANDS = $CONFIG_COMMANDS
11466 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11472 # Files that config.status was made for.
11473 config_files="$ac_config_files"
11474 config_headers="$ac_config_headers"
11475 config_commands="$ac_config_commands"
11479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11481 \`$as_me' instantiates files from templates according to the
11482 current configuration.
11484 Usage: $0 [OPTIONS] [FILE]...
11486 -h, --help print this help, then exit
11487 -V, --version print version number and configuration settings, then exit
11488 -q, --quiet do not print progress messages
11489 -d, --debug don't remove temporary files
11490 --recheck update $as_me by reconfiguring in the same conditions
11491 --file=FILE[:TEMPLATE]
11492 instantiate the configuration file FILE
11493 --header=FILE[:TEMPLATE]
11494 instantiate the configuration header FILE
11496 Configuration files:
11499 Configuration headers:
11502 Configuration commands:
11505 Report bugs to <bug-autoconf@gnu.org>."
11508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11511 configured by $0, generated by GNU Autoconf 2.62,
11512 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11514 Copyright (C) 2008 Free Software Foundation, Inc.
11515 This config.status script is free software; the Free Software Foundation
11516 gives unlimited permission to copy, distribute and modify it."
11522 test -n "\$AWK" || AWK=awk
11525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11526 # The default lists apply if the user does not specify any file.
11532 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11533 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11544 # Handling of the options.
11545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11547 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11548 $as_echo "$ac_cs_version"; exit ;;
11549 --debug | --debu | --deb | --de | --d | -d )
11551 --file | --fil | --fi | --f )
11554 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11556 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11557 ac_need_defaults=false;;
11558 --header | --heade | --head | --hea )
11561 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11563 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11564 ac_need_defaults=false;;
11566 # Conflict between --help and --header
11567 { $as_echo "$as_me: error: ambiguous option: $1
11568 Try \`$0 --help' for more information." >&2
11569 { (exit 1); exit 1; }; };;
11570 --help | --hel | -h )
11571 $as_echo "$ac_cs_usage"; exit ;;
11572 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11573 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11576 # This is an error.
11577 -*) { $as_echo "$as_me: error: unrecognized option: $1
11578 Try \`$0 --help' for more information." >&2
11579 { (exit 1); exit 1; }; } ;;
11581 *) ac_config_targets="$ac_config_targets $1"
11582 ac_need_defaults=false ;;
11588 ac_configure_extra_args=
11590 if $ac_cs_silent; then
11592 ac_configure_extra_args="$ac_configure_extra_args --silent"
11596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11597 if \$ac_cs_recheck; then
11598 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11600 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11601 CONFIG_SHELL='$SHELL'
11602 export CONFIG_SHELL
11607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11611 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11612 ## Running $as_me. ##
11618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11622 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11629 # Handling of arguments.
11630 for ac_config_target in $ac_config_targets
11632 case $ac_config_target in
11633 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11634 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11635 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11636 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11637 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11638 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11639 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11641 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11642 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11643 { (exit 1); exit 1; }; };;
11648 # If the user did not use the arguments to specify the items to instantiate,
11649 # then the envvar interface is used. Set only those that are not.
11650 # We use the long form for the default assignment because of an extremely
11651 # bizarre bug on SunOS 4.1.3.
11652 if $ac_need_defaults; then
11653 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11654 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11655 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11658 # Have a temporary directory for convenience. Make it in the build tree
11659 # simply because there is no reason against having it here, and in addition,
11660 # creating and moving files from /tmp can sometimes cause problems.
11661 # Hook for its removal unless debugging.
11662 # Note that there is a small window in which the directory will not be cleaned:
11663 # after its creation but before its name has been assigned to `$tmp'.
11667 trap 'exit_status=$?
11668 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11670 trap '{ (exit 1); exit 1; }' 1 2 13 15
11672 # Create a (secure) tmp directory for tmp files.
11675 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11676 test -n "$tmp" && test -d "$tmp"
11679 tmp=./conf$$-$RANDOM
11680 (umask 077 && mkdir "$tmp")
11683 $as_echo "$as_me: cannot create a temporary directory in ." >&2
11684 { (exit 1); exit 1; }
11687 # Set up the scripts for CONFIG_FILES section.
11688 # No need to generate them if there are no CONFIG_FILES.
11689 # This happens for instance with `./config.status config.h'.
11690 if test -n "$CONFIG_FILES"; then
11695 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11696 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11699 ac_cs_awk_cr=$ac_cr
11702 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11707 echo "cat >conf$$subs.awk <<_ACEOF" &&
11708 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11710 } >conf$$subs.sh ||
11711 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11712 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11713 { (exit 1); exit 1; }; }
11714 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11716 for ac_last_try in false false false false false :; do
11717 . ./conf$$subs.sh ||
11718 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11719 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11720 { (exit 1); exit 1; }; }
11722 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
11724 elif $ac_last_try; then
11725 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11726 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11727 { (exit 1); exit 1; }; }
11729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11732 rm -f conf$$subs.sh
11734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11735 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11739 s/^/S["/; s/!.*/"]=/
11749 s/\(.\{148\}\).*/\1/
11751 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11756 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11763 s/\(.\{148\}\).*/\1/
11765 s/["\\]/\\&/g; s/^/"/; s/$/"/
11769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11774 ' <conf$$subs.awk | sed '
11779 ' >>$CONFIG_STATUS || ac_write_fail=1
11780 rm -f conf$$subs.awk
11781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11783 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11784 for (key in S) S_is_set[key] = 1
11790 nfields = split(line, field, "@")
11792 len = length(field[1])
11793 for (i = 2; i < nfields; i++) {
11795 keylen = length(key)
11796 if (S_is_set[key]) {
11798 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11799 len += length(value) + length(field[++i])
11810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11811 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11812 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11815 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11816 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11817 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11818 { (exit 1); exit 1; }; }
11821 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11822 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11823 # trailing colons and then remove the whole line if VPATH becomes empty
11824 # (actually we leave an empty line to preserve line numbers).
11825 if test "x$srcdir" = x.; then
11826 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11827 s/:*\$(srcdir):*/:/
11828 s/:*\${srcdir}:*/:/
11830 s/^\([^=]*=[ ]*\):*/\1/
11836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11837 fi # test -n "$CONFIG_FILES"
11839 # Set up the scripts for CONFIG_HEADERS section.
11840 # No need to generate them if there are no CONFIG_HEADERS.
11841 # This happens for instance with `./config.status Makefile'.
11842 if test -n "$CONFIG_HEADERS"; then
11843 cat >"$tmp/defines.awk" <<\_ACAWK ||
11847 # Transform confdefs.h into an awk script `defines.awk', embedded as
11848 # here-document in config.status, that substitutes the proper values into
11849 # config.h.in to produce config.h.
11851 # Create a delimiter string that does not exist in confdefs.h, to ease
11852 # handling of long lines.
11854 for ac_last_try in false false :; do
11855 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11856 if test -z "$ac_t"; then
11858 elif $ac_last_try; then
11859 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11860 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11861 { (exit 1); exit 1; }; }
11863 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11867 # For the awk script, D is an array of macro values keyed by name,
11868 # likewise P contains macro parameters if any. Preserve backslash
11869 # newline sequences.
11871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11873 s/.\{148\}/&'"$ac_delim"'/g
11876 s/^[ ]*#[ ]*define[ ][ ]*/ /
11883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11885 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11889 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11890 D["\1"]=" \3\\\\\\n"\\/p
11892 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11897 s/.\{148\}/&'"$ac_delim"'/g
11902 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11905 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11907 ' <confdefs.h | sed '
11908 s/'"$ac_delim"'/"\\\
11909 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11912 for (key in D) D_is_set[key] = 1
11915 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11917 split(line, arg, " ")
11918 if (arg[1] == "#") {
11922 defundef = substr(arg[1], 2)
11925 split(mac1, mac2, "(") #)
11927 if (D_is_set[macro]) {
11928 # Preserve the white space surrounding the "#".
11929 prefix = substr(line, 1, index(line, defundef) - 1)
11930 print prefix "define", macro P[macro] D[macro]
11933 # Replace #undef with comments. This is necessary, for example,
11934 # in the case of _POSIX_SOURCE, which is predefined and required
11935 # on some systems where configure will not decide to define it.
11936 if (defundef == "undef") {
11937 print "/*", line, "*/"
11945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11946 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11947 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11948 { (exit 1); exit 1; }; }
11949 fi # test -n "$CONFIG_HEADERS"
11952 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11957 :[FHLC]) ac_mode=$ac_tag; continue;;
11959 case $ac_mode$ac_tag in
11961 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11962 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11963 { (exit 1); exit 1; }; };;
11964 :[FH]-) ac_tag=-:-;;
11965 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11982 -) ac_f="$tmp/stdin";;
11983 *) # Look for the file first in the build tree, then in the source tree
11984 # (if the path is not absolute). The absolute path cannot be DOS-style,
11985 # because $ac_f cannot contain `:'.
11989 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11991 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11992 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11993 { (exit 1); exit 1; }; };;
11995 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11996 ac_file_inputs="$ac_file_inputs '$ac_f'"
11999 # Let's still pretend it is `configure' which instantiates (i.e., don't
12000 # use $as_me), people would be surprised to read:
12001 # /* config.h. Generated by config.status. */
12002 configure_input='Generated from '`
12003 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12005 if test x"$ac_file" != x-; then
12006 configure_input="$ac_file. $configure_input"
12007 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12008 $as_echo "$as_me: creating $ac_file" >&6;}
12010 # Neutralize special characters interpreted by sed in replacement strings.
12011 case $configure_input in #(
12012 *\&* | *\|* | *\\* )
12013 ac_sed_conf_input=`$as_echo "$configure_input" |
12014 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12015 *) ac_sed_conf_input=$configure_input;;
12019 *:-:* | *:-) cat >"$tmp/stdin" \
12020 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12021 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12022 { (exit 1); exit 1; }; } ;;
12027 ac_dir=`$as_dirname -- "$ac_file" ||
12028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12029 X"$ac_file" : 'X\(//\)[^/]' \| \
12030 X"$ac_file" : 'X\(//\)$' \| \
12031 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12032 $as_echo X"$ac_file" |
12033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12037 /^X\(\/\/\)[^/].*/{
12052 -*) as_dir=./$as_dir;;
12054 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12058 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12059 *) as_qdir=$as_dir;;
12061 as_dirs="'$as_qdir' $as_dirs"
12062 as_dir=`$as_dirname -- "$as_dir" ||
12063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12064 X"$as_dir" : 'X\(//\)[^/]' \| \
12065 X"$as_dir" : 'X\(//\)$' \| \
12066 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12067 $as_echo X"$as_dir" |
12068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12072 /^X\(\/\/\)[^/].*/{
12085 test -d "$as_dir" && break
12087 test -z "$as_dirs" || eval "mkdir $as_dirs"
12088 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12089 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12090 { (exit 1); exit 1; }; }; }
12094 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12096 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12097 # A ".." for each directory in $ac_dir_suffix.
12098 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12099 case $ac_top_builddir_sub in
12100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12104 ac_abs_top_builddir=$ac_pwd
12105 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12106 # for backward compatibility:
12107 ac_top_builddir=$ac_top_build_prefix
12110 .) # We are building in place.
12112 ac_top_srcdir=$ac_top_builddir_sub
12113 ac_abs_top_srcdir=$ac_pwd ;;
12114 [\\/]* | ?:[\\/]* ) # Absolute name.
12115 ac_srcdir=$srcdir$ac_dir_suffix;
12116 ac_top_srcdir=$srcdir
12117 ac_abs_top_srcdir=$srcdir ;;
12118 *) # Relative name.
12119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12120 ac_top_srcdir=$ac_top_build_prefix$srcdir
12121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12123 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12133 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12134 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12139 # If the template does not know about datarootdir, expand it.
12140 # FIXME: This hack should be removed a few years after 2.60.
12141 ac_datarootdir_hack=; ac_datarootdir_seen=
12154 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12155 *datarootdir*) ac_datarootdir_seen=yes;;
12156 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12157 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12158 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12161 ac_datarootdir_hack='
12162 s&@datadir@&$datadir&g
12163 s&@docdir@&$docdir&g
12164 s&@infodir@&$infodir&g
12165 s&@localedir@&$localedir&g
12166 s&@mandir@&$mandir&g
12167 s&\\\${datarootdir}&$datarootdir&g' ;;
12171 # Neutralize VPATH when `$srcdir' = `.'.
12172 # Shell code in configure.ac might set extrasub.
12173 # FIXME: do we really want to maintain this feature?
12174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12175 ac_sed_extra="$ac_vpsub
12178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12180 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12181 s|@configure_input@|$ac_sed_conf_input|;t t
12182 s&@top_builddir@&$ac_top_builddir_sub&;t t
12183 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12184 s&@srcdir@&$ac_srcdir&;t t
12185 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12186 s&@top_srcdir@&$ac_top_srcdir&;t t
12187 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12188 s&@builddir@&$ac_builddir&;t t
12189 s&@abs_builddir@&$ac_abs_builddir&;t t
12190 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12191 s&@INSTALL@&$ac_INSTALL&;t t
12192 $ac_datarootdir_hack
12194 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12195 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12196 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12197 { (exit 1); exit 1; }; }
12199 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12200 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12201 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12202 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12203 which seems to be undefined. Please make sure it is defined." >&5
12204 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12205 which seems to be undefined. Please make sure it is defined." >&2;}
12209 -) cat "$tmp/out" && rm -f "$tmp/out";;
12210 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12212 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12213 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12214 { (exit 1); exit 1; }; }
12220 if test x"$ac_file" != x-; then
12222 $as_echo "/* $configure_input */" \
12223 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12224 } >"$tmp/config.h" \
12225 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12226 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12227 { (exit 1); exit 1; }; }
12228 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12229 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12230 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12233 mv "$tmp/config.h" "$ac_file" \
12234 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12235 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12236 { (exit 1); exit 1; }; }
12239 $as_echo "/* $configure_input */" \
12240 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12241 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12242 $as_echo "$as_me: error: could not create -" >&2;}
12243 { (exit 1); exit 1; }; }
12245 # Compute "$ac_file"'s index in $config_headers.
12247 for _am_header in $config_headers :; do
12248 case $_am_header in
12249 "$ac_file" | "$ac_file":* )
12252 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12255 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
12256 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12257 X"$ac_file" : 'X\(//\)[^/]' \| \
12258 X"$ac_file" : 'X\(//\)$' \| \
12259 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12260 $as_echo X"$ac_file" |
12261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12265 /^X\(\/\/\)[^/].*/{
12277 s/.*/./; q'`/stamp-h$_am_stamp_count
12280 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12281 $as_echo "$as_me: executing $ac_file commands" >&6;}
12286 case $ac_file$ac_mode in
12287 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12288 # Strip MF so we end up with the name of the file.
12289 mf=`echo "$mf" | sed -e 's/:.*$//'`
12290 # Check whether this is an Automake generated Makefile or not.
12291 # We used to match only the files named `Makefile.in', but
12292 # some people rename them; so instead we look at the file content.
12293 # Grep'ing the first line is not enough: some people post-process
12294 # each Makefile.in and add a new line on top of each file to say so.
12295 # So let's grep whole file.
12296 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12297 dirpart=`$as_dirname -- "$mf" ||
12298 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12299 X"$mf" : 'X\(//\)[^/]' \| \
12300 X"$mf" : 'X\(//\)$' \| \
12301 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12307 /^X\(\/\/\)[^/].*/{
12323 # Extract the definition of DEPDIR, am__include, and am__quote
12324 # from the Makefile without running `make'.
12325 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12326 test -z "$DEPDIR" && continue
12327 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12328 test -z "am__include" && continue
12329 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12330 # When using ansi2knr, U may be empty or an underscore; expand it
12331 U=`sed -n 's/^U = //p' < "$mf"`
12332 # Find all dependency output files, they are included files with
12333 # $(DEPDIR) in their names. We invoke sed twice because it is the
12334 # simplest approach to changing $(DEPDIR) to its actual value in the
12336 for file in `sed -n "
12337 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12338 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12339 # Make sure the directory exists.
12340 test -f "$dirpart/$file" && continue
12341 fdir=`$as_dirname -- "$file" ||
12342 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12343 X"$file" : 'X\(//\)[^/]' \| \
12344 X"$file" : 'X\(//\)$' \| \
12345 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12346 $as_echo X"$file" |
12347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12351 /^X\(\/\/\)[^/].*/{
12364 { as_dir=$dirpart/$fdir
12366 -*) as_dir=./$as_dir;;
12368 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12372 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12373 *) as_qdir=$as_dir;;
12375 as_dirs="'$as_qdir' $as_dirs"
12376 as_dir=`$as_dirname -- "$as_dir" ||
12377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12378 X"$as_dir" : 'X\(//\)[^/]' \| \
12379 X"$as_dir" : 'X\(//\)$' \| \
12380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12381 $as_echo X"$as_dir" |
12382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12386 /^X\(\/\/\)[^/].*/{
12399 test -d "$as_dir" && break
12401 test -z "$as_dirs" || eval "mkdir $as_dirs"
12402 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12403 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12404 { (exit 1); exit 1; }; }; }
12405 # echo "creating $dirpart/$file"
12406 echo '# dummy' > "$dirpart/$file"
12410 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
12411 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
12418 { (exit 0); exit 0; }
12420 chmod +x $CONFIG_STATUS
12421 ac_clean_files=$ac_clean_files_save
12423 test $ac_write_fail = 0 ||
12424 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
12425 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
12426 { (exit 1); exit 1; }; }
12429 # configure is writing to config.log, and then calls config.status.
12430 # config.status does its own redirection, appending to config.log.
12431 # Unfortunately, on DOS this fails, as config.log is still kept open
12432 # by configure, so config.status won't be able to write to it; its
12433 # output is simply discarded. So we exec the FD to /dev/null,
12434 # effectively closing config.log, so it can be properly (re)opened and
12435 # appended to by config.status. When coming back to configure, we
12436 # need to make the FD available again.
12437 if test "$no_create" != yes; then
12439 ac_config_status_args=
12440 test "$silent" = yes &&
12441 ac_config_status_args="$ac_config_status_args --quiet"
12443 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12445 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12446 # would make configure fail if this is the last instruction.
12447 $ac_cs_success || { (exit 1); exit 1; }
12449 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12450 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
12451 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
.