2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="configure.in"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
647 program_transform_name
688 INSTALL_STRIP_PROGRAM
697 MAINTAINER_MODE_FALSE
734 am__fastdepOBJC_FALSE
813 enable_option_checking
814 enable_maintainer_mode
815 enable_dependency_tracking
829 ac_precious_vars='build_alias
859 # Initialize some variables set by options.
861 ac_init_version=false
862 ac_unrecognized_opts=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
873 program_transform_name=s,x,x,
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 includedir='${prefix}/include'
896 oldincludedir='/usr/include'
897 docdir='${datarootdir}/doc/${PACKAGE}'
898 infodir='${datarootdir}/info'
903 libdir='${exec_prefix}/lib'
904 localedir='${datarootdir}/locale'
905 mandir='${datarootdir}/man'
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
919 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 # Accept the important Cygnus configure options, so we can diagnose typos.
925 case $ac_dashdash$ac_option in
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
947 cache_file=config.cache ;;
949 -datadir | --datadir | --datadi | --datad)
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
966 { (exit 1); exit 1; }; }
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
976 eval enable_$ac_useropt=no ;;
978 -docdir | --docdir | --docdi | --doc | --do)
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
993 { (exit 1); exit 1; }; }
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 htmldir=$ac_optarg ;;
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1048 -libdir | --libdir | --libdi | --libd)
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1139 -psdir | --psdir | --psdi | --psd | --ps)
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 sbindir=$ac_optarg ;;
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 sharedstatedir=$ac_optarg ;;
1165 -site | --site | --sit)
1167 -site=* | --site=* | --sit=*)
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1198 { (exit 1); exit 1; }; }
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1208 eval with_$ac_useropt=\$ac_optarg ;;
1210 -without-* | --without-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1215 { (exit 1); exit 1; }; }
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1225 eval with_$ac_useropt=no ;;
1228 # Obsolete; use --with-x.
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1245 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1246 Try \`$0 --help' for more information." >&2
1247 { (exit 1); exit 1; }; }
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1254 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1255 { (exit 1); exit 1; }; }
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1273 { (exit 1); exit 1; }; }
1276 if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1279 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1280 { (exit 1); exit 1; }; } ;;
1281 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1298 # Be sure to have absolute directory names.
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1304 { (exit 1); exit 1; }; }
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1312 target=$target_alias
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1319 If a cross compiler is detected then cross compile mode will be used." >&2
1320 elif test "x$build_alias" != "x$host_alias"; then
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328 test "$silent" = yes && exec 6>/dev/null
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1335 { (exit 1); exit 1; }; }
1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1338 { (exit 1); exit 1; }; }
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 $as_echo X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1373 ac_srcdir_defaulted=no
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1378 { (exit 1); exit 1; }; }
1380 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1383 { (exit 1); exit 1; }; }
1385 # When building in place, set srcdir=.
1386 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 # Remove unnecessary trailing slashes from srcdir.
1390 # Double slashes in file names in object file debugging info
1391 # mess up M-x gdb in Emacs.
1393 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 for ac_var in $ac_precious_vars; do
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_${ac_var}_value=\$${ac_var}
1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 # Report the --help message.
1405 if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1409 \`configure' configures this package to adapt to many kinds of systems.
1411 Usage: $0 [OPTION]... [VAR=VALUE]...
1413 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414 VAR=VALUE. See below for descriptions of some of the useful variables.
1416 Defaults for the options are specified in brackets.
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429 Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
1431 [$ac_default_prefix]
1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 By default, \`make install' will install all the files in
1436 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438 for instance \`--prefix=\$HOME'.
1440 For better control, use the options below.
1442 Fine tuning of the installation directories:
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --libdir=DIR object code libraries [EPREFIX/lib]
1450 --includedir=DIR C header files [PREFIX/include]
1451 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1454 --infodir=DIR info documentation [DATAROOTDIR/info]
1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1456 --mandir=DIR man documentation [DATAROOTDIR/man]
1457 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1458 --htmldir=DIR html documentation [DOCDIR]
1459 --dvidir=DIR dvi documentation [DOCDIR]
1460 --pdfdir=DIR pdf documentation [DOCDIR]
1461 --psdir=DIR ps documentation [DOCDIR]
1467 --program-prefix=PREFIX prepend PREFIX to installed program names
1468 --program-suffix=SUFFIX append SUFFIX to installed program names
1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 if test -n "$ac_init_help"; then
1482 --disable-option-checking ignore unrecognized --enable/--with options
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --enable-maintainer-mode enable make rules and dependencies not useful
1486 (and sometimes confusing) to the casual installer
1487 --disable-dependency-tracking speeds up one-time build
1488 --enable-dependency-tracking do not reject slow dependency extractors
1489 --enable-strict-warn Enable strict compilation warnings
1490 --disable-translator Disable the SH4 translator (Enabled by default)
1491 --disable-optimized Disable compile-time optimizations (Enabled by
1493 --enable-profiled Enable profiling build
1494 --enable-trace Enable generation of IO traces (warning: hurts
1496 --enable-watch Enable watchpoints in the debugger (warning: hurts
1498 --enable-sh4stats Enable statistics on executed sh4 instructions
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-osmesa Build with the osmesa GL library (software
1505 --with-gtk Build with the GTK UI. Default on X11 systems
1506 --with-esd Build with support for the ESounD audio system
1507 --with-pulse Build with support for the PulseAudio audio system
1508 --with-sdl Build with support for SDL audio
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 OBJC Objective C compiler command
1519 OBJCFLAGS Objective C compiler flags
1520 CCAS assembler compiler command (defaults to CC)
1521 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1523 PKG_CONFIG path to pkg-config utility
1525 C compiler flags for LIBPNG, overriding pkg-config
1526 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1527 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1528 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1529 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1530 GTK_LIBS linker flags for GTK, overriding pkg-config
1531 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1532 SDL_LIBS linker flags for SDL, overriding pkg-config
1534 C compiler flags for PULSE, overriding pkg-config
1535 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1537 C compiler flags for ESOUND, overriding pkg-config
1538 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1539 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1540 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1542 Use these variables to override the choices made by `configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1574 .) # We are building in place.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1608 generated by GNU Autoconf 2.62
1610 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1611 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1617 cat >config.log <<_ACEOF
1618 This file contains any messages produced by compilers while
1619 running configure, to aid debugging if configure makes a mistake.
1621 It was created by $as_me, which was
1622 generated by GNU Autoconf 2.62. Invocation command line was
1634 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1635 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1636 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1637 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1638 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1640 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1641 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1643 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1644 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1645 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1646 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1647 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1648 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1649 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 test -z "$as_dir" && as_dir=.
1658 $as_echo "PATH: $as_dir"
1674 # Keep a trace of the command line.
1675 # Strip out --no-create and --no-recursion so they do not pile up.
1676 # Strip out --silent because we don't want to record it for future runs.
1677 # Also quote any args containing shell meta-characters.
1678 # Make two passes to allow for proper duplicate-argument suppression.
1682 ac_must_keep_next=false
1688 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1690 | -silent | --silent | --silen | --sile | --sil)
1693 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1696 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1698 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1699 if test $ac_must_keep_next = true; then
1700 ac_must_keep_next=false # Got value, back to normal.
1703 *=* | --config-cache | -C | -disable-* | --disable-* \
1704 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1705 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1706 | -with-* | --with-* | -without-* | --without-* | --x)
1707 case "$ac_configure_args0 " in
1708 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1711 -* ) ac_must_keep_next=true ;;
1714 ac_configure_args="$ac_configure_args '$ac_arg'"
1719 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1720 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1722 # When interrupted or exit'd, cleanup temporary files, and complete
1723 # config.log. We remove comments because anyway the quotes in there
1724 # would cause problems or look ugly.
1725 # WARNING: Use '\'' to represent an apostrophe within the trap.
1726 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1727 trap 'exit_status=$?
1728 # Save into config.log some information that might help in debugging.
1733 ## ---------------- ##
1734 ## Cache variables. ##
1735 ## ---------------- ##
1738 # The following way of writing the cache mishandles newlines in values,
1740 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1741 eval ac_val=\$$ac_var
1745 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1746 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1749 _ | IFS | as_nl) ;; #(
1750 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1751 *) $as_unset $ac_var ;;
1756 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1757 *${as_nl}ac_space=\ *)
1759 "s/'\''/'\''\\\\'\'''\''/g;
1760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1763 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1771 ## ----------------- ##
1772 ## Output variables. ##
1773 ## ----------------- ##
1776 for ac_var in $ac_subst_vars
1778 eval ac_val=\$$ac_var
1780 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782 $as_echo "$ac_var='\''$ac_val'\''"
1786 if test -n "$ac_subst_files"; then
1788 ## ------------------- ##
1789 ## File substitutions. ##
1790 ## ------------------- ##
1793 for ac_var in $ac_subst_files
1795 eval ac_val=\$$ac_var
1797 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1799 $as_echo "$ac_var='\''$ac_val'\''"
1804 if test -s confdefs.h; then
1814 test "$ac_signal" != 0 &&
1815 $as_echo "$as_me: caught signal $ac_signal"
1816 $as_echo "$as_me: exit $exit_status"
1818 rm -f core *.core core.conftest.* &&
1819 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1822 for ac_signal in 1 2 13 15; do
1823 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1827 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1828 rm -f -r conftest* confdefs.h
1830 # Predefined preprocessor variables.
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_NAME "$PACKAGE_NAME"
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_STRING "$PACKAGE_STRING"
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1857 # Let the site file select an alternate cache file if it wants to.
1858 # Prefer an explicitly selected file to automatically selected ones.
1861 if test -n "$CONFIG_SITE"; then
1862 ac_site_file1=$CONFIG_SITE
1863 elif test "x$prefix" != xNONE; then
1864 ac_site_file1=$prefix/share/config.site
1865 ac_site_file2=$prefix/etc/config.site
1867 ac_site_file1=$ac_default_prefix/share/config.site
1868 ac_site_file2=$ac_default_prefix/etc/config.site
1870 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1872 test "x$ac_site_file" = xNONE && continue
1873 if test -r "$ac_site_file"; then
1874 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1875 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1876 sed 's/^/| /' "$ac_site_file" >&5
1881 if test -r "$cache_file"; then
1882 # Some versions of bash will fail to source /dev/null (special
1883 # files actually), so we avoid doing that.
1884 if test -f "$cache_file"; then
1885 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1886 $as_echo "$as_me: loading cache $cache_file" >&6;}
1888 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1889 *) . "./$cache_file";;
1893 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1894 $as_echo "$as_me: creating cache $cache_file" >&6;}
1898 # Check that the precious variables saved in the cache have kept the same
1900 ac_cache_corrupted=false
1901 for ac_var in $ac_precious_vars; do
1902 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1903 eval ac_new_set=\$ac_env_${ac_var}_set
1904 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1905 eval ac_new_val=\$ac_env_${ac_var}_value
1906 case $ac_old_set,$ac_new_set in
1908 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1909 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1910 ac_cache_corrupted=: ;;
1912 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1913 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1914 ac_cache_corrupted=: ;;
1917 if test "x$ac_old_val" != "x$ac_new_val"; then
1918 # differences in whitespace do not lead to failure.
1919 ac_old_val_w=`echo x $ac_old_val`
1920 ac_new_val_w=`echo x $ac_new_val`
1921 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1922 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1923 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1924 ac_cache_corrupted=:
1926 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1927 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1928 eval $ac_var=\$ac_old_val
1930 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1931 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1932 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1933 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1936 # Pass precious variables to config.status.
1937 if test "$ac_new_set" = set; then
1939 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 *) ac_arg=$ac_var=$ac_new_val ;;
1942 case " $ac_configure_args " in
1943 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1944 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1948 if $ac_cache_corrupted; then
1949 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1950 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1951 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1952 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1953 { (exit 1); exit 1; }; }
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 am__api_version="1.9"
1981 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1982 if test -f "$ac_dir/install-sh"; then
1984 ac_install_sh="$ac_aux_dir/install-sh -c"
1986 elif test -f "$ac_dir/install.sh"; then
1988 ac_install_sh="$ac_aux_dir/install.sh -c"
1990 elif test -f "$ac_dir/shtool"; then
1992 ac_install_sh="$ac_aux_dir/shtool install -c"
1996 if test -z "$ac_aux_dir"; then
1997 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1998 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1999 { (exit 1); exit 1; }; }
2002 # These three variables are undocumented and unsupported,
2003 # and are intended to be withdrawn in a future Autoconf release.
2004 # They can cause serious problems if a builder's source tree is in a directory
2005 # whose full name contains unusual characters.
2006 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2007 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2008 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2011 # Find a good install program. We prefer a C program (faster),
2012 # so one script is as good as another. But avoid the broken or
2013 # incompatible versions:
2014 # SysV /etc/install, /usr/sbin/install
2015 # SunOS /usr/etc/install
2016 # IRIX /sbin/install
2018 # AmigaOS /C/install, which installs bootblocks on floppy discs
2019 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2020 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2022 # OS/2's system install, which has a completely different semantic
2023 # ./install, which can be erroneously created by make from ./install.sh.
2024 # Reject install programs that cannot install multiple files.
2025 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2026 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2027 if test -z "$INSTALL"; then
2028 if test "${ac_cv_path_install+set}" = set; then
2029 $as_echo_n "(cached) " >&6
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 test -z "$as_dir" && as_dir=.
2036 # Account for people who put trailing slashes in PATH elements.
2038 ./ | .// | /cC/* | \
2039 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2040 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2043 # OSF1 and SCO ODT 3.0 have their own names for install.
2044 # Don't use installbsd from OSF since it installs stuff as root
2046 for ac_prog in ginstall scoinst install; do
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2049 if test $ac_prog = install &&
2050 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2051 # AIX install. It has an incompatible calling convention.
2053 elif test $ac_prog = install &&
2054 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2055 # program-specific install script used by HP pwplus--don't use.
2058 rm -rf conftest.one conftest.two conftest.dir
2059 echo one > conftest.one
2060 echo two > conftest.two
2062 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2063 test -s conftest.one && test -s conftest.two &&
2064 test -s conftest.dir/conftest.one &&
2065 test -s conftest.dir/conftest.two
2067 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2080 rm -rf conftest.one conftest.two conftest.dir
2083 if test "${ac_cv_path_install+set}" = set; then
2084 INSTALL=$ac_cv_path_install
2086 # As a last resort, use the slow shell script. Don't cache a
2087 # value for INSTALL within a source directory, because that will
2088 # break other packages using the cache if that directory is
2089 # removed, or if the value is a relative name.
2090 INSTALL=$ac_install_sh
2093 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2094 $as_echo "$INSTALL" >&6; }
2096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2097 # It thinks the first close brace ends the variable substitution.
2098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2104 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2105 $as_echo_n "checking whether build environment is sane... " >&6; }
2108 echo timestamp > conftest.file
2109 # Do `set' in a subshell so we don't clobber the current shell's
2110 # arguments. Must try -L first in case configure is actually a
2111 # symlink; some systems play weird games with the mod time of symlinks
2112 # (eg FreeBSD returns the mod time of the symlink's containing
2115 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2116 if test "$*" = "X"; then
2118 set X `ls -t $srcdir/configure conftest.file`
2121 if test "$*" != "X $srcdir/configure conftest.file" \
2122 && test "$*" != "X conftest.file $srcdir/configure"; then
2124 # If neither matched, then we have a broken ls. This can happen
2125 # if, for instance, CONFIG_SHELL is bash and it inherits a
2126 # broken ls alias from the environment. This has actually
2127 # happened. Such a system could not be considered "sane".
2128 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2129 alias in your environment" >&5
2130 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2131 alias in your environment" >&2;}
2132 { (exit 1); exit 1; }; }
2135 test "$2" = conftest.file
2141 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2142 Check your system clock" >&5
2143 $as_echo "$as_me: error: newly created file is older than distributed files!
2144 Check your system clock" >&2;}
2145 { (exit 1); exit 1; }; }
2147 { $as_echo "$as_me:$LINENO: result: yes" >&5
2148 $as_echo "yes" >&6; }
2149 test "$program_prefix" != NONE &&
2150 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2151 # Use a double $ so make ignores it.
2152 test "$program_suffix" != NONE &&
2153 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2154 # Double any \ or $.
2155 # By default was `s,x,x', remove it if useless.
2156 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2157 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2159 # expand $ac_aux_dir to an absolute path
2160 am_aux_dir=`cd $ac_aux_dir && pwd`
2162 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2163 # Use eval to expand $SHELL
2164 if eval "$MISSING --run true"; then
2165 am_missing_run="$MISSING --run "
2168 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2169 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2172 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2173 # We used to keeping the `.' as first argument, in order to
2174 # allow $(mkdir_p) to be used without argument. As in
2175 # $(mkdir_p) $(somedir)
2176 # where $(somedir) is conditionally defined. However this is wrong
2178 # 1. if the package is installed by a user who cannot write `.'
2179 # make install will fail,
2180 # 2. the above comment should most certainly read
2181 # $(mkdir_p) $(DESTDIR)$(somedir)
2182 # so it does not work when $(somedir) is undefined and
2183 # $(DESTDIR) is not.
2184 # To support the latter case, we have to write
2185 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2186 # so the `.' trick is pointless.
2187 mkdir_p='mkdir -p --'
2189 # On NextStep and OpenStep, the `mkdir' command does not
2190 # recognize any option. It will interpret all options as
2191 # directories to create, and then abort because `.' already
2193 for d in ./-p ./--version;
2195 test -d $d && rmdir $d
2197 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2198 if test -f "$ac_aux_dir/mkinstalldirs"; then
2199 mkdir_p='$(mkinstalldirs)'
2201 mkdir_p='$(install_sh) -d'
2205 for ac_prog in gawk mawk nawk awk
2207 # Extract the first word of "$ac_prog", so it can be a program name with args.
2208 set dummy $ac_prog; ac_word=$2
2209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 $as_echo_n "checking for $ac_word... " >&6; }
2211 if test "${ac_cv_prog_AWK+set}" = set; then
2212 $as_echo_n "(cached) " >&6
2214 if test -n "$AWK"; then
2215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2224 ac_cv_prog_AWK="$ac_prog"
2225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 if test -n "$AWK"; then
2236 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2237 $as_echo "$AWK" >&6; }
2239 { $as_echo "$as_me:$LINENO: result: no" >&5
2240 $as_echo "no" >&6; }
2244 test -n "$AWK" && break
2247 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2248 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2250 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2251 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2252 $as_echo_n "(cached) " >&6
2254 cat >conftest.make <<\_ACEOF
2257 @echo '@@@%%%=$(MAKE)=@@@%%%'
2259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2262 eval ac_cv_prog_make_${ac_make}_set=yes;;
2264 eval ac_cv_prog_make_${ac_make}_set=no;;
2268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2269 { $as_echo "$as_me:$LINENO: result: yes" >&5
2270 $as_echo "yes" >&6; }
2273 { $as_echo "$as_me:$LINENO: result: no" >&5
2274 $as_echo "no" >&6; }
2275 SET_MAKE="MAKE=${MAKE-make}"
2278 rm -rf .tst 2>/dev/null
2279 mkdir .tst 2>/dev/null
2280 if test -d .tst; then
2285 rmdir .tst 2>/dev/null
2287 # test to see if srcdir already configured
2288 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2289 test -f $srcdir/config.status; then
2290 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2291 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2292 { (exit 1); exit 1; }; }
2295 # test whether we have cygpath
2296 if test -z "$CYGPATH_W"; then
2297 if (cygpath --version) >/dev/null 2>/dev/null; then
2298 CYGPATH_W='cygpath -w'
2305 # Define the identity of the package.
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE "$PACKAGE"
2315 cat >>confdefs.h <<_ACEOF
2316 #define VERSION "$VERSION"
2319 # Some tools Automake needs.
2321 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2324 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2327 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2330 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2333 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2335 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2337 # Installed binaries are usually stripped using `strip' when the user
2338 # run `make install-strip'. However `strip' might not be the right
2339 # tool to use in cross-compilation environments, therefore Automake
2340 # will honor the `STRIP' environment variable to overrule this program.
2341 if test "$cross_compiling" != no; then
2342 if test -n "$ac_tool_prefix"; then
2343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2344 set dummy ${ac_tool_prefix}strip; ac_word=$2
2345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 $as_echo_n "checking for $ac_word... " >&6; }
2347 if test "${ac_cv_prog_STRIP+set}" = set; then
2348 $as_echo_n "(cached) " >&6
2350 if test -n "$STRIP"; then
2351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 STRIP=$ac_cv_prog_STRIP
2371 if test -n "$STRIP"; then
2372 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2373 $as_echo "$STRIP" >&6; }
2375 { $as_echo "$as_me:$LINENO: result: no" >&5
2376 $as_echo "no" >&6; }
2381 if test -z "$ac_cv_prog_STRIP"; then
2383 # Extract the first word of "strip", so it can be a program name with args.
2384 set dummy strip; ac_word=$2
2385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 $as_echo_n "checking for $ac_word... " >&6; }
2387 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2388 $as_echo_n "(cached) " >&6
2390 if test -n "$ac_ct_STRIP"; then
2391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400 ac_cv_prog_ac_ct_STRIP="strip"
2401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2411 if test -n "$ac_ct_STRIP"; then
2412 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2413 $as_echo "$ac_ct_STRIP" >&6; }
2415 { $as_echo "$as_me:$LINENO: result: no" >&5
2416 $as_echo "no" >&6; }
2419 if test "x$ac_ct_STRIP" = x; then
2422 case $cross_compiling:$ac_tool_warned in
2424 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2425 whose name does not start with the host triplet. If you think this
2426 configuration is useful to you, please write to autoconf@gnu.org." >&5
2427 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet. If you think this
2429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2430 ac_tool_warned=yes ;;
2435 STRIP="$ac_cv_prog_STRIP"
2439 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2441 # We need awk for the "check" target. The system "awk" is bad on
2443 # Always define AMTAR for backward compatibility.
2445 AMTAR=${AMTAR-"${am_missing_run}tar"}
2447 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2453 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2454 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2455 # Check whether --enable-maintainer-mode was given.
2456 if test "${enable_maintainer_mode+set}" = set; then
2457 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2459 USE_MAINTAINER_MODE=no
2462 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2463 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2466 if test $USE_MAINTAINER_MODE = yes; then
2467 MAINTAINER_MODE_TRUE=
2468 MAINTAINER_MODE_FALSE='#'
2470 MAINTAINER_MODE_TRUE='#'
2471 MAINTAINER_MODE_FALSE=
2474 MAINT=$MAINTAINER_MODE_TRUE
2477 ac_config_headers="$ac_config_headers config.h"
2480 DEPDIR="${am__leading_dot}deps"
2482 ac_config_commands="$ac_config_commands depfiles"
2485 am_make=${MAKE-make}
2486 cat > confinc << 'END'
2491 # If we don't find an include directive, just comment out the code.
2492 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2493 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2497 # First try GNU make style include.
2498 echo "include confinc" > confmf
2499 # We grep out `Entering directory' and `Leaving directory'
2500 # messages which can occur if `w' ends up in MAKEFLAGS.
2501 # In particular we don't look at `^make:' because GNU make might
2502 # be invoked under some other name (usually "gmake"), in which
2503 # case it prints its new name instead of `make'.
2504 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2509 # Now try BSD make style include.
2510 if test "$am__include" = "#"; then
2511 echo '.include "confinc"' > confmf
2512 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2513 am__include=.include
2520 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2521 $as_echo "$_am_result" >&6; }
2522 rm -f confinc confmf
2524 # Check whether --enable-dependency-tracking was given.
2525 if test "${enable_dependency_tracking+set}" = set; then
2526 enableval=$enable_dependency_tracking;
2529 if test "x$enable_dependency_tracking" != xno; then
2530 am_depcomp="$ac_aux_dir/depcomp"
2535 if test "x$enable_dependency_tracking" != xno; then
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 if test -n "$ac_tool_prefix"; then
2551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 $as_echo_n "(cached) " >&6
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 if test -n "$CC"; then
2580 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2581 $as_echo "$CC" >&6; }
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584 $as_echo "no" >&6; }
2589 if test -z "$ac_cv_prog_CC"; then
2591 # Extract the first word of "gcc", so it can be a program name with args.
2592 set dummy gcc; ac_word=$2
2593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2596 $as_echo_n "(cached) " >&6
2598 if test -n "$ac_ct_CC"; then
2599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_ac_ct_CC="gcc"
2609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2619 if test -n "$ac_ct_CC"; then
2620 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2621 $as_echo "$ac_ct_CC" >&6; }
2623 { $as_echo "$as_me:$LINENO: result: no" >&5
2624 $as_echo "no" >&6; }
2627 if test "x$ac_ct_CC" = x; then
2630 case $cross_compiling:$ac_tool_warned in
2632 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2633 whose name does not start with the host triplet. If you think this
2634 configuration is useful to you, please write to autoconf@gnu.org." >&5
2635 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2636 whose name does not start with the host triplet. If you think this
2637 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2638 ac_tool_warned=yes ;;
2646 if test -z "$CC"; then
2647 if test -n "$ac_tool_prefix"; then
2648 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2649 set dummy ${ac_tool_prefix}cc; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_CC+set}" = set; then
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_CC="${ac_tool_prefix}cc"
2666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 if test -n "$CC"; then
2677 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2678 $as_echo "$CC" >&6; }
2680 { $as_echo "$as_me:$LINENO: result: no" >&5
2681 $as_echo "no" >&6; }
2687 if test -z "$CC"; then
2688 # Extract the first word of "cc", so it can be a program name with args.
2689 set dummy cc; ac_word=$2
2690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_CC+set}" = set; then
2693 $as_echo_n "(cached) " >&6
2695 if test -n "$CC"; then
2696 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2707 ac_prog_rejected=yes
2711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test $ac_prog_rejected = yes; then
2719 # We found a bogon in the path, so make sure we never use it.
2720 set dummy $ac_cv_prog_CC
2722 if test $# != 0; then
2723 # We chose a different compiler from the bogus one.
2724 # However, it has the same basename, so the bogon will be chosen
2725 # first if we set CC to just the basename; use the full file name.
2727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2733 if test -n "$CC"; then
2734 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2735 $as_echo "$CC" >&6; }
2737 { $as_echo "$as_me:$LINENO: result: no" >&5
2738 $as_echo "no" >&6; }
2743 if test -z "$CC"; then
2744 if test -n "$ac_tool_prefix"; then
2745 for ac_prog in cl.exe
2747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if test "${ac_cv_prog_CC+set}" = set; then
2752 $as_echo_n "(cached) " >&6
2754 if test -n "$CC"; then
2755 ac_cv_prog_CC="$CC" # Let the user override the test.
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 if test -n "$CC"; then
2776 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2777 $as_echo "$CC" >&6; }
2779 { $as_echo "$as_me:$LINENO: result: no" >&5
2780 $as_echo "no" >&6; }
2784 test -n "$CC" && break
2787 if test -z "$CC"; then
2789 for ac_prog in cl.exe
2791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2792 set dummy $ac_prog; ac_word=$2
2793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2796 $as_echo_n "(cached) " >&6
2798 if test -n "$ac_ct_CC"; then
2799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_ac_ct_CC="$ac_prog"
2809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2819 if test -n "$ac_ct_CC"; then
2820 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2821 $as_echo "$ac_ct_CC" >&6; }
2823 { $as_echo "$as_me:$LINENO: result: no" >&5
2824 $as_echo "no" >&6; }
2828 test -n "$ac_ct_CC" && break
2831 if test "x$ac_ct_CC" = x; then
2834 case $cross_compiling:$ac_tool_warned in
2836 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2837 whose name does not start with the host triplet. If you think this
2838 configuration is useful to you, please write to autoconf@gnu.org." >&5
2839 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2840 whose name does not start with the host triplet. If you think this
2841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2842 ac_tool_warned=yes ;;
2851 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2852 See \`config.log' for more details." >&5
2853 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2854 See \`config.log' for more details." >&2;}
2855 { (exit 1); exit 1; }; }
2857 # Provide some information about the compiler.
2858 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2861 { (ac_try="$ac_compiler --version >&5"
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2867 $as_echo "$ac_try_echo") >&5
2868 (eval "$ac_compiler --version >&5") 2>&5
2870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }
2872 { (ac_try="$ac_compiler -v >&5"
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2878 $as_echo "$ac_try_echo") >&5
2879 (eval "$ac_compiler -v >&5") 2>&5
2881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883 { (ac_try="$ac_compiler -V >&5"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2889 $as_echo "$ac_try_echo") >&5
2890 (eval "$ac_compiler -V >&5") 2>&5
2892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2895 cat >conftest.$ac_ext <<_ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2910 ac_clean_files_save=$ac_clean_files
2911 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2912 # Try to create an executable without -o first, disregard a.out.
2913 # It will help us diagnose broken compilers, and finding out an intuition
2915 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2916 $as_echo_n "checking for C compiler default output file name... " >&6; }
2917 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2919 # The possible output files:
2920 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2923 for ac_file in $ac_files
2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2927 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2932 if { (ac_try="$ac_link_default"
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2938 $as_echo "$ac_try_echo") >&5
2939 (eval "$ac_link_default") 2>&5
2941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; then
2943 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2944 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2945 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2946 # so that the user can short-circuit this test for compilers unknown to
2948 for ac_file in $ac_files ''
2950 test -f "$ac_file" || continue
2952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2955 # We found the default executable, but exeext='' is most
2959 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2961 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2963 # We set ac_cv_exeext here because the later test for it is not
2964 # safe: cross compilers may not add the suffix if given an `-o'
2965 # argument, so we may need to know it at that point already.
2966 # Even if this section looks crufty: it has the advantage of
2973 test "$ac_cv_exeext" = no && ac_cv_exeext=
2979 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2980 $as_echo "$ac_file" >&6; }
2981 if test -z "$ac_file"; then
2982 $as_echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2985 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2986 See \`config.log' for more details." >&5
2987 $as_echo "$as_me: error: C compiler cannot create executables
2988 See \`config.log' for more details." >&2;}
2989 { (exit 77); exit 77; }; }
2992 ac_exeext=$ac_cv_exeext
2994 # Check that the compiler produces executables we can run. If not, either
2995 # the compiler is broken, or we cross compile.
2996 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2997 $as_echo_n "checking whether the C compiler works... " >&6; }
2998 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2999 # If not cross compiling, check that we can run a simple program.
3000 if test "$cross_compiling" != yes; then
3001 if { ac_try='./$ac_file'
3002 { (case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3007 $as_echo "$ac_try_echo") >&5
3008 (eval "$ac_try") 2>&5
3010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3014 if test "$cross_compiling" = maybe; then
3017 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3018 If you meant to cross compile, use \`--host'.
3019 See \`config.log' for more details." >&5
3020 $as_echo "$as_me: error: cannot run C compiled programs.
3021 If you meant to cross compile, use \`--host'.
3022 See \`config.log' for more details." >&2;}
3023 { (exit 1); exit 1; }; }
3027 { $as_echo "$as_me:$LINENO: result: yes" >&5
3028 $as_echo "yes" >&6; }
3030 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3031 ac_clean_files=$ac_clean_files_save
3032 # Check that the compiler produces executables we can run. If not, either
3033 # the compiler is broken, or we cross compile.
3034 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3035 $as_echo_n "checking whether we are cross compiling... " >&6; }
3036 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3037 $as_echo "$cross_compiling" >&6; }
3039 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3040 $as_echo_n "checking for suffix of executables... " >&6; }
3041 if { (ac_try="$ac_link"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3047 $as_echo "$ac_try_echo") >&5
3048 (eval "$ac_link") 2>&5
3050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; then
3052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3053 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3054 # work properly (i.e., refer to `conftest.exe'), while it won't with
3056 for ac_file in conftest.exe conftest conftest.*; do
3057 test -f "$ac_file" || continue
3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3060 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3067 See \`config.log' for more details." >&5
3068 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3073 rm -f conftest$ac_cv_exeext
3074 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3075 $as_echo "$ac_cv_exeext" >&6; }
3077 rm -f conftest.$ac_ext
3078 EXEEXT=$ac_cv_exeext
3080 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3081 $as_echo_n "checking for suffix of object files... " >&6; }
3082 if test "${ac_cv_objext+set}" = set; then
3083 $as_echo_n "(cached) " >&6
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3100 rm -f conftest.o conftest.obj
3101 if { (ac_try="$ac_compile"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3107 $as_echo "$ac_try_echo") >&5
3108 (eval "$ac_compile") 2>&5
3110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; then
3112 for ac_file in conftest.o conftest.obj conftest.*; do
3113 test -f "$ac_file" || continue;
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3125 See \`config.log' for more details." >&5
3126 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3131 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3133 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3134 $as_echo "$ac_cv_objext" >&6; }
3135 OBJEXT=$ac_cv_objext
3137 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3138 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3139 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3140 $as_echo_n "(cached) " >&6
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3160 rm -f conftest.$ac_objext
3161 if { (ac_try="$ac_compile"
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3167 $as_echo "$ac_try_echo") >&5
3168 (eval "$ac_compile") 2>conftest.er1
3170 grep -v '^ *+' conftest.er1 >conftest.err
3172 cat conftest.err >&5
3173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } && {
3175 test -z "$ac_c_werror_flag" ||
3176 test ! -s conftest.err
3177 } && test -s conftest.$ac_objext; then
3180 $as_echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3191 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3192 if test $ac_compiler_gnu = yes; then
3197 ac_test_CFLAGS=${CFLAGS+set}
3198 ac_save_CFLAGS=$CFLAGS
3199 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3200 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3201 if test "${ac_cv_prog_cc_g+set}" = set; then
3202 $as_echo_n "(cached) " >&6
3204 ac_save_c_werror_flag=$ac_c_werror_flag
3205 ac_c_werror_flag=yes
3208 cat >conftest.$ac_ext <<_ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3223 rm -f conftest.$ac_objext
3224 if { (ac_try="$ac_compile"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3230 $as_echo "$ac_try_echo") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } && {
3238 test -z "$ac_c_werror_flag" ||
3239 test ! -s conftest.err
3240 } && test -s conftest.$ac_objext; then
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3247 cat >conftest.$ac_ext <<_ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3262 rm -f conftest.$ac_objext
3263 if { (ac_try="$ac_compile"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3269 $as_echo "$ac_try_echo") >&5
3270 (eval "$ac_compile") 2>conftest.er1
3272 grep -v '^ *+' conftest.er1 >conftest.err
3274 cat conftest.err >&5
3275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } && {
3277 test -z "$ac_c_werror_flag" ||
3278 test ! -s conftest.err
3279 } && test -s conftest.$ac_objext; then
3282 $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 ac_c_werror_flag=$ac_save_c_werror_flag
3287 cat >conftest.$ac_ext <<_ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3302 rm -f conftest.$ac_objext
3303 if { (ac_try="$ac_compile"
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3309 $as_echo "$ac_try_echo") >&5
3310 (eval "$ac_compile") 2>conftest.er1
3312 grep -v '^ *+' conftest.er1 >conftest.err
3314 cat conftest.err >&5
3315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } && {
3317 test -z "$ac_c_werror_flag" ||
3318 test ! -s conftest.err
3319 } && test -s conftest.$ac_objext; then
3322 $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_c_werror_flag=$ac_save_c_werror_flag
3337 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3338 $as_echo "$ac_cv_prog_cc_g" >&6; }
3339 if test "$ac_test_CFLAGS" = set; then
3340 CFLAGS=$ac_save_CFLAGS
3341 elif test $ac_cv_prog_cc_g = yes; then
3342 if test "$GCC" = yes; then
3348 if test "$GCC" = yes; then
3354 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3355 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3356 if test "${ac_cv_prog_cc_c89+set}" = set; then
3357 $as_echo_n "(cached) " >&6
3359 ac_cv_prog_cc_c89=no
3361 cat >conftest.$ac_ext <<_ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3369 #include <sys/types.h>
3370 #include <sys/stat.h>
3371 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3372 struct buf { int x; };
3373 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3374 static char *e (p, i)
3380 static char *f (char * (*g) (char **, int), char **p, ...)
3385 s = g (p, va_arg (v,int));
3390 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3391 function prototypes and stuff, but not '\xHH' hex character constants.
3392 These don't provoke an error unfortunately, instead are silently treated
3393 as 'x'. The following induces an error, until -std is added to get
3394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3395 array size at least. It's necessary to write '\x00'==0 to get something
3396 that's true only with -std. */
3397 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3400 inside strings and character constants. */
3402 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3404 int test (int i, double x);
3405 struct s1 {int (*f) (int a);};
3406 struct s2 {int (*f) (double a);};
3407 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3413 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3418 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3419 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3421 CC="$ac_save_CC $ac_arg"
3422 rm -f conftest.$ac_objext
3423 if { (ac_try="$ac_compile"
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3429 $as_echo "$ac_try_echo") >&5
3430 (eval "$ac_compile") 2>conftest.er1
3432 grep -v '^ *+' conftest.er1 >conftest.err
3434 cat conftest.err >&5
3435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } && {
3437 test -z "$ac_c_werror_flag" ||
3438 test ! -s conftest.err
3439 } && test -s conftest.$ac_objext; then
3440 ac_cv_prog_cc_c89=$ac_arg
3442 $as_echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3448 rm -f core conftest.err conftest.$ac_objext
3449 test "x$ac_cv_prog_cc_c89" != "xno" && break
3451 rm -f conftest.$ac_ext
3456 case "x$ac_cv_prog_cc_c89" in
3458 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3459 $as_echo "none needed" >&6; } ;;
3461 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3462 $as_echo "unsupported" >&6; } ;;
3464 CC="$CC $ac_cv_prog_cc_c89"
3465 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3466 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476 depcc="$CC" am_compiler_list=
3478 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3479 $as_echo_n "checking dependency style of $depcc... " >&6; }
3480 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3481 $as_echo_n "(cached) " >&6
3483 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3484 # We make a subdir and do the tests there. Otherwise we can end up
3485 # making bogus files that we don't know about and never remove. For
3486 # instance it was reported that on HP-UX the gcc test will end up
3487 # making a dummy file named `D' -- because `-MD' means `put the output
3490 # Copy depcomp to subdir because otherwise we won't find it if we're
3491 # using a relative directory.
3492 cp "$am_depcomp" conftest.dir
3494 # We will build objects and dependencies in a subdirectory because
3495 # it helps to detect inapplicable dependency modes. For instance
3496 # both Tru64's cc and ICC support -MD to output dependencies as a
3497 # side effect of compilation, but ICC will put the dependencies in
3498 # the current directory while Tru64 will put them in the object
3502 am_cv_CC_dependencies_compiler_type=none
3503 if test "$am_compiler_list" = ""; then
3504 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3506 for depmode in $am_compiler_list; do
3507 # Setup a source with many dependencies, because some compilers
3508 # like to wrap large dependency lists on column 80 (with \), and
3509 # we should not choose a depcomp mode which is confused by this.
3511 # We need to recreate these files for each test, as the compiler may
3512 # overwrite some of them when testing with obscure command lines.
3513 # This happens at least with the AIX C compiler.
3515 for i in 1 2 3 4 5 6; do
3516 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3517 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3518 # Solaris 8's {/usr,}/bin/sh.
3519 touch sub/conftst$i.h
3521 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3525 # after this tag, mechanisms are not by side-effect, so they'll
3526 # only be used when explicitly requested
3527 if test "x$enable_dependency_tracking" = xyes; then
3535 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3536 # mode. It turns out that the SunPro C++ compiler does not properly
3537 # handle `-M -o', and we need to detect this.
3538 if depmode=$depmode \
3539 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3540 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3541 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3542 >/dev/null 2>conftest.err &&
3543 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3544 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3545 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3546 # icc doesn't choke on unknown options, it will just issue warnings
3547 # or remarks (even with -Werror). So we grep stderr for any message
3548 # that says an option was ignored or not supported.
3549 # When given -MP, icc 7.0 and 7.1 complain thusly:
3550 # icc: Command line warning: ignoring option '-M'; no argument required
3551 # The diagnosis changed in icc 8.0:
3552 # icc: Command line remark: option '-MP' not supported
3553 if (grep 'ignoring option' conftest.err ||
3554 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3555 am_cv_CC_dependencies_compiler_type=$depmode
3564 am_cv_CC_dependencies_compiler_type=none
3568 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3569 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3570 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3575 test "x$enable_dependency_tracking" != xno \
3576 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3578 am__fastdepCC_FALSE='#'
3580 am__fastdepCC_TRUE='#'
3581 am__fastdepCC_FALSE=
3587 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3588 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3589 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3590 $as_echo_n "(cached) " >&6
3592 ac_check_lib_save_LIBS=$LIBS
3593 LIBS="-lcposix $LIBS"
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3601 /* Override any GCC internal prototype to avoid an error.
3602 Use char because int might match the return type of a GCC
3603 builtin and then its argument prototype would still apply. */
3616 rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (ac_try="$ac_link"
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3623 $as_echo "$ac_try_echo") >&5
3624 (eval "$ac_link") 2>conftest.er1
3626 grep -v '^ *+' conftest.er1 >conftest.err
3628 cat conftest.err >&5
3629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } && {
3631 test -z "$ac_c_werror_flag" ||
3632 test ! -s conftest.err
3633 } && test -s conftest$ac_exeext && {
3634 test "$cross_compiling" = yes ||
3635 $as_test_x conftest$ac_exeext
3637 ac_cv_lib_cposix_strerror=yes
3639 $as_echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 ac_cv_lib_cposix_strerror=no
3645 rm -rf conftest.dSYM
3646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3647 conftest$ac_exeext conftest.$ac_ext
3648 LIBS=$ac_check_lib_save_LIBS
3650 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3651 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3652 if test $ac_cv_lib_cposix_strerror = yes; then
3653 LIBS="$LIBS -lcposix"
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 if test -n "$ac_tool_prefix"; then
3664 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3665 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_CC+set}" = set; then
3669 $as_echo_n "(cached) " >&6
3671 if test -n "$CC"; then
3672 ac_cv_prog_CC="$CC" # Let the user override the test.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 if test -n "$CC"; then
3693 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3694 $as_echo "$CC" >&6; }
3696 { $as_echo "$as_me:$LINENO: result: no" >&5
3697 $as_echo "no" >&6; }
3702 if test -z "$ac_cv_prog_CC"; then
3704 # Extract the first word of "gcc", so it can be a program name with args.
3705 set dummy gcc; ac_word=$2
3706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3709 $as_echo_n "(cached) " >&6
3711 if test -n "$ac_ct_CC"; then
3712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_ac_ct_CC="gcc"
3722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3732 if test -n "$ac_ct_CC"; then
3733 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3734 $as_echo "$ac_ct_CC" >&6; }
3736 { $as_echo "$as_me:$LINENO: result: no" >&5
3737 $as_echo "no" >&6; }
3740 if test "x$ac_ct_CC" = x; then
3743 case $cross_compiling:$ac_tool_warned in
3745 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3746 whose name does not start with the host triplet. If you think this
3747 configuration is useful to you, please write to autoconf@gnu.org." >&5
3748 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3749 whose name does not start with the host triplet. If you think this
3750 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3751 ac_tool_warned=yes ;;
3759 if test -z "$CC"; then
3760 if test -n "$ac_tool_prefix"; then
3761 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3762 set dummy ${ac_tool_prefix}cc; ac_word=$2
3763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if test "${ac_cv_prog_CC+set}" = set; then
3766 $as_echo_n "(cached) " >&6
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 ac_cv_prog_CC="${ac_tool_prefix}cc"
3779 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 if test -n "$CC"; then
3790 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3791 $as_echo "$CC" >&6; }
3793 { $as_echo "$as_me:$LINENO: result: no" >&5
3794 $as_echo "no" >&6; }
3800 if test -z "$CC"; then
3801 # Extract the first word of "cc", so it can be a program name with args.
3802 set dummy cc; ac_word=$2
3803 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if test "${ac_cv_prog_CC+set}" = set; then
3806 $as_echo_n "(cached) " >&6
3808 if test -n "$CC"; then
3809 ac_cv_prog_CC="$CC" # Let the user override the test.
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3820 ac_prog_rejected=yes
3824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 if test $ac_prog_rejected = yes; then
3832 # We found a bogon in the path, so make sure we never use it.
3833 set dummy $ac_cv_prog_CC
3835 if test $# != 0; then
3836 # We chose a different compiler from the bogus one.
3837 # However, it has the same basename, so the bogon will be chosen
3838 # first if we set CC to just the basename; use the full file name.
3840 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3846 if test -n "$CC"; then
3847 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3848 $as_echo "$CC" >&6; }
3850 { $as_echo "$as_me:$LINENO: result: no" >&5
3851 $as_echo "no" >&6; }
3856 if test -z "$CC"; then
3857 if test -n "$ac_tool_prefix"; then
3858 for ac_prog in cl.exe
3860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if test "${ac_cv_prog_CC+set}" = set; then
3865 $as_echo_n "(cached) " >&6
3867 if test -n "$CC"; then
3868 ac_cv_prog_CC="$CC" # Let the user override the test.
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3877 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 if test -n "$CC"; then
3889 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3890 $as_echo "$CC" >&6; }
3892 { $as_echo "$as_me:$LINENO: result: no" >&5
3893 $as_echo "no" >&6; }
3897 test -n "$CC" && break
3900 if test -z "$CC"; then
3902 for ac_prog in cl.exe
3904 # Extract the first word of "$ac_prog", so it can be a program name with args.
3905 set dummy $ac_prog; ac_word=$2
3906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3909 $as_echo_n "(cached) " >&6
3911 if test -n "$ac_ct_CC"; then
3912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 ac_cv_prog_ac_ct_CC="$ac_prog"
3922 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3932 if test -n "$ac_ct_CC"; then
3933 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3934 $as_echo "$ac_ct_CC" >&6; }
3936 { $as_echo "$as_me:$LINENO: result: no" >&5
3937 $as_echo "no" >&6; }
3941 test -n "$ac_ct_CC" && break
3944 if test "x$ac_ct_CC" = x; then
3947 case $cross_compiling:$ac_tool_warned in
3949 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3950 whose name does not start with the host triplet. If you think this
3951 configuration is useful to you, please write to autoconf@gnu.org." >&5
3952 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3953 whose name does not start with the host triplet. If you think this
3954 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3955 ac_tool_warned=yes ;;
3964 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3965 See \`config.log' for more details." >&5
3966 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3967 See \`config.log' for more details." >&2;}
3968 { (exit 1); exit 1; }; }
3970 # Provide some information about the compiler.
3971 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3974 { (ac_try="$ac_compiler --version >&5"
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3980 $as_echo "$ac_try_echo") >&5
3981 (eval "$ac_compiler --version >&5") 2>&5
3983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }
3985 { (ac_try="$ac_compiler -v >&5"
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3991 $as_echo "$ac_try_echo") >&5
3992 (eval "$ac_compiler -v >&5") 2>&5
3994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }
3996 { (ac_try="$ac_compiler -V >&5"
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4002 $as_echo "$ac_try_echo") >&5
4003 (eval "$ac_compiler -V >&5") 2>&5
4005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }
4008 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4009 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4010 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4011 $as_echo_n "(cached) " >&6
4013 cat >conftest.$ac_ext <<_ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4038 $as_echo "$ac_try_echo") >&5
4039 (eval "$ac_compile") 2>conftest.er1
4041 grep -v '^ *+' conftest.er1 >conftest.err
4043 cat conftest.err >&5
4044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } && {
4046 test -z "$ac_c_werror_flag" ||
4047 test ! -s conftest.err
4048 } && test -s conftest.$ac_objext; then
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4061 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4062 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4063 if test $ac_compiler_gnu = yes; then
4068 ac_test_CFLAGS=${CFLAGS+set}
4069 ac_save_CFLAGS=$CFLAGS
4070 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4071 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4072 if test "${ac_cv_prog_cc_g+set}" = set; then
4073 $as_echo_n "(cached) " >&6
4075 ac_save_c_werror_flag=$ac_c_werror_flag
4076 ac_c_werror_flag=yes
4079 cat >conftest.$ac_ext <<_ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4101 $as_echo "$ac_try_echo") >&5
4102 (eval "$ac_compile") 2>conftest.er1
4104 grep -v '^ *+' conftest.er1 >conftest.err
4106 cat conftest.err >&5
4107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } && {
4109 test -z "$ac_c_werror_flag" ||
4110 test ! -s conftest.err
4111 } && test -s conftest.$ac_objext; then
4114 $as_echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4118 cat >conftest.$ac_ext <<_ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4140 $as_echo "$ac_try_echo") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4153 $as_echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4156 ac_c_werror_flag=$ac_save_c_werror_flag
4158 cat >conftest.$ac_ext <<_ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4173 rm -f conftest.$ac_objext
4174 if { (ac_try="$ac_compile"
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4180 $as_echo "$ac_try_echo") >&5
4181 (eval "$ac_compile") 2>conftest.er1
4183 grep -v '^ *+' conftest.er1 >conftest.err
4185 cat conftest.err >&5
4186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } && {
4188 test -z "$ac_c_werror_flag" ||
4189 test ! -s conftest.err
4190 } && test -s conftest.$ac_objext; then
4193 $as_echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 ac_c_werror_flag=$ac_save_c_werror_flag
4208 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4209 $as_echo "$ac_cv_prog_cc_g" >&6; }
4210 if test "$ac_test_CFLAGS" = set; then
4211 CFLAGS=$ac_save_CFLAGS
4212 elif test $ac_cv_prog_cc_g = yes; then
4213 if test "$GCC" = yes; then
4219 if test "$GCC" = yes; then
4225 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4226 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4227 if test "${ac_cv_prog_cc_c89+set}" = set; then
4228 $as_echo_n "(cached) " >&6
4230 ac_cv_prog_cc_c89=no
4232 cat >conftest.$ac_ext <<_ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4240 #include <sys/types.h>
4241 #include <sys/stat.h>
4242 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4243 struct buf { int x; };
4244 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4245 static char *e (p, i)
4251 static char *f (char * (*g) (char **, int), char **p, ...)
4256 s = g (p, va_arg (v,int));
4261 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4262 function prototypes and stuff, but not '\xHH' hex character constants.
4263 These don't provoke an error unfortunately, instead are silently treated
4264 as 'x'. The following induces an error, until -std is added to get
4265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4266 array size at least. It's necessary to write '\x00'==0 to get something
4267 that's true only with -std. */
4268 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4270 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4271 inside strings and character constants. */
4273 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4275 int test (int i, double x);
4276 struct s1 {int (*f) (int a);};
4277 struct s2 {int (*f) (double a);};
4278 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4284 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4289 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4290 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4292 CC="$ac_save_CC $ac_arg"
4293 rm -f conftest.$ac_objext
4294 if { (ac_try="$ac_compile"
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4300 $as_echo "$ac_try_echo") >&5
4301 (eval "$ac_compile") 2>conftest.er1
4303 grep -v '^ *+' conftest.er1 >conftest.err
4305 cat conftest.err >&5
4306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } && {
4308 test -z "$ac_c_werror_flag" ||
4309 test ! -s conftest.err
4310 } && test -s conftest.$ac_objext; then
4311 ac_cv_prog_cc_c89=$ac_arg
4313 $as_echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4319 rm -f core conftest.err conftest.$ac_objext
4320 test "x$ac_cv_prog_cc_c89" != "xno" && break
4322 rm -f conftest.$ac_ext
4327 case "x$ac_cv_prog_cc_c89" in
4329 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4330 $as_echo "none needed" >&6; } ;;
4332 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4333 $as_echo "unsupported" >&6; } ;;
4335 CC="$CC $ac_cv_prog_cc_c89"
4336 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4337 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 depcc="$CC" am_compiler_list=
4349 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4350 $as_echo_n "checking dependency style of $depcc... " >&6; }
4351 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4352 $as_echo_n "(cached) " >&6
4354 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4355 # We make a subdir and do the tests there. Otherwise we can end up
4356 # making bogus files that we don't know about and never remove. For
4357 # instance it was reported that on HP-UX the gcc test will end up
4358 # making a dummy file named `D' -- because `-MD' means `put the output
4361 # Copy depcomp to subdir because otherwise we won't find it if we're
4362 # using a relative directory.
4363 cp "$am_depcomp" conftest.dir
4365 # We will build objects and dependencies in a subdirectory because
4366 # it helps to detect inapplicable dependency modes. For instance
4367 # both Tru64's cc and ICC support -MD to output dependencies as a
4368 # side effect of compilation, but ICC will put the dependencies in
4369 # the current directory while Tru64 will put them in the object
4373 am_cv_CC_dependencies_compiler_type=none
4374 if test "$am_compiler_list" = ""; then
4375 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4377 for depmode in $am_compiler_list; do
4378 # Setup a source with many dependencies, because some compilers
4379 # like to wrap large dependency lists on column 80 (with \), and
4380 # we should not choose a depcomp mode which is confused by this.
4382 # We need to recreate these files for each test, as the compiler may
4383 # overwrite some of them when testing with obscure command lines.
4384 # This happens at least with the AIX C compiler.
4386 for i in 1 2 3 4 5 6; do
4387 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4388 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4389 # Solaris 8's {/usr,}/bin/sh.
4390 touch sub/conftst$i.h
4392 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4396 # after this tag, mechanisms are not by side-effect, so they'll
4397 # only be used when explicitly requested
4398 if test "x$enable_dependency_tracking" = xyes; then
4406 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4407 # mode. It turns out that the SunPro C++ compiler does not properly
4408 # handle `-M -o', and we need to detect this.
4409 if depmode=$depmode \
4410 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4411 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4412 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4413 >/dev/null 2>conftest.err &&
4414 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4415 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4417 # icc doesn't choke on unknown options, it will just issue warnings
4418 # or remarks (even with -Werror). So we grep stderr for any message
4419 # that says an option was ignored or not supported.
4420 # When given -MP, icc 7.0 and 7.1 complain thusly:
4421 # icc: Command line warning: ignoring option '-M'; no argument required
4422 # The diagnosis changed in icc 8.0:
4423 # icc: Command line remark: option '-MP' not supported
4424 if (grep 'ignoring option' conftest.err ||
4425 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4426 am_cv_CC_dependencies_compiler_type=$depmode
4435 am_cv_CC_dependencies_compiler_type=none
4439 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4440 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4441 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4446 test "x$enable_dependency_tracking" != xno \
4447 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4449 am__fastdepCC_FALSE='#'
4451 am__fastdepCC_TRUE='#'
4452 am__fastdepCC_FALSE=
4457 ac_cpp='$CPP $CPPFLAGS'
4458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461 if test -n "$ac_tool_prefix"; then
4462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4463 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if test "${ac_cv_prog_CC+set}" = set; then
4467 $as_echo_n "(cached) " >&6
4469 if test -n "$CC"; then
4470 ac_cv_prog_CC="$CC" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 if test -n "$CC"; then
4491 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4492 $as_echo "$CC" >&6; }
4494 { $as_echo "$as_me:$LINENO: result: no" >&5
4495 $as_echo "no" >&6; }
4500 if test -z "$ac_cv_prog_CC"; then
4502 # Extract the first word of "gcc", so it can be a program name with args.
4503 set dummy gcc; ac_word=$2
4504 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 $as_echo_n "checking for $ac_word... " >&6; }
4506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4507 $as_echo_n "(cached) " >&6
4509 if test -n "$ac_ct_CC"; then
4510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_prog_ac_ct_CC="gcc"
4520 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4530 if test -n "$ac_ct_CC"; then
4531 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4532 $as_echo "$ac_ct_CC" >&6; }
4534 { $as_echo "$as_me:$LINENO: result: no" >&5
4535 $as_echo "no" >&6; }
4538 if test "x$ac_ct_CC" = x; then
4541 case $cross_compiling:$ac_tool_warned in
4543 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4544 whose name does not start with the host triplet. If you think this
4545 configuration is useful to you, please write to autoconf@gnu.org." >&5
4546 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4547 whose name does not start with the host triplet. If you think this
4548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4549 ac_tool_warned=yes ;;
4557 if test -z "$CC"; then
4558 if test -n "$ac_tool_prefix"; then
4559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4560 set dummy ${ac_tool_prefix}cc; ac_word=$2
4561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_CC+set}" = set; then
4564 $as_echo_n "(cached) " >&6
4566 if test -n "$CC"; then
4567 ac_cv_prog_CC="$CC" # Let the user override the test.
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_CC="${ac_tool_prefix}cc"
4577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 if test -n "$CC"; then
4588 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4589 $as_echo "$CC" >&6; }
4591 { $as_echo "$as_me:$LINENO: result: no" >&5
4592 $as_echo "no" >&6; }
4598 if test -z "$CC"; then
4599 # Extract the first word of "cc", so it can be a program name with args.
4600 set dummy cc; ac_word=$2
4601 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if test "${ac_cv_prog_CC+set}" = set; then
4604 $as_echo_n "(cached) " >&6
4606 if test -n "$CC"; then
4607 ac_cv_prog_CC="$CC" # Let the user override the test.
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4618 ac_prog_rejected=yes
4622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 if test $ac_prog_rejected = yes; then
4630 # We found a bogon in the path, so make sure we never use it.
4631 set dummy $ac_cv_prog_CC
4633 if test $# != 0; then
4634 # We chose a different compiler from the bogus one.
4635 # However, it has the same basename, so the bogon will be chosen
4636 # first if we set CC to just the basename; use the full file name.
4638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4644 if test -n "$CC"; then
4645 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4646 $as_echo "$CC" >&6; }
4648 { $as_echo "$as_me:$LINENO: result: no" >&5
4649 $as_echo "no" >&6; }
4654 if test -z "$CC"; then
4655 if test -n "$ac_tool_prefix"; then
4656 for ac_prog in cl.exe
4658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4660 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_CC+set}" = set; then
4663 $as_echo_n "(cached) " >&6
4665 if test -n "$CC"; then
4666 ac_cv_prog_CC="$CC" # Let the user override the test.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 if test -n "$CC"; then
4687 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4688 $as_echo "$CC" >&6; }
4690 { $as_echo "$as_me:$LINENO: result: no" >&5
4691 $as_echo "no" >&6; }
4695 test -n "$CC" && break
4698 if test -z "$CC"; then
4700 for ac_prog in cl.exe
4702 # Extract the first word of "$ac_prog", so it can be a program name with args.
4703 set dummy $ac_prog; ac_word=$2
4704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4705 $as_echo_n "checking for $ac_word... " >&6; }
4706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4707 $as_echo_n "(cached) " >&6
4709 if test -n "$ac_ct_CC"; then
4710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719 ac_cv_prog_ac_ct_CC="$ac_prog"
4720 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4730 if test -n "$ac_ct_CC"; then
4731 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4732 $as_echo "$ac_ct_CC" >&6; }
4734 { $as_echo "$as_me:$LINENO: result: no" >&5
4735 $as_echo "no" >&6; }
4739 test -n "$ac_ct_CC" && break
4742 if test "x$ac_ct_CC" = x; then
4745 case $cross_compiling:$ac_tool_warned in
4747 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4748 whose name does not start with the host triplet. If you think this
4749 configuration is useful to you, please write to autoconf@gnu.org." >&5
4750 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4751 whose name does not start with the host triplet. If you think this
4752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4753 ac_tool_warned=yes ;;
4762 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4763 See \`config.log' for more details." >&5
4764 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4765 See \`config.log' for more details." >&2;}
4766 { (exit 1); exit 1; }; }
4768 # Provide some information about the compiler.
4769 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4772 { (ac_try="$ac_compiler --version >&5"
4774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775 *) ac_try_echo=$ac_try;;
4777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4778 $as_echo "$ac_try_echo") >&5
4779 (eval "$ac_compiler --version >&5") 2>&5
4781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }
4783 { (ac_try="$ac_compiler -v >&5"
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4789 $as_echo "$ac_try_echo") >&5
4790 (eval "$ac_compiler -v >&5") 2>&5
4792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }
4794 { (ac_try="$ac_compiler -V >&5"
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4800 $as_echo "$ac_try_echo") >&5
4801 (eval "$ac_compiler -V >&5") 2>&5
4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }
4806 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4807 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4808 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4809 $as_echo_n "(cached) " >&6
4811 cat >conftest.$ac_ext <<_ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4829 rm -f conftest.$ac_objext
4830 if { (ac_try="$ac_compile"
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836 $as_echo "$ac_try_echo") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
4849 $as_echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4859 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4860 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4861 if test $ac_compiler_gnu = yes; then
4866 ac_test_CFLAGS=${CFLAGS+set}
4867 ac_save_CFLAGS=$CFLAGS
4868 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4869 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4870 if test "${ac_cv_prog_cc_g+set}" = set; then
4871 $as_echo_n "(cached) " >&6
4873 ac_save_c_werror_flag=$ac_c_werror_flag
4874 ac_c_werror_flag=yes
4877 cat >conftest.$ac_ext <<_ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4892 rm -f conftest.$ac_objext
4893 if { (ac_try="$ac_compile"
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4899 $as_echo "$ac_try_echo") >&5
4900 (eval "$ac_compile") 2>conftest.er1
4902 grep -v '^ *+' conftest.er1 >conftest.err
4904 cat conftest.err >&5
4905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } && {
4907 test -z "$ac_c_werror_flag" ||
4908 test ! -s conftest.err
4909 } && test -s conftest.$ac_objext; then
4912 $as_echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4916 cat >conftest.$ac_ext <<_ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4938 $as_echo "$ac_try_echo") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4941 grep -v '^ *+' conftest.er1 >conftest.err
4943 cat conftest.err >&5
4944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.$ac_objext; then
4951 $as_echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4954 ac_c_werror_flag=$ac_save_c_werror_flag
4956 cat >conftest.$ac_ext <<_ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4971 rm -f conftest.$ac_objext
4972 if { (ac_try="$ac_compile"
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4978 $as_echo "$ac_try_echo") >&5
4979 (eval "$ac_compile") 2>conftest.er1
4981 grep -v '^ *+' conftest.er1 >conftest.err
4983 cat conftest.err >&5
4984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && {
4986 test -z "$ac_c_werror_flag" ||
4987 test ! -s conftest.err
4988 } && test -s conftest.$ac_objext; then
4991 $as_echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 ac_c_werror_flag=$ac_save_c_werror_flag
5006 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5007 $as_echo "$ac_cv_prog_cc_g" >&6; }
5008 if test "$ac_test_CFLAGS" = set; then
5009 CFLAGS=$ac_save_CFLAGS
5010 elif test $ac_cv_prog_cc_g = yes; then
5011 if test "$GCC" = yes; then
5017 if test "$GCC" = yes; then
5023 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5024 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5025 if test "${ac_cv_prog_cc_c89+set}" = set; then
5026 $as_echo_n "(cached) " >&6
5028 ac_cv_prog_cc_c89=no
5030 cat >conftest.$ac_ext <<_ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5038 #include <sys/types.h>
5039 #include <sys/stat.h>
5040 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5041 struct buf { int x; };
5042 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5043 static char *e (p, i)
5049 static char *f (char * (*g) (char **, int), char **p, ...)
5054 s = g (p, va_arg (v,int));
5059 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5060 function prototypes and stuff, but not '\xHH' hex character constants.
5061 These don't provoke an error unfortunately, instead are silently treated
5062 as 'x'. The following induces an error, until -std is added to get
5063 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5064 array size at least. It's necessary to write '\x00'==0 to get something
5065 that's true only with -std. */
5066 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5068 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5069 inside strings and character constants. */
5071 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5073 int test (int i, double x);
5074 struct s1 {int (*f) (int a);};
5075 struct s2 {int (*f) (double a);};
5076 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5082 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5087 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5088 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5090 CC="$ac_save_CC $ac_arg"
5091 rm -f conftest.$ac_objext
5092 if { (ac_try="$ac_compile"
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5098 $as_echo "$ac_try_echo") >&5
5099 (eval "$ac_compile") 2>conftest.er1
5101 grep -v '^ *+' conftest.er1 >conftest.err
5103 cat conftest.err >&5
5104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } && {
5106 test -z "$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 } && test -s conftest.$ac_objext; then
5109 ac_cv_prog_cc_c89=$ac_arg
5111 $as_echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5117 rm -f core conftest.err conftest.$ac_objext
5118 test "x$ac_cv_prog_cc_c89" != "xno" && break
5120 rm -f conftest.$ac_ext
5125 case "x$ac_cv_prog_cc_c89" in
5127 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5128 $as_echo "none needed" >&6; } ;;
5130 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5131 $as_echo "unsupported" >&6; } ;;
5133 CC="$CC $ac_cv_prog_cc_c89"
5134 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5135 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5140 ac_cpp='$CPP $CPPFLAGS'
5141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145 depcc="$CC" am_compiler_list=
5147 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5148 $as_echo_n "checking dependency style of $depcc... " >&6; }
5149 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5150 $as_echo_n "(cached) " >&6
5152 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5153 # We make a subdir and do the tests there. Otherwise we can end up
5154 # making bogus files that we don't know about and never remove. For
5155 # instance it was reported that on HP-UX the gcc test will end up
5156 # making a dummy file named `D' -- because `-MD' means `put the output
5159 # Copy depcomp to subdir because otherwise we won't find it if we're
5160 # using a relative directory.
5161 cp "$am_depcomp" conftest.dir
5163 # We will build objects and dependencies in a subdirectory because
5164 # it helps to detect inapplicable dependency modes. For instance
5165 # both Tru64's cc and ICC support -MD to output dependencies as a
5166 # side effect of compilation, but ICC will put the dependencies in
5167 # the current directory while Tru64 will put them in the object
5171 am_cv_CC_dependencies_compiler_type=none
5172 if test "$am_compiler_list" = ""; then
5173 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5175 for depmode in $am_compiler_list; do
5176 # Setup a source with many dependencies, because some compilers
5177 # like to wrap large dependency lists on column 80 (with \), and
5178 # we should not choose a depcomp mode which is confused by this.
5180 # We need to recreate these files for each test, as the compiler may
5181 # overwrite some of them when testing with obscure command lines.
5182 # This happens at least with the AIX C compiler.
5184 for i in 1 2 3 4 5 6; do
5185 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5186 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5187 # Solaris 8's {/usr,}/bin/sh.
5188 touch sub/conftst$i.h
5190 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5194 # after this tag, mechanisms are not by side-effect, so they'll
5195 # only be used when explicitly requested
5196 if test "x$enable_dependency_tracking" = xyes; then
5204 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5205 # mode. It turns out that the SunPro C++ compiler does not properly
5206 # handle `-M -o', and we need to detect this.
5207 if depmode=$depmode \
5208 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5210 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5211 >/dev/null 2>conftest.err &&
5212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5215 # icc doesn't choke on unknown options, it will just issue warnings
5216 # or remarks (even with -Werror). So we grep stderr for any message
5217 # that says an option was ignored or not supported.
5218 # When given -MP, icc 7.0 and 7.1 complain thusly:
5219 # icc: Command line warning: ignoring option '-M'; no argument required
5220 # The diagnosis changed in icc 8.0:
5221 # icc: Command line remark: option '-MP' not supported
5222 if (grep 'ignoring option' conftest.err ||
5223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5224 am_cv_CC_dependencies_compiler_type=$depmode
5233 am_cv_CC_dependencies_compiler_type=none
5237 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5238 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5239 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5244 test "x$enable_dependency_tracking" != xno \
5245 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5247 am__fastdepCC_FALSE='#'
5249 am__fastdepCC_TRUE='#'
5250 am__fastdepCC_FALSE=
5255 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5258 ac_cpp='$OBJCPP $CPPFLAGS'
5259 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5262 if test -n "$ac_tool_prefix"; then
5263 for ac_prog in gcc objcc objc cc CC
5265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_OBJC+set}" = set; then
5270 $as_echo_n "(cached) " >&6
5272 if test -n "$OBJC"; then
5273 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 OBJC=$ac_cv_prog_OBJC
5293 if test -n "$OBJC"; then
5294 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
5295 $as_echo "$OBJC" >&6; }
5297 { $as_echo "$as_me:$LINENO: result: no" >&5
5298 $as_echo "no" >&6; }
5302 test -n "$OBJC" && break
5305 if test -z "$OBJC"; then
5307 for ac_prog in gcc objcc objc cc CC
5309 # Extract the first word of "$ac_prog", so it can be a program name with args.
5310 set dummy $ac_prog; ac_word=$2
5311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
5314 $as_echo_n "(cached) " >&6
5316 if test -n "$ac_ct_OBJC"; then
5317 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_ac_ct_OBJC="$ac_prog"
5327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5337 if test -n "$ac_ct_OBJC"; then
5338 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
5339 $as_echo "$ac_ct_OBJC" >&6; }
5341 { $as_echo "$as_me:$LINENO: result: no" >&5
5342 $as_echo "no" >&6; }
5346 test -n "$ac_ct_OBJC" && break
5349 if test "x$ac_ct_OBJC" = x; then
5352 case $cross_compiling:$ac_tool_warned in
5354 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5355 whose name does not start with the host triplet. If you think this
5356 configuration is useful to you, please write to autoconf@gnu.org." >&5
5357 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5358 whose name does not start with the host triplet. If you think this
5359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5360 ac_tool_warned=yes ;;
5366 # Provide some information about the compiler.
5367 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
5370 { (ac_try="$ac_compiler --version >&5"
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5376 $as_echo "$ac_try_echo") >&5
5377 (eval "$ac_compiler --version >&5") 2>&5
5379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }
5381 { (ac_try="$ac_compiler -v >&5"
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5387 $as_echo "$ac_try_echo") >&5
5388 (eval "$ac_compiler -v >&5") 2>&5
5390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }
5392 { (ac_try="$ac_compiler -V >&5"
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5398 $as_echo "$ac_try_echo") >&5
5399 (eval "$ac_compiler -V >&5") 2>&5
5401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }
5404 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
5405 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5406 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
5407 $as_echo_n "(cached) " >&6
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5427 rm -f conftest.$ac_objext
5428 if { (ac_try="$ac_compile"
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5434 $as_echo "$ac_try_echo") >&5
5435 (eval "$ac_compile") 2>conftest.er1
5437 grep -v '^ *+' conftest.er1 >conftest.err
5439 cat conftest.err >&5
5440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && {
5442 test -z "$ac_objc_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest.$ac_objext; then
5447 $as_echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5457 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
5458 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5459 if test $ac_compiler_gnu = yes; then
5464 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5465 ac_save_OBJCFLAGS=$OBJCFLAGS
5466 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
5467 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5468 if test "${ac_cv_prog_objc_g+set}" = set; then
5469 $as_echo_n "(cached) " >&6
5471 ac_save_objc_werror_flag=$ac_objc_werror_flag
5472 ac_objc_werror_flag=yes
5473 ac_cv_prog_objc_g=no
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5490 rm -f conftest.$ac_objext
5491 if { (ac_try="$ac_compile"
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5497 $as_echo "$ac_try_echo") >&5
5498 (eval "$ac_compile") 2>conftest.er1
5500 grep -v '^ *+' conftest.er1 >conftest.err
5502 cat conftest.err >&5
5503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && {
5505 test -z "$ac_objc_werror_flag" ||
5506 test ! -s conftest.err
5507 } && test -s conftest.$ac_objext; then
5508 ac_cv_prog_objc_g=yes
5510 $as_echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5529 rm -f conftest.$ac_objext
5530 if { (ac_try="$ac_compile"
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5536 $as_echo "$ac_try_echo") >&5
5537 (eval "$ac_compile") 2>conftest.er1
5539 grep -v '^ *+' conftest.er1 >conftest.err
5541 cat conftest.err >&5
5542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && {
5544 test -z "$ac_objc_werror_flag" ||
5545 test ! -s conftest.err
5546 } && test -s conftest.$ac_objext; then
5549 $as_echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5552 ac_objc_werror_flag=$ac_save_objc_werror_flag
5554 cat >conftest.$ac_ext <<_ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5576 $as_echo "$ac_try_echo") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5579 grep -v '^ *+' conftest.er1 >conftest.err
5581 cat conftest.err >&5
5582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_objc_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
5587 ac_cv_prog_objc_g=yes
5589 $as_echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602 ac_objc_werror_flag=$ac_save_objc_werror_flag
5604 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
5605 $as_echo "$ac_cv_prog_objc_g" >&6; }
5606 if test "$ac_test_OBJCFLAGS" = set; then
5607 OBJCFLAGS=$ac_save_OBJCFLAGS
5608 elif test $ac_cv_prog_objc_g = yes; then
5609 if test "$GOBJC" = yes; then
5615 if test "$GOBJC" = yes; then
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5627 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5628 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5629 if test "${ac_cv_path_SED+set}" = set; then
5630 $as_echo_n "(cached) " >&6
5632 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5633 for ac_i in 1 2 3 4 5 6 7; do
5634 ac_script="$ac_script$as_nl$ac_script"
5636 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5637 $as_unset ac_script || ac_script=
5638 if test -z "$SED"; then
5639 ac_path_SED_found=false
5640 # Loop through the user's path and test for each of PROGNAME-LIST
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 test -z "$as_dir" && as_dir=.
5646 for ac_prog in sed gsed; do
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5649 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5650 # Check for GNU ac_path_SED and select it if it is found.
5651 # Check for GNU $ac_path_SED
5652 case `"$ac_path_SED" --version 2>&1` in
5654 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5657 $as_echo_n 0123456789 >"conftest.in"
5660 cat "conftest.in" "conftest.in" >"conftest.tmp"
5661 mv "conftest.tmp" "conftest.in"
5662 cp "conftest.in" "conftest.nl"
5663 $as_echo '' >> "conftest.nl"
5664 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5666 ac_count=`expr $ac_count + 1`
5667 if test $ac_count -gt ${ac_path_SED_max-0}; then
5668 # Best one so far, save it but keep looking for a better one
5669 ac_cv_path_SED="$ac_path_SED"
5670 ac_path_SED_max=$ac_count
5672 # 10*(2^10) chars as input seems more than enough
5673 test $ac_count -gt 10 && break
5675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5678 $ac_path_SED_found && break 3
5683 if test -z "$ac_cv_path_SED"; then
5684 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5685 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5686 { (exit 1); exit 1; }; }
5693 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5694 $as_echo "$ac_cv_path_SED" >&6; }
5695 SED="$ac_cv_path_SED"
5698 # By default we simply use the C compiler to build assembly code.
5700 test "${CCAS+set}" = set || CCAS=$CC
5701 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5706 ac_cpp='$CPP $CPPFLAGS'
5707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5711 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5712 # On Suns, sometimes $CPP names a directory.
5713 if test -n "$CPP" && test -d "$CPP"; then
5716 if test -z "$CPP"; then
5717 if test "${ac_cv_prog_CPP+set}" = set; then
5718 $as_echo_n "(cached) " >&6
5720 # Double quotes because CPP needs to be expanded
5721 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5724 for ac_c_preproc_warn_flag in '' yes
5726 # Use a header file that comes with gcc, so configuring glibc
5727 # with a fresh cross-compiler works.
5728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5729 # <limits.h> exists even on freestanding compilers.
5730 # On the NeXT, cc -E runs the code through the compiler's parser,
5731 # not just through cpp. "Syntax error" is here to catch this case.
5732 cat >conftest.$ac_ext <<_ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5739 # include <limits.h>
5741 # include <assert.h>
5745 if { (ac_try="$ac_cpp conftest.$ac_ext"
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5751 $as_echo "$ac_try_echo") >&5
5752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5754 grep -v '^ *+' conftest.er1 >conftest.err
5756 cat conftest.err >&5
5757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } >/dev/null && {
5759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5760 test ! -s conftest.err
5764 $as_echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 # Broken: fails on valid input.
5771 rm -f conftest.err conftest.$ac_ext
5773 # OK, works on sane cases. Now check whether nonexistent headers
5774 # can be detected and how.
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 #include <ac_nonexistent.h>
5783 if { (ac_try="$ac_cpp conftest.$ac_ext"
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5789 $as_echo "$ac_try_echo") >&5
5790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5792 grep -v '^ *+' conftest.er1 >conftest.err
5794 cat conftest.err >&5
5795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } >/dev/null && {
5797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5800 # Broken: success on invalid input.
5803 $as_echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5806 # Passes both tests.
5811 rm -f conftest.err conftest.$ac_ext
5814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5815 rm -f conftest.err conftest.$ac_ext
5816 if $ac_preproc_ok; then
5828 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5829 $as_echo "$CPP" >&6; }
5831 for ac_c_preproc_warn_flag in '' yes
5833 # Use a header file that comes with gcc, so configuring glibc
5834 # with a fresh cross-compiler works.
5835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5836 # <limits.h> exists even on freestanding compilers.
5837 # On the NeXT, cc -E runs the code through the compiler's parser,
5838 # not just through cpp. "Syntax error" is here to catch this case.
5839 cat >conftest.$ac_ext <<_ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5846 # include <limits.h>
5848 # include <assert.h>
5852 if { (ac_try="$ac_cpp conftest.$ac_ext"
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5858 $as_echo "$ac_try_echo") >&5
5859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5861 grep -v '^ *+' conftest.er1 >conftest.err
5863 cat conftest.err >&5
5864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } >/dev/null && {
5866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5867 test ! -s conftest.err
5871 $as_echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 # Broken: fails on valid input.
5878 rm -f conftest.err conftest.$ac_ext
5880 # OK, works on sane cases. Now check whether nonexistent headers
5881 # can be detected and how.
5882 cat >conftest.$ac_ext <<_ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888 #include <ac_nonexistent.h>
5890 if { (ac_try="$ac_cpp conftest.$ac_ext"
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5896 $as_echo "$ac_try_echo") >&5
5897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5899 grep -v '^ *+' conftest.er1 >conftest.err
5901 cat conftest.err >&5
5902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } >/dev/null && {
5904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5907 # Broken: success on invalid input.
5910 $as_echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 # Passes both tests.
5918 rm -f conftest.err conftest.$ac_ext
5921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5922 rm -f conftest.err conftest.$ac_ext
5923 if $ac_preproc_ok; then
5926 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5927 See \`config.log' for more details." >&5
5928 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5929 See \`config.log' for more details." >&2;}
5930 { (exit 1); exit 1; }; }
5934 ac_cpp='$CPP $CPPFLAGS'
5935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5940 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5941 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5942 if test "${ac_cv_path_GREP+set}" = set; then
5943 $as_echo_n "(cached) " >&6
5945 if test -z "$GREP"; then
5946 ac_path_GREP_found=false
5947 # Loop through the user's path and test for each of PROGNAME-LIST
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5952 test -z "$as_dir" && as_dir=.
5953 for ac_prog in grep ggrep; do
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5956 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5957 # Check for GNU ac_path_GREP and select it if it is found.
5958 # Check for GNU $ac_path_GREP
5959 case `"$ac_path_GREP" --version 2>&1` in
5961 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5964 $as_echo_n 0123456789 >"conftest.in"
5967 cat "conftest.in" "conftest.in" >"conftest.tmp"
5968 mv "conftest.tmp" "conftest.in"
5969 cp "conftest.in" "conftest.nl"
5970 $as_echo 'GREP' >> "conftest.nl"
5971 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5973 ac_count=`expr $ac_count + 1`
5974 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5975 # Best one so far, save it but keep looking for a better one
5976 ac_cv_path_GREP="$ac_path_GREP"
5977 ac_path_GREP_max=$ac_count
5979 # 10*(2^10) chars as input seems more than enough
5980 test $ac_count -gt 10 && break
5982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5985 $ac_path_GREP_found && break 3
5990 if test -z "$ac_cv_path_GREP"; then
5991 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5992 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5993 { (exit 1); exit 1; }; }
5996 ac_cv_path_GREP=$GREP
6000 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6001 $as_echo "$ac_cv_path_GREP" >&6; }
6002 GREP="$ac_cv_path_GREP"
6005 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6006 $as_echo_n "checking for egrep... " >&6; }
6007 if test "${ac_cv_path_EGREP+set}" = set; then
6008 $as_echo_n "(cached) " >&6
6010 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6011 then ac_cv_path_EGREP="$GREP -E"
6013 if test -z "$EGREP"; then
6014 ac_path_EGREP_found=false
6015 # Loop through the user's path and test for each of PROGNAME-LIST
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6020 test -z "$as_dir" && as_dir=.
6021 for ac_prog in egrep; do
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6024 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6025 # Check for GNU ac_path_EGREP and select it if it is found.
6026 # Check for GNU $ac_path_EGREP
6027 case `"$ac_path_EGREP" --version 2>&1` in
6029 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6032 $as_echo_n 0123456789 >"conftest.in"
6035 cat "conftest.in" "conftest.in" >"conftest.tmp"
6036 mv "conftest.tmp" "conftest.in"
6037 cp "conftest.in" "conftest.nl"
6038 $as_echo 'EGREP' >> "conftest.nl"
6039 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6041 ac_count=`expr $ac_count + 1`
6042 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6043 # Best one so far, save it but keep looking for a better one
6044 ac_cv_path_EGREP="$ac_path_EGREP"
6045 ac_path_EGREP_max=$ac_count
6047 # 10*(2^10) chars as input seems more than enough
6048 test $ac_count -gt 10 && break
6050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6053 $ac_path_EGREP_found && break 3
6058 if test -z "$ac_cv_path_EGREP"; then
6059 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6060 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6061 { (exit 1); exit 1; }; }
6064 ac_cv_path_EGREP=$EGREP
6069 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6070 $as_echo "$ac_cv_path_EGREP" >&6; }
6071 EGREP="$ac_cv_path_EGREP"
6074 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6075 $as_echo_n "checking for ANSI C header files... " >&6; }
6076 if test "${ac_cv_header_stdc+set}" = set; then
6077 $as_echo_n "(cached) " >&6
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6098 rm -f conftest.$ac_objext
6099 if { (ac_try="$ac_compile"
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6105 $as_echo "$ac_try_echo") >&5
6106 (eval "$ac_compile") 2>conftest.er1
6108 grep -v '^ *+' conftest.er1 >conftest.err
6110 cat conftest.err >&5
6111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } && {
6113 test -z "$ac_c_werror_flag" ||
6114 test ! -s conftest.err
6115 } && test -s conftest.$ac_objext; then
6116 ac_cv_header_stdc=yes
6118 $as_echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6121 ac_cv_header_stdc=no
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 if test $ac_cv_header_stdc = yes; then
6127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6128 cat >conftest.$ac_ext <<_ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6138 $EGREP "memchr" >/dev/null 2>&1; then
6141 ac_cv_header_stdc=no
6147 if test $ac_cv_header_stdc = yes; then
6148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6149 cat >conftest.$ac_ext <<_ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6159 $EGREP "free" >/dev/null 2>&1; then
6162 ac_cv_header_stdc=no
6168 if test $ac_cv_header_stdc = yes; then
6169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6170 if test "$cross_compiling" = yes; then
6173 cat >conftest.$ac_ext <<_ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6181 #if ((' ' & 0x0FF) == 0x020)
6182 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6183 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6185 # define ISLOWER(c) \
6186 (('a' <= (c) && (c) <= 'i') \
6187 || ('j' <= (c) && (c) <= 'r') \
6188 || ('s' <= (c) && (c) <= 'z'))
6189 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6192 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6197 for (i = 0; i < 256; i++)
6198 if (XOR (islower (i), ISLOWER (i))
6199 || toupper (i) != TOUPPER (i))
6204 rm -f conftest$ac_exeext
6205 if { (ac_try="$ac_link"
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6211 $as_echo "$ac_try_echo") >&5
6212 (eval "$ac_link") 2>&5
6214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6216 { (case "(($ac_try" in
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6221 $as_echo "$ac_try_echo") >&5
6222 (eval "$ac_try") 2>&5
6224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6228 $as_echo "$as_me: program exited with status $ac_status" >&5
6229 $as_echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6233 ac_cv_header_stdc=no
6235 rm -rf conftest.dSYM
6236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6242 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6243 $as_echo "$ac_cv_header_stdc" >&6; }
6244 if test $ac_cv_header_stdc = yes; then
6246 cat >>confdefs.h <<\_ACEOF
6247 #define STDC_HEADERS 1
6252 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6262 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6263 inttypes.h stdint.h unistd.h
6265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6267 $as_echo_n "checking for $ac_header... " >&6; }
6268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6269 $as_echo_n "(cached) " >&6
6271 cat >conftest.$ac_ext <<_ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 $ac_includes_default
6279 #include <$ac_header>
6281 rm -f conftest.$ac_objext
6282 if { (ac_try="$ac_compile"
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6288 $as_echo "$ac_try_echo") >&5
6289 (eval "$ac_compile") 2>conftest.er1
6291 grep -v '^ *+' conftest.er1 >conftest.err
6293 cat conftest.err >&5
6294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_objext; then
6299 eval "$as_ac_Header=yes"
6301 $as_echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 eval "$as_ac_Header=no"
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 ac_res=`eval 'as_val=${'$as_ac_Header'}
6310 $as_echo "$as_val"'`
6311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6312 $as_echo "$ac_res" >&6; }
6313 if test `eval 'as_val=${'$as_ac_Header'}
6314 $as_echo "$as_val"'` = yes; then
6315 cat >>confdefs.h <<_ACEOF
6316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6324 # The cast to long int works around a bug in the HP C Compiler
6325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6327 # This bug is HP SR number 8606223364.
6328 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
6329 $as_echo_n "checking size of void *... " >&6; }
6330 if test "${ac_cv_sizeof_void_p+set}" = set; then
6331 $as_echo_n "(cached) " >&6
6333 if test "$cross_compiling" = yes; then
6334 # Depending upon the size, compute the lo and hi bounds.
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6345 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
6352 rm -f conftest.$ac_objext
6353 if { (ac_try="$ac_compile"
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6359 $as_echo "$ac_try_echo") >&5
6360 (eval "$ac_compile") 2>conftest.er1
6362 grep -v '^ *+' conftest.er1 >conftest.err
6364 cat conftest.err >&5
6365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } && {
6367 test -z "$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 } && test -s conftest.$ac_objext; then
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 $ac_includes_default
6382 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6389 rm -f conftest.$ac_objext
6390 if { (ac_try="$ac_compile"
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6396 $as_echo "$ac_try_echo") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6399 grep -v '^ *+' conftest.er1 >conftest.err
6401 cat conftest.err >&5
6402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && {
6404 test -z "$ac_c_werror_flag" ||
6405 test ! -s conftest.err
6406 } && test -s conftest.$ac_objext; then
6407 ac_hi=$ac_mid; break
6409 $as_echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 ac_lo=`expr $ac_mid + 1`
6413 if test $ac_lo -le $ac_mid; then
6417 ac_mid=`expr 2 '*' $ac_mid + 1`
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 $as_echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 cat >conftest.$ac_ext <<_ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 $ac_includes_default
6436 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
6443 rm -f conftest.$ac_objext
6444 if { (ac_try="$ac_compile"
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6450 $as_echo "$ac_try_echo") >&5
6451 (eval "$ac_compile") 2>conftest.er1
6453 grep -v '^ *+' conftest.er1 >conftest.err
6455 cat conftest.err >&5
6456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } && {
6458 test -z "$ac_c_werror_flag" ||
6459 test ! -s conftest.err
6460 } && test -s conftest.$ac_objext; then
6463 cat >conftest.$ac_ext <<_ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6473 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6487 $as_echo "$ac_try_echo") >&5
6488 (eval "$ac_compile") 2>conftest.er1
6490 grep -v '^ *+' conftest.er1 >conftest.err
6492 cat conftest.err >&5
6493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } && {
6495 test -z "$ac_c_werror_flag" ||
6496 test ! -s conftest.err
6497 } && test -s conftest.$ac_objext; then
6498 ac_lo=$ac_mid; break
6500 $as_echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6503 ac_hi=`expr '(' $ac_mid ')' - 1`
6504 if test $ac_mid -le $ac_hi; then
6508 ac_mid=`expr 2 '*' $ac_mid`
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 $as_echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 # Binary search between lo and hi bounds.
6525 while test "x$ac_lo" != "x$ac_hi"; do
6526 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6527 cat >conftest.$ac_ext <<_ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 $ac_includes_default
6537 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551 $as_echo "$ac_try_echo") >&5
6552 (eval "$ac_compile") 2>conftest.er1
6554 grep -v '^ *+' conftest.er1 >conftest.err
6556 cat conftest.err >&5
6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest.$ac_objext; then
6564 $as_echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_lo=`expr '(' $ac_mid ')' + 1`
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6574 '') if test "$ac_cv_type_void_p" = yes; then
6575 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6576 See \`config.log' for more details." >&5
6577 $as_echo "$as_me: error: cannot compute sizeof (void *)
6578 See \`config.log' for more details." >&2;}
6579 { (exit 77); exit 77; }; }
6581 ac_cv_sizeof_void_p=0
6585 cat >conftest.$ac_ext <<_ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6591 $ac_includes_default
6592 static long int longval () { return (long int) (sizeof (void *)); }
6593 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6600 FILE *f = fopen ("conftest.val", "w");
6603 if (((long int) (sizeof (void *))) < 0)
6605 long int i = longval ();
6606 if (i != ((long int) (sizeof (void *))))
6608 fprintf (f, "%ld", i);
6612 unsigned long int i = ulongval ();
6613 if (i != ((long int) (sizeof (void *))))
6615 fprintf (f, "%lu", i);
6617 /* Do not output a trailing newline, as this causes \r\n confusion
6618 on some platforms. */
6619 return ferror (f) || fclose (f) != 0;
6625 rm -f conftest$ac_exeext
6626 if { (ac_try="$ac_link"
6628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6632 $as_echo "$ac_try_echo") >&5
6633 (eval "$ac_link") 2>&5
6635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6637 { (case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6642 $as_echo "$ac_try_echo") >&5
6643 (eval "$ac_try") 2>&5
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_sizeof_void_p=`cat conftest.val`
6649 $as_echo "$as_me: program exited with status $ac_status" >&5
6650 $as_echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6654 if test "$ac_cv_type_void_p" = yes; then
6655 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6656 See \`config.log' for more details." >&5
6657 $as_echo "$as_me: error: cannot compute sizeof (void *)
6658 See \`config.log' for more details." >&2;}
6659 { (exit 77); exit 77; }; }
6661 ac_cv_sizeof_void_p=0
6664 rm -rf conftest.dSYM
6665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6669 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6670 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6674 cat >>confdefs.h <<_ACEOF
6675 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6679 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6680 $as_echo_n "checking for ANSI C header files... " >&6; }
6681 if test "${ac_cv_header_stdc+set}" = set; then
6682 $as_echo_n "(cached) " >&6
6684 cat >conftest.$ac_ext <<_ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6703 rm -f conftest.$ac_objext
6704 if { (ac_try="$ac_compile"
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6710 $as_echo "$ac_try_echo") >&5
6711 (eval "$ac_compile") 2>conftest.er1
6713 grep -v '^ *+' conftest.er1 >conftest.err
6715 cat conftest.err >&5
6716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } && {
6718 test -z "$ac_c_werror_flag" ||
6719 test ! -s conftest.err
6720 } && test -s conftest.$ac_objext; then
6721 ac_cv_header_stdc=yes
6723 $as_echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 ac_cv_header_stdc=no
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 if test $ac_cv_header_stdc = yes; then
6732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6733 cat >conftest.$ac_ext <<_ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6743 $EGREP "memchr" >/dev/null 2>&1; then
6746 ac_cv_header_stdc=no
6752 if test $ac_cv_header_stdc = yes; then
6753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6754 cat >conftest.$ac_ext <<_ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6764 $EGREP "free" >/dev/null 2>&1; then
6767 ac_cv_header_stdc=no
6773 if test $ac_cv_header_stdc = yes; then
6774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6775 if test "$cross_compiling" = yes; then
6778 cat >conftest.$ac_ext <<_ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6786 #if ((' ' & 0x0FF) == 0x020)
6787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6790 # define ISLOWER(c) \
6791 (('a' <= (c) && (c) <= 'i') \
6792 || ('j' <= (c) && (c) <= 'r') \
6793 || ('s' <= (c) && (c) <= 'z'))
6794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6802 for (i = 0; i < 256; i++)
6803 if (XOR (islower (i), ISLOWER (i))
6804 || toupper (i) != TOUPPER (i))
6809 rm -f conftest$ac_exeext
6810 if { (ac_try="$ac_link"
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6816 $as_echo "$ac_try_echo") >&5
6817 (eval "$ac_link") 2>&5
6819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6821 { (case "(($ac_try" in
6822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6823 *) ac_try_echo=$ac_try;;
6825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6826 $as_echo "$ac_try_echo") >&5
6827 (eval "$ac_try") 2>&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6833 $as_echo "$as_me: program exited with status $ac_status" >&5
6834 $as_echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6838 ac_cv_header_stdc=no
6840 rm -rf conftest.dSYM
6841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6847 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6848 $as_echo "$ac_cv_header_stdc" >&6; }
6849 if test $ac_cv_header_stdc = yes; then
6851 cat >>confdefs.h <<\_ACEOF
6852 #define STDC_HEADERS 1
6857 # Make sure we can run config.sub.
6858 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6859 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6860 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6861 { (exit 1); exit 1; }; }
6863 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6864 $as_echo_n "checking build system type... " >&6; }
6865 if test "${ac_cv_build+set}" = set; then
6866 $as_echo_n "(cached) " >&6
6868 ac_build_alias=$build_alias
6869 test "x$ac_build_alias" = x &&
6870 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6871 test "x$ac_build_alias" = x &&
6872 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6873 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6874 { (exit 1); exit 1; }; }
6875 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6876 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6877 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6878 { (exit 1); exit 1; }; }
6881 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6882 $as_echo "$ac_cv_build" >&6; }
6883 case $ac_cv_build in
6885 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6886 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6887 { (exit 1); exit 1; }; };;
6890 ac_save_IFS=$IFS; IFS='-'
6896 # Remember, the first character of IFS is used to create $*,
6897 # except with old shells:
6900 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6903 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6904 $as_echo_n "checking host system type... " >&6; }
6905 if test "${ac_cv_host+set}" = set; then
6906 $as_echo_n "(cached) " >&6
6908 if test "x$host_alias" = x; then
6909 ac_cv_host=$ac_cv_build
6911 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6912 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6913 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6914 { (exit 1); exit 1; }; }
6918 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6919 $as_echo "$ac_cv_host" >&6; }
6922 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6923 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6924 { (exit 1); exit 1; }; };;
6927 ac_save_IFS=$IFS; IFS='-'
6933 # Remember, the first character of IFS is used to create $*,
6934 # except with old shells:
6937 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6942 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6944 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6945 $as_echo_n "checking dependency style of $depcc... " >&6; }
6946 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
6947 $as_echo_n "(cached) " >&6
6949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6950 # We make a subdir and do the tests there. Otherwise we can end up
6951 # making bogus files that we don't know about and never remove. For
6952 # instance it was reported that on HP-UX the gcc test will end up
6953 # making a dummy file named `D' -- because `-MD' means `put the output
6956 # Copy depcomp to subdir because otherwise we won't find it if we're
6957 # using a relative directory.
6958 cp "$am_depcomp" conftest.dir
6960 # We will build objects and dependencies in a subdirectory because
6961 # it helps to detect inapplicable dependency modes. For instance
6962 # both Tru64's cc and ICC support -MD to output dependencies as a
6963 # side effect of compilation, but ICC will put the dependencies in
6964 # the current directory while Tru64 will put them in the object
6968 am_cv_OBJC_dependencies_compiler_type=none
6969 if test "$am_compiler_list" = ""; then
6970 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6972 for depmode in $am_compiler_list; do
6973 # Setup a source with many dependencies, because some compilers
6974 # like to wrap large dependency lists on column 80 (with \), and
6975 # we should not choose a depcomp mode which is confused by this.
6977 # We need to recreate these files for each test, as the compiler may
6978 # overwrite some of them when testing with obscure command lines.
6979 # This happens at least with the AIX C compiler.
6981 for i in 1 2 3 4 5 6; do
6982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6983 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6984 # Solaris 8's {/usr,}/bin/sh.
6985 touch sub/conftst$i.h
6987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6991 # after this tag, mechanisms are not by side-effect, so they'll
6992 # only be used when explicitly requested
6993 if test "x$enable_dependency_tracking" = xyes; then
7001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7002 # mode. It turns out that the SunPro C++ compiler does not properly
7003 # handle `-M -o', and we need to detect this.
7004 if depmode=$depmode \
7005 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7007 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7008 >/dev/null 2>conftest.err &&
7009 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7010 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7011 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7012 # icc doesn't choke on unknown options, it will just issue warnings
7013 # or remarks (even with -Werror). So we grep stderr for any message
7014 # that says an option was ignored or not supported.
7015 # When given -MP, icc 7.0 and 7.1 complain thusly:
7016 # icc: Command line warning: ignoring option '-M'; no argument required
7017 # The diagnosis changed in icc 8.0:
7018 # icc: Command line remark: option '-MP' not supported
7019 if (grep 'ignoring option' conftest.err ||
7020 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7021 am_cv_OBJC_dependencies_compiler_type=$depmode
7030 am_cv_OBJC_dependencies_compiler_type=none
7034 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
7035 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
7036 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
7041 test "x$enable_dependency_tracking" != xno \
7042 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
7043 am__fastdepOBJC_TRUE=
7044 am__fastdepOBJC_FALSE='#'
7046 am__fastdepOBJC_TRUE='#'
7047 am__fastdepOBJC_FALSE=
7052 # Extract the first word of "pod2man", so it can be a program name with args.
7053 set dummy pod2man; ac_word=$2
7054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if test "${ac_cv_path_POD2MAN+set}" = set; then
7057 $as_echo_n "(cached) " >&6
7061 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 POD2MAN=$ac_cv_path_POD2MAN
7083 if test -n "$POD2MAN"; then
7084 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
7085 $as_echo "$POD2MAN" >&6; }
7087 { $as_echo "$as_me:$LINENO: result: no" >&5
7088 $as_echo "no" >&6; }
7092 # Extract the first word of "pod2html", so it can be a program name with args.
7093 set dummy pod2html; ac_word=$2
7094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if test "${ac_cv_path_POD2HTML+set}" = set; then
7097 $as_echo_n "(cached) " >&6
7101 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7112 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 POD2HTML=$ac_cv_path_POD2HTML
7123 if test -n "$POD2HTML"; then
7124 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
7125 $as_echo "$POD2HTML" >&6; }
7127 { $as_echo "$as_me:$LINENO: result: no" >&5
7128 $as_echo "no" >&6; }
7134 # Check whether --enable-strict-warn was given.
7135 if test "${enable_strict_warn+set}" = set; then
7136 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
7137 enable_strictwarn=yes
7141 # Check whether --enable-translator was given.
7142 if test "${enable_translator+set}" = set; then
7143 enableval=$enable_translator; true
7145 enable_translator=yes
7148 # Check whether --enable-optimized was given.
7149 if test "${enable_optimized+set}" = set; then
7150 enableval=$enable_optimized; true
7152 enable_optimized=yes
7155 # Check whether --enable-profiled was given.
7156 if test "${enable_profiled+set}" = set; then
7157 enableval=$enable_profiled; if test "$enableval" == "yes"; then
7158 enable_profiled=yes;
7162 # Check whether --enable-trace was given.
7163 if test "${enable_trace+set}" = set; then
7164 enableval=$enable_trace; if test "$enableval" == "yes"; then
7166 cat >>confdefs.h <<\_ACEOF
7167 #define ENABLE_TRACE_IO 1
7173 # Check whether --enable-watch was given.
7174 if test "${enable_watch+set}" = set; then
7175 enableval=$enable_watch; if test "$enableval" == "yes"; then
7177 cat >>confdefs.h <<\_ACEOF
7178 #define ENABLE_WATCH 1
7184 # Check whether --enable-sh4stats was given.
7185 if test "${enable_sh4stats+set}" = set; then
7186 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
7188 cat >>confdefs.h <<\_ACEOF
7189 #define ENABLE_SH4STATS 1
7196 # Check whether --with-osmesa was given.
7197 if test "${with_osmesa+set}" = set; then
7198 withval=$with_osmesa;
7204 # Check whether --with-gtk was given.
7205 if test "${with_gtk+set}" = set; then
7206 withval=$with_gtk; with_gtk=yes
7212 # Check whether --with-esd was given.
7213 if test "${with_esd+set}" = set; then
7218 # Check whether --with-pulse was given.
7219 if test "${with_pulse+set}" = set; then
7220 withval=$with_pulse;
7224 # Check whether --with-sdl was given.
7225 if test "${with_sdl+set}" = set; then
7235 ac_cpp='$OBJCPP $CPPFLAGS'
7236 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7237 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7238 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7239 if test -n "$ac_tool_prefix"; then
7240 for ac_prog in gcc objcc objc cc CC
7242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7244 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if test "${ac_cv_prog_OBJC+set}" = set; then
7247 $as_echo_n "(cached) " >&6
7249 if test -n "$OBJC"; then
7250 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7260 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 OBJC=$ac_cv_prog_OBJC
7270 if test -n "$OBJC"; then
7271 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
7272 $as_echo "$OBJC" >&6; }
7274 { $as_echo "$as_me:$LINENO: result: no" >&5
7275 $as_echo "no" >&6; }
7279 test -n "$OBJC" && break
7282 if test -z "$OBJC"; then
7284 for ac_prog in gcc objcc objc cc CC
7286 # Extract the first word of "$ac_prog", so it can be a program name with args.
7287 set dummy $ac_prog; ac_word=$2
7288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7291 $as_echo_n "(cached) " >&6
7293 if test -n "$ac_ct_OBJC"; then
7294 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7314 if test -n "$ac_ct_OBJC"; then
7315 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7316 $as_echo "$ac_ct_OBJC" >&6; }
7318 { $as_echo "$as_me:$LINENO: result: no" >&5
7319 $as_echo "no" >&6; }
7323 test -n "$ac_ct_OBJC" && break
7326 if test "x$ac_ct_OBJC" = x; then
7329 case $cross_compiling:$ac_tool_warned in
7331 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7332 whose name does not start with the host triplet. If you think this
7333 configuration is useful to you, please write to autoconf@gnu.org." >&5
7334 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7335 whose name does not start with the host triplet. If you think this
7336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7337 ac_tool_warned=yes ;;
7343 # Provide some information about the compiler.
7344 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7347 { (ac_try="$ac_compiler --version >&5"
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7353 $as_echo "$ac_try_echo") >&5
7354 (eval "$ac_compiler --version >&5") 2>&5
7356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }
7358 { (ac_try="$ac_compiler -v >&5"
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7364 $as_echo "$ac_try_echo") >&5
7365 (eval "$ac_compiler -v >&5") 2>&5
7367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }
7369 { (ac_try="$ac_compiler -V >&5"
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7375 $as_echo "$ac_try_echo") >&5
7376 (eval "$ac_compiler -V >&5") 2>&5
7378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }
7381 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7382 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
7383 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7384 $as_echo_n "(cached) " >&6
7386 cat >conftest.$ac_ext <<_ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7404 rm -f conftest.$ac_objext
7405 if { (ac_try="$ac_compile"
7407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7411 $as_echo "$ac_try_echo") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7414 grep -v '^ *+' conftest.er1 >conftest.err
7416 cat conftest.err >&5
7417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_objc_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.$ac_objext; then
7424 $as_echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7434 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7435 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
7436 if test $ac_compiler_gnu = yes; then
7441 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7442 ac_save_OBJCFLAGS=$OBJCFLAGS
7443 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7444 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
7445 if test "${ac_cv_prog_objc_g+set}" = set; then
7446 $as_echo_n "(cached) " >&6
7448 ac_save_objc_werror_flag=$ac_objc_werror_flag
7449 ac_objc_werror_flag=yes
7450 ac_cv_prog_objc_g=no
7452 cat >conftest.$ac_ext <<_ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7467 rm -f conftest.$ac_objext
7468 if { (ac_try="$ac_compile"
7470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7471 *) ac_try_echo=$ac_try;;
7473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7474 $as_echo "$ac_try_echo") >&5
7475 (eval "$ac_compile") 2>conftest.er1
7477 grep -v '^ *+' conftest.er1 >conftest.err
7479 cat conftest.err >&5
7480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && {
7482 test -z "$ac_objc_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest.$ac_objext; then
7485 ac_cv_prog_objc_g=yes
7487 $as_echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7491 cat >conftest.$ac_ext <<_ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7506 rm -f conftest.$ac_objext
7507 if { (ac_try="$ac_compile"
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7513 $as_echo "$ac_try_echo") >&5
7514 (eval "$ac_compile") 2>conftest.er1
7516 grep -v '^ *+' conftest.er1 >conftest.err
7518 cat conftest.err >&5
7519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } && {
7521 test -z "$ac_objc_werror_flag" ||
7522 test ! -s conftest.err
7523 } && test -s conftest.$ac_objext; then
7526 $as_echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7529 ac_objc_werror_flag=$ac_save_objc_werror_flag
7531 cat >conftest.$ac_ext <<_ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7546 rm -f conftest.$ac_objext
7547 if { (ac_try="$ac_compile"
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553 $as_echo "$ac_try_echo") >&5
7554 (eval "$ac_compile") 2>conftest.er1
7556 grep -v '^ *+' conftest.er1 >conftest.err
7558 cat conftest.err >&5
7559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_objc_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest.$ac_objext; then
7564 ac_cv_prog_objc_g=yes
7566 $as_echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 ac_objc_werror_flag=$ac_save_objc_werror_flag
7581 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7582 $as_echo "$ac_cv_prog_objc_g" >&6; }
7583 if test "$ac_test_OBJCFLAGS" = set; then
7584 OBJCFLAGS=$ac_save_OBJCFLAGS
7585 elif test $ac_cv_prog_objc_g = yes; then
7586 if test "$GOBJC" = yes; then
7592 if test "$GOBJC" = yes; then
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7604 { $as_echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
7605 $as_echo_n "checking for a working Objective-C compiler... " >&6; }
7607 ac_cpp='$OBJCPP $CPPFLAGS'
7608 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7626 rm -f conftest.$ac_objext
7627 if { (ac_try="$ac_compile"
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7633 $as_echo "$ac_try_echo") >&5
7634 (eval "$ac_compile") 2>conftest.er1
7636 grep -v '^ *+' conftest.er1 >conftest.err
7638 cat conftest.err >&5
7639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && {
7641 test -z "$ac_objc_werror_flag" ||
7642 test ! -s conftest.err
7643 } && test -s conftest.$ac_objext; then
7644 { $as_echo "$as_me:$LINENO: result: yes" >&5
7645 $as_echo "yes" >&6; }
7647 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7648 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7649 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7650 $as_echo_n "(cached) " >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 $ac_includes_default
7660 #include <Cocoa/Cocoa.h>
7662 rm -f conftest.$ac_objext
7663 if { (ac_try="$ac_compile"
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7669 $as_echo "$ac_try_echo") >&5
7670 (eval "$ac_compile") 2>conftest.er1
7672 grep -v '^ *+' conftest.er1 >conftest.err
7674 cat conftest.err >&5
7675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && {
7677 test -z "$ac_objc_werror_flag" ||
7678 test ! -s conftest.err
7679 } && test -s conftest.$ac_objext; then
7680 ac_cv_header_Cocoa_Cocoa_h=yes
7682 $as_echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7685 ac_cv_header_Cocoa_Cocoa_h=no
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7691 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7692 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
7696 LIBS="$LIBS -framework AppKit"
7697 LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"
7698 CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
7699 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
7701 cat >>confdefs.h <<\_ACEOF
7702 #define HAVE_COCOA 1
7706 cat >>confdefs.h <<\_ACEOF
7707 #define APPLE_BUILD 1
7710 if test "x$with_gtk" = "xx11"; then
7719 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
7720 $as_echo_n "checking OBJC version... " >&6; }
7721 if test -n "$OBJC"; then
7722 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
7723 if test -n "$_GOBJC_VERSION"; then
7724 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7725 $as_echo "GCC" >&6; }
7726 OBJCOPT="-O2 -msse2 -mfpmath=sse"
7727 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
7729 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7730 $as_echo "Unknown" >&6; }
7734 { $as_echo "$as_me:$LINENO: result: None" >&5
7735 $as_echo "None" >&6; }
7741 $as_echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7744 { $as_echo "$as_me:$LINENO: result: No" >&5
7745 $as_echo "No" >&6; }
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
7751 ac_cpp='$CPP $CPPFLAGS'
7752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7760 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
7768 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
7770 cat >>confdefs.h <<\_ACEOF
7771 #define OSX_BUNDLE 1
7776 CFLAGS="-g -fexceptions"
7777 OBJCFLAGS="-g -fexceptions"
7779 cat >>confdefs.h <<\_ACEOF
7780 #define HAVE_EXCEPTIONS 1
7786 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
7787 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
7788 { $as_echo "$as_me:$LINENO: checking CC version" >&5
7789 $as_echo_n "checking CC version... " >&6; }
7790 if test -n "$_ICC_VERSION"; then
7791 { $as_echo "$as_me:$LINENO: result: ICC" >&5
7792 $as_echo "ICC" >&6; }
7793 CCOPT="$CFLAGS -fast"
7794 CFLAGS="$CFLAGS -fno-strict-aliasing"
7795 elif test -n "$_GCC_VERSION"; then
7796 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7797 $as_echo "GCC" >&6; }
7798 CCOPT="-O2 -msse2 -mfpmath=sse"
7799 CFLAGS="$CFLAGS -fno-strict-aliasing"
7801 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7802 $as_echo "Unknown" >&6; }
7807 if test "x$enable_optimized" = "xyes"; then
7808 CFLAGS="$CFLAGS $CCOPT"
7809 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
7810 if test "x$enable_profiled" != "xyes"; then
7811 CFLAGS="$CFLAGS -fomit-frame-pointer"
7812 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
7815 CFLAGS="$CFLAGS -g3"
7816 OBJCFLAGS="$OBJCFLAGS -g3"
7819 if test "x$enable_profiled" = "xyes"; then
7820 CFLAGS="$CFLAGS -pg"
7821 LDFLAGS="$LDFLAGS -pg";
7822 OBJCFLAGS="$OBJCFLAGS -pg";
7825 if test "x$enable_strictwarn" = "xyes"; then
7826 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
7827 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
7831 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
7832 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
7833 if test "$cross_compiling" = yes; then
7834 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7835 See \`config.log' for more details." >&5
7836 $as_echo "$as_me: error: cannot run test program while cross compiling
7837 See \`config.log' for more details." >&2;}
7838 { (exit 1); exit 1; }; }
7840 cat >conftest.$ac_ext <<_ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7848 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
7850 int main(int argc, char *argv[])
7852 return foo( 1, 2 ) == 3 ? 0 : 1;
7855 rm -f conftest$ac_exeext
7856 if { (ac_try="$ac_link"
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7862 $as_echo "$ac_try_echo") >&5
7863 (eval "$ac_link") 2>&5
7865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7867 { (case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7872 $as_echo "$ac_try_echo") >&5
7873 (eval "$ac_try") 2>&5
7875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7878 { $as_echo "$as_me:$LINENO: result: yes" >&5
7879 $as_echo "yes" >&6; }
7882 cat >>confdefs.h <<\_ACEOF
7883 #define HAVE_FASTCALL 1
7888 $as_echo "$as_me: program exited with status $ac_status" >&5
7889 $as_echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7894 { $as_echo "$as_me:$LINENO: result: no" >&5
7895 $as_echo "no" >&6; }
7898 rm -rf conftest.dSYM
7899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7905 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
7906 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
7907 if test "$cross_compiling" = yes; then
7908 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7909 See \`config.log' for more details." >&5
7910 $as_echo "$as_me: error: cannot run test program while cross compiling
7911 See \`config.log' for more details." >&2;}
7912 { (exit 1); exit 1; }; }
7914 cat >conftest.$ac_ext <<_ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7922 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
7923 int __attribute__((noinline)) foo( int arg, void *exc )
7926 *(((void **)__builtin_frame_address(0))+1) = exc;
7931 int main(int argc, char *argv[])
7933 goto *first_arg(&&start, &&except);
7936 return foo( argc, &&except ) + 1;
7942 rm -f conftest$ac_exeext
7943 if { (ac_try="$ac_link"
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7949 $as_echo "$ac_try_echo") >&5
7950 (eval "$ac_link") 2>&5
7952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7954 { (case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7959 $as_echo "$ac_try_echo") >&5
7960 (eval "$ac_try") 2>&5
7962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7965 { $as_echo "$as_me:$LINENO: result: yes" >&5
7966 $as_echo "yes" >&6; }
7969 cat >>confdefs.h <<\_ACEOF
7970 #define HAVE_FRAME_ADDRESS 1
7975 $as_echo "$as_me: program exited with status $ac_status" >&5
7976 $as_echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7981 { $as_echo "$as_me:$LINENO: result: no" >&5
7982 $as_echo "no" >&6; }
7983 { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
7984 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
7986 rm -rf conftest.dSYM
7987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7993 { $as_echo "$as_me:$LINENO: checking for library containing listen" >&5
7994 $as_echo_n "checking for library containing listen... " >&6; }
7995 if test "${ac_cv_search_listen+set}" = set; then
7996 $as_echo_n "(cached) " >&6
7998 ac_func_search_save_LIBS=$LIBS
7999 cat >conftest.$ac_ext <<_ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8006 /* Override any GCC internal prototype to avoid an error.
8007 Use char because int might match the return type of a GCC
8008 builtin and then its argument prototype would still apply. */
8021 for ac_lib in '' socket; do
8022 if test -z "$ac_lib"; then
8023 ac_res="none required"
8026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8035 $as_echo "$ac_try_echo") >&5
8036 (eval "$ac_link") 2>conftest.er1
8038 grep -v '^ *+' conftest.er1 >conftest.err
8040 cat conftest.err >&5
8041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest$ac_exeext && {
8046 test "$cross_compiling" = yes ||
8047 $as_test_x conftest$ac_exeext
8049 ac_cv_search_listen=$ac_res
8051 $as_echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8057 rm -rf conftest.dSYM
8058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8060 if test "${ac_cv_search_listen+set}" = set; then
8064 if test "${ac_cv_search_listen+set}" = set; then
8067 ac_cv_search_listen=no
8070 LIBS=$ac_func_search_save_LIBS
8072 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
8073 $as_echo "$ac_cv_search_listen" >&6; }
8074 ac_res=$ac_cv_search_listen
8075 if test "$ac_res" != no; then
8076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8080 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
8081 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
8082 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8083 $as_echo_n "(cached) " >&6
8085 ac_func_search_save_LIBS=$LIBS
8086 cat >conftest.$ac_ext <<_ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8093 /* Override any GCC internal prototype to avoid an error.
8094 Use char because int might match the return type of a GCC
8095 builtin and then its argument prototype would still apply. */
8103 return inet_ntoa ();
8108 for ac_lib in '' nsl; do
8109 if test -z "$ac_lib"; then
8110 ac_res="none required"
8113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8115 rm -f conftest.$ac_objext conftest$ac_exeext
8116 if { (ac_try="$ac_link"
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8122 $as_echo "$ac_try_echo") >&5
8123 (eval "$ac_link") 2>conftest.er1
8125 grep -v '^ *+' conftest.er1 >conftest.err
8127 cat conftest.err >&5
8128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } && {
8130 test -z "$ac_c_werror_flag" ||
8131 test ! -s conftest.err
8132 } && test -s conftest$ac_exeext && {
8133 test "$cross_compiling" = yes ||
8134 $as_test_x conftest$ac_exeext
8136 ac_cv_search_inet_ntoa=$ac_res
8138 $as_echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8144 rm -rf conftest.dSYM
8145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8147 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8151 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8154 ac_cv_search_inet_ntoa=no
8157 LIBS=$ac_func_search_save_LIBS
8159 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
8160 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
8161 ac_res=$ac_cv_search_inet_ntoa
8162 if test "$ac_res" != no; then
8163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8170 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8171 if test -n "$ac_tool_prefix"; then
8172 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8173 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8174 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8177 $as_echo_n "(cached) " >&6
8181 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8191 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8202 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8203 if test -n "$PKG_CONFIG"; then
8204 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8205 $as_echo "$PKG_CONFIG" >&6; }
8207 { $as_echo "$as_me:$LINENO: result: no" >&5
8208 $as_echo "no" >&6; }
8213 if test -z "$ac_cv_path_PKG_CONFIG"; then
8214 ac_pt_PKG_CONFIG=$PKG_CONFIG
8215 # Extract the first word of "pkg-config", so it can be a program name with args.
8216 set dummy pkg-config; ac_word=$2
8217 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8220 $as_echo_n "(cached) " >&6
8222 case $ac_pt_PKG_CONFIG in
8224 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8234 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8246 if test -n "$ac_pt_PKG_CONFIG"; then
8247 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8248 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8250 { $as_echo "$as_me:$LINENO: result: no" >&5
8251 $as_echo "no" >&6; }
8254 if test "x$ac_pt_PKG_CONFIG" = x; then
8257 case $cross_compiling:$ac_tool_warned in
8259 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8260 whose name does not start with the host triplet. If you think this
8261 configuration is useful to you, please write to autoconf@gnu.org." >&5
8262 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8263 whose name does not start with the host triplet. If you think this
8264 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8265 ac_tool_warned=yes ;;
8267 PKG_CONFIG=$ac_pt_PKG_CONFIG
8270 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8274 if test -n "$PKG_CONFIG"; then
8275 _pkg_min_version=0.9.0
8276 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8277 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8278 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8279 { $as_echo "$as_me:$LINENO: result: yes" >&5
8280 $as_echo "yes" >&6; }
8282 { $as_echo "$as_me:$LINENO: result: no" >&5
8283 $as_echo "no" >&6; }
8290 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
8291 $as_echo_n "checking for LIBPNG... " >&6; }
8293 if test -n "$LIBPNG_CFLAGS"; then
8294 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
8295 elif test -n "$PKG_CONFIG"; then
8296 if test -n "$PKG_CONFIG" && \
8297 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8298 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; then
8302 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
8309 if test -n "$LIBPNG_LIBS"; then
8310 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8311 elif test -n "$PKG_CONFIG"; then
8312 if test -n "$PKG_CONFIG" && \
8313 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8314 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; then
8318 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
8328 if test $pkg_failed = yes; then
8330 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8331 _pkg_short_errors_supported=yes
8333 _pkg_short_errors_supported=no
8335 if test $_pkg_short_errors_supported = yes; then
8336 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
8338 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
8340 # Put the nasty error message in config.log where it belongs
8341 echo "$LIBPNG_PKG_ERRORS" >&5
8343 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
8347 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8348 installed software in a non-standard prefix.
8350 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8351 and LIBPNG_LIBS to avoid the need to call pkg-config.
8352 See the pkg-config man page for more details.
8354 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
8358 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8359 installed software in a non-standard prefix.
8361 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8362 and LIBPNG_LIBS to avoid the need to call pkg-config.
8363 See the pkg-config man page for more details.
8365 { (exit 1); exit 1; }; }
8366 elif test $pkg_failed = untried; then
8367 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8368 is in your PATH or set the PKG_CONFIG environment variable to the full
8371 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8372 and LIBPNG_LIBS to avoid the need to call pkg-config.
8373 See the pkg-config man page for more details.
8375 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8376 See \`config.log' for more details." >&5
8377 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8378 is in your PATH or set the PKG_CONFIG environment variable to the full
8381 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8382 and LIBPNG_LIBS to avoid the need to call pkg-config.
8383 See the pkg-config man page for more details.
8385 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8386 See \`config.log' for more details." >&2;}
8387 { (exit 1); exit 1; }; }
8389 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8390 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8391 { $as_echo "$as_me:$LINENO: result: yes" >&5
8392 $as_echo "yes" >&6; }
8397 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
8398 $as_echo_n "checking for uncompress in -lz... " >&6; }
8399 if test "${ac_cv_lib_z_uncompress+set}" = set; then
8400 $as_echo_n "(cached) " >&6
8402 ac_check_lib_save_LIBS=$LIBS
8404 cat >conftest.$ac_ext <<_ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8411 /* Override any GCC internal prototype to avoid an error.
8412 Use char because int might match the return type of a GCC
8413 builtin and then its argument prototype would still apply. */
8421 return uncompress ();
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (ac_try="$ac_link"
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433 $as_echo "$ac_try_echo") >&5
8434 (eval "$ac_link") 2>conftest.er1
8436 grep -v '^ *+' conftest.er1 >conftest.err
8438 cat conftest.err >&5
8439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest$ac_exeext && {
8444 test "$cross_compiling" = yes ||
8445 $as_test_x conftest$ac_exeext
8447 ac_cv_lib_z_uncompress=yes
8449 $as_echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 ac_cv_lib_z_uncompress=no
8455 rm -rf conftest.dSYM
8456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8457 conftest$ac_exeext conftest.$ac_ext
8458 LIBS=$ac_check_lib_save_LIBS
8460 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
8461 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
8462 if test $ac_cv_lib_z_uncompress = yes; then
8463 cat >>confdefs.h <<_ACEOF
8471 echo "Zlib (libz.so) could not be found, but is required."
8476 if test "x$with_gtk" = "xno"; then
8479 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
8480 $as_echo_n "checking for GLIB... " >&6; }
8482 if test -n "$GLIB_CFLAGS"; then
8483 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8484 elif test -n "$PKG_CONFIG"; then
8485 if test -n "$PKG_CONFIG" && \
8486 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8487 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; then
8491 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
8498 if test -n "$GLIB_LIBS"; then
8499 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8500 elif test -n "$PKG_CONFIG"; then
8501 if test -n "$PKG_CONFIG" && \
8502 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8503 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; then
8507 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
8517 if test $pkg_failed = yes; then
8519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8520 _pkg_short_errors_supported=yes
8522 _pkg_short_errors_supported=no
8524 if test $_pkg_short_errors_supported = yes; then
8525 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
8527 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
8529 # Put the nasty error message in config.log where it belongs
8530 echo "$GLIB_PKG_ERRORS" >&5
8532 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
8536 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8537 installed software in a non-standard prefix.
8539 Alternatively, you may set the environment variables GLIB_CFLAGS
8540 and GLIB_LIBS to avoid the need to call pkg-config.
8541 See the pkg-config man page for more details.
8543 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
8547 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8548 installed software in a non-standard prefix.
8550 Alternatively, you may set the environment variables GLIB_CFLAGS
8551 and GLIB_LIBS to avoid the need to call pkg-config.
8552 See the pkg-config man page for more details.
8554 { (exit 1); exit 1; }; }
8555 elif test $pkg_failed = untried; then
8556 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8557 is in your PATH or set the PKG_CONFIG environment variable to the full
8560 Alternatively, you may set the environment variables GLIB_CFLAGS
8561 and GLIB_LIBS to avoid the need to call pkg-config.
8562 See the pkg-config man page for more details.
8564 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8565 See \`config.log' for more details." >&5
8566 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8567 is in your PATH or set the PKG_CONFIG environment variable to the full
8570 Alternatively, you may set the environment variables GLIB_CFLAGS
8571 and GLIB_LIBS to avoid the need to call pkg-config.
8572 See the pkg-config man page for more details.
8574 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8575 See \`config.log' for more details." >&2;}
8576 { (exit 1); exit 1; }; }
8578 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8579 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8580 { $as_echo "$as_me:$LINENO: result: yes" >&5
8581 $as_echo "yes" >&6; }
8587 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
8588 $as_echo_n "checking for GTK... " >&6; }
8590 if test -n "$GTK_CFLAGS"; then
8591 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8592 elif test -n "$PKG_CONFIG"; then
8593 if test -n "$PKG_CONFIG" && \
8594 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8595 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; then
8599 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
8606 if test -n "$GTK_LIBS"; then
8607 pkg_cv_GTK_LIBS="$GTK_LIBS"
8608 elif test -n "$PKG_CONFIG"; then
8609 if test -n "$PKG_CONFIG" && \
8610 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8611 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; then
8615 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
8625 if test $pkg_failed = yes; then
8627 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8628 _pkg_short_errors_supported=yes
8630 _pkg_short_errors_supported=no
8632 if test $_pkg_short_errors_supported = yes; then
8633 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
8635 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
8637 # Put the nasty error message in config.log where it belongs
8638 echo "$GTK_PKG_ERRORS" >&5
8640 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
8644 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8645 installed software in a non-standard prefix.
8647 Alternatively, you may set the environment variables GTK_CFLAGS
8648 and GTK_LIBS to avoid the need to call pkg-config.
8649 See the pkg-config man page for more details.
8651 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
8655 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8656 installed software in a non-standard prefix.
8658 Alternatively, you may set the environment variables GTK_CFLAGS
8659 and GTK_LIBS to avoid the need to call pkg-config.
8660 See the pkg-config man page for more details.
8662 { (exit 1); exit 1; }; }
8663 elif test $pkg_failed = untried; then
8664 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8665 is in your PATH or set the PKG_CONFIG environment variable to the full
8668 Alternatively, you may set the environment variables GTK_CFLAGS
8669 and GTK_LIBS to avoid the need to call pkg-config.
8670 See the pkg-config man page for more details.
8672 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8673 See \`config.log' for more details." >&5
8674 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8675 is in your PATH or set the PKG_CONFIG environment variable to the full
8678 Alternatively, you may set the environment variables GTK_CFLAGS
8679 and GTK_LIBS to avoid the need to call pkg-config.
8680 See the pkg-config man page for more details.
8682 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8683 See \`config.log' for more details." >&2;}
8684 { (exit 1); exit 1; }; }
8686 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
8687 GTK_LIBS=$pkg_cv_GTK_LIBS
8688 { $as_echo "$as_me:$LINENO: result: yes" >&5
8689 $as_echo "yes" >&6; }
8693 cat >>confdefs.h <<\_ACEOF
8700 LIBS="$LIBS $GTK_LIBS"
8701 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
8702 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
8703 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
8704 $as_echo_n "(cached) " >&6
8706 cat >conftest.$ac_ext <<_ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
8713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8714 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
8716 /* System header to define __stub macros and hopefully few prototypes,
8717 which can conflict with char gdk_x11_display_get_xdisplay (); below.
8718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719 <limits.h> exists even on freestanding compilers. */
8722 # include <limits.h>
8724 # include <assert.h>
8727 #undef gdk_x11_display_get_xdisplay
8729 /* Override any GCC internal prototype to avoid an error.
8730 Use char because int might match the return type of a GCC
8731 builtin and then its argument prototype would still apply. */
8735 char gdk_x11_display_get_xdisplay ();
8736 /* The GNU C library defines this for functions which it implements
8737 to always fail with ENOSYS. Some functions are actually named
8738 something starting with __ and the normal name is an alias. */
8739 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
8746 return gdk_x11_display_get_xdisplay ();
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8758 $as_echo "$ac_try_echo") >&5
8759 (eval "$ac_link") 2>conftest.er1
8761 grep -v '^ *+' conftest.er1 >conftest.err
8763 cat conftest.err >&5
8764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && {
8766 test -z "$ac_c_werror_flag" ||
8767 test ! -s conftest.err
8768 } && test -s conftest$ac_exeext && {
8769 test "$cross_compiling" = yes ||
8770 $as_test_x conftest$ac_exeext
8772 ac_cv_func_gdk_x11_display_get_xdisplay=yes
8774 $as_echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 ac_cv_func_gdk_x11_display_get_xdisplay=no
8780 rm -rf conftest.dSYM
8781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8782 conftest$ac_exeext conftest.$ac_ext
8784 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
8785 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
8786 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
8790 cat >>confdefs.h <<\_ACEOF
8791 #define HAVE_GTK_X11 1
8796 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
8797 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
8798 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
8799 $as_echo_n "(cached) " >&6
8801 cat >conftest.$ac_ext <<_ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
8808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8809 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
8811 /* System header to define __stub macros and hopefully few prototypes,
8812 which can conflict with char gdk_quartz_window_get_nsview (); below.
8813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814 <limits.h> exists even on freestanding compilers. */
8817 # include <limits.h>
8819 # include <assert.h>
8822 #undef gdk_quartz_window_get_nsview
8824 /* Override any GCC internal prototype to avoid an error.
8825 Use char because int might match the return type of a GCC
8826 builtin and then its argument prototype would still apply. */
8830 char gdk_quartz_window_get_nsview ();
8831 /* The GNU C library defines this for functions which it implements
8832 to always fail with ENOSYS. Some functions are actually named
8833 something starting with __ and the normal name is an alias. */
8834 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
8841 return gdk_quartz_window_get_nsview ();
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (ac_try="$ac_link"
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8853 $as_echo "$ac_try_echo") >&5
8854 (eval "$ac_link") 2>conftest.er1
8856 grep -v '^ *+' conftest.er1 >conftest.err
8858 cat conftest.err >&5
8859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && {
8861 test -z "$ac_c_werror_flag" ||
8862 test ! -s conftest.err
8863 } && test -s conftest$ac_exeext && {
8864 test "$cross_compiling" = yes ||
8865 $as_test_x conftest$ac_exeext
8867 ac_cv_func_gdk_quartz_window_get_nsview=yes
8869 $as_echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8872 ac_cv_func_gdk_quartz_window_get_nsview=no
8875 rm -rf conftest.dSYM
8876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8877 conftest$ac_exeext conftest.$ac_ext
8879 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
8880 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
8881 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
8885 cat >>confdefs.h <<\_ACEOF
8886 #define HAVE_GTK_OSX 1
8895 if test "$HAVE_GTK" = 'yes'; then
8904 if test "x$with_osmesa" != xno; then
8908 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
8909 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
8910 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
8911 $as_echo_n "(cached) " >&6
8913 ac_check_lib_save_LIBS=$LIBS
8914 LIBS="-lOSMesa $LIBS"
8915 cat >conftest.$ac_ext <<_ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8922 /* Override any GCC internal prototype to avoid an error.
8923 Use char because int might match the return type of a GCC
8924 builtin and then its argument prototype would still apply. */
8928 char OSMesaCreateContext ();
8932 return OSMesaCreateContext ();
8937 rm -f conftest.$ac_objext conftest$ac_exeext
8938 if { (ac_try="$ac_link"
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8944 $as_echo "$ac_try_echo") >&5
8945 (eval "$ac_link") 2>conftest.er1
8947 grep -v '^ *+' conftest.er1 >conftest.err
8949 cat conftest.err >&5
8950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } && {
8952 test -z "$ac_c_werror_flag" ||
8953 test ! -s conftest.err
8954 } && test -s conftest$ac_exeext && {
8955 test "$cross_compiling" = yes ||
8956 $as_test_x conftest$ac_exeext
8958 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
8960 $as_echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 ac_cv_lib_OSMesa_OSMesaCreateContext=no
8966 rm -rf conftest.dSYM
8967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8968 conftest$ac_exeext conftest.$ac_ext
8969 LIBS=$ac_check_lib_save_LIBS
8971 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
8972 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
8973 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
8974 cat >>confdefs.h <<_ACEOF
8975 #define HAVE_LIBOSMESA 1
8978 LIBS="-lOSMesa $LIBS"
8981 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
8982 See \`config.log' for more details." >&5
8983 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
8984 See \`config.log' for more details." >&2;}
8985 { (exit 1); exit 1; }; }
8988 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8989 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
8990 $as_echo_n "checking for GL/osmesa.h... " >&6; }
8991 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8992 $as_echo_n "(cached) " >&6
8994 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
8995 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
8997 # Is the header compilable?
8998 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
8999 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
9000 cat >conftest.$ac_ext <<_ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9006 $ac_includes_default
9007 #include <GL/osmesa.h>
9009 rm -f conftest.$ac_objext
9010 if { (ac_try="$ac_compile"
9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9016 $as_echo "$ac_try_echo") >&5
9017 (eval "$ac_compile") 2>conftest.er1
9019 grep -v '^ *+' conftest.er1 >conftest.err
9021 cat conftest.err >&5
9022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } && {
9024 test -z "$ac_c_werror_flag" ||
9025 test ! -s conftest.err
9026 } && test -s conftest.$ac_objext; then
9027 ac_header_compiler=yes
9029 $as_echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9032 ac_header_compiler=no
9035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9036 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9037 $as_echo "$ac_header_compiler" >&6; }
9039 # Is the header present?
9040 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
9041 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
9042 cat >conftest.$ac_ext <<_ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048 #include <GL/osmesa.h>
9050 if { (ac_try="$ac_cpp conftest.$ac_ext"
9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9056 $as_echo "$ac_try_echo") >&5
9057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9059 grep -v '^ *+' conftest.er1 >conftest.err
9061 cat conftest.err >&5
9062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } >/dev/null && {
9064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9065 test ! -s conftest.err
9067 ac_header_preproc=yes
9069 $as_echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9072 ac_header_preproc=no
9075 rm -f conftest.err conftest.$ac_ext
9076 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9077 $as_echo "$ac_header_preproc" >&6; }
9079 # So? What about this header?
9080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9082 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
9083 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9084 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
9085 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
9086 ac_header_preproc=yes
9089 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
9090 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
9091 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
9092 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
9093 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
9094 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
9095 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
9096 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
9097 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
9098 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
9099 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
9100 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
9104 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9105 $as_echo_n "checking for GL/osmesa.h... " >&6; }
9106 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9107 $as_echo_n "(cached) " >&6
9109 ac_cv_header_GL_osmesa_h=$ac_header_preproc
9111 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9112 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
9115 if test $ac_cv_header_GL_osmesa_h = yes; then
9118 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
9119 See \`config.log' for more details." >&5
9120 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
9121 See \`config.log' for more details." >&2;}
9122 { (exit 1); exit 1; }; }
9127 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
9129 cat >>confdefs.h <<\_ACEOF
9130 #define HAVE_OSMESA 1
9136 if test "x$APPLE_BUILD" != 'xyes'; then
9138 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
9139 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
9140 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
9141 $as_echo_n "(cached) " >&6
9143 ac_check_lib_save_LIBS=$LIBS
9145 cat >conftest.$ac_ext <<_ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9152 /* Override any GCC internal prototype to avoid an error.
9153 Use char because int might match the return type of a GCC
9154 builtin and then its argument prototype would still apply. */
9162 return glVertex3f ();
9167 rm -f conftest.$ac_objext conftest$ac_exeext
9168 if { (ac_try="$ac_link"
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9174 $as_echo "$ac_try_echo") >&5
9175 (eval "$ac_link") 2>conftest.er1
9177 grep -v '^ *+' conftest.er1 >conftest.err
9179 cat conftest.err >&5
9180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } && {
9182 test -z "$ac_c_werror_flag" ||
9183 test ! -s conftest.err
9184 } && test -s conftest$ac_exeext && {
9185 test "$cross_compiling" = yes ||
9186 $as_test_x conftest$ac_exeext
9188 ac_cv_lib_GL_glVertex3f=yes
9190 $as_echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9193 ac_cv_lib_GL_glVertex3f=no
9196 rm -rf conftest.dSYM
9197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9198 conftest$ac_exeext conftest.$ac_ext
9199 LIBS=$ac_check_lib_save_LIBS
9201 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
9202 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
9203 if test $ac_cv_lib_GL_glVertex3f = yes; then
9204 cat >>confdefs.h <<_ACEOF
9205 #define HAVE_LIBGL 1
9212 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9213 See \`config.log' for more details." >&5
9214 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9215 See \`config.log' for more details." >&2;}
9216 { (exit 1); exit 1; }; }
9219 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9220 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9221 $as_echo_n "checking for GL/gl.h... " >&6; }
9222 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9223 $as_echo_n "(cached) " >&6
9225 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9226 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9228 # Is the header compilable?
9229 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
9230 $as_echo_n "checking GL/gl.h usability... " >&6; }
9231 cat >conftest.$ac_ext <<_ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237 $ac_includes_default
9240 rm -f conftest.$ac_objext
9241 if { (ac_try="$ac_compile"
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9247 $as_echo "$ac_try_echo") >&5
9248 (eval "$ac_compile") 2>conftest.er1
9250 grep -v '^ *+' conftest.er1 >conftest.err
9252 cat conftest.err >&5
9253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
9257 } && test -s conftest.$ac_objext; then
9258 ac_header_compiler=yes
9260 $as_echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9263 ac_header_compiler=no
9266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9267 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9268 $as_echo "$ac_header_compiler" >&6; }
9270 # Is the header present?
9271 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
9272 $as_echo_n "checking GL/gl.h presence... " >&6; }
9273 cat >conftest.$ac_ext <<_ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9281 if { (ac_try="$ac_cpp conftest.$ac_ext"
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9287 $as_echo "$ac_try_echo") >&5
9288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9290 grep -v '^ *+' conftest.er1 >conftest.err
9292 cat conftest.err >&5
9293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } >/dev/null && {
9295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9296 test ! -s conftest.err
9298 ac_header_preproc=yes
9300 $as_echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.$ac_ext >&5
9303 ac_header_preproc=no
9306 rm -f conftest.err conftest.$ac_ext
9307 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9308 $as_echo "$ac_header_preproc" >&6; }
9310 # So? What about this header?
9311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9313 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9314 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9315 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
9316 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
9317 ac_header_preproc=yes
9320 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
9321 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
9322 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
9323 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
9324 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
9325 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
9326 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
9327 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9328 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
9329 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
9330 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
9331 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
9335 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9336 $as_echo_n "checking for GL/gl.h... " >&6; }
9337 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9338 $as_echo_n "(cached) " >&6
9340 ac_cv_header_GL_gl_h=$ac_header_preproc
9342 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9343 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9346 if test $ac_cv_header_GL_gl_h = yes; then
9350 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9351 See \`config.log' for more details." >&5
9352 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9353 See \`config.log' for more details." >&2;}
9354 { (exit 1); exit 1; }; }
9359 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
9360 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
9361 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
9362 $as_echo_n "(cached) " >&6
9364 cat >conftest.$ac_ext <<_ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9370 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
9371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9372 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
9374 /* System header to define __stub macros and hopefully few prototypes,
9375 which can conflict with char NSOpenGLGetVersion (); below.
9376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9377 <limits.h> exists even on freestanding compilers. */
9380 # include <limits.h>
9382 # include <assert.h>
9385 #undef NSOpenGLGetVersion
9387 /* Override any GCC internal prototype to avoid an error.
9388 Use char because int might match the return type of a GCC
9389 builtin and then its argument prototype would still apply. */
9393 char NSOpenGLGetVersion ();
9394 /* The GNU C library defines this for functions which it implements
9395 to always fail with ENOSYS. Some functions are actually named
9396 something starting with __ and the normal name is an alias. */
9397 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
9404 return NSOpenGLGetVersion ();
9409 rm -f conftest.$ac_objext conftest$ac_exeext
9410 if { (ac_try="$ac_link"
9412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9413 *) ac_try_echo=$ac_try;;
9415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9416 $as_echo "$ac_try_echo") >&5
9417 (eval "$ac_link") 2>conftest.er1
9419 grep -v '^ *+' conftest.er1 >conftest.err
9421 cat conftest.err >&5
9422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } && {
9424 test -z "$ac_c_werror_flag" ||
9425 test ! -s conftest.err
9426 } && test -s conftest$ac_exeext && {
9427 test "$cross_compiling" = yes ||
9428 $as_test_x conftest$ac_exeext
9430 ac_cv_func_NSOpenGLGetVersion=yes
9432 $as_echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9435 ac_cv_func_NSOpenGLGetVersion=no
9438 rm -rf conftest.dSYM
9439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9440 conftest$ac_exeext conftest.$ac_ext
9442 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
9443 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
9444 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
9447 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
9449 cat >>confdefs.h <<\_ACEOF
9457 if test "x$HAVE_GTK_X11" = "xyes"; then
9458 if test "x$APPLE_BUILD" = "xyes"; then
9459 LIBS="$LIBS -L/usr/X11/lib -lGL"
9461 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
9462 $as_echo_n "checking for glXQueryVersion... " >&6; }
9463 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
9464 $as_echo_n "(cached) " >&6
9466 cat >conftest.$ac_ext <<_ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9472 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
9473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9474 #define glXQueryVersion innocuous_glXQueryVersion
9476 /* System header to define __stub macros and hopefully few prototypes,
9477 which can conflict with char glXQueryVersion (); below.
9478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9479 <limits.h> exists even on freestanding compilers. */
9482 # include <limits.h>
9484 # include <assert.h>
9487 #undef glXQueryVersion
9489 /* Override any GCC internal prototype to avoid an error.
9490 Use char because int might match the return type of a GCC
9491 builtin and then its argument prototype would still apply. */
9495 char glXQueryVersion ();
9496 /* The GNU C library defines this for functions which it implements
9497 to always fail with ENOSYS. Some functions are actually named
9498 something starting with __ and the normal name is an alias. */
9499 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
9506 return glXQueryVersion ();
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (ac_try="$ac_link"
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9518 $as_echo "$ac_try_echo") >&5
9519 (eval "$ac_link") 2>conftest.er1
9521 grep -v '^ *+' conftest.er1 >conftest.err
9523 cat conftest.err >&5
9524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } && {
9526 test -z "$ac_c_werror_flag" ||
9527 test ! -s conftest.err
9528 } && test -s conftest$ac_exeext && {
9529 test "$cross_compiling" = yes ||
9530 $as_test_x conftest$ac_exeext
9532 ac_cv_func_glXQueryVersion=yes
9534 $as_echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 ac_cv_func_glXQueryVersion=no
9540 rm -rf conftest.dSYM
9541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9542 conftest$ac_exeext conftest.$ac_ext
9544 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
9545 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
9546 if test $ac_cv_func_glXQueryVersion = yes; then
9549 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
9551 cat >>confdefs.h <<\_ACEOF
9567 if test "x$HAVE_OSMESA" = "xyes"; then
9569 VIDEO_OSMESA_FALSE='#'
9571 VIDEO_OSMESA_TRUE='#'
9577 if test "x$HAVE_GLX" = "xyes"; then
9587 if test "x$HAVE_NSGL" = "xyes"; then
9589 VIDEO_NSGL_FALSE='#'
9596 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
9597 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
9598 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
9599 $as_echo_n "(cached) " >&6
9601 cat >conftest.$ac_ext <<_ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
9608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9609 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
9611 /* System header to define __stub macros and hopefully few prototypes,
9612 which can conflict with char glGenFramebuffersEXT (); below.
9613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9614 <limits.h> exists even on freestanding compilers. */
9617 # include <limits.h>
9619 # include <assert.h>
9622 #undef glGenFramebuffersEXT
9624 /* Override any GCC internal prototype to avoid an error.
9625 Use char because int might match the return type of a GCC
9626 builtin and then its argument prototype would still apply. */
9630 char glGenFramebuffersEXT ();
9631 /* The GNU C library defines this for functions which it implements
9632 to always fail with ENOSYS. Some functions are actually named
9633 something starting with __ and the normal name is an alias. */
9634 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
9641 return glGenFramebuffersEXT ();
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (ac_try="$ac_link"
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9653 $as_echo "$ac_try_echo") >&5
9654 (eval "$ac_link") 2>conftest.er1
9656 grep -v '^ *+' conftest.er1 >conftest.err
9658 cat conftest.err >&5
9659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest$ac_exeext && {
9664 test "$cross_compiling" = yes ||
9665 $as_test_x conftest$ac_exeext
9667 ac_cv_func_glGenFramebuffersEXT=yes
9669 $as_echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ac_cv_func_glGenFramebuffersEXT=no
9675 rm -rf conftest.dSYM
9676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9677 conftest$ac_exeext conftest.$ac_ext
9679 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
9680 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
9681 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
9683 cat >>confdefs.h <<\_ACEOF
9684 #define HAVE_OPENGL_FBO 1
9689 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
9690 $as_echo_n "checking for glCreateShader... " >&6; }
9691 if test "${ac_cv_func_glCreateShader+set}" = set; then
9692 $as_echo_n "(cached) " >&6
9694 cat >conftest.$ac_ext <<_ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
9701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9702 #define glCreateShader innocuous_glCreateShader
9704 /* System header to define __stub macros and hopefully few prototypes,
9705 which can conflict with char glCreateShader (); below.
9706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9707 <limits.h> exists even on freestanding compilers. */
9710 # include <limits.h>
9712 # include <assert.h>
9715 #undef glCreateShader
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9723 char glCreateShader ();
9724 /* The GNU C library defines this for functions which it implements
9725 to always fail with ENOSYS. Some functions are actually named
9726 something starting with __ and the normal name is an alias. */
9727 #if defined __stub_glCreateShader || defined __stub___glCreateShader
9734 return glCreateShader ();
9739 rm -f conftest.$ac_objext conftest$ac_exeext
9740 if { (ac_try="$ac_link"
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9746 $as_echo "$ac_try_echo") >&5
9747 (eval "$ac_link") 2>conftest.er1
9749 grep -v '^ *+' conftest.er1 >conftest.err
9751 cat conftest.err >&5
9752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } && {
9754 test -z "$ac_c_werror_flag" ||
9755 test ! -s conftest.err
9756 } && test -s conftest$ac_exeext && {
9757 test "$cross_compiling" = yes ||
9758 $as_test_x conftest$ac_exeext
9760 ac_cv_func_glCreateShader=yes
9762 $as_echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9765 ac_cv_func_glCreateShader=no
9768 rm -rf conftest.dSYM
9769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9770 conftest$ac_exeext conftest.$ac_ext
9772 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
9773 $as_echo "$ac_cv_func_glCreateShader" >&6; }
9774 if test $ac_cv_func_glCreateShader = yes; then
9776 cat >>confdefs.h <<\_ACEOF
9777 #define HAVE_OPENGL_SHADER 1
9782 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
9783 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
9784 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
9785 $as_echo_n "(cached) " >&6
9787 cat >conftest.$ac_ext <<_ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
9794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9795 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
9797 /* System header to define __stub macros and hopefully few prototypes,
9798 which can conflict with char glCreateShaderObjectARB (); below.
9799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9800 <limits.h> exists even on freestanding compilers. */
9803 # include <limits.h>
9805 # include <assert.h>
9808 #undef glCreateShaderObjectARB
9810 /* Override any GCC internal prototype to avoid an error.
9811 Use char because int might match the return type of a GCC
9812 builtin and then its argument prototype would still apply. */
9816 char glCreateShaderObjectARB ();
9817 /* The GNU C library defines this for functions which it implements
9818 to always fail with ENOSYS. Some functions are actually named
9819 something starting with __ and the normal name is an alias. */
9820 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
9827 return glCreateShaderObjectARB ();
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (ac_try="$ac_link"
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9839 $as_echo "$ac_try_echo") >&5
9840 (eval "$ac_link") 2>conftest.er1
9842 grep -v '^ *+' conftest.er1 >conftest.err
9844 cat conftest.err >&5
9845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest$ac_exeext && {
9850 test "$cross_compiling" = yes ||
9851 $as_test_x conftest$ac_exeext
9853 ac_cv_func_glCreateShaderObjectARB=yes
9855 $as_echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 ac_cv_func_glCreateShaderObjectARB=no
9861 rm -rf conftest.dSYM
9862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9863 conftest$ac_exeext conftest.$ac_ext
9865 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
9866 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
9867 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
9869 cat >>confdefs.h <<\_ACEOF
9870 #define HAVE_OPENGL_SHADER_ARB 1
9875 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
9876 $as_echo_n "checking for glClampColorARB... " >&6; }
9877 if test "${ac_cv_func_glClampColorARB+set}" = set; then
9878 $as_echo_n "(cached) " >&6
9880 cat >conftest.$ac_ext <<_ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
9887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9888 #define glClampColorARB innocuous_glClampColorARB
9890 /* System header to define __stub macros and hopefully few prototypes,
9891 which can conflict with char glClampColorARB (); below.
9892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893 <limits.h> exists even on freestanding compilers. */
9896 # include <limits.h>
9898 # include <assert.h>
9901 #undef glClampColorARB
9903 /* Override any GCC internal prototype to avoid an error.
9904 Use char because int might match the return type of a GCC
9905 builtin and then its argument prototype would still apply. */
9909 char glClampColorARB ();
9910 /* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
9920 return glClampColorARB ();
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (ac_try="$ac_link"
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9932 $as_echo "$ac_try_echo") >&5
9933 (eval "$ac_link") 2>conftest.er1
9935 grep -v '^ *+' conftest.er1 >conftest.err
9937 cat conftest.err >&5
9938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } && {
9940 test -z "$ac_c_werror_flag" ||
9941 test ! -s conftest.err
9942 } && test -s conftest$ac_exeext && {
9943 test "$cross_compiling" = yes ||
9944 $as_test_x conftest$ac_exeext
9946 ac_cv_func_glClampColorARB=yes
9948 $as_echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_cv_func_glClampColorARB=no
9954 rm -rf conftest.dSYM
9955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9956 conftest$ac_exeext conftest.$ac_ext
9958 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
9959 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
9960 if test $ac_cv_func_glClampColorARB = yes; then
9962 cat >>confdefs.h <<\_ACEOF
9963 #define HAVE_OPENGL_CLAMP_COLOR 1
9971 if test "x$enable_translator" != "xno"; then
9973 i386|i486|i586|i686|x86_64)
9974 SH4_TRANSLATOR="x86"
9976 cat >>confdefs.h <<_ACEOF
9977 #define SH4_TRANSLATOR TARGET_X86
9984 if test "$SH4_TRANSLATOR" = "x86"; then
9986 BUILD_SH4X86_FALSE='#'
9988 BUILD_SH4X86_TRUE='#'
9993 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9994 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
9995 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
9996 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9997 $as_echo_n "(cached) " >&6
9999 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10000 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10002 # Is the header compilable?
10003 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
10004 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
10005 cat >conftest.$ac_ext <<_ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 $ac_includes_default
10012 #include <CoreAudio/CoreAudio.h>
10014 rm -f conftest.$ac_objext
10015 if { (ac_try="$ac_compile"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10021 $as_echo "$ac_try_echo") >&5
10022 (eval "$ac_compile") 2>conftest.er1
10024 grep -v '^ *+' conftest.er1 >conftest.err
10026 cat conftest.err >&5
10027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } && {
10029 test -z "$ac_c_werror_flag" ||
10030 test ! -s conftest.err
10031 } && test -s conftest.$ac_objext; then
10032 ac_header_compiler=yes
10034 $as_echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10037 ac_header_compiler=no
10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10041 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10042 $as_echo "$ac_header_compiler" >&6; }
10044 # Is the header present?
10045 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
10046 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
10047 cat >conftest.$ac_ext <<_ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h. */
10053 #include <CoreAudio/CoreAudio.h>
10055 if { (ac_try="$ac_cpp conftest.$ac_ext"
10056 case "(($ac_try" in
10057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058 *) ac_try_echo=$ac_try;;
10060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10061 $as_echo "$ac_try_echo") >&5
10062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10064 grep -v '^ *+' conftest.er1 >conftest.err
10066 cat conftest.err >&5
10067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } >/dev/null && {
10069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10070 test ! -s conftest.err
10072 ac_header_preproc=yes
10074 $as_echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10077 ac_header_preproc=no
10080 rm -f conftest.err conftest.$ac_ext
10081 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10082 $as_echo "$ac_header_preproc" >&6; }
10084 # So? What about this header?
10085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10087 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10088 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10089 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
10090 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
10091 ac_header_preproc=yes
10094 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
10095 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
10096 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
10097 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
10098 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
10099 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
10100 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
10101 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10102 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
10103 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
10104 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
10105 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
10109 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10110 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
10111 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10112 $as_echo_n "(cached) " >&6
10114 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
10116 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10117 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10120 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
10122 HAVE_CORE_AUDIO=yes
10123 LIBS="$LIBS -framework CoreAudio"
10124 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
10126 cat >>confdefs.h <<\_ACEOF
10127 #define HAVE_CORE_AUDIO 1
10137 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
10139 AUDIO_OSX_FALSE='#'
10146 if test "x$with_sdl" != "xno"; then
10149 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
10150 $as_echo_n "checking for SDL... " >&6; }
10152 if test -n "$SDL_CFLAGS"; then
10153 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
10154 elif test -n "$PKG_CONFIG"; then
10155 if test -n "$PKG_CONFIG" && \
10156 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10157 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; then
10161 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
10168 if test -n "$SDL_LIBS"; then
10169 pkg_cv_SDL_LIBS="$SDL_LIBS"
10170 elif test -n "$PKG_CONFIG"; then
10171 if test -n "$PKG_CONFIG" && \
10172 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10173 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; then
10177 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
10187 if test $pkg_failed = yes; then
10189 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10190 _pkg_short_errors_supported=yes
10192 _pkg_short_errors_supported=no
10194 if test $_pkg_short_errors_supported = yes; then
10195 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
10197 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
10199 # Put the nasty error message in config.log where it belongs
10200 echo "$SDL_PKG_ERRORS" >&5
10202 { $as_echo "$as_me:$LINENO: result: no" >&5
10203 $as_echo "no" >&6; }
10205 if test "x$with_sdl" = "xyes"; then
10206 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10207 See \`config.log' for more details." >&5
10208 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10209 See \`config.log' for more details." >&2;}
10210 { (exit 1); exit 1; }; }
10213 elif test $pkg_failed = untried; then
10215 if test "x$with_sdl" = "xyes"; then
10216 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10217 See \`config.log' for more details." >&5
10218 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10219 See \`config.log' for more details." >&2;}
10220 { (exit 1); exit 1; }; }
10224 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
10225 SDL_LIBS=$pkg_cv_SDL_LIBS
10226 { $as_echo "$as_me:$LINENO: result: yes" >&5
10227 $as_echo "yes" >&6; }
10230 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
10232 cat >>confdefs.h <<\_ACEOF
10241 if test "$HAVE_SDL" = 'yes' ; then
10243 AUDIO_SDL_FALSE='#'
10250 if test "x$with_pulse" != "xno"; then
10253 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
10254 $as_echo_n "checking for PULSE... " >&6; }
10256 if test -n "$PULSE_CFLAGS"; then
10257 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
10258 elif test -n "$PKG_CONFIG"; then
10259 if test -n "$PKG_CONFIG" && \
10260 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10261 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; then
10265 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
10272 if test -n "$PULSE_LIBS"; then
10273 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
10274 elif test -n "$PKG_CONFIG"; then
10275 if test -n "$PKG_CONFIG" && \
10276 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10277 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; then
10281 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
10291 if test $pkg_failed = yes; then
10293 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10294 _pkg_short_errors_supported=yes
10296 _pkg_short_errors_supported=no
10298 if test $_pkg_short_errors_supported = yes; then
10299 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
10301 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
10303 # Put the nasty error message in config.log where it belongs
10304 echo "$PULSE_PKG_ERRORS" >&5
10306 { $as_echo "$as_me:$LINENO: result: no" >&5
10307 $as_echo "no" >&6; }
10309 if test "x$with_pulse" = "xyes"; then
10310 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10311 See \`config.log' for more details." >&5
10312 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10313 See \`config.log' for more details." >&2;}
10314 { (exit 1); exit 1; }; }
10317 elif test $pkg_failed = untried; then
10319 if test "x$with_pulse" = "xyes"; then
10320 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10321 See \`config.log' for more details." >&5
10322 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10323 See \`config.log' for more details." >&2;}
10324 { (exit 1); exit 1; }; }
10328 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
10329 PULSE_LIBS=$pkg_cv_PULSE_LIBS
10330 { $as_echo "$as_me:$LINENO: result: yes" >&5
10331 $as_echo "yes" >&6; }
10334 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
10336 cat >>confdefs.h <<\_ACEOF
10337 #define HAVE_PULSE 1
10345 if test "$HAVE_PULSE" = 'yes' ; then
10347 AUDIO_PULSE_FALSE='#'
10349 AUDIO_PULSE_TRUE='#'
10354 if test "x$with_esd" != "xno"; then
10357 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
10358 $as_echo_n "checking for ESOUND... " >&6; }
10360 if test -n "$ESOUND_CFLAGS"; then
10361 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
10362 elif test -n "$PKG_CONFIG"; then
10363 if test -n "$PKG_CONFIG" && \
10364 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10365 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; then
10369 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
10376 if test -n "$ESOUND_LIBS"; then
10377 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
10378 elif test -n "$PKG_CONFIG"; then
10379 if test -n "$PKG_CONFIG" && \
10380 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10381 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; then
10385 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
10395 if test $pkg_failed = yes; then
10397 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10398 _pkg_short_errors_supported=yes
10400 _pkg_short_errors_supported=no
10402 if test $_pkg_short_errors_supported = yes; then
10403 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
10405 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
10407 # Put the nasty error message in config.log where it belongs
10408 echo "$ESOUND_PKG_ERRORS" >&5
10410 { $as_echo "$as_me:$LINENO: result: no" >&5
10411 $as_echo "no" >&6; }
10413 if test "x$with_esd" = "xyes"; then
10414 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10415 See \`config.log' for more details." >&5
10416 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10417 See \`config.log' for more details." >&2;}
10418 { (exit 1); exit 1; }; }
10421 elif test $pkg_failed = untried; then
10423 if test "x$with_esd" = "xyes"; then
10424 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10425 See \`config.log' for more details." >&5
10426 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10427 See \`config.log' for more details." >&2;}
10428 { (exit 1); exit 1; }; }
10432 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
10433 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
10434 { $as_echo "$as_me:$LINENO: result: yes" >&5
10435 $as_echo "yes" >&6; }
10438 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
10440 cat >>confdefs.h <<\_ACEOF
10441 #define HAVE_ESOUND 1
10449 if test "$HAVE_ESOUND" = 'yes' ; then
10451 AUDIO_ESOUND_FALSE='#'
10453 AUDIO_ESOUND_TRUE='#'
10454 AUDIO_ESOUND_FALSE=
10460 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
10461 $as_echo_n "checking for ALSA... " >&6; }
10463 if test -n "$ALSA_CFLAGS"; then
10464 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
10465 elif test -n "$PKG_CONFIG"; then
10466 if test -n "$PKG_CONFIG" && \
10467 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10468 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; then
10472 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
10479 if test -n "$ALSA_LIBS"; then
10480 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
10481 elif test -n "$PKG_CONFIG"; then
10482 if test -n "$PKG_CONFIG" && \
10483 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10484 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; then
10488 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
10498 if test $pkg_failed = yes; then
10500 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10501 _pkg_short_errors_supported=yes
10503 _pkg_short_errors_supported=no
10505 if test $_pkg_short_errors_supported = yes; then
10506 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
10508 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
10510 # Put the nasty error message in config.log where it belongs
10511 echo "$ALSA_PKG_ERRORS" >&5
10513 { $as_echo "$as_me:$LINENO: result: no" >&5
10514 $as_echo "no" >&6; }
10516 elif test $pkg_failed = untried; then
10519 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
10520 ALSA_LIBS=$pkg_cv_ALSA_LIBS
10521 { $as_echo "$as_me:$LINENO: result: yes" >&5
10522 $as_echo "yes" >&6; }
10525 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
10527 cat >>confdefs.h <<\_ACEOF
10528 #define HAVE_ALSA 1
10534 if test "$HAVE_ALSA" = 'yes' ; then
10536 AUDIO_ALSA_FALSE='#'
10538 AUDIO_ALSA_TRUE='#'
10544 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10545 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10546 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10547 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10548 $as_echo_n "(cached) " >&6
10550 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10551 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10553 # Is the header compilable?
10554 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
10555 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
10556 cat >conftest.$ac_ext <<_ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 $ac_includes_default
10563 #include <linux/cdrom.h>
10565 rm -f conftest.$ac_objext
10566 if { (ac_try="$ac_compile"
10567 case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10572 $as_echo "$ac_try_echo") >&5
10573 (eval "$ac_compile") 2>conftest.er1
10575 grep -v '^ *+' conftest.er1 >conftest.err
10577 cat conftest.err >&5
10578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && {
10580 test -z "$ac_c_werror_flag" ||
10581 test ! -s conftest.err
10582 } && test -s conftest.$ac_objext; then
10583 ac_header_compiler=yes
10585 $as_echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10588 ac_header_compiler=no
10591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10592 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10593 $as_echo "$ac_header_compiler" >&6; }
10595 # Is the header present?
10596 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
10597 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
10598 cat >conftest.$ac_ext <<_ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 #include <linux/cdrom.h>
10606 if { (ac_try="$ac_cpp conftest.$ac_ext"
10607 case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10612 $as_echo "$ac_try_echo") >&5
10613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10615 grep -v '^ *+' conftest.er1 >conftest.err
10617 cat conftest.err >&5
10618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } >/dev/null && {
10620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10623 ac_header_preproc=yes
10625 $as_echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10628 ac_header_preproc=no
10631 rm -f conftest.err conftest.$ac_ext
10632 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10633 $as_echo "$ac_header_preproc" >&6; }
10635 # So? What about this header?
10636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10638 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
10639 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10640 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
10641 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
10642 ac_header_preproc=yes
10645 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
10646 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
10647 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
10648 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
10649 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
10650 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
10651 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
10652 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
10653 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
10654 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
10655 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
10656 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
10660 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10661 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10662 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10663 $as_echo_n "(cached) " >&6
10665 ac_cv_header_linux_cdrom_h=$ac_header_preproc
10667 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10668 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10671 if test $ac_cv_header_linux_cdrom_h = yes; then
10674 { $as_echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
10675 $as_echo_n "checking C99 compliant kernel headers... " >&6; }
10676 old_CFLAGS="$CFLAGS"
10677 CFLAGS="$CFLAGS $STDCFLAG"
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 #include <linux/cdrom.h>
10693 rm -f conftest.$ac_objext
10694 if { (ac_try="$ac_compile"
10695 case "(($ac_try" in
10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697 *) ac_try_echo=$ac_try;;
10699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10700 $as_echo "$ac_try_echo") >&5
10701 (eval "$ac_compile") 2>conftest.er1
10703 grep -v '^ *+' conftest.er1 >conftest.err
10705 cat conftest.err >&5
10706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } && {
10708 test -z "$ac_c_werror_flag" ||
10709 test ! -s conftest.err
10710 } && test -s conftest.$ac_objext; then
10711 { $as_echo "$as_me:$LINENO: result: Yes" >&5
10712 $as_echo "Yes" >&6; }
10714 $as_echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10718 { $as_echo "$as_me:$LINENO: result: No" >&5
10719 $as_echo "No" >&6; }
10720 STDCFLAG="-std=gnu99"
10723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10724 CFLAGS="$old_CFLAGS"
10731 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10732 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10733 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
10734 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10735 $as_echo_n "(cached) " >&6
10737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10738 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10740 # Is the header compilable?
10741 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
10742 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
10743 cat >conftest.$ac_ext <<_ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10749 $ac_includes_default
10750 #include <IOKit/IOKitLib.h>
10752 rm -f conftest.$ac_objext
10753 if { (ac_try="$ac_compile"
10754 case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10759 $as_echo "$ac_try_echo") >&5
10760 (eval "$ac_compile") 2>conftest.er1
10762 grep -v '^ *+' conftest.er1 >conftest.err
10764 cat conftest.err >&5
10765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } && {
10767 test -z "$ac_c_werror_flag" ||
10768 test ! -s conftest.err
10769 } && test -s conftest.$ac_objext; then
10770 ac_header_compiler=yes
10772 $as_echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_header_compiler=no
10778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10779 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10780 $as_echo "$ac_header_compiler" >&6; }
10782 # Is the header present?
10783 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
10784 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
10785 cat >conftest.$ac_ext <<_ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10791 #include <IOKit/IOKitLib.h>
10793 if { (ac_try="$ac_cpp conftest.$ac_ext"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10799 $as_echo "$ac_try_echo") >&5
10800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10802 grep -v '^ *+' conftest.er1 >conftest.err
10804 cat conftest.err >&5
10805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } >/dev/null && {
10807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10810 ac_header_preproc=yes
10812 $as_echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ac_header_preproc=no
10818 rm -f conftest.err conftest.$ac_ext
10819 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10820 $as_echo "$ac_header_preproc" >&6; }
10822 # So? What about this header?
10823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10825 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10826 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10827 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
10828 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
10829 ac_header_preproc=yes
10832 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
10833 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
10834 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
10835 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
10836 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
10837 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
10838 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
10839 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10840 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
10841 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
10842 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
10843 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
10847 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10848 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
10849 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10850 $as_echo_n "(cached) " >&6
10852 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
10854 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10855 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10858 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
10861 LIBS="$LIBS -framework IOKit"
10869 if test "x$CDROM_DRIVER" = "xlinux"; then
10871 CDROM_LINUX_FALSE='#'
10873 CDROM_LINUX_TRUE='#'
10879 if test "x$CDROM_DRIVER" = "xosx"; then
10881 CDROM_OSX_FALSE='#'
10889 if test "x$CDROM_DRIVER" = "x"; then
10891 CDROM_NONE_FALSE='#'
10893 CDROM_NONE_TRUE='#'
10898 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10899 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
10900 $as_echo_n "checking for linux/joystick.h... " >&6; }
10901 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10902 $as_echo_n "(cached) " >&6
10904 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
10905 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
10907 # Is the header compilable?
10908 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
10909 $as_echo_n "checking linux/joystick.h usability... " >&6; }
10910 cat >conftest.$ac_ext <<_ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10916 $ac_includes_default
10917 #include <linux/joystick.h>
10919 rm -f conftest.$ac_objext
10920 if { (ac_try="$ac_compile"
10921 case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10926 $as_echo "$ac_try_echo") >&5
10927 (eval "$ac_compile") 2>conftest.er1
10929 grep -v '^ *+' conftest.er1 >conftest.err
10931 cat conftest.err >&5
10932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest.$ac_objext; then
10937 ac_header_compiler=yes
10939 $as_echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 ac_header_compiler=no
10945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10946 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10947 $as_echo "$ac_header_compiler" >&6; }
10949 # Is the header present?
10950 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
10951 $as_echo_n "checking linux/joystick.h presence... " >&6; }
10952 cat >conftest.$ac_ext <<_ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958 #include <linux/joystick.h>
10960 if { (ac_try="$ac_cpp conftest.$ac_ext"
10961 case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10966 $as_echo "$ac_try_echo") >&5
10967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10969 grep -v '^ *+' conftest.er1 >conftest.err
10971 cat conftest.err >&5
10972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } >/dev/null && {
10974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10975 test ! -s conftest.err
10977 ac_header_preproc=yes
10979 $as_echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10982 ac_header_preproc=no
10985 rm -f conftest.err conftest.$ac_ext
10986 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10987 $as_echo "$ac_header_preproc" >&6; }
10989 # So? What about this header?
10990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10992 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
10993 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10994 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
10995 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
10996 ac_header_preproc=yes
10999 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
11000 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
11001 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
11002 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
11003 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
11004 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
11005 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
11006 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
11007 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
11008 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
11009 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
11010 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
11014 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11015 $as_echo_n "checking for linux/joystick.h... " >&6; }
11016 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11017 $as_echo_n "(cached) " >&6
11019 ac_cv_header_linux_joystick_h=$ac_header_preproc
11021 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11022 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
11025 if test $ac_cv_header_linux_joystick_h = yes; then
11027 HAVE_LINUX_JOYSTICK_H=yes
11029 cat >>confdefs.h <<\_ACEOF
11030 #define HAVE_LINUX_JOYSTICK 1
11034 echo "Linux Joystick support not found, building without it."
11040 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
11042 JOY_LINUX_FALSE='#'
11049 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
11050 set dummy sh-elf-gcc; ac_word=$2
11051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11052 $as_echo_n "checking for $ac_word... " >&6; }
11053 if test "${ac_cv_path_SHCC+set}" = set; then
11054 $as_echo_n "(cached) " >&6
11058 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
11061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062 for as_dir in $PATH
11065 test -z "$as_dir" && as_dir=.
11066 for ac_exec_ext in '' $ac_executable_extensions; do
11067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11068 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
11069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 SHCC=$ac_cv_path_SHCC
11080 if test -n "$SHCC"; then
11081 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
11082 $as_echo "$SHCC" >&6; }
11084 { $as_echo "$as_me:$LINENO: result: no" >&5
11085 $as_echo "no" >&6; }
11089 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
11090 set dummy sh-elf-ld; ac_word=$2
11091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11092 $as_echo_n "checking for $ac_word... " >&6; }
11093 if test "${ac_cv_path_SHLD+set}" = set; then
11094 $as_echo_n "(cached) " >&6
11098 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
11101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102 for as_dir in $PATH
11105 test -z "$as_dir" && as_dir=.
11106 for ac_exec_ext in '' $ac_executable_extensions; do
11107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11108 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
11109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 SHLD=$ac_cv_path_SHLD
11120 if test -n "$SHLD"; then
11121 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
11122 $as_echo "$SHLD" >&6; }
11124 { $as_echo "$as_me:$LINENO: result: no" >&5
11125 $as_echo "no" >&6; }
11129 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
11130 set dummy sh-elf-objcopy; ac_word=$2
11131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11132 $as_echo_n "checking for $ac_word... " >&6; }
11133 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
11134 $as_echo_n "(cached) " >&6
11138 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11148 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11159 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
11160 if test -n "$SHOBJCOPY"; then
11161 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
11162 $as_echo "$SHOBJCOPY" >&6; }
11164 { $as_echo "$as_me:$LINENO: result: no" >&5
11165 $as_echo "no" >&6; }
11169 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
11170 set dummy arm-elf-gcc; ac_word=$2
11171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11172 $as_echo_n "checking for $ac_word... " >&6; }
11173 if test "${ac_cv_path_ARMCC+set}" = set; then
11174 $as_echo_n "(cached) " >&6
11178 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in $PATH
11185 test -z "$as_dir" && as_dir=.
11186 for ac_exec_ext in '' $ac_executable_extensions; do
11187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11188 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
11189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 ARMCC=$ac_cv_path_ARMCC
11200 if test -n "$ARMCC"; then
11201 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
11202 $as_echo "$ARMCC" >&6; }
11204 { $as_echo "$as_me:$LINENO: result: no" >&5
11205 $as_echo "no" >&6; }
11209 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
11210 set dummy arm-elf-ld; ac_word=$2
11211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11212 $as_echo_n "checking for $ac_word... " >&6; }
11213 if test "${ac_cv_path_ARMLD+set}" = set; then
11214 $as_echo_n "(cached) " >&6
11218 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11228 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
11229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11239 ARMLD=$ac_cv_path_ARMLD
11240 if test -n "$ARMLD"; then
11241 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
11242 $as_echo "$ARMLD" >&6; }
11244 { $as_echo "$as_me:$LINENO: result: no" >&5
11245 $as_echo "no" >&6; }
11249 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
11250 set dummy arm-elf-objcopy; ac_word=$2
11251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
11254 $as_echo_n "(cached) " >&6
11256 case $ARMOBJCOPY in
11258 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
11261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262 for as_dir in $PATH
11265 test -z "$as_dir" && as_dir=.
11266 for ac_exec_ext in '' $ac_executable_extensions; do
11267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11268 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11269 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
11280 if test -n "$ARMOBJCOPY"; then
11281 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
11282 $as_echo "$ARMOBJCOPY" >&6; }
11284 { $as_echo "$as_me:$LINENO: result: no" >&5
11285 $as_echo "no" >&6; }
11290 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
11292 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
11296 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
11298 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
11304 if test "$BUILD_SH" = "yes"; then
11305 BUILD_SYSTEST_TRUE=
11306 BUILD_SYSTEST_FALSE='#'
11308 BUILD_SYSTEST_TRUE='#'
11309 BUILD_SYSTEST_FALSE=
11314 if test "$BUILD_ARM" = "yes"; then
11315 BUILD_ARMTEST_TRUE=
11316 BUILD_ARMTEST_FALSE='#'
11318 BUILD_ARMTEST_TRUE='#'
11319 BUILD_ARMTEST_FALSE=
11323 CFLAGS="$CFLAGS $STDCFLAG"
11325 GETTEXT_PACKAGE=lxdream
11328 cat >>confdefs.h <<_ACEOF
11329 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11333 ALL_LINGUAS="de es it pt_BR"
11336 for ac_header in locale.h
11338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11340 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11341 $as_echo_n "checking for $ac_header... " >&6; }
11342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11343 $as_echo_n "(cached) " >&6
11345 ac_res=`eval 'as_val=${'$as_ac_Header'}
11346 $as_echo "$as_val"'`
11347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11348 $as_echo "$ac_res" >&6; }
11350 # Is the header compilable?
11351 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11352 $as_echo_n "checking $ac_header usability... " >&6; }
11353 cat >conftest.$ac_ext <<_ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 $ac_includes_default
11360 #include <$ac_header>
11362 rm -f conftest.$ac_objext
11363 if { (ac_try="$ac_compile"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11369 $as_echo "$ac_try_echo") >&5
11370 (eval "$ac_compile") 2>conftest.er1
11372 grep -v '^ *+' conftest.er1 >conftest.err
11374 cat conftest.err >&5
11375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } && {
11377 test -z "$ac_c_werror_flag" ||
11378 test ! -s conftest.err
11379 } && test -s conftest.$ac_objext; then
11380 ac_header_compiler=yes
11382 $as_echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_header_compiler=no
11388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11389 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11390 $as_echo "$ac_header_compiler" >&6; }
11392 # Is the header present?
11393 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11394 $as_echo_n "checking $ac_header presence... " >&6; }
11395 cat >conftest.$ac_ext <<_ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11401 #include <$ac_header>
11403 if { (ac_try="$ac_cpp conftest.$ac_ext"
11404 case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11409 $as_echo "$ac_try_echo") >&5
11410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11412 grep -v '^ *+' conftest.er1 >conftest.err
11414 cat conftest.err >&5
11415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } >/dev/null && {
11417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11418 test ! -s conftest.err
11420 ac_header_preproc=yes
11422 $as_echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11425 ac_header_preproc=no
11428 rm -f conftest.err conftest.$ac_ext
11429 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11430 $as_echo "$ac_header_preproc" >&6; }
11432 # So? What about this header?
11433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11436 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11438 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11439 ac_header_preproc=yes
11442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11443 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11445 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11447 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11449 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11451 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11453 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11457 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11458 $as_echo_n "checking for $ac_header... " >&6; }
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460 $as_echo_n "(cached) " >&6
11462 eval "$as_ac_Header=\$ac_header_preproc"
11464 ac_res=`eval 'as_val=${'$as_ac_Header'}
11465 $as_echo "$as_val"'`
11466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11467 $as_echo "$ac_res" >&6; }
11470 if test `eval 'as_val=${'$as_ac_Header'}
11471 $as_echo "$as_val"'` = yes; then
11472 cat >>confdefs.h <<_ACEOF
11473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11480 if test $ac_cv_header_locale_h = yes; then
11481 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11482 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11483 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11484 $as_echo_n "(cached) " >&6
11486 cat >conftest.$ac_ext <<_ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 #include <locale.h>
11501 rm -f conftest.$ac_objext conftest$ac_exeext
11502 if { (ac_try="$ac_link"
11503 case "(($ac_try" in
11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11508 $as_echo "$ac_try_echo") >&5
11509 (eval "$ac_link") 2>conftest.er1
11511 grep -v '^ *+' conftest.er1 >conftest.err
11513 cat conftest.err >&5
11514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } && {
11516 test -z "$ac_c_werror_flag" ||
11517 test ! -s conftest.err
11518 } && test -s conftest$ac_exeext && {
11519 test "$cross_compiling" = yes ||
11520 $as_test_x conftest$ac_exeext
11522 am_cv_val_LC_MESSAGES=yes
11524 $as_echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11527 am_cv_val_LC_MESSAGES=no
11530 rm -rf conftest.dSYM
11531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11532 conftest$ac_exeext conftest.$ac_ext
11534 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11535 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11536 if test $am_cv_val_LC_MESSAGES = yes; then
11538 cat >>confdefs.h <<\_ACEOF
11539 #define HAVE_LC_MESSAGES 1
11547 gt_cv_have_gettext=no
11553 if test "${ac_cv_header_libintl_h+set}" = set; then
11554 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
11555 $as_echo_n "checking for libintl.h... " >&6; }
11556 if test "${ac_cv_header_libintl_h+set}" = set; then
11557 $as_echo_n "(cached) " >&6
11559 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11560 $as_echo "$ac_cv_header_libintl_h" >&6; }
11562 # Is the header compilable?
11563 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
11564 $as_echo_n "checking libintl.h usability... " >&6; }
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 $ac_includes_default
11572 #include <libintl.h>
11574 rm -f conftest.$ac_objext
11575 if { (ac_try="$ac_compile"
11576 case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11581 $as_echo "$ac_try_echo") >&5
11582 (eval "$ac_compile") 2>conftest.er1
11584 grep -v '^ *+' conftest.er1 >conftest.err
11586 cat conftest.err >&5
11587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } && {
11589 test -z "$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11591 } && test -s conftest.$ac_objext; then
11592 ac_header_compiler=yes
11594 $as_echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11597 ac_header_compiler=no
11600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11601 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11602 $as_echo "$ac_header_compiler" >&6; }
11604 # Is the header present?
11605 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
11606 $as_echo_n "checking libintl.h presence... " >&6; }
11607 cat >conftest.$ac_ext <<_ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 #include <libintl.h>
11615 if { (ac_try="$ac_cpp conftest.$ac_ext"
11616 case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11621 $as_echo "$ac_try_echo") >&5
11622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11624 grep -v '^ *+' conftest.er1 >conftest.err
11626 cat conftest.err >&5
11627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } >/dev/null && {
11629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11632 ac_header_preproc=yes
11634 $as_echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_header_preproc=no
11640 rm -f conftest.err conftest.$ac_ext
11641 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11642 $as_echo "$ac_header_preproc" >&6; }
11644 # So? What about this header?
11645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11647 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11648 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11649 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
11650 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
11651 ac_header_preproc=yes
11654 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
11655 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
11656 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
11657 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
11658 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
11659 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
11660 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
11661 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11662 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
11663 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
11664 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
11665 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
11669 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
11670 $as_echo_n "checking for libintl.h... " >&6; }
11671 if test "${ac_cv_header_libintl_h+set}" = set; then
11672 $as_echo_n "(cached) " >&6
11674 ac_cv_header_libintl_h=$ac_header_preproc
11676 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11677 $as_echo "$ac_cv_header_libintl_h" >&6; }
11680 if test $ac_cv_header_libintl_h = yes; then
11681 gt_cv_func_dgettext_libintl="no"
11682 libintl_extra_libs=""
11685 # First check in libc
11687 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
11688 $as_echo_n "checking for ngettext in libc... " >&6; }
11689 if test "${gt_cv_func_ngettext_libc+set}" = set; then
11690 $as_echo_n "(cached) " >&6
11692 cat >conftest.$ac_ext <<_ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11699 #include <libintl.h>
11704 return !ngettext ("","", 1)
11709 rm -f conftest.$ac_objext conftest$ac_exeext
11710 if { (ac_try="$ac_link"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11716 $as_echo "$ac_try_echo") >&5
11717 (eval "$ac_link") 2>conftest.er1
11719 grep -v '^ *+' conftest.er1 >conftest.err
11721 cat conftest.err >&5
11722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } && {
11724 test -z "$ac_c_werror_flag" ||
11725 test ! -s conftest.err
11726 } && test -s conftest$ac_exeext && {
11727 test "$cross_compiling" = yes ||
11728 $as_test_x conftest$ac_exeext
11730 gt_cv_func_ngettext_libc=yes
11732 $as_echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11735 gt_cv_func_ngettext_libc=no
11738 rm -rf conftest.dSYM
11739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11740 conftest$ac_exeext conftest.$ac_ext
11743 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
11744 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
11746 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11747 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
11748 $as_echo_n "checking for dgettext in libc... " >&6; }
11749 if test "${gt_cv_func_dgettext_libc+set}" = set; then
11750 $as_echo_n "(cached) " >&6
11752 cat >conftest.$ac_ext <<_ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11759 #include <libintl.h>
11764 return !dgettext ("","")
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (ac_try="$ac_link"
11771 case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11776 $as_echo "$ac_try_echo") >&5
11777 (eval "$ac_link") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest$ac_exeext && {
11787 test "$cross_compiling" = yes ||
11788 $as_test_x conftest$ac_exeext
11790 gt_cv_func_dgettext_libc=yes
11792 $as_echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 gt_cv_func_dgettext_libc=no
11798 rm -rf conftest.dSYM
11799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11800 conftest$ac_exeext conftest.$ac_ext
11803 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
11804 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
11807 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11809 for ac_func in bind_textdomain_codeset
11811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11812 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11813 $as_echo_n "checking for $ac_func... " >&6; }
11814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11815 $as_echo_n "(cached) " >&6
11817 cat >conftest.$ac_ext <<_ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11825 #define $ac_func innocuous_$ac_func
11827 /* System header to define __stub macros and hopefully few prototypes,
11828 which can conflict with char $ac_func (); below.
11829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11830 <limits.h> exists even on freestanding compilers. */
11833 # include <limits.h>
11835 # include <assert.h>
11840 /* Override any GCC internal prototype to avoid an error.
11841 Use char because int might match the return type of a GCC
11842 builtin and then its argument prototype would still apply. */
11847 /* The GNU C library defines this for functions which it implements
11848 to always fail with ENOSYS. Some functions are actually named
11849 something starting with __ and the normal name is an alias. */
11850 #if defined __stub_$ac_func || defined __stub___$ac_func
11857 return $ac_func ();
11862 rm -f conftest.$ac_objext conftest$ac_exeext
11863 if { (ac_try="$ac_link"
11864 case "(($ac_try" in
11865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11869 $as_echo "$ac_try_echo") >&5
11870 (eval "$ac_link") 2>conftest.er1
11872 grep -v '^ *+' conftest.er1 >conftest.err
11874 cat conftest.err >&5
11875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } && {
11877 test -z "$ac_c_werror_flag" ||
11878 test ! -s conftest.err
11879 } && test -s conftest$ac_exeext && {
11880 test "$cross_compiling" = yes ||
11881 $as_test_x conftest$ac_exeext
11883 eval "$as_ac_var=yes"
11885 $as_echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11888 eval "$as_ac_var=no"
11891 rm -rf conftest.dSYM
11892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11893 conftest$ac_exeext conftest.$ac_ext
11895 ac_res=`eval 'as_val=${'$as_ac_var'}
11896 $as_echo "$as_val"'`
11897 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11898 $as_echo "$ac_res" >&6; }
11899 if test `eval 'as_val=${'$as_ac_var'}
11900 $as_echo "$as_val"'` = yes; then
11901 cat >>confdefs.h <<_ACEOF
11902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11911 # If we don't have everything we want, check in libintl
11913 if test "$gt_cv_func_dgettext_libc" != "yes" \
11914 || test "$gt_cv_func_ngettext_libc" != "yes" \
11915 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
11917 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
11918 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
11919 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
11920 $as_echo_n "(cached) " >&6
11922 ac_check_lib_save_LIBS=$LIBS
11923 LIBS="-lintl $LIBS"
11924 cat >conftest.$ac_ext <<_ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11937 char bindtextdomain ();
11941 return bindtextdomain ();
11946 rm -f conftest.$ac_objext conftest$ac_exeext
11947 if { (ac_try="$ac_link"
11948 case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11953 $as_echo "$ac_try_echo") >&5
11954 (eval "$ac_link") 2>conftest.er1
11956 grep -v '^ *+' conftest.er1 >conftest.err
11958 cat conftest.err >&5
11959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest$ac_exeext && {
11964 test "$cross_compiling" = yes ||
11965 $as_test_x conftest$ac_exeext
11967 ac_cv_lib_intl_bindtextdomain=yes
11969 $as_echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 ac_cv_lib_intl_bindtextdomain=no
11975 rm -rf conftest.dSYM
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11980 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
11981 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
11982 if test $ac_cv_lib_intl_bindtextdomain = yes; then
11983 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
11984 $as_echo_n "checking for ngettext in -lintl... " >&6; }
11985 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
11986 $as_echo_n "(cached) " >&6
11988 ac_check_lib_save_LIBS=$LIBS
11989 LIBS="-lintl $LIBS"
11990 cat >conftest.$ac_ext <<_ACEOF
11993 cat confdefs.h >>conftest.$ac_ext
11994 cat >>conftest.$ac_ext <<_ACEOF
11995 /* end confdefs.h. */
11997 /* Override any GCC internal prototype to avoid an error.
11998 Use char because int might match the return type of a GCC
11999 builtin and then its argument prototype would still apply. */
12007 return ngettext ();
12012 rm -f conftest.$ac_objext conftest$ac_exeext
12013 if { (ac_try="$ac_link"
12014 case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12019 $as_echo "$ac_try_echo") >&5
12020 (eval "$ac_link") 2>conftest.er1
12022 grep -v '^ *+' conftest.er1 >conftest.err
12024 cat conftest.err >&5
12025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } && {
12027 test -z "$ac_c_werror_flag" ||
12028 test ! -s conftest.err
12029 } && test -s conftest$ac_exeext && {
12030 test "$cross_compiling" = yes ||
12031 $as_test_x conftest$ac_exeext
12033 ac_cv_lib_intl_ngettext=yes
12035 $as_echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12038 ac_cv_lib_intl_ngettext=no
12041 rm -rf conftest.dSYM
12042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12043 conftest$ac_exeext conftest.$ac_ext
12044 LIBS=$ac_check_lib_save_LIBS
12046 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12047 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12048 if test $ac_cv_lib_intl_ngettext = yes; then
12049 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12050 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12051 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12052 $as_echo_n "(cached) " >&6
12054 ac_check_lib_save_LIBS=$LIBS
12055 LIBS="-lintl $LIBS"
12056 cat >conftest.$ac_ext <<_ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12073 return dgettext ();
12078 rm -f conftest.$ac_objext conftest$ac_exeext
12079 if { (ac_try="$ac_link"
12080 case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12085 $as_echo "$ac_try_echo") >&5
12086 (eval "$ac_link") 2>conftest.er1
12088 grep -v '^ *+' conftest.er1 >conftest.err
12090 cat conftest.err >&5
12091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } && {
12093 test -z "$ac_c_werror_flag" ||
12094 test ! -s conftest.err
12095 } && test -s conftest$ac_exeext && {
12096 test "$cross_compiling" = yes ||
12097 $as_test_x conftest$ac_exeext
12099 ac_cv_lib_intl_dgettext=yes
12101 $as_echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 ac_cv_lib_intl_dgettext=no
12107 rm -rf conftest.dSYM
12108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12109 conftest$ac_exeext conftest.$ac_ext
12110 LIBS=$ac_check_lib_save_LIBS
12112 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12113 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12114 if test $ac_cv_lib_intl_dgettext = yes; then
12115 gt_cv_func_dgettext_libintl=yes
12123 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
12124 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
12125 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
12126 { $as_echo "$as_me:$LINENO: result: " >&5
12128 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12129 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12130 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12131 $as_echo_n "(cached) " >&6
12133 ac_check_lib_save_LIBS=$LIBS
12134 LIBS="-lintl -liconv $LIBS"
12135 cat >conftest.$ac_ext <<_ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12152 return ngettext ();
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (ac_try="$ac_link"
12159 case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12164 $as_echo "$ac_try_echo") >&5
12165 (eval "$ac_link") 2>conftest.er1
12167 grep -v '^ *+' conftest.er1 >conftest.err
12169 cat conftest.err >&5
12170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest$ac_exeext && {
12175 test "$cross_compiling" = yes ||
12176 $as_test_x conftest$ac_exeext
12178 ac_cv_lib_intl_ngettext=yes
12180 $as_echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12183 ac_cv_lib_intl_ngettext=no
12186 rm -rf conftest.dSYM
12187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12188 conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12191 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12192 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12193 if test $ac_cv_lib_intl_ngettext = yes; then
12194 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
12195 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
12196 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
12197 $as_echo_n "(cached) " >&6
12199 ac_check_lib_save_LIBS=$LIBS
12200 LIBS="-lintl -liconv $LIBS"
12201 cat >conftest.$ac_ext <<_ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h. */
12208 /* Override any GCC internal prototype to avoid an error.
12209 Use char because int might match the return type of a GCC
12210 builtin and then its argument prototype would still apply. */
12218 return dcgettext ();
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (ac_try="$ac_link"
12225 case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12230 $as_echo "$ac_try_echo") >&5
12231 (eval "$ac_link") 2>conftest.er1
12233 grep -v '^ *+' conftest.er1 >conftest.err
12235 cat conftest.err >&5
12236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } && {
12238 test -z "$ac_c_werror_flag" ||
12239 test ! -s conftest.err
12240 } && test -s conftest$ac_exeext && {
12241 test "$cross_compiling" = yes ||
12242 $as_test_x conftest$ac_exeext
12244 ac_cv_lib_intl_dcgettext=yes
12246 $as_echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12249 ac_cv_lib_intl_dcgettext=no
12252 rm -rf conftest.dSYM
12253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12254 conftest$ac_exeext conftest.$ac_ext
12255 LIBS=$ac_check_lib_save_LIBS
12257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
12258 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
12259 if test $ac_cv_lib_intl_dcgettext = yes; then
12260 gt_cv_func_dgettext_libintl=yes
12261 libintl_extra_libs=-liconv
12273 # If we found libintl, then check in it for bind_textdomain_codeset();
12274 # we'll prefer libc if neither have bind_textdomain_codeset(),
12275 # and both have dgettext and ngettext
12277 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
12278 glib_save_LIBS="$LIBS"
12279 LIBS="$LIBS -lintl $libintl_extra_libs"
12280 unset ac_cv_func_bind_textdomain_codeset
12282 for ac_func in bind_textdomain_codeset
12284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12285 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12286 $as_echo_n "checking for $ac_func... " >&6; }
12287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12288 $as_echo_n "(cached) " >&6
12290 cat >conftest.$ac_ext <<_ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12298 #define $ac_func innocuous_$ac_func
12300 /* System header to define __stub macros and hopefully few prototypes,
12301 which can conflict with char $ac_func (); below.
12302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12303 <limits.h> exists even on freestanding compilers. */
12306 # include <limits.h>
12308 # include <assert.h>
12313 /* Override any GCC internal prototype to avoid an error.
12314 Use char because int might match the return type of a GCC
12315 builtin and then its argument prototype would still apply. */
12320 /* The GNU C library defines this for functions which it implements
12321 to always fail with ENOSYS. Some functions are actually named
12322 something starting with __ and the normal name is an alias. */
12323 #if defined __stub_$ac_func || defined __stub___$ac_func
12330 return $ac_func ();
12335 rm -f conftest.$ac_objext conftest$ac_exeext
12336 if { (ac_try="$ac_link"
12337 case "(($ac_try" in
12338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339 *) ac_try_echo=$ac_try;;
12341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12342 $as_echo "$ac_try_echo") >&5
12343 (eval "$ac_link") 2>conftest.er1
12345 grep -v '^ *+' conftest.er1 >conftest.err
12347 cat conftest.err >&5
12348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } && {
12350 test -z "$ac_c_werror_flag" ||
12351 test ! -s conftest.err
12352 } && test -s conftest$ac_exeext && {
12353 test "$cross_compiling" = yes ||
12354 $as_test_x conftest$ac_exeext
12356 eval "$as_ac_var=yes"
12358 $as_echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12361 eval "$as_ac_var=no"
12364 rm -rf conftest.dSYM
12365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12366 conftest$ac_exeext conftest.$ac_ext
12368 ac_res=`eval 'as_val=${'$as_ac_var'}
12369 $as_echo "$as_val"'`
12370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12371 $as_echo "$ac_res" >&6; }
12372 if test `eval 'as_val=${'$as_ac_var'}
12373 $as_echo "$as_val"'` = yes; then
12374 cat >>confdefs.h <<_ACEOF
12375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12381 LIBS="$glib_save_LIBS"
12383 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
12384 gt_cv_func_dgettext_libc=no
12386 if test "$gt_cv_func_dgettext_libc" = "yes" \
12387 && test "$gt_cv_func_ngettext_libc" = "yes"; then
12388 gt_cv_func_dgettext_libintl=no
12394 if test "$gt_cv_func_dgettext_libc" = "yes" \
12395 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
12396 gt_cv_have_gettext=yes
12399 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
12400 INTLLIBS="-lintl $libintl_extra_libs"
12403 if test "$gt_cv_have_gettext" = "yes"; then
12405 cat >>confdefs.h <<\_ACEOF
12406 #define HAVE_GETTEXT 1
12409 # Extract the first word of "msgfmt", so it can be a program name with args.
12410 set dummy msgfmt; ac_word=$2
12411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12412 $as_echo_n "checking for $ac_word... " >&6; }
12413 if test "${ac_cv_path_MSGFMT+set}" = set; then
12414 $as_echo_n "(cached) " >&6
12418 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12422 for ac_dir in $PATH; do
12423 test -z "$ac_dir" && ac_dir=.
12424 if test -f $ac_dir/$ac_word; then
12425 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12426 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12432 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
12436 MSGFMT="$ac_cv_path_MSGFMT"
12437 if test "$MSGFMT" != "no"; then
12438 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
12439 $as_echo "$MSGFMT" >&6; }
12441 { $as_echo "$as_me:$LINENO: result: no" >&5
12442 $as_echo "no" >&6; }
12444 if test "$MSGFMT" != "no"; then
12445 glib_save_LIBS="$LIBS"
12446 LIBS="$LIBS $INTLLIBS"
12448 for ac_func in dcgettext
12450 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12451 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12452 $as_echo_n "checking for $ac_func... " >&6; }
12453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12454 $as_echo_n "(cached) " >&6
12456 cat >conftest.$ac_ext <<_ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12464 #define $ac_func innocuous_$ac_func
12466 /* System header to define __stub macros and hopefully few prototypes,
12467 which can conflict with char $ac_func (); below.
12468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12469 <limits.h> exists even on freestanding compilers. */
12472 # include <limits.h>
12474 # include <assert.h>
12479 /* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12486 /* The GNU C library defines this for functions which it implements
12487 to always fail with ENOSYS. Some functions are actually named
12488 something starting with __ and the normal name is an alias. */
12489 #if defined __stub_$ac_func || defined __stub___$ac_func
12496 return $ac_func ();
12501 rm -f conftest.$ac_objext conftest$ac_exeext
12502 if { (ac_try="$ac_link"
12503 case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12508 $as_echo "$ac_try_echo") >&5
12509 (eval "$ac_link") 2>conftest.er1
12511 grep -v '^ *+' conftest.er1 >conftest.err
12513 cat conftest.err >&5
12514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } && {
12516 test -z "$ac_c_werror_flag" ||
12517 test ! -s conftest.err
12518 } && test -s conftest$ac_exeext && {
12519 test "$cross_compiling" = yes ||
12520 $as_test_x conftest$ac_exeext
12522 eval "$as_ac_var=yes"
12524 $as_echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12527 eval "$as_ac_var=no"
12530 rm -rf conftest.dSYM
12531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12532 conftest$ac_exeext conftest.$ac_ext
12534 ac_res=`eval 'as_val=${'$as_ac_var'}
12535 $as_echo "$as_val"'`
12536 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12537 $as_echo "$ac_res" >&6; }
12538 if test `eval 'as_val=${'$as_ac_var'}
12539 $as_echo "$as_val"'` = yes; then
12540 cat >>confdefs.h <<_ACEOF
12541 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12548 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
12549 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
12550 cat >conftest.foo <<_ACEOF
12554 "Content-Type: text/plain; charset=UTF-8\n"
12555 "Project-Id-Version: test 1.0\n"
12556 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
12557 "Last-Translator: test <foo@bar.xx>\n"
12558 "Language-Team: C <LL@li.org>\n"
12559 "MIME-Version: 1.0\n"
12560 "Content-Transfer-Encoding: 8bit\n"
12563 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
12564 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
12566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; then
12568 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
12569 $as_echo "yes" >&6; }
12570 else { $as_echo "$as_me:$LINENO: result: no" >&5
12571 $as_echo "no" >&6; }
12572 echo "$as_me: failed input was:" >&5
12573 sed 's/^/| /' conftest.foo >&5
12576 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12577 set dummy gmsgfmt; ac_word=$2
12578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12579 $as_echo_n "checking for $ac_word... " >&6; }
12580 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12581 $as_echo_n "(cached) " >&6
12585 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $PATH
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
12594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12595 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12603 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12607 GMSGFMT=$ac_cv_path_GMSGFMT
12608 if test -n "$GMSGFMT"; then
12609 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12610 $as_echo "$GMSGFMT" >&6; }
12612 { $as_echo "$as_me:$LINENO: result: no" >&5
12613 $as_echo "no" >&6; }
12617 # Extract the first word of "xgettext", so it can be a program name with args.
12618 set dummy xgettext; ac_word=$2
12619 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12620 $as_echo_n "checking for $ac_word... " >&6; }
12621 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12622 $as_echo_n "(cached) " >&6
12624 case "$XGETTEXT" in
12626 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12630 for ac_dir in $PATH; do
12631 test -z "$ac_dir" && ac_dir=.
12632 if test -f $ac_dir/$ac_word; then
12633 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
12634 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12640 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12644 XGETTEXT="$ac_cv_path_XGETTEXT"
12645 if test "$XGETTEXT" != ":"; then
12646 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12647 $as_echo "$XGETTEXT" >&6; }
12649 { $as_echo "$as_me:$LINENO: result: no" >&5
12650 $as_echo "no" >&6; }
12653 cat >conftest.$ac_ext <<_ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12663 extern int _nl_msg_cat_cntr;
12664 return _nl_msg_cat_cntr
12669 rm -f conftest.$ac_objext conftest$ac_exeext
12670 if { (ac_try="$ac_link"
12671 case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12676 $as_echo "$ac_try_echo") >&5
12677 (eval "$ac_link") 2>conftest.er1
12679 grep -v '^ *+' conftest.er1 >conftest.err
12681 cat conftest.err >&5
12682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } && {
12684 test -z "$ac_c_werror_flag" ||
12685 test ! -s conftest.err
12686 } && test -s conftest$ac_exeext && {
12687 test "$cross_compiling" = yes ||
12688 $as_test_x conftest$ac_exeext
12693 $as_echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12698 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
12699 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
12700 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
12701 $as_echo_n "(cached) " >&6
12703 cat >conftest.$ac_ext <<_ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
12710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12711 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
12713 /* System header to define __stub macros and hopefully few prototypes,
12714 which can conflict with char bind_textdomain_codeset (); below.
12715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12716 <limits.h> exists even on freestanding compilers. */
12719 # include <limits.h>
12721 # include <assert.h>
12724 #undef bind_textdomain_codeset
12726 /* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12732 char bind_textdomain_codeset ();
12733 /* The GNU C library defines this for functions which it implements
12734 to always fail with ENOSYS. Some functions are actually named
12735 something starting with __ and the normal name is an alias. */
12736 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
12743 return bind_textdomain_codeset ();
12748 rm -f conftest.$ac_objext conftest$ac_exeext
12749 if { (ac_try="$ac_link"
12750 case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12755 $as_echo "$ac_try_echo") >&5
12756 (eval "$ac_link") 2>conftest.er1
12758 grep -v '^ *+' conftest.er1 >conftest.err
12760 cat conftest.err >&5
12761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } && {
12763 test -z "$ac_c_werror_flag" ||
12764 test ! -s conftest.err
12765 } && test -s conftest$ac_exeext && {
12766 test "$cross_compiling" = yes ||
12767 $as_test_x conftest$ac_exeext
12769 ac_cv_func_bind_textdomain_codeset=yes
12771 $as_echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12774 ac_cv_func_bind_textdomain_codeset=no
12777 rm -rf conftest.dSYM
12778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12779 conftest$ac_exeext conftest.$ac_ext
12781 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
12782 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
12783 if test $ac_cv_func_bind_textdomain_codeset = yes; then
12799 rm -rf conftest.dSYM
12800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12801 conftest$ac_exeext conftest.$ac_ext
12802 LIBS="$glib_save_LIBS"
12805 gt_cv_have_gettext=no
12813 if test "$gt_cv_have_gettext" = "yes" ; then
12815 cat >>confdefs.h <<\_ACEOF
12816 #define ENABLE_NLS 1
12821 if test "$XGETTEXT" != ":"; then
12822 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12825 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12826 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12831 # We need to process the po/ directory.
12834 ac_config_commands="$ac_config_commands default-1"
12837 for lang in $ALL_LINGUAS; do
12838 GMOFILES="$GMOFILES $lang.gmo"
12839 POFILES="$POFILES $lang.po"
12854 if test "$gt_cv_have_gettext" = "yes"; then
12855 if test "x$ALL_LINGUAS" = "x"; then
12858 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12859 $as_echo_n "checking for catalogs to be installed... " >&6; }
12861 for presentlang in $ALL_LINGUAS; do
12863 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
12864 desiredlanguages="$LINGUAS"
12866 desiredlanguages="$ALL_LINGUAS"
12868 for desiredlang in $desiredlanguages; do
12869 # Use the presentlang catalog if desiredlang is
12870 # a. equal to presentlang, or
12871 # b. a variant of presentlang (because in this case,
12872 # presentlang can be used as a fallback for messages
12873 # which are not translated in the desiredlang catalog).
12874 case "$desiredlang" in
12875 "$presentlang"*) useit=yes;;
12878 if test $useit = yes; then
12879 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
12882 LINGUAS=$NEW_LINGUAS
12883 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
12884 $as_echo "$LINGUAS" >&6; }
12887 if test -n "$LINGUAS"; then
12888 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
12893 if test -n "$ac_aux_dir"; then
12894 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12896 if test -z "$MKINSTALLDIRS"; then
12897 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12901 test -d po || mkdir po
12902 if test "x$srcdir" != "x."; then
12903 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
12904 posrcprefix="$srcdir/"
12906 posrcprefix="../$srcdir/"
12912 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
12913 < $srcdir/po/POTFILES.in > po/POTFILES
12916 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
12918 cat >confcache <<\_ACEOF
12919 # This file is a shell script that caches the results of configure
12920 # tests run on this system so they can be shared between configure
12921 # scripts and configure runs, see configure's option --config-cache.
12922 # It is not useful on other systems. If it contains results you don't
12923 # want to keep, you may remove or edit it.
12925 # config.status only pays attention to the cache file if you give it
12926 # the --recheck option to rerun configure.
12928 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12929 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12930 # following values.
12934 # The following way of writing the cache mishandles newlines in values,
12935 # but we know of no workaround that is simple, portable, and efficient.
12936 # So, we kill variables containing newlines.
12937 # Ultrix sh set writes to stderr and can't be redirected directly,
12938 # and sets the high bit in the cache file unless we assign to the vars.
12940 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12941 eval ac_val=\$$ac_var
12945 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12946 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12949 _ | IFS | as_nl) ;; #(
12950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12951 *) $as_unset $ac_var ;;
12957 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12958 *${as_nl}ac_space=\ *)
12959 # `set' does not quote correctly, so add quotes (double-quote
12960 # substitution turns \\\\ into \\, and sed turns \\ into \).
12963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12966 # `set' quotes correctly as required by POSIX, so do not add quotes.
12967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12976 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12978 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12980 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12981 if test -w "$cache_file"; then
12982 test "x$cache_file" != "x/dev/null" &&
12983 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12984 $as_echo "$as_me: updating cache $cache_file" >&6;}
12985 cat confcache >$cache_file
12987 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12988 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12993 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12994 # Let make expand exec_prefix.
12995 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12997 DEFS=-DHAVE_CONFIG_H
13001 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13002 # 1. Remove the extension, and $U if already installed.
13003 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13004 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13005 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13006 # will be set to the directory where LIBOBJS objects are built.
13007 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13008 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13010 LIBOBJS=$ac_libobjs
13012 LTLIBOBJS=$ac_ltlibobjs
13015 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13016 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13017 Usually this means the macro was only invoked conditionally." >&5
13018 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13019 Usually this means the macro was only invoked conditionally." >&2;}
13020 { (exit 1); exit 1; }; }
13022 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13023 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13024 Usually this means the macro was only invoked conditionally." >&5
13025 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13026 Usually this means the macro was only invoked conditionally." >&2;}
13027 { (exit 1); exit 1; }; }
13029 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13030 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13031 Usually this means the macro was only invoked conditionally." >&5
13032 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13033 Usually this means the macro was only invoked conditionally." >&2;}
13034 { (exit 1); exit 1; }; }
13036 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13037 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13038 Usually this means the macro was only invoked conditionally." >&5
13039 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13040 Usually this means the macro was only invoked conditionally." >&2;}
13041 { (exit 1); exit 1; }; }
13043 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13044 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13045 Usually this means the macro was only invoked conditionally." >&5
13046 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13047 Usually this means the macro was only invoked conditionally." >&2;}
13048 { (exit 1); exit 1; }; }
13050 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
13051 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
13052 Usually this means the macro was only invoked conditionally." >&5
13053 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
13054 Usually this means the macro was only invoked conditionally." >&2;}
13055 { (exit 1); exit 1; }; }
13057 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
13058 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
13059 Usually this means the macro was only invoked conditionally." >&5
13060 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
13061 Usually this means the macro was only invoked conditionally." >&2;}
13062 { (exit 1); exit 1; }; }
13064 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
13065 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
13066 Usually this means the macro was only invoked conditionally." >&5
13067 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
13068 Usually this means the macro was only invoked conditionally." >&2;}
13069 { (exit 1); exit 1; }; }
13071 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
13072 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
13073 Usually this means the macro was only invoked conditionally." >&5
13074 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
13075 Usually this means the macro was only invoked conditionally." >&2;}
13076 { (exit 1); exit 1; }; }
13078 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
13079 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
13080 Usually this means the macro was only invoked conditionally." >&5
13081 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
13082 Usually this means the macro was only invoked conditionally." >&2;}
13083 { (exit 1); exit 1; }; }
13085 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
13086 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
13087 Usually this means the macro was only invoked conditionally." >&5
13088 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
13089 Usually this means the macro was only invoked conditionally." >&2;}
13090 { (exit 1); exit 1; }; }
13092 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
13093 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
13094 Usually this means the macro was only invoked conditionally." >&5
13095 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
13096 Usually this means the macro was only invoked conditionally." >&2;}
13097 { (exit 1); exit 1; }; }
13099 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
13100 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
13101 Usually this means the macro was only invoked conditionally." >&5
13102 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
13103 Usually this means the macro was only invoked conditionally." >&2;}
13104 { (exit 1); exit 1; }; }
13106 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
13107 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
13108 Usually this means the macro was only invoked conditionally." >&5
13109 $as_echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
13110 Usually this means the macro was only invoked conditionally." >&2;}
13111 { (exit 1); exit 1; }; }
13113 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
13114 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
13115 Usually this means the macro was only invoked conditionally." >&5
13116 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
13117 Usually this means the macro was only invoked conditionally." >&2;}
13118 { (exit 1); exit 1; }; }
13120 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
13121 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
13122 Usually this means the macro was only invoked conditionally." >&5
13123 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
13124 Usually this means the macro was only invoked conditionally." >&2;}
13125 { (exit 1); exit 1; }; }
13127 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
13128 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
13129 Usually this means the macro was only invoked conditionally." >&5
13130 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
13131 Usually this means the macro was only invoked conditionally." >&2;}
13132 { (exit 1); exit 1; }; }
13134 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
13135 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
13136 Usually this means the macro was only invoked conditionally." >&5
13137 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
13138 Usually this means the macro was only invoked conditionally." >&2;}
13139 { (exit 1); exit 1; }; }
13141 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
13142 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
13143 Usually this means the macro was only invoked conditionally." >&5
13144 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
13145 Usually this means the macro was only invoked conditionally." >&2;}
13146 { (exit 1); exit 1; }; }
13148 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
13149 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
13150 Usually this means the macro was only invoked conditionally." >&5
13151 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
13152 Usually this means the macro was only invoked conditionally." >&2;}
13153 { (exit 1); exit 1; }; }
13155 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
13156 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
13157 Usually this means the macro was only invoked conditionally." >&5
13158 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
13159 Usually this means the macro was only invoked conditionally." >&2;}
13160 { (exit 1); exit 1; }; }
13162 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
13163 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
13164 Usually this means the macro was only invoked conditionally." >&5
13165 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
13166 Usually this means the macro was only invoked conditionally." >&2;}
13167 { (exit 1); exit 1; }; }
13169 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
13170 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
13171 Usually this means the macro was only invoked conditionally." >&5
13172 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
13173 Usually this means the macro was only invoked conditionally." >&2;}
13174 { (exit 1); exit 1; }; }
13177 : ${CONFIG_STATUS=./config.status}
13179 ac_clean_files_save=$ac_clean_files
13180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13181 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13182 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13183 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13185 # Generated by $as_me.
13186 # Run this file to recreate the current configuration.
13187 # Compiler output produced by configure, useful for debugging
13188 # configure, is in config.log if it exists.
13191 ac_cs_recheck=false
13193 SHELL=\${CONFIG_SHELL-$SHELL}
13196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13197 ## --------------------- ##
13198 ## M4sh Initialization. ##
13199 ## --------------------- ##
13201 # Be more Bourne compatible
13202 DUALCASE=1; export DUALCASE # for MKS sh
13203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13206 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13207 # is contrary to our usage. Disable this feature.
13208 alias -g '${1+"$@"}'='"$@"'
13209 setopt NO_GLOB_SUBST
13211 case `(set -o) 2>/dev/null` in
13212 *posix*) set -o posix ;;
13221 # Avoid depending upon Character Ranges.
13222 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13223 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13224 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13225 as_cr_digits='0123456789'
13226 as_cr_alnum=$as_cr_Letters$as_cr_digits
13231 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13232 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13233 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13234 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13235 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13236 as_echo='printf %s\n'
13237 as_echo_n='printf %s'
13239 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13240 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13241 as_echo_n='/usr/ucb/echo -n'
13243 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13244 as_echo_n_body='eval
13248 expr "X$arg" : "X\\(.*\\)$as_nl";
13249 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13251 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13253 export as_echo_n_body
13254 as_echo_n='sh -c $as_echo_n_body as_echo'
13256 export as_echo_body
13257 as_echo='sh -c $as_echo_body as_echo'
13260 # The user is always right.
13261 if test "${PATH_SEPARATOR+set}" != set; then
13263 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13264 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13269 # Support unset when possible.
13270 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13278 # We need space, tab and new line, in precisely that order. Quoting is
13279 # there to prevent editors from complaining about space-tab.
13280 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13281 # splitting by setting IFS to empty value.)
13284 # Find who we are. Look in the path if we contain no directory separator.
13286 *[\\/]* ) as_myself=$0 ;;
13287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288 for as_dir in $PATH
13291 test -z "$as_dir" && as_dir=.
13292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13298 # We did not find ourselves, most probably we were run as `sh COMMAND'
13299 # in which case we are not to be found in the path.
13300 if test "x$as_myself" = x; then
13303 if test ! -f "$as_myself"; then
13304 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13305 { (exit 1); exit 1; }
13308 # Work around bugs in pre-3.0 UWIN ksh.
13309 for as_var in ENV MAIL MAILPATH
13310 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13322 # Required to use basename.
13323 if expr a : '\(a\)' >/dev/null 2>&1 &&
13324 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13330 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13331 as_basename=basename
13337 # Name of the executable.
13338 as_me=`$as_basename -- "$0" ||
13339 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13340 X"$0" : 'X\(//\)$' \| \
13341 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13343 sed '/^.*\/\([^/][^/]*\)\/*$/{
13362 as_lineno_1=$LINENO
13363 as_lineno_2=$LINENO
13364 test "x$as_lineno_1" != "x$as_lineno_2" &&
13365 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13367 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13368 # uniformly replaced by the line number. The first 'sed' inserts a
13369 # line-number line after each line using $LINENO; the second 'sed'
13370 # does the real work. The second script uses 'N' to pair each
13371 # line-number line with the line containing $LINENO, and appends
13372 # trailing '-' during substitution so that $LINENO is not a special
13373 # case at line end.
13374 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13375 # scripts with optimization help from Paolo Bonzini. Blame Lee
13376 # E. McMahon (1931-1989) for sed's syntax. :-)
13388 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13391 ' >$as_me.lineno &&
13392 chmod +x "$as_me.lineno" ||
13393 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13394 { (exit 1); exit 1; }; }
13396 # Don't try to exec as it changes $[0], causing all sort of problems
13397 # (the dirname of $[0] is not the place where we might find the
13398 # original and so on. Autoconf is especially sensitive to this).
13399 . "./$as_me.lineno"
13400 # Exit status is that of the last command.
13405 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13411 ECHO_C= ECHO_N= ECHO_T=
13412 case `echo -n x` in
13414 case `echo 'x\c'` in
13415 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13421 if expr a : '\(a\)' >/dev/null 2>&1 &&
13422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13428 rm -f conf$$ conf$$.exe conf$$.file
13429 if test -d conf$$.dir; then
13430 rm -f conf$$.dir/conf$$.file
13433 mkdir conf$$.dir 2>/dev/null
13435 if (echo >conf$$.file) 2>/dev/null; then
13436 if ln -s conf$$.file conf$$ 2>/dev/null; then
13438 # ... but there are two gotchas:
13439 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13440 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13441 # In both cases, we have to default to `cp -p'.
13442 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13444 elif ln conf$$.file conf$$ 2>/dev/null; then
13452 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13453 rmdir conf$$.dir 2>/dev/null
13455 if mkdir -p . 2>/dev/null; then
13458 test -d ./-p && rmdir ./-p
13462 if test -x / >/dev/null 2>&1; then
13463 as_test_x='test -x'
13465 if ls -dL / >/dev/null 2>&1; then
13472 if test -d "$1"; then
13478 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13479 ???[sx]*):;;*)false;;esac;fi
13483 as_executable_p=$as_test_x
13485 # Sed expression to map a string onto a valid CPP name.
13486 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13488 # Sed expression to map a string onto a valid variable name.
13489 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13494 # Save the log message, to keep $[0] and so on meaningful, and to
13495 # report actual input values of CONFIG_FILES etc. instead of their
13496 # values after options handling.
13498 This file was extended by $as_me, which was
13499 generated by GNU Autoconf 2.62. Invocation command line was
13501 CONFIG_FILES = $CONFIG_FILES
13502 CONFIG_HEADERS = $CONFIG_HEADERS
13503 CONFIG_LINKS = $CONFIG_LINKS
13504 CONFIG_COMMANDS = $CONFIG_COMMANDS
13507 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13513 # Files that config.status was made for.
13514 config_files="$ac_config_files"
13515 config_headers="$ac_config_headers"
13516 config_commands="$ac_config_commands"
13520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13522 \`$as_me' instantiates files from templates according to the
13523 current configuration.
13525 Usage: $0 [OPTIONS] [FILE]...
13527 -h, --help print this help, then exit
13528 -V, --version print version number and configuration settings, then exit
13529 -q, --quiet do not print progress messages
13530 -d, --debug don't remove temporary files
13531 --recheck update $as_me by reconfiguring in the same conditions
13532 --file=FILE[:TEMPLATE]
13533 instantiate the configuration file FILE
13534 --header=FILE[:TEMPLATE]
13535 instantiate the configuration header FILE
13537 Configuration files:
13540 Configuration headers:
13543 Configuration commands:
13546 Report bugs to <bug-autoconf@gnu.org>."
13549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13552 configured by $0, generated by GNU Autoconf 2.62,
13553 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13555 Copyright (C) 2008 Free Software Foundation, Inc.
13556 This config.status script is free software; the Free Software Foundation
13557 gives unlimited permission to copy, distribute and modify it."
13563 test -n "\$AWK" || AWK=awk
13566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13567 # The default lists apply if the user does not specify any file.
13573 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13574 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13585 # Handling of the options.
13586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13588 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13589 $as_echo "$ac_cs_version"; exit ;;
13590 --debug | --debu | --deb | --de | --d | -d )
13592 --file | --fil | --fi | --f )
13595 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13597 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13598 ac_need_defaults=false;;
13599 --header | --heade | --head | --hea )
13602 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13604 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13605 ac_need_defaults=false;;
13607 # Conflict between --help and --header
13608 { $as_echo "$as_me: error: ambiguous option: $1
13609 Try \`$0 --help' for more information." >&2
13610 { (exit 1); exit 1; }; };;
13611 --help | --hel | -h )
13612 $as_echo "$ac_cs_usage"; exit ;;
13613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13614 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13617 # This is an error.
13618 -*) { $as_echo "$as_me: error: unrecognized option: $1
13619 Try \`$0 --help' for more information." >&2
13620 { (exit 1); exit 1; }; } ;;
13622 *) ac_config_targets="$ac_config_targets $1"
13623 ac_need_defaults=false ;;
13629 ac_configure_extra_args=
13631 if $ac_cs_silent; then
13633 ac_configure_extra_args="$ac_configure_extra_args --silent"
13637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13638 if \$ac_cs_recheck; then
13639 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13641 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13642 CONFIG_SHELL='$SHELL'
13643 export CONFIG_SHELL
13648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13653 ## Running $as_me. ##
13659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13663 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13670 # Handling of arguments.
13671 for ac_config_target in $ac_config_targets
13673 case $ac_config_target in
13674 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13675 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13676 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13677 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13678 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13679 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13680 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13681 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
13683 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13684 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13685 { (exit 1); exit 1; }; };;
13690 # If the user did not use the arguments to specify the items to instantiate,
13691 # then the envvar interface is used. Set only those that are not.
13692 # We use the long form for the default assignment because of an extremely
13693 # bizarre bug on SunOS 4.1.3.
13694 if $ac_need_defaults; then
13695 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13696 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13697 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13700 # Have a temporary directory for convenience. Make it in the build tree
13701 # simply because there is no reason against having it here, and in addition,
13702 # creating and moving files from /tmp can sometimes cause problems.
13703 # Hook for its removal unless debugging.
13704 # Note that there is a small window in which the directory will not be cleaned:
13705 # after its creation but before its name has been assigned to `$tmp'.
13709 trap 'exit_status=$?
13710 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13712 trap '{ (exit 1); exit 1; }' 1 2 13 15
13714 # Create a (secure) tmp directory for tmp files.
13717 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13718 test -n "$tmp" && test -d "$tmp"
13721 tmp=./conf$$-$RANDOM
13722 (umask 077 && mkdir "$tmp")
13725 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13726 { (exit 1); exit 1; }
13729 # Set up the scripts for CONFIG_FILES section.
13730 # No need to generate them if there are no CONFIG_FILES.
13731 # This happens for instance with `./config.status config.h'.
13732 if test -n "$CONFIG_FILES"; then
13737 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13738 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13741 ac_cs_awk_cr=$ac_cr
13744 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13749 echo "cat >conf$$subs.awk <<_ACEOF" &&
13750 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13752 } >conf$$subs.sh ||
13753 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13754 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13755 { (exit 1); exit 1; }; }
13756 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13758 for ac_last_try in false false false false false :; do
13759 . ./conf$$subs.sh ||
13760 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13761 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13762 { (exit 1); exit 1; }; }
13764 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
13766 elif $ac_last_try; then
13767 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13768 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13769 { (exit 1); exit 1; }; }
13771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13774 rm -f conf$$subs.sh
13776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13777 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13781 s/^/S["/; s/!.*/"]=/
13791 s/\(.\{148\}\).*/\1/
13793 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13798 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13805 s/\(.\{148\}\).*/\1/
13807 s/["\\]/\\&/g; s/^/"/; s/$/"/
13811 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13816 ' <conf$$subs.awk | sed '
13821 ' >>$CONFIG_STATUS || ac_write_fail=1
13822 rm -f conf$$subs.awk
13823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13825 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13826 for (key in S) S_is_set[key] = 1
13832 nfields = split(line, field, "@")
13834 len = length(field[1])
13835 for (i = 2; i < nfields; i++) {
13837 keylen = length(key)
13838 if (S_is_set[key]) {
13840 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13841 len += length(value) + length(field[++i])
13852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13853 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13854 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13857 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13858 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13859 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13860 { (exit 1); exit 1; }; }
13863 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13864 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13865 # trailing colons and then remove the whole line if VPATH becomes empty
13866 # (actually we leave an empty line to preserve line numbers).
13867 if test "x$srcdir" = x.; then
13868 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13869 s/:*\$(srcdir):*/:/
13870 s/:*\${srcdir}:*/:/
13872 s/^\([^=]*=[ ]*\):*/\1/
13878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13879 fi # test -n "$CONFIG_FILES"
13881 # Set up the scripts for CONFIG_HEADERS section.
13882 # No need to generate them if there are no CONFIG_HEADERS.
13883 # This happens for instance with `./config.status Makefile'.
13884 if test -n "$CONFIG_HEADERS"; then
13885 cat >"$tmp/defines.awk" <<\_ACAWK ||
13889 # Transform confdefs.h into an awk script `defines.awk', embedded as
13890 # here-document in config.status, that substitutes the proper values into
13891 # config.h.in to produce config.h.
13893 # Create a delimiter string that does not exist in confdefs.h, to ease
13894 # handling of long lines.
13896 for ac_last_try in false false :; do
13897 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13898 if test -z "$ac_t"; then
13900 elif $ac_last_try; then
13901 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13902 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13903 { (exit 1); exit 1; }; }
13905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13909 # For the awk script, D is an array of macro values keyed by name,
13910 # likewise P contains macro parameters if any. Preserve backslash
13911 # newline sequences.
13913 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13915 s/.\{148\}/&'"$ac_delim"'/g
13918 s/^[ ]*#[ ]*define[ ][ ]*/ /
13925 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13927 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13931 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13932 D["\1"]=" \3\\\\\\n"\\/p
13934 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13939 s/.\{148\}/&'"$ac_delim"'/g
13944 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13947 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13949 ' <confdefs.h | sed '
13950 s/'"$ac_delim"'/"\\\
13951 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13954 for (key in D) D_is_set[key] = 1
13957 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13959 split(line, arg, " ")
13960 if (arg[1] == "#") {
13964 defundef = substr(arg[1], 2)
13967 split(mac1, mac2, "(") #)
13969 if (D_is_set[macro]) {
13970 # Preserve the white space surrounding the "#".
13971 prefix = substr(line, 1, index(line, defundef) - 1)
13972 print prefix "define", macro P[macro] D[macro]
13975 # Replace #undef with comments. This is necessary, for example,
13976 # in the case of _POSIX_SOURCE, which is predefined and required
13977 # on some systems where configure will not decide to define it.
13978 if (defundef == "undef") {
13979 print "/*", line, "*/"
13987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13988 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13989 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13990 { (exit 1); exit 1; }; }
13991 fi # test -n "$CONFIG_HEADERS"
13994 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13999 :[FHLC]) ac_mode=$ac_tag; continue;;
14001 case $ac_mode$ac_tag in
14003 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14004 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14005 { (exit 1); exit 1; }; };;
14006 :[FH]-) ac_tag=-:-;;
14007 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14024 -) ac_f="$tmp/stdin";;
14025 *) # Look for the file first in the build tree, then in the source tree
14026 # (if the path is not absolute). The absolute path cannot be DOS-style,
14027 # because $ac_f cannot contain `:'.
14031 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14033 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14034 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14035 { (exit 1); exit 1; }; };;
14037 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14038 ac_file_inputs="$ac_file_inputs '$ac_f'"
14041 # Let's still pretend it is `configure' which instantiates (i.e., don't
14042 # use $as_me), people would be surprised to read:
14043 # /* config.h. Generated by config.status. */
14044 configure_input='Generated from '`
14045 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14047 if test x"$ac_file" != x-; then
14048 configure_input="$ac_file. $configure_input"
14049 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14050 $as_echo "$as_me: creating $ac_file" >&6;}
14052 # Neutralize special characters interpreted by sed in replacement strings.
14053 case $configure_input in #(
14054 *\&* | *\|* | *\\* )
14055 ac_sed_conf_input=`$as_echo "$configure_input" |
14056 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14057 *) ac_sed_conf_input=$configure_input;;
14061 *:-:* | *:-) cat >"$tmp/stdin" \
14062 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14063 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14064 { (exit 1); exit 1; }; } ;;
14069 ac_dir=`$as_dirname -- "$ac_file" ||
14070 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14071 X"$ac_file" : 'X\(//\)[^/]' \| \
14072 X"$ac_file" : 'X\(//\)$' \| \
14073 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14074 $as_echo X"$ac_file" |
14075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14079 /^X\(\/\/\)[^/].*/{
14094 -*) as_dir=./$as_dir;;
14096 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14100 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14101 *) as_qdir=$as_dir;;
14103 as_dirs="'$as_qdir' $as_dirs"
14104 as_dir=`$as_dirname -- "$as_dir" ||
14105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14106 X"$as_dir" : 'X\(//\)[^/]' \| \
14107 X"$as_dir" : 'X\(//\)$' \| \
14108 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14109 $as_echo X"$as_dir" |
14110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14114 /^X\(\/\/\)[^/].*/{
14127 test -d "$as_dir" && break
14129 test -z "$as_dirs" || eval "mkdir $as_dirs"
14130 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14131 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14132 { (exit 1); exit 1; }; }; }
14136 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14138 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14139 # A ".." for each directory in $ac_dir_suffix.
14140 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14141 case $ac_top_builddir_sub in
14142 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14143 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14146 ac_abs_top_builddir=$ac_pwd
14147 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14148 # for backward compatibility:
14149 ac_top_builddir=$ac_top_build_prefix
14152 .) # We are building in place.
14154 ac_top_srcdir=$ac_top_builddir_sub
14155 ac_abs_top_srcdir=$ac_pwd ;;
14156 [\\/]* | ?:[\\/]* ) # Absolute name.
14157 ac_srcdir=$srcdir$ac_dir_suffix;
14158 ac_top_srcdir=$srcdir
14159 ac_abs_top_srcdir=$srcdir ;;
14160 *) # Relative name.
14161 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14162 ac_top_srcdir=$ac_top_build_prefix$srcdir
14163 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14165 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14175 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14176 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14181 # If the template does not know about datarootdir, expand it.
14182 # FIXME: This hack should be removed a few years after 2.60.
14183 ac_datarootdir_hack=; ac_datarootdir_seen=
14196 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14197 *datarootdir*) ac_datarootdir_seen=yes;;
14198 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14199 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14200 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14203 ac_datarootdir_hack='
14204 s&@datadir@&$datadir&g
14205 s&@docdir@&$docdir&g
14206 s&@infodir@&$infodir&g
14207 s&@localedir@&$localedir&g
14208 s&@mandir@&$mandir&g
14209 s&\\\${datarootdir}&$datarootdir&g' ;;
14213 # Neutralize VPATH when `$srcdir' = `.'.
14214 # Shell code in configure.ac might set extrasub.
14215 # FIXME: do we really want to maintain this feature?
14216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14217 ac_sed_extra="$ac_vpsub
14220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14223 s|@configure_input@|$ac_sed_conf_input|;t t
14224 s&@top_builddir@&$ac_top_builddir_sub&;t t
14225 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14226 s&@srcdir@&$ac_srcdir&;t t
14227 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14228 s&@top_srcdir@&$ac_top_srcdir&;t t
14229 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14230 s&@builddir@&$ac_builddir&;t t
14231 s&@abs_builddir@&$ac_abs_builddir&;t t
14232 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14233 s&@INSTALL@&$ac_INSTALL&;t t
14234 $ac_datarootdir_hack
14236 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14237 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14238 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14239 { (exit 1); exit 1; }; }
14241 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14242 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14243 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14244 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14245 which seems to be undefined. Please make sure it is defined." >&5
14246 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14247 which seems to be undefined. Please make sure it is defined." >&2;}
14251 -) cat "$tmp/out" && rm -f "$tmp/out";;
14252 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14254 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14255 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14256 { (exit 1); exit 1; }; }
14262 if test x"$ac_file" != x-; then
14264 $as_echo "/* $configure_input */" \
14265 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14266 } >"$tmp/config.h" \
14267 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14268 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14269 { (exit 1); exit 1; }; }
14270 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14271 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14272 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14275 mv "$tmp/config.h" "$ac_file" \
14276 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14277 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14278 { (exit 1); exit 1; }; }
14281 $as_echo "/* $configure_input */" \
14282 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14283 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14284 $as_echo "$as_me: error: could not create -" >&2;}
14285 { (exit 1); exit 1; }; }
14287 # Compute "$ac_file"'s index in $config_headers.
14289 for _am_header in $config_headers :; do
14290 case $_am_header in
14291 "$ac_file" | "$ac_file":* )
14294 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14297 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
14298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14299 X"$ac_file" : 'X\(//\)[^/]' \| \
14300 X"$ac_file" : 'X\(//\)$' \| \
14301 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14302 $as_echo X"$ac_file" |
14303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14307 /^X\(\/\/\)[^/].*/{
14319 s/.*/./; q'`/stamp-h$_am_stamp_count
14322 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14323 $as_echo "$as_me: executing $ac_file commands" >&6;}
14328 case $ac_file$ac_mode in
14329 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14330 # Strip MF so we end up with the name of the file.
14331 mf=`echo "$mf" | sed -e 's/:.*$//'`
14332 # Check whether this is an Automake generated Makefile or not.
14333 # We used to match only the files named `Makefile.in', but
14334 # some people rename them; so instead we look at the file content.
14335 # Grep'ing the first line is not enough: some people post-process
14336 # each Makefile.in and add a new line on top of each file to say so.
14337 # So let's grep whole file.
14338 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14339 dirpart=`$as_dirname -- "$mf" ||
14340 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14341 X"$mf" : 'X\(//\)[^/]' \| \
14342 X"$mf" : 'X\(//\)$' \| \
14343 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14349 /^X\(\/\/\)[^/].*/{
14365 # Extract the definition of DEPDIR, am__include, and am__quote
14366 # from the Makefile without running `make'.
14367 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14368 test -z "$DEPDIR" && continue
14369 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14370 test -z "am__include" && continue
14371 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14372 # When using ansi2knr, U may be empty or an underscore; expand it
14373 U=`sed -n 's/^U = //p' < "$mf"`
14374 # Find all dependency output files, they are included files with
14375 # $(DEPDIR) in their names. We invoke sed twice because it is the
14376 # simplest approach to changing $(DEPDIR) to its actual value in the
14378 for file in `sed -n "
14379 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14380 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14381 # Make sure the directory exists.
14382 test -f "$dirpart/$file" && continue
14383 fdir=`$as_dirname -- "$file" ||
14384 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14385 X"$file" : 'X\(//\)[^/]' \| \
14386 X"$file" : 'X\(//\)$' \| \
14387 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14388 $as_echo X"$file" |
14389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14393 /^X\(\/\/\)[^/].*/{
14406 { as_dir=$dirpart/$fdir
14408 -*) as_dir=./$as_dir;;
14410 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14414 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14415 *) as_qdir=$as_dir;;
14417 as_dirs="'$as_qdir' $as_dirs"
14418 as_dir=`$as_dirname -- "$as_dir" ||
14419 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14420 X"$as_dir" : 'X\(//\)[^/]' \| \
14421 X"$as_dir" : 'X\(//\)$' \| \
14422 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14423 $as_echo X"$as_dir" |
14424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14428 /^X\(\/\/\)[^/].*/{
14441 test -d "$as_dir" && break
14443 test -z "$as_dirs" || eval "mkdir $as_dirs"
14444 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14445 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14446 { (exit 1); exit 1; }; }; }
14447 # echo "creating $dirpart/$file"
14448 echo '# dummy' > "$dirpart/$file"
14452 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
14453 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14460 { (exit 0); exit 0; }
14462 chmod +x $CONFIG_STATUS
14463 ac_clean_files=$ac_clean_files_save
14465 test $ac_write_fail = 0 ||
14466 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14467 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14468 { (exit 1); exit 1; }; }
14471 # configure is writing to config.log, and then calls config.status.
14472 # config.status does its own redirection, appending to config.log.
14473 # Unfortunately, on DOS this fails, as config.log is still kept open
14474 # by configure, so config.status won't be able to write to it; its
14475 # output is simply discarded. So we exec the FD to /dev/null,
14476 # effectively closing config.log, so it can be properly (re)opened and
14477 # appended to by config.status. When coming back to configure, we
14478 # need to make the FD available again.
14479 if test "$no_create" != yes; then
14481 ac_config_status_args=
14482 test "$silent" = yes &&
14483 ac_config_status_args="$ac_config_status_args --quiet"
14485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14488 # would make configure fail if this is the last instruction.
14489 $ac_cs_success || { (exit 1); exit 1; }
14491 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14492 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
14493 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
14498 -*) as_dir=./$as_dir;;
14500 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14504 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14505 *) as_qdir=$as_dir;;
14507 as_dirs="'$as_qdir' $as_dirs"
14508 as_dir=`$as_dirname -- "$as_dir" ||
14509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14510 X"$as_dir" : 'X\(//\)[^/]' \| \
14511 X"$as_dir" : 'X\(//\)$' \| \
14512 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14513 $as_echo X"$as_dir" |
14514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14518 /^X\(\/\/\)[^/].*/{
14531 test -d "$as_dir" && break
14533 test -z "$as_dirs" || eval "mkdir $as_dirs"
14534 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14535 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14536 { (exit 1); exit 1; }; }; }
14540 echo "Configuration complete"
14543 if test "x$HAVE_GTK" = x; then
14544 if test "x$HAVE_COCOA" = x; then
14545 echo " User interface: none"
14547 echo " User interface: Cocoa"
14550 echo " User interface: GTK"
14553 if test "x$SH4_TRANSLATOR" = "x"; then
14554 echo " SH4 translator: None (emulation core only)"
14556 echo " SH4 translator: $SH4_TRANSLATOR"
14559 if test "x$VIDEO_DRIVERS" = "x"; then
14560 echo " Video drivers: none (no supported GL found)"
14562 echo " Video drivers: $VIDEO_DRIVERS"
14565 if test "x$AUDIO_DRIVERS" = "x"; then
14566 echo " Audio drivers: none (no supported output devices found)"
14568 echo " Audio drivers: $AUDIO_DRIVERS"
14571 if test "x$CDROM_DRIVER" = "x"; then
14572 echo " CD-ROM driver: none (no supported cd-rom devices found)"
14574 echo " CD-ROM driver: $CDROM_DRIVER"
.