2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="configure.in"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
647 program_transform_name
688 INSTALL_STRIP_PROGRAM
697 MAINTAINER_MODE_FALSE
796 enable_option_checking
797 enable_maintainer_mode
798 enable_dependency_tracking
805 ac_precious_vars='build_alias
831 # Initialize some variables set by options.
833 ac_init_version=false
834 ac_unrecognized_opts=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
845 program_transform_name=s,x,x,
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE}'
870 infodir='${datarootdir}/info'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
938 { (exit 1); exit 1; }; }
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
948 eval enable_$ac_useropt=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
965 { (exit 1); exit 1; }; }
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
975 eval enable_$ac_useropt=\$ac_optarg ;;
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
990 -help | --help | --hel | --he | -h)
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 htmldir=$ac_optarg ;;
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1020 -libdir | --libdir | --libdi | --libd)
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1111 -psdir | --psdir | --psdi | --psd | --ps)
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 sbindir=$ac_optarg ;;
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 sharedstatedir=$ac_optarg ;;
1137 -site | --site | --sit)
1139 -site=* | --site=* | --sit=*)
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1170 { (exit 1); exit 1; }; }
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1180 eval with_$ac_useropt=\$ac_optarg ;;
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1187 { (exit 1); exit 1; }; }
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1197 eval with_$ac_useropt=no ;;
1200 # Obsolete; use --with-x.
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1217 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1218 Try \`$0 --help' for more information." >&2
1219 { (exit 1); exit 1; }; }
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1226 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1227 { (exit 1); exit 1; }; }
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1245 { (exit 1); exit 1; }; }
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1251 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1252 { (exit 1); exit 1; }; } ;;
1253 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1270 # Be sure to have absolute directory names.
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1276 { (exit 1); exit 1; }; }
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1284 target=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 test "$silent" = yes && exec 6>/dev/null
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1307 { (exit 1); exit 1; }; }
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1310 { (exit 1); exit 1; }; }
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1350 { (exit 1); exit 1; }; }
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1355 { (exit 1); exit 1; }; }
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 # Report the --help message.
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1381 \`configure' configures this package to adapt to many kinds of systems.
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1388 Defaults for the options are specified in brackets.
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1412 For better control, use the options below.
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 if test -n "$ac_init_help"; then
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-maintainer-mode enable make rules and dependencies not useful
1458 (and sometimes confusing) to the casual installer
1459 --disable-dependency-tracking speeds up one-time build
1460 --enable-dependency-tracking do not reject slow dependency extractors
1461 --enable-trace Enable generation of IO traces (warning: hurts
1463 --enable-watch Enable watchpoints in the debugger (warning: hurts
1465 --enable-sh4stats Enable statistics on executed sh4 instructions
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-osmesa Build with the osmesa GL library (software
1472 --with-gtk Build with the GTK UI. Default on X11 systems
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 CCAS assembler compiler command (defaults to CC)
1483 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1485 PKG_CONFIG path to pkg-config utility
1487 C compiler flags for LIBPNG, overriding pkg-config
1488 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1489 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1490 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1491 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1492 GTK_LIBS linker flags for GTK, overriding pkg-config
1494 C compiler flags for PULSE, overriding pkg-config
1495 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1497 C compiler flags for ESOUND, overriding pkg-config
1498 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1499 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1500 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1534 .) # We are building in place.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1568 generated by GNU Autoconf 2.62
1570 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1571 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1577 cat >config.log <<_ACEOF
1578 This file contains any messages produced by compilers while
1579 running configure, to aid debugging if configure makes a mistake.
1581 It was created by $as_me, which was
1582 generated by GNU Autoconf 2.62. Invocation command line was
1594 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1595 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1596 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1597 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1598 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1601 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1603 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1604 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1605 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1606 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1607 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1608 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1609 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 test -z "$as_dir" && as_dir=.
1618 $as_echo "PATH: $as_dir"
1634 # Keep a trace of the command line.
1635 # Strip out --no-create and --no-recursion so they do not pile up.
1636 # Strip out --silent because we don't want to record it for future runs.
1637 # Also quote any args containing shell meta-characters.
1638 # Make two passes to allow for proper duplicate-argument suppression.
1642 ac_must_keep_next=false
1648 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1650 | -silent | --silent | --silen | --sile | --sil)
1653 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1656 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1659 if test $ac_must_keep_next = true; then
1660 ac_must_keep_next=false # Got value, back to normal.
1663 *=* | --config-cache | -C | -disable-* | --disable-* \
1664 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1665 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1666 | -with-* | --with-* | -without-* | --without-* | --x)
1667 case "$ac_configure_args0 " in
1668 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1671 -* ) ac_must_keep_next=true ;;
1674 ac_configure_args="$ac_configure_args '$ac_arg'"
1679 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1680 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682 # When interrupted or exit'd, cleanup temporary files, and complete
1683 # config.log. We remove comments because anyway the quotes in there
1684 # would cause problems or look ugly.
1685 # WARNING: Use '\'' to represent an apostrophe within the trap.
1686 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1687 trap 'exit_status=$?
1688 # Save into config.log some information that might help in debugging.
1693 ## ---------------- ##
1694 ## Cache variables. ##
1695 ## ---------------- ##
1698 # The following way of writing the cache mishandles newlines in values,
1700 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1701 eval ac_val=\$$ac_var
1705 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1706 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1709 _ | IFS | as_nl) ;; #(
1710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1711 *) $as_unset $ac_var ;;
1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1736 for ac_var in $ac_subst_vars
1738 eval ac_val=\$$ac_var
1740 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 $as_echo "$ac_var='\''$ac_val'\''"
1746 if test -n "$ac_subst_files"; then
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1753 for ac_var in $ac_subst_files
1755 eval ac_val=\$$ac_var
1757 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 $as_echo "$ac_var='\''$ac_val'\''"
1764 if test -s confdefs.h; then
1774 test "$ac_signal" != 0 &&
1775 $as_echo "$as_me: caught signal $ac_signal"
1776 $as_echo "$as_me: exit $exit_status"
1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1790 # Predefined preprocessor variables.
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer an explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 ac_site_file1=$CONFIG_SITE
1823 elif test "x$prefix" != xNONE; then
1824 ac_site_file1=$prefix/share/config.site
1825 ac_site_file2=$prefix/etc/config.site
1827 ac_site_file1=$ac_default_prefix/share/config.site
1828 ac_site_file2=$ac_default_prefix/etc/config.site
1830 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1832 test "x$ac_site_file" = xNONE && continue
1833 if test -r "$ac_site_file"; then
1834 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1835 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1836 sed 's/^/| /' "$ac_site_file" >&5
1841 if test -r "$cache_file"; then
1842 # Some versions of bash will fail to source /dev/null (special
1843 # files actually), so we avoid doing that.
1844 if test -f "$cache_file"; then
1845 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1846 $as_echo "$as_me: loading cache $cache_file" >&6;}
1848 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1849 *) . "./$cache_file";;
1853 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1854 $as_echo "$as_me: creating cache $cache_file" >&6;}
1858 # Check that the precious variables saved in the cache have kept the same
1860 ac_cache_corrupted=false
1861 for ac_var in $ac_precious_vars; do
1862 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1863 eval ac_new_set=\$ac_env_${ac_var}_set
1864 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1865 eval ac_new_val=\$ac_env_${ac_var}_value
1866 case $ac_old_set,$ac_new_set in
1868 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1869 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1870 ac_cache_corrupted=: ;;
1872 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1873 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1877 if test "x$ac_old_val" != "x$ac_new_val"; then
1878 # differences in whitespace do not lead to failure.
1879 ac_old_val_w=`echo x $ac_old_val`
1880 ac_new_val_w=`echo x $ac_new_val`
1881 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1882 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884 ac_cache_corrupted=:
1886 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1887 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1888 eval $ac_var=\$ac_old_val
1890 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1891 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1892 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1893 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1896 # Pass precious variables to config.status.
1897 if test "$ac_new_set" = set; then
1899 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 *) ac_arg=$ac_var=$ac_new_val ;;
1902 case " $ac_configure_args " in
1903 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1904 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1908 if $ac_cache_corrupted; then
1909 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913 { (exit 1); exit 1; }; }
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939 am__api_version="1.9"
1941 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1942 if test -f "$ac_dir/install-sh"; then
1944 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 elif test -f "$ac_dir/install.sh"; then
1948 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 elif test -f "$ac_dir/shtool"; then
1952 ac_install_sh="$ac_aux_dir/shtool install -c"
1956 if test -z "$ac_aux_dir"; then
1957 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1958 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1959 { (exit 1); exit 1; }; }
1962 # These three variables are undocumented and unsupported,
1963 # and are intended to be withdrawn in a future Autoconf release.
1964 # They can cause serious problems if a builder's source tree is in a directory
1965 # whose full name contains unusual characters.
1966 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1967 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1968 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971 # Find a good install program. We prefer a C program (faster),
1972 # so one script is as good as another. But avoid the broken or
1973 # incompatible versions:
1974 # SysV /etc/install, /usr/sbin/install
1975 # SunOS /usr/etc/install
1976 # IRIX /sbin/install
1978 # AmigaOS /C/install, which installs bootblocks on floppy discs
1979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1982 # OS/2's system install, which has a completely different semantic
1983 # ./install, which can be erroneously created by make from ./install.sh.
1984 # Reject install programs that cannot install multiple files.
1985 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1986 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1987 if test -z "$INSTALL"; then
1988 if test "${ac_cv_path_install+set}" = set; then
1989 $as_echo_n "(cached) " >&6
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 # Account for people who put trailing slashes in PATH elements.
1998 ./ | .// | /cC/* | \
1999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2003 # OSF1 and SCO ODT 3.0 have their own names for install.
2004 # Don't use installbsd from OSF since it installs stuff as root
2006 for ac_prog in ginstall scoinst install; do
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2009 if test $ac_prog = install &&
2010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # AIX install. It has an incompatible calling convention.
2013 elif test $ac_prog = install &&
2014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # program-specific install script used by HP pwplus--don't use.
2018 rm -rf conftest.one conftest.two conftest.dir
2019 echo one > conftest.one
2020 echo two > conftest.two
2022 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2023 test -s conftest.one && test -s conftest.two &&
2024 test -s conftest.dir/conftest.one &&
2025 test -s conftest.dir/conftest.two
2027 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2040 rm -rf conftest.one conftest.two conftest.dir
2043 if test "${ac_cv_path_install+set}" = set; then
2044 INSTALL=$ac_cv_path_install
2046 # As a last resort, use the slow shell script. Don't cache a
2047 # value for INSTALL within a source directory, because that will
2048 # break other packages using the cache if that directory is
2049 # removed, or if the value is a relative name.
2050 INSTALL=$ac_install_sh
2053 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2054 $as_echo "$INSTALL" >&6; }
2056 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2057 # It thinks the first close brace ends the variable substitution.
2058 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2060 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2062 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2064 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2065 $as_echo_n "checking whether build environment is sane... " >&6; }
2068 echo timestamp > conftest.file
2069 # Do `set' in a subshell so we don't clobber the current shell's
2070 # arguments. Must try -L first in case configure is actually a
2071 # symlink; some systems play weird games with the mod time of symlinks
2072 # (eg FreeBSD returns the mod time of the symlink's containing
2075 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2076 if test "$*" = "X"; then
2078 set X `ls -t $srcdir/configure conftest.file`
2081 if test "$*" != "X $srcdir/configure conftest.file" \
2082 && test "$*" != "X conftest.file $srcdir/configure"; then
2084 # If neither matched, then we have a broken ls. This can happen
2085 # if, for instance, CONFIG_SHELL is bash and it inherits a
2086 # broken ls alias from the environment. This has actually
2087 # happened. Such a system could not be considered "sane".
2088 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2089 alias in your environment" >&5
2090 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2091 alias in your environment" >&2;}
2092 { (exit 1); exit 1; }; }
2095 test "$2" = conftest.file
2101 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2102 Check your system clock" >&5
2103 $as_echo "$as_me: error: newly created file is older than distributed files!
2104 Check your system clock" >&2;}
2105 { (exit 1); exit 1; }; }
2107 { $as_echo "$as_me:$LINENO: result: yes" >&5
2108 $as_echo "yes" >&6; }
2109 test "$program_prefix" != NONE &&
2110 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2111 # Use a double $ so make ignores it.
2112 test "$program_suffix" != NONE &&
2113 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2114 # Double any \ or $.
2115 # By default was `s,x,x', remove it if useless.
2116 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2117 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2119 # expand $ac_aux_dir to an absolute path
2120 am_aux_dir=`cd $ac_aux_dir && pwd`
2122 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2123 # Use eval to expand $SHELL
2124 if eval "$MISSING --run true"; then
2125 am_missing_run="$MISSING --run "
2128 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2129 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2132 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2133 # We used to keeping the `.' as first argument, in order to
2134 # allow $(mkdir_p) to be used without argument. As in
2135 # $(mkdir_p) $(somedir)
2136 # where $(somedir) is conditionally defined. However this is wrong
2138 # 1. if the package is installed by a user who cannot write `.'
2139 # make install will fail,
2140 # 2. the above comment should most certainly read
2141 # $(mkdir_p) $(DESTDIR)$(somedir)
2142 # so it does not work when $(somedir) is undefined and
2143 # $(DESTDIR) is not.
2144 # To support the latter case, we have to write
2145 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2146 # so the `.' trick is pointless.
2147 mkdir_p='mkdir -p --'
2149 # On NextStep and OpenStep, the `mkdir' command does not
2150 # recognize any option. It will interpret all options as
2151 # directories to create, and then abort because `.' already
2153 for d in ./-p ./--version;
2155 test -d $d && rmdir $d
2157 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2158 if test -f "$ac_aux_dir/mkinstalldirs"; then
2159 mkdir_p='$(mkinstalldirs)'
2161 mkdir_p='$(install_sh) -d'
2165 for ac_prog in gawk mawk nawk awk
2167 # Extract the first word of "$ac_prog", so it can be a program name with args.
2168 set dummy $ac_prog; ac_word=$2
2169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 $as_echo_n "checking for $ac_word... " >&6; }
2171 if test "${ac_cv_prog_AWK+set}" = set; then
2172 $as_echo_n "(cached) " >&6
2174 if test -n "$AWK"; then
2175 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 ac_cv_prog_AWK="$ac_prog"
2185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 if test -n "$AWK"; then
2196 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2197 $as_echo "$AWK" >&6; }
2199 { $as_echo "$as_me:$LINENO: result: no" >&5
2200 $as_echo "no" >&6; }
2204 test -n "$AWK" && break
2207 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2208 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2210 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2211 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2212 $as_echo_n "(cached) " >&6
2214 cat >conftest.make <<\_ACEOF
2217 @echo '@@@%%%=$(MAKE)=@@@%%%'
2219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2220 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2222 eval ac_cv_prog_make_${ac_make}_set=yes;;
2224 eval ac_cv_prog_make_${ac_make}_set=no;;
2228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2229 { $as_echo "$as_me:$LINENO: result: yes" >&5
2230 $as_echo "yes" >&6; }
2233 { $as_echo "$as_me:$LINENO: result: no" >&5
2234 $as_echo "no" >&6; }
2235 SET_MAKE="MAKE=${MAKE-make}"
2238 rm -rf .tst 2>/dev/null
2239 mkdir .tst 2>/dev/null
2240 if test -d .tst; then
2245 rmdir .tst 2>/dev/null
2247 # test to see if srcdir already configured
2248 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2249 test -f $srcdir/config.status; then
2250 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2251 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2252 { (exit 1); exit 1; }; }
2255 # test whether we have cygpath
2256 if test -z "$CYGPATH_W"; then
2257 if (cygpath --version) >/dev/null 2>/dev/null; then
2258 CYGPATH_W='cygpath -w'
2265 # Define the identity of the package.
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE "$PACKAGE"
2275 cat >>confdefs.h <<_ACEOF
2276 #define VERSION "$VERSION"
2279 # Some tools Automake needs.
2281 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2287 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2293 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2295 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2297 # Installed binaries are usually stripped using `strip' when the user
2298 # run `make install-strip'. However `strip' might not be the right
2299 # tool to use in cross-compilation environments, therefore Automake
2300 # will honor the `STRIP' environment variable to overrule this program.
2301 if test "$cross_compiling" != no; then
2302 if test -n "$ac_tool_prefix"; then
2303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2304 set dummy ${ac_tool_prefix}strip; ac_word=$2
2305 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 $as_echo_n "checking for $ac_word... " >&6; }
2307 if test "${ac_cv_prog_STRIP+set}" = set; then
2308 $as_echo_n "(cached) " >&6
2310 if test -n "$STRIP"; then
2311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 STRIP=$ac_cv_prog_STRIP
2331 if test -n "$STRIP"; then
2332 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2333 $as_echo "$STRIP" >&6; }
2335 { $as_echo "$as_me:$LINENO: result: no" >&5
2336 $as_echo "no" >&6; }
2341 if test -z "$ac_cv_prog_STRIP"; then
2343 # Extract the first word of "strip", so it can be a program name with args.
2344 set dummy strip; ac_word=$2
2345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 $as_echo_n "checking for $ac_word... " >&6; }
2347 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2348 $as_echo_n "(cached) " >&6
2350 if test -n "$ac_ct_STRIP"; then
2351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_ac_ct_STRIP="strip"
2361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2371 if test -n "$ac_ct_STRIP"; then
2372 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2373 $as_echo "$ac_ct_STRIP" >&6; }
2375 { $as_echo "$as_me:$LINENO: result: no" >&5
2376 $as_echo "no" >&6; }
2379 if test "x$ac_ct_STRIP" = x; then
2382 case $cross_compiling:$ac_tool_warned in
2384 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2385 whose name does not start with the host triplet. If you think this
2386 configuration is useful to you, please write to autoconf@gnu.org." >&5
2387 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2388 whose name does not start with the host triplet. If you think this
2389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2390 ac_tool_warned=yes ;;
2395 STRIP="$ac_cv_prog_STRIP"
2399 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2401 # We need awk for the "check" target. The system "awk" is bad on
2403 # Always define AMTAR for backward compatibility.
2405 AMTAR=${AMTAR-"${am_missing_run}tar"}
2407 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2413 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2414 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2415 # Check whether --enable-maintainer-mode was given.
2416 if test "${enable_maintainer_mode+set}" = set; then
2417 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2419 USE_MAINTAINER_MODE=no
2422 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2423 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2426 if test $USE_MAINTAINER_MODE = yes; then
2427 MAINTAINER_MODE_TRUE=
2428 MAINTAINER_MODE_FALSE='#'
2430 MAINTAINER_MODE_TRUE='#'
2431 MAINTAINER_MODE_FALSE=
2434 MAINT=$MAINTAINER_MODE_TRUE
2437 ac_config_headers="$ac_config_headers config.h"
2440 DEPDIR="${am__leading_dot}deps"
2442 ac_config_commands="$ac_config_commands depfiles"
2445 am_make=${MAKE-make}
2446 cat > confinc << 'END'
2451 # If we don't find an include directive, just comment out the code.
2452 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2453 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2457 # First try GNU make style include.
2458 echo "include confinc" > confmf
2459 # We grep out `Entering directory' and `Leaving directory'
2460 # messages which can occur if `w' ends up in MAKEFLAGS.
2461 # In particular we don't look at `^make:' because GNU make might
2462 # be invoked under some other name (usually "gmake"), in which
2463 # case it prints its new name instead of `make'.
2464 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2469 # Now try BSD make style include.
2470 if test "$am__include" = "#"; then
2471 echo '.include "confinc"' > confmf
2472 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2473 am__include=.include
2480 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2481 $as_echo "$_am_result" >&6; }
2482 rm -f confinc confmf
2484 # Check whether --enable-dependency-tracking was given.
2485 if test "${enable_dependency_tracking+set}" = set; then
2486 enableval=$enable_dependency_tracking;
2489 if test "x$enable_dependency_tracking" != xno; then
2490 am_depcomp="$ac_aux_dir/depcomp"
2495 if test "x$enable_dependency_tracking" != xno; then
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516 $as_echo_n "(cached) " >&6
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 if test -n "$CC"; then
2540 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2541 $as_echo "$CC" >&6; }
2543 { $as_echo "$as_me:$LINENO: result: no" >&5
2544 $as_echo "no" >&6; }
2549 if test -z "$ac_cv_prog_CC"; then
2551 # Extract the first word of "gcc", so it can be a program name with args.
2552 set dummy gcc; ac_word=$2
2553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2556 $as_echo_n "(cached) " >&6
2558 if test -n "$ac_ct_CC"; then
2559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_ac_ct_CC="gcc"
2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579 if test -n "$ac_ct_CC"; then
2580 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2581 $as_echo "$ac_ct_CC" >&6; }
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584 $as_echo "no" >&6; }
2587 if test "x$ac_ct_CC" = x; then
2590 case $cross_compiling:$ac_tool_warned in
2592 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2593 whose name does not start with the host triplet. If you think this
2594 configuration is useful to you, please write to autoconf@gnu.org." >&5
2595 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2596 whose name does not start with the host triplet. If you think this
2597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2598 ac_tool_warned=yes ;;
2606 if test -z "$CC"; then
2607 if test -n "$ac_tool_prefix"; then
2608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2609 set dummy ${ac_tool_prefix}cc; ac_word=$2
2610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if test "${ac_cv_prog_CC+set}" = set; then
2613 $as_echo_n "(cached) " >&6
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_CC="${ac_tool_prefix}cc"
2626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 if test -n "$CC"; then
2637 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2638 $as_echo "$CC" >&6; }
2640 { $as_echo "$as_me:$LINENO: result: no" >&5
2641 $as_echo "no" >&6; }
2647 if test -z "$CC"; then
2648 # Extract the first word of "cc", so it can be a program name with args.
2649 set dummy cc; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_CC+set}" = set; then
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2667 ac_prog_rejected=yes
2671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 if test $ac_prog_rejected = yes; then
2679 # We found a bogon in the path, so make sure we never use it.
2680 set dummy $ac_cv_prog_CC
2682 if test $# != 0; then
2683 # We chose a different compiler from the bogus one.
2684 # However, it has the same basename, so the bogon will be chosen
2685 # first if we set CC to just the basename; use the full file name.
2687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2693 if test -n "$CC"; then
2694 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2695 $as_echo "$CC" >&6; }
2697 { $as_echo "$as_me:$LINENO: result: no" >&5
2698 $as_echo "no" >&6; }
2703 if test -z "$CC"; then
2704 if test -n "$ac_tool_prefix"; then
2705 for ac_prog in cl.exe
2707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_CC+set}" = set; then
2712 $as_echo_n "(cached) " >&6
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 if test -n "$CC"; then
2736 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2739 { $as_echo "$as_me:$LINENO: result: no" >&5
2740 $as_echo "no" >&6; }
2744 test -n "$CC" && break
2747 if test -z "$CC"; then
2749 for ac_prog in cl.exe
2751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2752 set dummy $ac_prog; ac_word=$2
2753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2756 $as_echo_n "(cached) " >&6
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_ac_ct_CC="$ac_prog"
2769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779 if test -n "$ac_ct_CC"; then
2780 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2781 $as_echo "$ac_ct_CC" >&6; }
2783 { $as_echo "$as_me:$LINENO: result: no" >&5
2784 $as_echo "no" >&6; }
2788 test -n "$ac_ct_CC" && break
2791 if test "x$ac_ct_CC" = x; then
2794 case $cross_compiling:$ac_tool_warned in
2796 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2797 whose name does not start with the host triplet. If you think this
2798 configuration is useful to you, please write to autoconf@gnu.org." >&5
2799 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2800 whose name does not start with the host triplet. If you think this
2801 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2802 ac_tool_warned=yes ;;
2811 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2812 See \`config.log' for more details." >&5
2813 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2814 See \`config.log' for more details." >&2;}
2815 { (exit 1); exit 1; }; }
2817 # Provide some information about the compiler.
2818 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2821 { (ac_try="$ac_compiler --version >&5"
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2827 $as_echo "$ac_try_echo") >&5
2828 (eval "$ac_compiler --version >&5") 2>&5
2830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }
2832 { (ac_try="$ac_compiler -v >&5"
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2838 $as_echo "$ac_try_echo") >&5
2839 (eval "$ac_compiler -v >&5") 2>&5
2841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }
2843 { (ac_try="$ac_compiler -V >&5"
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2849 $as_echo "$ac_try_echo") >&5
2850 (eval "$ac_compiler -V >&5") 2>&5
2852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }
2855 cat >conftest.$ac_ext <<_ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2870 ac_clean_files_save=$ac_clean_files
2871 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2872 # Try to create an executable without -o first, disregard a.out.
2873 # It will help us diagnose broken compilers, and finding out an intuition
2875 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2876 $as_echo_n "checking for C compiler default output file name... " >&6; }
2877 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2879 # The possible output files:
2880 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2883 for ac_file in $ac_files
2886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2887 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2892 if { (ac_try="$ac_link_default"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2898 $as_echo "$ac_try_echo") >&5
2899 (eval "$ac_link_default") 2>&5
2901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; then
2903 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2904 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2905 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2906 # so that the user can short-circuit this test for compilers unknown to
2908 for ac_file in $ac_files ''
2910 test -f "$ac_file" || continue
2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2915 # We found the default executable, but exeext='' is most
2919 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2921 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2923 # We set ac_cv_exeext here because the later test for it is not
2924 # safe: cross compilers may not add the suffix if given an `-o'
2925 # argument, so we may need to know it at that point already.
2926 # Even if this section looks crufty: it has the advantage of
2933 test "$ac_cv_exeext" = no && ac_cv_exeext=
2939 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2940 $as_echo "$ac_file" >&6; }
2941 if test -z "$ac_file"; then
2942 $as_echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2946 See \`config.log' for more details." >&5
2947 $as_echo "$as_me: error: C compiler cannot create executables
2948 See \`config.log' for more details." >&2;}
2949 { (exit 77); exit 77; }; }
2952 ac_exeext=$ac_cv_exeext
2954 # Check that the compiler produces executables we can run. If not, either
2955 # the compiler is broken, or we cross compile.
2956 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2957 $as_echo_n "checking whether the C compiler works... " >&6; }
2958 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2959 # If not cross compiling, check that we can run a simple program.
2960 if test "$cross_compiling" != yes; then
2961 if { ac_try='./$ac_file'
2962 { (case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2967 $as_echo "$ac_try_echo") >&5
2968 (eval "$ac_try") 2>&5
2970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2974 if test "$cross_compiling" = maybe; then
2977 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2978 If you meant to cross compile, use \`--host'.
2979 See \`config.log' for more details." >&5
2980 $as_echo "$as_me: error: cannot run C compiled programs.
2981 If you meant to cross compile, use \`--host'.
2982 See \`config.log' for more details." >&2;}
2983 { (exit 1); exit 1; }; }
2987 { $as_echo "$as_me:$LINENO: result: yes" >&5
2988 $as_echo "yes" >&6; }
2990 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2991 ac_clean_files=$ac_clean_files_save
2992 # Check that the compiler produces executables we can run. If not, either
2993 # the compiler is broken, or we cross compile.
2994 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2995 $as_echo_n "checking whether we are cross compiling... " >&6; }
2996 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2997 $as_echo "$cross_compiling" >&6; }
2999 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3000 $as_echo_n "checking for suffix of executables... " >&6; }
3001 if { (ac_try="$ac_link"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3007 $as_echo "$ac_try_echo") >&5
3008 (eval "$ac_link") 2>&5
3010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; then
3012 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3013 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3014 # work properly (i.e., refer to `conftest.exe'), while it won't with
3016 for ac_file in conftest.exe conftest conftest.*; do
3017 test -f "$ac_file" || continue
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3020 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3026 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3027 See \`config.log' for more details." >&5
3028 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3029 See \`config.log' for more details." >&2;}
3030 { (exit 1); exit 1; }; }
3033 rm -f conftest$ac_cv_exeext
3034 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3035 $as_echo "$ac_cv_exeext" >&6; }
3037 rm -f conftest.$ac_ext
3038 EXEEXT=$ac_cv_exeext
3040 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3041 $as_echo_n "checking for suffix of object files... " >&6; }
3042 if test "${ac_cv_objext+set}" = set; then
3043 $as_echo_n "(cached) " >&6
3045 cat >conftest.$ac_ext <<_ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3060 rm -f conftest.o conftest.obj
3061 if { (ac_try="$ac_compile"
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3067 $as_echo "$ac_try_echo") >&5
3068 (eval "$ac_compile") 2>&5
3070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; then
3072 for ac_file in conftest.o conftest.obj conftest.*; do
3073 test -f "$ac_file" || continue;
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3076 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3081 $as_echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3085 See \`config.log' for more details." >&5
3086 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3087 See \`config.log' for more details." >&2;}
3088 { (exit 1); exit 1; }; }
3091 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3093 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3094 $as_echo "$ac_cv_objext" >&6; }
3095 OBJEXT=$ac_cv_objext
3097 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3098 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3099 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3100 $as_echo_n "(cached) " >&6
3102 cat >conftest.$ac_ext <<_ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3127 $as_echo "$ac_try_echo") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } && {
3135 test -z "$ac_c_werror_flag" ||
3136 test ! -s conftest.err
3137 } && test -s conftest.$ac_objext; then
3140 $as_echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3150 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3151 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3152 if test $ac_compiler_gnu = yes; then
3157 ac_test_CFLAGS=${CFLAGS+set}
3158 ac_save_CFLAGS=$CFLAGS
3159 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3160 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3161 if test "${ac_cv_prog_cc_g+set}" = set; then
3162 $as_echo_n "(cached) " >&6
3164 ac_save_c_werror_flag=$ac_c_werror_flag
3165 ac_c_werror_flag=yes
3168 cat >conftest.$ac_ext <<_ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3190 $as_echo "$ac_try_echo") >&5
3191 (eval "$ac_compile") 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } && {
3198 test -z "$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 } && test -s conftest.$ac_objext; then
3203 $as_echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3207 cat >conftest.$ac_ext <<_ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3222 rm -f conftest.$ac_objext
3223 if { (ac_try="$ac_compile"
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3229 $as_echo "$ac_try_echo") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3232 grep -v '^ *+' conftest.er1 >conftest.err
3234 cat conftest.err >&5
3235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } && {
3237 test -z "$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 } && test -s conftest.$ac_objext; then
3242 $as_echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 ac_c_werror_flag=$ac_save_c_werror_flag
3247 cat >conftest.$ac_ext <<_ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3262 rm -f conftest.$ac_objext
3263 if { (ac_try="$ac_compile"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3269 $as_echo "$ac_try_echo") >&5
3270 (eval "$ac_compile") 2>conftest.er1
3272 grep -v '^ *+' conftest.er1 >conftest.err
3274 cat conftest.err >&5
3275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } && {
3277 test -z "$ac_c_werror_flag" ||
3278 test ! -s conftest.err
3279 } && test -s conftest.$ac_objext; then
3282 $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 ac_c_werror_flag=$ac_save_c_werror_flag
3297 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3298 $as_echo "$ac_cv_prog_cc_g" >&6; }
3299 if test "$ac_test_CFLAGS" = set; then
3300 CFLAGS=$ac_save_CFLAGS
3301 elif test $ac_cv_prog_cc_g = yes; then
3302 if test "$GCC" = yes; then
3308 if test "$GCC" = yes; then
3314 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3315 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3316 if test "${ac_cv_prog_cc_c89+set}" = set; then
3317 $as_echo_n "(cached) " >&6
3319 ac_cv_prog_cc_c89=no
3321 cat >conftest.$ac_ext <<_ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3329 #include <sys/types.h>
3330 #include <sys/stat.h>
3331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3332 struct buf { int x; };
3333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3334 static char *e (p, i)
3340 static char *f (char * (*g) (char **, int), char **p, ...)
3345 s = g (p, va_arg (v,int));
3350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3351 function prototypes and stuff, but not '\xHH' hex character constants.
3352 These don't provoke an error unfortunately, instead are silently treated
3353 as 'x'. The following induces an error, until -std is added to get
3354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3355 array size at least. It's necessary to write '\x00'==0 to get something
3356 that's true only with -std. */
3357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3360 inside strings and character constants. */
3362 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3381 CC="$ac_save_CC $ac_arg"
3382 rm -f conftest.$ac_objext
3383 if { (ac_try="$ac_compile"
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3389 $as_echo "$ac_try_echo") >&5
3390 (eval "$ac_compile") 2>conftest.er1
3392 grep -v '^ *+' conftest.er1 >conftest.err
3394 cat conftest.err >&5
3395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } && {
3397 test -z "$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 } && test -s conftest.$ac_objext; then
3400 ac_cv_prog_cc_c89=$ac_arg
3402 $as_echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3408 rm -f core conftest.err conftest.$ac_objext
3409 test "x$ac_cv_prog_cc_c89" != "xno" && break
3411 rm -f conftest.$ac_ext
3416 case "x$ac_cv_prog_cc_c89" in
3418 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3419 $as_echo "none needed" >&6; } ;;
3421 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3422 $as_echo "unsupported" >&6; } ;;
3424 CC="$CC $ac_cv_prog_cc_c89"
3425 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3426 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 depcc="$CC" am_compiler_list=
3438 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3439 $as_echo_n "checking dependency style of $depcc... " >&6; }
3440 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3441 $as_echo_n "(cached) " >&6
3443 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3444 # We make a subdir and do the tests there. Otherwise we can end up
3445 # making bogus files that we don't know about and never remove. For
3446 # instance it was reported that on HP-UX the gcc test will end up
3447 # making a dummy file named `D' -- because `-MD' means `put the output
3450 # Copy depcomp to subdir because otherwise we won't find it if we're
3451 # using a relative directory.
3452 cp "$am_depcomp" conftest.dir
3454 # We will build objects and dependencies in a subdirectory because
3455 # it helps to detect inapplicable dependency modes. For instance
3456 # both Tru64's cc and ICC support -MD to output dependencies as a
3457 # side effect of compilation, but ICC will put the dependencies in
3458 # the current directory while Tru64 will put them in the object
3462 am_cv_CC_dependencies_compiler_type=none
3463 if test "$am_compiler_list" = ""; then
3464 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3466 for depmode in $am_compiler_list; do
3467 # Setup a source with many dependencies, because some compilers
3468 # like to wrap large dependency lists on column 80 (with \), and
3469 # we should not choose a depcomp mode which is confused by this.
3471 # We need to recreate these files for each test, as the compiler may
3472 # overwrite some of them when testing with obscure command lines.
3473 # This happens at least with the AIX C compiler.
3475 for i in 1 2 3 4 5 6; do
3476 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3477 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3478 # Solaris 8's {/usr,}/bin/sh.
3479 touch sub/conftst$i.h
3481 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3485 # after this tag, mechanisms are not by side-effect, so they'll
3486 # only be used when explicitly requested
3487 if test "x$enable_dependency_tracking" = xyes; then
3495 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3496 # mode. It turns out that the SunPro C++ compiler does not properly
3497 # handle `-M -o', and we need to detect this.
3498 if depmode=$depmode \
3499 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3500 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3501 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3502 >/dev/null 2>conftest.err &&
3503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3504 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3506 # icc doesn't choke on unknown options, it will just issue warnings
3507 # or remarks (even with -Werror). So we grep stderr for any message
3508 # that says an option was ignored or not supported.
3509 # When given -MP, icc 7.0 and 7.1 complain thusly:
3510 # icc: Command line warning: ignoring option '-M'; no argument required
3511 # The diagnosis changed in icc 8.0:
3512 # icc: Command line remark: option '-MP' not supported
3513 if (grep 'ignoring option' conftest.err ||
3514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3515 am_cv_CC_dependencies_compiler_type=$depmode
3524 am_cv_CC_dependencies_compiler_type=none
3528 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3529 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3530 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3535 test "x$enable_dependency_tracking" != xno \
3536 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3538 am__fastdepCC_FALSE='#'
3540 am__fastdepCC_TRUE='#'
3541 am__fastdepCC_FALSE=
3547 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3548 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3549 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3550 $as_echo_n "(cached) " >&6
3552 ac_check_lib_save_LIBS=$LIBS
3553 LIBS="-lcposix $LIBS"
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3561 /* Override any GCC internal prototype to avoid an error.
3562 Use char because int might match the return type of a GCC
3563 builtin and then its argument prototype would still apply. */
3576 rm -f conftest.$ac_objext conftest$ac_exeext
3577 if { (ac_try="$ac_link"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3583 $as_echo "$ac_try_echo") >&5
3584 (eval "$ac_link") 2>conftest.er1
3586 grep -v '^ *+' conftest.er1 >conftest.err
3588 cat conftest.err >&5
3589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } && {
3591 test -z "$ac_c_werror_flag" ||
3592 test ! -s conftest.err
3593 } && test -s conftest$ac_exeext && {
3594 test "$cross_compiling" = yes ||
3595 $as_test_x conftest$ac_exeext
3597 ac_cv_lib_cposix_strerror=yes
3599 $as_echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 ac_cv_lib_cposix_strerror=no
3605 rm -rf conftest.dSYM
3606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3607 conftest$ac_exeext conftest.$ac_ext
3608 LIBS=$ac_check_lib_save_LIBS
3610 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3611 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3612 if test $ac_cv_lib_cposix_strerror = yes; then
3613 LIBS="$LIBS -lcposix"
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 if test -n "$ac_tool_prefix"; then
3624 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3625 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3626 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_CC+set}" = set; then
3629 $as_echo_n "(cached) " >&6
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 if test -n "$CC"; then
3653 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3654 $as_echo "$CC" >&6; }
3656 { $as_echo "$as_me:$LINENO: result: no" >&5
3657 $as_echo "no" >&6; }
3662 if test -z "$ac_cv_prog_CC"; then
3664 # Extract the first word of "gcc", so it can be a program name with args.
3665 set dummy gcc; ac_word=$2
3666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3669 $as_echo_n "(cached) " >&6
3671 if test -n "$ac_ct_CC"; then
3672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_ac_ct_CC="gcc"
3682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3692 if test -n "$ac_ct_CC"; then
3693 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3694 $as_echo "$ac_ct_CC" >&6; }
3696 { $as_echo "$as_me:$LINENO: result: no" >&5
3697 $as_echo "no" >&6; }
3700 if test "x$ac_ct_CC" = x; then
3703 case $cross_compiling:$ac_tool_warned in
3705 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3706 whose name does not start with the host triplet. If you think this
3707 configuration is useful to you, please write to autoconf@gnu.org." >&5
3708 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3709 whose name does not start with the host triplet. If you think this
3710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3711 ac_tool_warned=yes ;;
3719 if test -z "$CC"; then
3720 if test -n "$ac_tool_prefix"; then
3721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3722 set dummy ${ac_tool_prefix}cc; ac_word=$2
3723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if test "${ac_cv_prog_CC+set}" = set; then
3726 $as_echo_n "(cached) " >&6
3728 if test -n "$CC"; then
3729 ac_cv_prog_CC="$CC" # Let the user override the test.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3738 ac_cv_prog_CC="${ac_tool_prefix}cc"
3739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 if test -n "$CC"; then
3750 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3751 $as_echo "$CC" >&6; }
3753 { $as_echo "$as_me:$LINENO: result: no" >&5
3754 $as_echo "no" >&6; }
3760 if test -z "$CC"; then
3761 # Extract the first word of "cc", so it can be a program name with args.
3762 set dummy cc; ac_word=$2
3763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if test "${ac_cv_prog_CC+set}" = set; then
3766 $as_echo_n "(cached) " >&6
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3780 ac_prog_rejected=yes
3784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 if test $ac_prog_rejected = yes; then
3792 # We found a bogon in the path, so make sure we never use it.
3793 set dummy $ac_cv_prog_CC
3795 if test $# != 0; then
3796 # We chose a different compiler from the bogus one.
3797 # However, it has the same basename, so the bogon will be chosen
3798 # first if we set CC to just the basename; use the full file name.
3800 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3806 if test -n "$CC"; then
3807 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3808 $as_echo "$CC" >&6; }
3810 { $as_echo "$as_me:$LINENO: result: no" >&5
3811 $as_echo "no" >&6; }
3816 if test -z "$CC"; then
3817 if test -n "$ac_tool_prefix"; then
3818 for ac_prog in cl.exe
3820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 $as_echo_n "checking for $ac_word... " >&6; }
3824 if test "${ac_cv_prog_CC+set}" = set; then
3825 $as_echo_n "(cached) " >&6
3827 if test -n "$CC"; then
3828 ac_cv_prog_CC="$CC" # Let the user override the test.
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3838 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 if test -n "$CC"; then
3849 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3850 $as_echo "$CC" >&6; }
3852 { $as_echo "$as_me:$LINENO: result: no" >&5
3853 $as_echo "no" >&6; }
3857 test -n "$CC" && break
3860 if test -z "$CC"; then
3862 for ac_prog in cl.exe
3864 # Extract the first word of "$ac_prog", so it can be a program name with args.
3865 set dummy $ac_prog; ac_word=$2
3866 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3867 $as_echo_n "checking for $ac_word... " >&6; }
3868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3869 $as_echo_n "(cached) " >&6
3871 if test -n "$ac_ct_CC"; then
3872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3881 ac_cv_prog_ac_ct_CC="$ac_prog"
3882 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3892 if test -n "$ac_ct_CC"; then
3893 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3894 $as_echo "$ac_ct_CC" >&6; }
3896 { $as_echo "$as_me:$LINENO: result: no" >&5
3897 $as_echo "no" >&6; }
3901 test -n "$ac_ct_CC" && break
3904 if test "x$ac_ct_CC" = x; then
3907 case $cross_compiling:$ac_tool_warned in
3909 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3910 whose name does not start with the host triplet. If you think this
3911 configuration is useful to you, please write to autoconf@gnu.org." >&5
3912 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3913 whose name does not start with the host triplet. If you think this
3914 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3915 ac_tool_warned=yes ;;
3924 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3925 See \`config.log' for more details." >&5
3926 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3927 See \`config.log' for more details." >&2;}
3928 { (exit 1); exit 1; }; }
3930 # Provide some information about the compiler.
3931 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3934 { (ac_try="$ac_compiler --version >&5"
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3940 $as_echo "$ac_try_echo") >&5
3941 (eval "$ac_compiler --version >&5") 2>&5
3943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }
3945 { (ac_try="$ac_compiler -v >&5"
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3951 $as_echo "$ac_try_echo") >&5
3952 (eval "$ac_compiler -v >&5") 2>&5
3954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }
3956 { (ac_try="$ac_compiler -V >&5"
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3962 $as_echo "$ac_try_echo") >&5
3963 (eval "$ac_compiler -V >&5") 2>&5
3965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }
3968 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3969 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3971 $as_echo_n "(cached) " >&6
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3998 $as_echo "$ac_try_echo") >&5
3999 (eval "$ac_compile") 2>conftest.er1
4001 grep -v '^ *+' conftest.er1 >conftest.err
4003 cat conftest.err >&5
4004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && {
4006 test -z "$ac_c_werror_flag" ||
4007 test ! -s conftest.err
4008 } && test -s conftest.$ac_objext; then
4011 $as_echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4021 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4022 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4023 if test $ac_compiler_gnu = yes; then
4028 ac_test_CFLAGS=${CFLAGS+set}
4029 ac_save_CFLAGS=$CFLAGS
4030 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4031 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4032 if test "${ac_cv_prog_cc_g+set}" = set; then
4033 $as_echo_n "(cached) " >&6
4035 ac_save_c_werror_flag=$ac_c_werror_flag
4036 ac_c_werror_flag=yes
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4054 rm -f conftest.$ac_objext
4055 if { (ac_try="$ac_compile"
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4061 $as_echo "$ac_try_echo") >&5
4062 (eval "$ac_compile") 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && {
4069 test -z "$ac_c_werror_flag" ||
4070 test ! -s conftest.err
4071 } && test -s conftest.$ac_objext; then
4074 $as_echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4093 rm -f conftest.$ac_objext
4094 if { (ac_try="$ac_compile"
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4100 $as_echo "$ac_try_echo") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } && {
4108 test -z "$ac_c_werror_flag" ||
4109 test ! -s conftest.err
4110 } && test -s conftest.$ac_objext; then
4113 $as_echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4118 cat >conftest.$ac_ext <<_ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4140 $as_echo "$ac_try_echo") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4153 $as_echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 ac_c_werror_flag=$ac_save_c_werror_flag
4168 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4169 $as_echo "$ac_cv_prog_cc_g" >&6; }
4170 if test "$ac_test_CFLAGS" = set; then
4171 CFLAGS=$ac_save_CFLAGS
4172 elif test $ac_cv_prog_cc_g = yes; then
4173 if test "$GCC" = yes; then
4179 if test "$GCC" = yes; then
4185 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4186 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4187 if test "${ac_cv_prog_cc_c89+set}" = set; then
4188 $as_echo_n "(cached) " >&6
4190 ac_cv_prog_cc_c89=no
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4200 #include <sys/types.h>
4201 #include <sys/stat.h>
4202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4203 struct buf { int x; };
4204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4205 static char *e (p, i)
4211 static char *f (char * (*g) (char **, int), char **p, ...)
4216 s = g (p, va_arg (v,int));
4221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4222 function prototypes and stuff, but not '\xHH' hex character constants.
4223 These don't provoke an error unfortunately, instead are silently treated
4224 as 'x'. The following induces an error, until -std is added to get
4225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4226 array size at least. It's necessary to write '\x00'==0 to get something
4227 that's true only with -std. */
4228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4230 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4231 inside strings and character constants. */
4233 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4235 int test (int i, double x);
4236 struct s1 {int (*f) (int a);};
4237 struct s2 {int (*f) (double a);};
4238 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4244 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4249 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4250 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4252 CC="$ac_save_CC $ac_arg"
4253 rm -f conftest.$ac_objext
4254 if { (ac_try="$ac_compile"
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4260 $as_echo "$ac_try_echo") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && {
4268 test -z "$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 } && test -s conftest.$ac_objext; then
4271 ac_cv_prog_cc_c89=$ac_arg
4273 $as_echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4279 rm -f core conftest.err conftest.$ac_objext
4280 test "x$ac_cv_prog_cc_c89" != "xno" && break
4282 rm -f conftest.$ac_ext
4287 case "x$ac_cv_prog_cc_c89" in
4289 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4290 $as_echo "none needed" >&6; } ;;
4292 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4293 $as_echo "unsupported" >&6; } ;;
4295 CC="$CC $ac_cv_prog_cc_c89"
4296 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4297 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4302 ac_cpp='$CPP $CPPFLAGS'
4303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307 depcc="$CC" am_compiler_list=
4309 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4310 $as_echo_n "checking dependency style of $depcc... " >&6; }
4311 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4312 $as_echo_n "(cached) " >&6
4314 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4315 # We make a subdir and do the tests there. Otherwise we can end up
4316 # making bogus files that we don't know about and never remove. For
4317 # instance it was reported that on HP-UX the gcc test will end up
4318 # making a dummy file named `D' -- because `-MD' means `put the output
4321 # Copy depcomp to subdir because otherwise we won't find it if we're
4322 # using a relative directory.
4323 cp "$am_depcomp" conftest.dir
4325 # We will build objects and dependencies in a subdirectory because
4326 # it helps to detect inapplicable dependency modes. For instance
4327 # both Tru64's cc and ICC support -MD to output dependencies as a
4328 # side effect of compilation, but ICC will put the dependencies in
4329 # the current directory while Tru64 will put them in the object
4333 am_cv_CC_dependencies_compiler_type=none
4334 if test "$am_compiler_list" = ""; then
4335 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4337 for depmode in $am_compiler_list; do
4338 # Setup a source with many dependencies, because some compilers
4339 # like to wrap large dependency lists on column 80 (with \), and
4340 # we should not choose a depcomp mode which is confused by this.
4342 # We need to recreate these files for each test, as the compiler may
4343 # overwrite some of them when testing with obscure command lines.
4344 # This happens at least with the AIX C compiler.
4346 for i in 1 2 3 4 5 6; do
4347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4348 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4349 # Solaris 8's {/usr,}/bin/sh.
4350 touch sub/conftst$i.h
4352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4356 # after this tag, mechanisms are not by side-effect, so they'll
4357 # only be used when explicitly requested
4358 if test "x$enable_dependency_tracking" = xyes; then
4366 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4367 # mode. It turns out that the SunPro C++ compiler does not properly
4368 # handle `-M -o', and we need to detect this.
4369 if depmode=$depmode \
4370 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4371 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4372 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4373 >/dev/null 2>conftest.err &&
4374 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4375 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4376 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4377 # icc doesn't choke on unknown options, it will just issue warnings
4378 # or remarks (even with -Werror). So we grep stderr for any message
4379 # that says an option was ignored or not supported.
4380 # When given -MP, icc 7.0 and 7.1 complain thusly:
4381 # icc: Command line warning: ignoring option '-M'; no argument required
4382 # The diagnosis changed in icc 8.0:
4383 # icc: Command line remark: option '-MP' not supported
4384 if (grep 'ignoring option' conftest.err ||
4385 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4386 am_cv_CC_dependencies_compiler_type=$depmode
4395 am_cv_CC_dependencies_compiler_type=none
4399 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4400 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4401 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4406 test "x$enable_dependency_tracking" != xno \
4407 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4409 am__fastdepCC_FALSE='#'
4411 am__fastdepCC_TRUE='#'
4412 am__fastdepCC_FALSE=
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421 if test -n "$ac_tool_prefix"; then
4422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4424 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if test "${ac_cv_prog_CC+set}" = set; then
4427 $as_echo_n "(cached) " >&6
4429 if test -n "$CC"; then
4430 ac_cv_prog_CC="$CC" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 if test -n "$CC"; then
4451 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4452 $as_echo "$CC" >&6; }
4454 { $as_echo "$as_me:$LINENO: result: no" >&5
4455 $as_echo "no" >&6; }
4460 if test -z "$ac_cv_prog_CC"; then
4462 # Extract the first word of "gcc", so it can be a program name with args.
4463 set dummy gcc; ac_word=$2
4464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4467 $as_echo_n "(cached) " >&6
4469 if test -n "$ac_ct_CC"; then
4470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_ac_ct_CC="gcc"
4480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4490 if test -n "$ac_ct_CC"; then
4491 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4492 $as_echo "$ac_ct_CC" >&6; }
4494 { $as_echo "$as_me:$LINENO: result: no" >&5
4495 $as_echo "no" >&6; }
4498 if test "x$ac_ct_CC" = x; then
4501 case $cross_compiling:$ac_tool_warned in
4503 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4504 whose name does not start with the host triplet. If you think this
4505 configuration is useful to you, please write to autoconf@gnu.org." >&5
4506 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4507 whose name does not start with the host triplet. If you think this
4508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4509 ac_tool_warned=yes ;;
4517 if test -z "$CC"; then
4518 if test -n "$ac_tool_prefix"; then
4519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4520 set dummy ${ac_tool_prefix}cc; ac_word=$2
4521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if test "${ac_cv_prog_CC+set}" = set; then
4524 $as_echo_n "(cached) " >&6
4526 if test -n "$CC"; then
4527 ac_cv_prog_CC="$CC" # Let the user override the test.
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_CC="${ac_tool_prefix}cc"
4537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 if test -n "$CC"; then
4548 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4549 $as_echo "$CC" >&6; }
4551 { $as_echo "$as_me:$LINENO: result: no" >&5
4552 $as_echo "no" >&6; }
4558 if test -z "$CC"; then
4559 # Extract the first word of "cc", so it can be a program name with args.
4560 set dummy cc; ac_word=$2
4561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_CC+set}" = set; then
4564 $as_echo_n "(cached) " >&6
4566 if test -n "$CC"; then
4567 ac_cv_prog_CC="$CC" # Let the user override the test.
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4578 ac_prog_rejected=yes
4582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 if test $ac_prog_rejected = yes; then
4590 # We found a bogon in the path, so make sure we never use it.
4591 set dummy $ac_cv_prog_CC
4593 if test $# != 0; then
4594 # We chose a different compiler from the bogus one.
4595 # However, it has the same basename, so the bogon will be chosen
4596 # first if we set CC to just the basename; use the full file name.
4598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4604 if test -n "$CC"; then
4605 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4606 $as_echo "$CC" >&6; }
4608 { $as_echo "$as_me:$LINENO: result: no" >&5
4609 $as_echo "no" >&6; }
4614 if test -z "$CC"; then
4615 if test -n "$ac_tool_prefix"; then
4616 for ac_prog in cl.exe
4618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4620 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623 $as_echo_n "(cached) " >&6
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4636 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 if test -n "$CC"; then
4647 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4648 $as_echo "$CC" >&6; }
4650 { $as_echo "$as_me:$LINENO: result: no" >&5
4651 $as_echo "no" >&6; }
4655 test -n "$CC" && break
4658 if test -z "$CC"; then
4660 for ac_prog in cl.exe
4662 # Extract the first word of "$ac_prog", so it can be a program name with args.
4663 set dummy $ac_prog; ac_word=$2
4664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 $as_echo_n "checking for $ac_word... " >&6; }
4666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4667 $as_echo_n "(cached) " >&6
4669 if test -n "$ac_ct_CC"; then
4670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 ac_cv_prog_ac_ct_CC="$ac_prog"
4680 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4690 if test -n "$ac_ct_CC"; then
4691 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4692 $as_echo "$ac_ct_CC" >&6; }
4694 { $as_echo "$as_me:$LINENO: result: no" >&5
4695 $as_echo "no" >&6; }
4699 test -n "$ac_ct_CC" && break
4702 if test "x$ac_ct_CC" = x; then
4705 case $cross_compiling:$ac_tool_warned in
4707 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4708 whose name does not start with the host triplet. If you think this
4709 configuration is useful to you, please write to autoconf@gnu.org." >&5
4710 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4711 whose name does not start with the host triplet. If you think this
4712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4713 ac_tool_warned=yes ;;
4722 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4723 See \`config.log' for more details." >&5
4724 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4725 See \`config.log' for more details." >&2;}
4726 { (exit 1); exit 1; }; }
4728 # Provide some information about the compiler.
4729 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4732 { (ac_try="$ac_compiler --version >&5"
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4738 $as_echo "$ac_try_echo") >&5
4739 (eval "$ac_compiler --version >&5") 2>&5
4741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }
4743 { (ac_try="$ac_compiler -v >&5"
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750 (eval "$ac_compiler -v >&5") 2>&5
4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }
4754 { (ac_try="$ac_compiler -V >&5"
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4760 $as_echo "$ac_try_echo") >&5
4761 (eval "$ac_compiler -V >&5") 2>&5
4763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }
4766 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4767 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4768 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4769 $as_echo_n "(cached) " >&6
4771 cat >conftest.$ac_ext <<_ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4796 $as_echo "$ac_try_echo") >&5
4797 (eval "$ac_compile") 2>conftest.er1
4799 grep -v '^ *+' conftest.er1 >conftest.err
4801 cat conftest.err >&5
4802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } && {
4804 test -z "$ac_c_werror_flag" ||
4805 test ! -s conftest.err
4806 } && test -s conftest.$ac_objext; then
4809 $as_echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4819 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4820 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4821 if test $ac_compiler_gnu = yes; then
4826 ac_test_CFLAGS=${CFLAGS+set}
4827 ac_save_CFLAGS=$CFLAGS
4828 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4829 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4830 if test "${ac_cv_prog_cc_g+set}" = set; then
4831 $as_echo_n "(cached) " >&6
4833 ac_save_c_werror_flag=$ac_c_werror_flag
4834 ac_c_werror_flag=yes
4837 cat >conftest.$ac_ext <<_ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4852 rm -f conftest.$ac_objext
4853 if { (ac_try="$ac_compile"
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4859 $as_echo "$ac_try_echo") >&5
4860 (eval "$ac_compile") 2>conftest.er1
4862 grep -v '^ *+' conftest.er1 >conftest.err
4864 cat conftest.err >&5
4865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } && {
4867 test -z "$ac_c_werror_flag" ||
4868 test ! -s conftest.err
4869 } && test -s conftest.$ac_objext; then
4872 $as_echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4876 cat >conftest.$ac_ext <<_ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4891 rm -f conftest.$ac_objext
4892 if { (ac_try="$ac_compile"
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4898 $as_echo "$ac_try_echo") >&5
4899 (eval "$ac_compile") 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
4903 cat conftest.err >&5
4904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest.$ac_objext; then
4911 $as_echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4914 ac_c_werror_flag=$ac_save_c_werror_flag
4916 cat >conftest.$ac_ext <<_ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4938 $as_echo "$ac_try_echo") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4941 grep -v '^ *+' conftest.er1 >conftest.err
4943 cat conftest.err >&5
4944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.$ac_objext; then
4951 $as_echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 ac_c_werror_flag=$ac_save_c_werror_flag
4966 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4967 $as_echo "$ac_cv_prog_cc_g" >&6; }
4968 if test "$ac_test_CFLAGS" = set; then
4969 CFLAGS=$ac_save_CFLAGS
4970 elif test $ac_cv_prog_cc_g = yes; then
4971 if test "$GCC" = yes; then
4977 if test "$GCC" = yes; then
4983 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4984 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4985 if test "${ac_cv_prog_cc_c89+set}" = set; then
4986 $as_echo_n "(cached) " >&6
4988 ac_cv_prog_cc_c89=no
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4998 #include <sys/types.h>
4999 #include <sys/stat.h>
5000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5001 struct buf { int x; };
5002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5003 static char *e (p, i)
5009 static char *f (char * (*g) (char **, int), char **p, ...)
5014 s = g (p, va_arg (v,int));
5019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5020 function prototypes and stuff, but not '\xHH' hex character constants.
5021 These don't provoke an error unfortunately, instead are silently treated
5022 as 'x'. The following induces an error, until -std is added to get
5023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5024 array size at least. It's necessary to write '\x00'==0 to get something
5025 that's true only with -std. */
5026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5028 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5029 inside strings and character constants. */
5031 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5033 int test (int i, double x);
5034 struct s1 {int (*f) (int a);};
5035 struct s2 {int (*f) (double a);};
5036 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5042 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5047 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5048 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5050 CC="$ac_save_CC $ac_arg"
5051 rm -f conftest.$ac_objext
5052 if { (ac_try="$ac_compile"
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5058 $as_echo "$ac_try_echo") >&5
5059 (eval "$ac_compile") 2>conftest.er1
5061 grep -v '^ *+' conftest.er1 >conftest.err
5063 cat conftest.err >&5
5064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } && {
5066 test -z "$ac_c_werror_flag" ||
5067 test ! -s conftest.err
5068 } && test -s conftest.$ac_objext; then
5069 ac_cv_prog_cc_c89=$ac_arg
5071 $as_echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5077 rm -f core conftest.err conftest.$ac_objext
5078 test "x$ac_cv_prog_cc_c89" != "xno" && break
5080 rm -f conftest.$ac_ext
5085 case "x$ac_cv_prog_cc_c89" in
5087 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5088 $as_echo "none needed" >&6; } ;;
5090 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5091 $as_echo "unsupported" >&6; } ;;
5093 CC="$CC $ac_cv_prog_cc_c89"
5094 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5095 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105 depcc="$CC" am_compiler_list=
5107 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5108 $as_echo_n "checking dependency style of $depcc... " >&6; }
5109 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5110 $as_echo_n "(cached) " >&6
5112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5113 # We make a subdir and do the tests there. Otherwise we can end up
5114 # making bogus files that we don't know about and never remove. For
5115 # instance it was reported that on HP-UX the gcc test will end up
5116 # making a dummy file named `D' -- because `-MD' means `put the output
5119 # Copy depcomp to subdir because otherwise we won't find it if we're
5120 # using a relative directory.
5121 cp "$am_depcomp" conftest.dir
5123 # We will build objects and dependencies in a subdirectory because
5124 # it helps to detect inapplicable dependency modes. For instance
5125 # both Tru64's cc and ICC support -MD to output dependencies as a
5126 # side effect of compilation, but ICC will put the dependencies in
5127 # the current directory while Tru64 will put them in the object
5131 am_cv_CC_dependencies_compiler_type=none
5132 if test "$am_compiler_list" = ""; then
5133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5135 for depmode in $am_compiler_list; do
5136 # Setup a source with many dependencies, because some compilers
5137 # like to wrap large dependency lists on column 80 (with \), and
5138 # we should not choose a depcomp mode which is confused by this.
5140 # We need to recreate these files for each test, as the compiler may
5141 # overwrite some of them when testing with obscure command lines.
5142 # This happens at least with the AIX C compiler.
5144 for i in 1 2 3 4 5 6; do
5145 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5146 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5147 # Solaris 8's {/usr,}/bin/sh.
5148 touch sub/conftst$i.h
5150 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5154 # after this tag, mechanisms are not by side-effect, so they'll
5155 # only be used when explicitly requested
5156 if test "x$enable_dependency_tracking" = xyes; then
5164 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5165 # mode. It turns out that the SunPro C++ compiler does not properly
5166 # handle `-M -o', and we need to detect this.
5167 if depmode=$depmode \
5168 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5169 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5170 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5171 >/dev/null 2>conftest.err &&
5172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5173 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5175 # icc doesn't choke on unknown options, it will just issue warnings
5176 # or remarks (even with -Werror). So we grep stderr for any message
5177 # that says an option was ignored or not supported.
5178 # When given -MP, icc 7.0 and 7.1 complain thusly:
5179 # icc: Command line warning: ignoring option '-M'; no argument required
5180 # The diagnosis changed in icc 8.0:
5181 # icc: Command line remark: option '-MP' not supported
5182 if (grep 'ignoring option' conftest.err ||
5183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5184 am_cv_CC_dependencies_compiler_type=$depmode
5193 am_cv_CC_dependencies_compiler_type=none
5197 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5198 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5199 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5204 test "x$enable_dependency_tracking" != xno \
5205 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5207 am__fastdepCC_FALSE='#'
5209 am__fastdepCC_TRUE='#'
5210 am__fastdepCC_FALSE=
5215 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5217 # By default we simply use the C compiler to build assembly code.
5219 test "${CCAS+set}" = set || CCAS=$CC
5220 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5225 ac_cpp='$CPP $CPPFLAGS'
5226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5230 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5231 # On Suns, sometimes $CPP names a directory.
5232 if test -n "$CPP" && test -d "$CPP"; then
5235 if test -z "$CPP"; then
5236 if test "${ac_cv_prog_CPP+set}" = set; then
5237 $as_echo_n "(cached) " >&6
5239 # Double quotes because CPP needs to be expanded
5240 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5243 for ac_c_preproc_warn_flag in '' yes
5245 # Use a header file that comes with gcc, so configuring glibc
5246 # with a fresh cross-compiler works.
5247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5248 # <limits.h> exists even on freestanding compilers.
5249 # On the NeXT, cc -E runs the code through the compiler's parser,
5250 # not just through cpp. "Syntax error" is here to catch this case.
5251 cat >conftest.$ac_ext <<_ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5258 # include <limits.h>
5260 # include <assert.h>
5264 if { (ac_try="$ac_cpp conftest.$ac_ext"
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5270 $as_echo "$ac_try_echo") >&5
5271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5273 grep -v '^ *+' conftest.er1 >conftest.err
5275 cat conftest.err >&5
5276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } >/dev/null && {
5278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5283 $as_echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 # Broken: fails on valid input.
5290 rm -f conftest.err conftest.$ac_ext
5292 # OK, works on sane cases. Now check whether nonexistent headers
5293 # can be detected and how.
5294 cat >conftest.$ac_ext <<_ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <ac_nonexistent.h>
5302 if { (ac_try="$ac_cpp conftest.$ac_ext"
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5308 $as_echo "$ac_try_echo") >&5
5309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5311 grep -v '^ *+' conftest.er1 >conftest.err
5313 cat conftest.err >&5
5314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } >/dev/null && {
5316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5317 test ! -s conftest.err
5319 # Broken: success on invalid input.
5322 $as_echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5325 # Passes both tests.
5330 rm -f conftest.err conftest.$ac_ext
5333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5334 rm -f conftest.err conftest.$ac_ext
5335 if $ac_preproc_ok; then
5347 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5348 $as_echo "$CPP" >&6; }
5350 for ac_c_preproc_warn_flag in '' yes
5352 # Use a header file that comes with gcc, so configuring glibc
5353 # with a fresh cross-compiler works.
5354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5355 # <limits.h> exists even on freestanding compilers.
5356 # On the NeXT, cc -E runs the code through the compiler's parser,
5357 # not just through cpp. "Syntax error" is here to catch this case.
5358 cat >conftest.$ac_ext <<_ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5365 # include <limits.h>
5367 # include <assert.h>
5371 if { (ac_try="$ac_cpp conftest.$ac_ext"
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5377 $as_echo "$ac_try_echo") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null && {
5385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5390 $as_echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 # Broken: fails on valid input.
5397 rm -f conftest.err conftest.$ac_ext
5399 # OK, works on sane cases. Now check whether nonexistent headers
5400 # can be detected and how.
5401 cat >conftest.$ac_ext <<_ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5409 if { (ac_try="$ac_cpp conftest.$ac_ext"
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5415 $as_echo "$ac_try_echo") >&5
5416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5418 grep -v '^ *+' conftest.er1 >conftest.err
5420 cat conftest.err >&5
5421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } >/dev/null && {
5423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5424 test ! -s conftest.err
5426 # Broken: success on invalid input.
5429 $as_echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5432 # Passes both tests.
5437 rm -f conftest.err conftest.$ac_ext
5440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5441 rm -f conftest.err conftest.$ac_ext
5442 if $ac_preproc_ok; then
5445 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5446 See \`config.log' for more details." >&5
5447 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5448 See \`config.log' for more details." >&2;}
5449 { (exit 1); exit 1; }; }
5453 ac_cpp='$CPP $CPPFLAGS'
5454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5459 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5460 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5461 if test "${ac_cv_path_GREP+set}" = set; then
5462 $as_echo_n "(cached) " >&6
5464 if test -z "$GREP"; then
5465 ac_path_GREP_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5471 test -z "$as_dir" && as_dir=.
5472 for ac_prog in grep ggrep; do
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5475 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5476 # Check for GNU ac_path_GREP and select it if it is found.
5477 # Check for GNU $ac_path_GREP
5478 case `"$ac_path_GREP" --version 2>&1` in
5480 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5483 $as_echo_n 0123456789 >"conftest.in"
5486 cat "conftest.in" "conftest.in" >"conftest.tmp"
5487 mv "conftest.tmp" "conftest.in"
5488 cp "conftest.in" "conftest.nl"
5489 $as_echo 'GREP' >> "conftest.nl"
5490 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492 ac_count=`expr $ac_count + 1`
5493 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5494 # Best one so far, save it but keep looking for a better one
5495 ac_cv_path_GREP="$ac_path_GREP"
5496 ac_path_GREP_max=$ac_count
5498 # 10*(2^10) chars as input seems more than enough
5499 test $ac_count -gt 10 && break
5501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5504 $ac_path_GREP_found && break 3
5509 if test -z "$ac_cv_path_GREP"; then
5510 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5511 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5512 { (exit 1); exit 1; }; }
5515 ac_cv_path_GREP=$GREP
5519 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5520 $as_echo "$ac_cv_path_GREP" >&6; }
5521 GREP="$ac_cv_path_GREP"
5524 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5525 $as_echo_n "checking for egrep... " >&6; }
5526 if test "${ac_cv_path_EGREP+set}" = set; then
5527 $as_echo_n "(cached) " >&6
5529 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5530 then ac_cv_path_EGREP="$GREP -E"
5532 if test -z "$EGREP"; then
5533 ac_path_EGREP_found=false
5534 # Loop through the user's path and test for each of PROGNAME-LIST
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5539 test -z "$as_dir" && as_dir=.
5540 for ac_prog in egrep; do
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5543 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5544 # Check for GNU ac_path_EGREP and select it if it is found.
5545 # Check for GNU $ac_path_EGREP
5546 case `"$ac_path_EGREP" --version 2>&1` in
5548 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5551 $as_echo_n 0123456789 >"conftest.in"
5554 cat "conftest.in" "conftest.in" >"conftest.tmp"
5555 mv "conftest.tmp" "conftest.in"
5556 cp "conftest.in" "conftest.nl"
5557 $as_echo 'EGREP' >> "conftest.nl"
5558 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5559 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5560 ac_count=`expr $ac_count + 1`
5561 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5562 # Best one so far, save it but keep looking for a better one
5563 ac_cv_path_EGREP="$ac_path_EGREP"
5564 ac_path_EGREP_max=$ac_count
5566 # 10*(2^10) chars as input seems more than enough
5567 test $ac_count -gt 10 && break
5569 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5572 $ac_path_EGREP_found && break 3
5577 if test -z "$ac_cv_path_EGREP"; then
5578 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5579 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5580 { (exit 1); exit 1; }; }
5583 ac_cv_path_EGREP=$EGREP
5588 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5589 $as_echo "$ac_cv_path_EGREP" >&6; }
5590 EGREP="$ac_cv_path_EGREP"
5593 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5594 $as_echo_n "checking for ANSI C header files... " >&6; }
5595 if test "${ac_cv_header_stdc+set}" = set; then
5596 $as_echo_n "(cached) " >&6
5598 cat >conftest.$ac_ext <<_ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5617 rm -f conftest.$ac_objext
5618 if { (ac_try="$ac_compile"
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5624 $as_echo "$ac_try_echo") >&5
5625 (eval "$ac_compile") 2>conftest.er1
5627 grep -v '^ *+' conftest.er1 >conftest.err
5629 cat conftest.err >&5
5630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && {
5632 test -z "$ac_c_werror_flag" ||
5633 test ! -s conftest.err
5634 } && test -s conftest.$ac_objext; then
5635 ac_cv_header_stdc=yes
5637 $as_echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_cv_header_stdc=no
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 if test $ac_cv_header_stdc = yes; then
5646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5647 cat >conftest.$ac_ext <<_ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5657 $EGREP "memchr" >/dev/null 2>&1; then
5660 ac_cv_header_stdc=no
5666 if test $ac_cv_header_stdc = yes; then
5667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5668 cat >conftest.$ac_ext <<_ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5678 $EGREP "free" >/dev/null 2>&1; then
5681 ac_cv_header_stdc=no
5687 if test $ac_cv_header_stdc = yes; then
5688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5689 if test "$cross_compiling" = yes; then
5692 cat >conftest.$ac_ext <<_ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5700 #if ((' ' & 0x0FF) == 0x020)
5701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5704 # define ISLOWER(c) \
5705 (('a' <= (c) && (c) <= 'i') \
5706 || ('j' <= (c) && (c) <= 'r') \
5707 || ('s' <= (c) && (c) <= 'z'))
5708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5716 for (i = 0; i < 256; i++)
5717 if (XOR (islower (i), ISLOWER (i))
5718 || toupper (i) != TOUPPER (i))
5723 rm -f conftest$ac_exeext
5724 if { (ac_try="$ac_link"
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5730 $as_echo "$ac_try_echo") >&5
5731 (eval "$ac_link") 2>&5
5733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5735 { (case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5740 $as_echo "$ac_try_echo") >&5
5741 (eval "$ac_try") 2>&5
5743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5747 $as_echo "$as_me: program exited with status $ac_status" >&5
5748 $as_echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5752 ac_cv_header_stdc=no
5754 rm -rf conftest.dSYM
5755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5761 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5762 $as_echo "$ac_cv_header_stdc" >&6; }
5763 if test $ac_cv_header_stdc = yes; then
5765 cat >>confdefs.h <<\_ACEOF
5766 #define STDC_HEADERS 1
5771 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5781 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5782 inttypes.h stdint.h unistd.h
5784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5786 $as_echo_n "checking for $ac_header... " >&6; }
5787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5788 $as_echo_n "(cached) " >&6
5790 cat >conftest.$ac_ext <<_ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 $ac_includes_default
5798 #include <$ac_header>
5800 rm -f conftest.$ac_objext
5801 if { (ac_try="$ac_compile"
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5807 $as_echo "$ac_try_echo") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.$ac_objext; then
5818 eval "$as_ac_Header=yes"
5820 $as_echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 eval "$as_ac_Header=no"
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 ac_res=`eval 'as_val=${'$as_ac_Header'}
5829 $as_echo "$as_val"'`
5830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5831 $as_echo "$ac_res" >&6; }
5832 if test `eval 'as_val=${'$as_ac_Header'}
5833 $as_echo "$as_val"'` = yes; then
5834 cat >>confdefs.h <<_ACEOF
5835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5843 # The cast to long int works around a bug in the HP C Compiler
5844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5846 # This bug is HP SR number 8606223364.
5847 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
5848 $as_echo_n "checking size of void *... " >&6; }
5849 if test "${ac_cv_sizeof_void_p+set}" = set; then
5850 $as_echo_n "(cached) " >&6
5852 if test "$cross_compiling" = yes; then
5853 # Depending upon the size, compute the lo and hi bounds.
5854 cat >conftest.$ac_ext <<_ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5860 $ac_includes_default
5864 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5878 $as_echo "$ac_try_echo") >&5
5879 (eval "$ac_compile") 2>conftest.er1
5881 grep -v '^ *+' conftest.er1 >conftest.err
5883 cat conftest.err >&5
5884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } && {
5886 test -z "$ac_c_werror_flag" ||
5887 test ! -s conftest.err
5888 } && test -s conftest.$ac_objext; then
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 $ac_includes_default
5901 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
5908 rm -f conftest.$ac_objext
5909 if { (ac_try="$ac_compile"
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5915 $as_echo "$ac_try_echo") >&5
5916 (eval "$ac_compile") 2>conftest.er1
5918 grep -v '^ *+' conftest.er1 >conftest.err
5920 cat conftest.err >&5
5921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } && {
5923 test -z "$ac_c_werror_flag" ||
5924 test ! -s conftest.err
5925 } && test -s conftest.$ac_objext; then
5926 ac_hi=$ac_mid; break
5928 $as_echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5931 ac_lo=`expr $ac_mid + 1`
5932 if test $ac_lo -le $ac_mid; then
5936 ac_mid=`expr 2 '*' $ac_mid + 1`
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 $as_echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 cat >conftest.$ac_ext <<_ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 $ac_includes_default
5955 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
5962 rm -f conftest.$ac_objext
5963 if { (ac_try="$ac_compile"
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5969 $as_echo "$ac_try_echo") >&5
5970 (eval "$ac_compile") 2>conftest.er1
5972 grep -v '^ *+' conftest.er1 >conftest.err
5974 cat conftest.err >&5
5975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } && {
5977 test -z "$ac_c_werror_flag" ||
5978 test ! -s conftest.err
5979 } && test -s conftest.$ac_objext; then
5982 cat >conftest.$ac_ext <<_ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 $ac_includes_default
5992 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
5999 rm -f conftest.$ac_objext
6000 if { (ac_try="$ac_compile"
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007 (eval "$ac_compile") 2>conftest.er1
6009 grep -v '^ *+' conftest.er1 >conftest.err
6011 cat conftest.err >&5
6012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } && {
6014 test -z "$ac_c_werror_flag" ||
6015 test ! -s conftest.err
6016 } && test -s conftest.$ac_objext; then
6017 ac_lo=$ac_mid; break
6019 $as_echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 ac_hi=`expr '(' $ac_mid ')' - 1`
6023 if test $ac_mid -le $ac_hi; then
6027 ac_mid=`expr 2 '*' $ac_mid`
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 $as_echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 # Binary search between lo and hi bounds.
6044 while test "x$ac_lo" != "x$ac_hi"; do
6045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6046 cat >conftest.$ac_ext <<_ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 $ac_includes_default
6056 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6063 rm -f conftest.$ac_objext
6064 if { (ac_try="$ac_compile"
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6070 $as_echo "$ac_try_echo") >&5
6071 (eval "$ac_compile") 2>conftest.er1
6073 grep -v '^ *+' conftest.er1 >conftest.err
6075 cat conftest.err >&5
6076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } && {
6078 test -z "$ac_c_werror_flag" ||
6079 test ! -s conftest.err
6080 } && test -s conftest.$ac_objext; then
6083 $as_echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6086 ac_lo=`expr '(' $ac_mid ')' + 1`
6089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6093 '') if test "$ac_cv_type_void_p" = yes; then
6094 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6095 See \`config.log' for more details." >&5
6096 $as_echo "$as_me: error: cannot compute sizeof (void *)
6097 See \`config.log' for more details." >&2;}
6098 { (exit 77); exit 77; }; }
6100 ac_cv_sizeof_void_p=0
6104 cat >conftest.$ac_ext <<_ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 $ac_includes_default
6111 static long int longval () { return (long int) (sizeof (void *)); }
6112 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6119 FILE *f = fopen ("conftest.val", "w");
6122 if (((long int) (sizeof (void *))) < 0)
6124 long int i = longval ();
6125 if (i != ((long int) (sizeof (void *))))
6127 fprintf (f, "%ld", i);
6131 unsigned long int i = ulongval ();
6132 if (i != ((long int) (sizeof (void *))))
6134 fprintf (f, "%lu", i);
6136 /* Do not output a trailing newline, as this causes \r\n confusion
6137 on some platforms. */
6138 return ferror (f) || fclose (f) != 0;
6144 rm -f conftest$ac_exeext
6145 if { (ac_try="$ac_link"
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6151 $as_echo "$ac_try_echo") >&5
6152 (eval "$ac_link") 2>&5
6154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6156 { (case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161 $as_echo "$ac_try_echo") >&5
6162 (eval "$ac_try") 2>&5
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 ac_cv_sizeof_void_p=`cat conftest.val`
6168 $as_echo "$as_me: program exited with status $ac_status" >&5
6169 $as_echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6173 if test "$ac_cv_type_void_p" = yes; then
6174 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6175 See \`config.log' for more details." >&5
6176 $as_echo "$as_me: error: cannot compute sizeof (void *)
6177 See \`config.log' for more details." >&2;}
6178 { (exit 77); exit 77; }; }
6180 ac_cv_sizeof_void_p=0
6183 rm -rf conftest.dSYM
6184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6188 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6189 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6193 cat >>confdefs.h <<_ACEOF
6194 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6198 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6199 $as_echo_n "checking for ANSI C header files... " >&6; }
6200 if test "${ac_cv_header_stdc+set}" = set; then
6201 $as_echo_n "(cached) " >&6
6203 cat >conftest.$ac_ext <<_ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6222 rm -f conftest.$ac_objext
6223 if { (ac_try="$ac_compile"
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6229 $as_echo "$ac_try_echo") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6232 grep -v '^ *+' conftest.er1 >conftest.err
6234 cat conftest.err >&5
6235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 ac_cv_header_stdc=yes
6242 $as_echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6245 ac_cv_header_stdc=no
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250 if test $ac_cv_header_stdc = yes; then
6251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6252 cat >conftest.$ac_ext <<_ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262 $EGREP "memchr" >/dev/null 2>&1; then
6265 ac_cv_header_stdc=no
6271 if test $ac_cv_header_stdc = yes; then
6272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 $EGREP "free" >/dev/null 2>&1; then
6286 ac_cv_header_stdc=no
6292 if test $ac_cv_header_stdc = yes; then
6293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6294 if test "$cross_compiling" = yes; then
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6305 #if ((' ' & 0x0FF) == 0x020)
6306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6309 # define ISLOWER(c) \
6310 (('a' <= (c) && (c) <= 'i') \
6311 || ('j' <= (c) && (c) <= 'r') \
6312 || ('s' <= (c) && (c) <= 'z'))
6313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6321 for (i = 0; i < 256; i++)
6322 if (XOR (islower (i), ISLOWER (i))
6323 || toupper (i) != TOUPPER (i))
6328 rm -f conftest$ac_exeext
6329 if { (ac_try="$ac_link"
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6335 $as_echo "$ac_try_echo") >&5
6336 (eval "$ac_link") 2>&5
6338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6340 { (case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6345 $as_echo "$ac_try_echo") >&5
6346 (eval "$ac_try") 2>&5
6348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6352 $as_echo "$as_me: program exited with status $ac_status" >&5
6353 $as_echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_cv_header_stdc=no
6359 rm -rf conftest.dSYM
6360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6366 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6367 $as_echo "$ac_cv_header_stdc" >&6; }
6368 if test $ac_cv_header_stdc = yes; then
6370 cat >>confdefs.h <<\_ACEOF
6371 #define STDC_HEADERS 1
6376 # Make sure we can run config.sub.
6377 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6378 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6379 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6380 { (exit 1); exit 1; }; }
6382 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6383 $as_echo_n "checking build system type... " >&6; }
6384 if test "${ac_cv_build+set}" = set; then
6385 $as_echo_n "(cached) " >&6
6387 ac_build_alias=$build_alias
6388 test "x$ac_build_alias" = x &&
6389 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6390 test "x$ac_build_alias" = x &&
6391 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6392 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6393 { (exit 1); exit 1; }; }
6394 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6395 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6396 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6397 { (exit 1); exit 1; }; }
6400 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6401 $as_echo "$ac_cv_build" >&6; }
6402 case $ac_cv_build in
6404 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6405 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6406 { (exit 1); exit 1; }; };;
6409 ac_save_IFS=$IFS; IFS='-'
6415 # Remember, the first character of IFS is used to create $*,
6416 # except with old shells:
6419 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6422 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6423 $as_echo_n "checking host system type... " >&6; }
6424 if test "${ac_cv_host+set}" = set; then
6425 $as_echo_n "(cached) " >&6
6427 if test "x$host_alias" = x; then
6428 ac_cv_host=$ac_cv_build
6430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6431 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6432 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6433 { (exit 1); exit 1; }; }
6437 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6438 $as_echo "$ac_cv_host" >&6; }
6441 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6442 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6443 { (exit 1); exit 1; }; };;
6446 ac_save_IFS=$IFS; IFS='-'
6452 # Remember, the first character of IFS is used to create $*,
6453 # except with old shells:
6456 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6459 # Check whether --enable-trace was given.
6460 if test "${enable_trace+set}" = set; then
6461 enableval=$enable_trace; if test "$enableval" == "yes"; then
6463 cat >>confdefs.h <<\_ACEOF
6464 #define ENABLE_TRACE_IO 1
6470 # Check whether --enable-watch was given.
6471 if test "${enable_watch+set}" = set; then
6472 enableval=$enable_watch; if test "$enableval" == "yes"; then
6474 cat >>confdefs.h <<\_ACEOF
6475 #define ENABLE_WATCH 1
6481 # Check whether --enable-sh4stats was given.
6482 if test "${enable_sh4stats+set}" = set; then
6483 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
6485 cat >>confdefs.h <<\_ACEOF
6486 #define ENABLE_SH4STATS 1
6493 # Check whether --with-osmesa was given.
6494 if test "${with_osmesa+set}" = set; then
6495 withval=$with_osmesa;
6501 # Check whether --with-gtk was given.
6502 if test "${with_gtk+set}" = set; then
6503 withval=$with_gtk; with_gtk=yes
6510 lxdream_save_cppflags="$CPPFLAGS"
6511 CPPFLAGS="$CPPFLAGS -x objective-c"
6512 cat >conftest.$ac_ext <<_ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6527 rm -f conftest.$ac_objext
6528 if { (ac_try="$ac_compile"
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6534 $as_echo "$ac_try_echo") >&5
6535 (eval "$ac_compile") 2>conftest.er1
6537 grep -v '^ *+' conftest.er1 >conftest.err
6539 cat conftest.err >&5
6540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } && {
6542 test -z "$ac_c_werror_flag" ||
6543 test ! -s conftest.err
6544 } && test -s conftest.$ac_objext; then
6547 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6548 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6549 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6550 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6551 $as_echo_n "(cached) " >&6
6553 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6554 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6556 # Is the header compilable?
6557 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
6558 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
6559 cat >conftest.$ac_ext <<_ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 $ac_includes_default
6566 #include <Cocoa/Cocoa.h>
6568 rm -f conftest.$ac_objext
6569 if { (ac_try="$ac_compile"
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6575 $as_echo "$ac_try_echo") >&5
6576 (eval "$ac_compile") 2>conftest.er1
6578 grep -v '^ *+' conftest.er1 >conftest.err
6580 cat conftest.err >&5
6581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && {
6583 test -z "$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 } && test -s conftest.$ac_objext; then
6586 ac_header_compiler=yes
6588 $as_echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6591 ac_header_compiler=no
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6596 $as_echo "$ac_header_compiler" >&6; }
6598 # Is the header present?
6599 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
6600 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
6601 cat >conftest.$ac_ext <<_ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 #include <Cocoa/Cocoa.h>
6609 if { (ac_try="$ac_cpp conftest.$ac_ext"
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6615 $as_echo "$ac_try_echo") >&5
6616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6618 grep -v '^ *+' conftest.er1 >conftest.err
6620 cat conftest.err >&5
6621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } >/dev/null && {
6623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6626 ac_header_preproc=yes
6628 $as_echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_header_preproc=no
6634 rm -f conftest.err conftest.$ac_ext
6635 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6636 $as_echo "$ac_header_preproc" >&6; }
6638 # So? What about this header?
6639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6641 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6642 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6643 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
6644 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
6645 ac_header_preproc=yes
6648 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
6649 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
6650 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
6651 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
6652 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
6653 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
6654 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
6655 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6656 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
6657 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
6658 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
6659 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
6663 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6664 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6665 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6666 $as_echo_n "(cached) " >&6
6668 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
6670 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6671 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6674 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
6678 LIBS="$LIBS -framework AppKit"
6679 LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"
6681 cat >>confdefs.h <<\_ACEOF
6682 #define HAVE_COCOA 1
6686 cat >>confdefs.h <<\_ACEOF
6687 #define APPLE_BUILD 1
6695 if test "x$with_gtk" = "xx11"; then
6701 $as_echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 CPPFLAGS="$lxdream_save_cppflags"
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
6721 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6728 $as_echo_n "(cached) " >&6
6732 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6754 if test -n "$PKG_CONFIG"; then
6755 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6756 $as_echo "$PKG_CONFIG" >&6; }
6758 { $as_echo "$as_me:$LINENO: result: no" >&5
6759 $as_echo "no" >&6; }
6764 if test -z "$ac_cv_path_PKG_CONFIG"; then
6765 ac_pt_PKG_CONFIG=$PKG_CONFIG
6766 # Extract the first word of "pkg-config", so it can be a program name with args.
6767 set dummy pkg-config; ac_word=$2
6768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6771 $as_echo_n "(cached) " >&6
6773 case $ac_pt_PKG_CONFIG in
6775 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6797 if test -n "$ac_pt_PKG_CONFIG"; then
6798 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6799 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6801 { $as_echo "$as_me:$LINENO: result: no" >&5
6802 $as_echo "no" >&6; }
6805 if test "x$ac_pt_PKG_CONFIG" = x; then
6808 case $cross_compiling:$ac_tool_warned in
6810 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6811 whose name does not start with the host triplet. If you think this
6812 configuration is useful to you, please write to autoconf@gnu.org." >&5
6813 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6814 whose name does not start with the host triplet. If you think this
6815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6816 ac_tool_warned=yes ;;
6818 PKG_CONFIG=$ac_pt_PKG_CONFIG
6821 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6825 if test -n "$PKG_CONFIG"; then
6826 _pkg_min_version=0.9.0
6827 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6828 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6829 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6830 { $as_echo "$as_me:$LINENO: result: yes" >&5
6831 $as_echo "yes" >&6; }
6833 { $as_echo "$as_me:$LINENO: result: no" >&5
6834 $as_echo "no" >&6; }
6841 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
6842 $as_echo_n "checking for LIBPNG... " >&6; }
6844 if test -n "$PKG_CONFIG"; then
6845 if test -n "$LIBPNG_CFLAGS"; then
6846 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
6848 if test -n "$PKG_CONFIG" && \
6849 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6850 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; then
6854 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
6862 if test -n "$PKG_CONFIG"; then
6863 if test -n "$LIBPNG_LIBS"; then
6864 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
6866 if test -n "$PKG_CONFIG" && \
6867 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6868 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; then
6872 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
6883 if test $pkg_failed = yes; then
6885 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6886 _pkg_short_errors_supported=yes
6888 _pkg_short_errors_supported=no
6890 if test $_pkg_short_errors_supported = yes; then
6891 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
6893 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
6895 # Put the nasty error message in config.log where it belongs
6896 echo "$LIBPNG_PKG_ERRORS" >&5
6898 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
6902 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6903 installed software in a non-standard prefix.
6905 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6906 and LIBPNG_LIBS to avoid the need to call pkg-config.
6907 See the pkg-config man page for more details.
6909 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
6913 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6914 installed software in a non-standard prefix.
6916 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6917 and LIBPNG_LIBS to avoid the need to call pkg-config.
6918 See the pkg-config man page for more details.
6920 { (exit 1); exit 1; }; }
6921 elif test $pkg_failed = untried; then
6922 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6923 is in your PATH or set the PKG_CONFIG environment variable to the full
6926 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6927 and LIBPNG_LIBS to avoid the need to call pkg-config.
6928 See the pkg-config man page for more details.
6930 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6931 See \`config.log' for more details." >&5
6932 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6933 is in your PATH or set the PKG_CONFIG environment variable to the full
6936 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6937 and LIBPNG_LIBS to avoid the need to call pkg-config.
6938 See the pkg-config man page for more details.
6940 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6941 See \`config.log' for more details." >&2;}
6942 { (exit 1); exit 1; }; }
6944 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
6945 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
6946 { $as_echo "$as_me:$LINENO: result: yes" >&5
6947 $as_echo "yes" >&6; }
6952 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
6953 $as_echo_n "checking for uncompress in -lz... " >&6; }
6954 if test "${ac_cv_lib_z_uncompress+set}" = set; then
6955 $as_echo_n "(cached) " >&6
6957 ac_check_lib_save_LIBS=$LIBS
6959 cat >conftest.$ac_ext <<_ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6966 /* Override any GCC internal prototype to avoid an error.
6967 Use char because int might match the return type of a GCC
6968 builtin and then its argument prototype would still apply. */
6976 return uncompress ();
6981 rm -f conftest.$ac_objext conftest$ac_exeext
6982 if { (ac_try="$ac_link"
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6988 $as_echo "$ac_try_echo") >&5
6989 (eval "$ac_link") 2>conftest.er1
6991 grep -v '^ *+' conftest.er1 >conftest.err
6993 cat conftest.err >&5
6994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } && {
6996 test -z "$ac_c_werror_flag" ||
6997 test ! -s conftest.err
6998 } && test -s conftest$ac_exeext && {
6999 test "$cross_compiling" = yes ||
7000 $as_test_x conftest$ac_exeext
7002 ac_cv_lib_z_uncompress=yes
7004 $as_echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 ac_cv_lib_z_uncompress=no
7010 rm -rf conftest.dSYM
7011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7012 conftest$ac_exeext conftest.$ac_ext
7013 LIBS=$ac_check_lib_save_LIBS
7015 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
7016 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
7017 if test $ac_cv_lib_z_uncompress = yes; then
7018 cat >>confdefs.h <<_ACEOF
7026 echo "Zlib (libz.so) could not be found, but is required."
7031 if test "x$with_gtk" = "xno"; then
7034 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
7035 $as_echo_n "checking for GLIB... " >&6; }
7037 if test -n "$PKG_CONFIG"; then
7038 if test -n "$GLIB_CFLAGS"; then
7039 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
7041 if test -n "$PKG_CONFIG" && \
7042 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7043 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; then
7047 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
7055 if test -n "$PKG_CONFIG"; then
7056 if test -n "$GLIB_LIBS"; then
7057 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
7059 if test -n "$PKG_CONFIG" && \
7060 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7061 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; then
7065 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
7076 if test $pkg_failed = yes; then
7078 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7079 _pkg_short_errors_supported=yes
7081 _pkg_short_errors_supported=no
7083 if test $_pkg_short_errors_supported = yes; then
7084 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
7086 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
7088 # Put the nasty error message in config.log where it belongs
7089 echo "$GLIB_PKG_ERRORS" >&5
7091 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
7095 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7096 installed software in a non-standard prefix.
7098 Alternatively, you may set the environment variables GLIB_CFLAGS
7099 and GLIB_LIBS to avoid the need to call pkg-config.
7100 See the pkg-config man page for more details.
7102 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
7106 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7107 installed software in a non-standard prefix.
7109 Alternatively, you may set the environment variables GLIB_CFLAGS
7110 and GLIB_LIBS to avoid the need to call pkg-config.
7111 See the pkg-config man page for more details.
7113 { (exit 1); exit 1; }; }
7114 elif test $pkg_failed = untried; then
7115 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7116 is in your PATH or set the PKG_CONFIG environment variable to the full
7119 Alternatively, you may set the environment variables GLIB_CFLAGS
7120 and GLIB_LIBS to avoid the need to call pkg-config.
7121 See the pkg-config man page for more details.
7123 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7124 See \`config.log' for more details." >&5
7125 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7126 is in your PATH or set the PKG_CONFIG environment variable to the full
7129 Alternatively, you may set the environment variables GLIB_CFLAGS
7130 and GLIB_LIBS to avoid the need to call pkg-config.
7131 See the pkg-config man page for more details.
7133 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7134 See \`config.log' for more details." >&2;}
7135 { (exit 1); exit 1; }; }
7137 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
7138 GLIB_LIBS=$pkg_cv_GLIB_LIBS
7139 { $as_echo "$as_me:$LINENO: result: yes" >&5
7140 $as_echo "yes" >&6; }
7146 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
7147 $as_echo_n "checking for GTK... " >&6; }
7149 if test -n "$PKG_CONFIG"; then
7150 if test -n "$GTK_CFLAGS"; then
7151 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7153 if test -n "$PKG_CONFIG" && \
7154 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7155 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; then
7159 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
7167 if test -n "$PKG_CONFIG"; then
7168 if test -n "$GTK_LIBS"; then
7169 pkg_cv_GTK_LIBS="$GTK_LIBS"
7171 if test -n "$PKG_CONFIG" && \
7172 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7173 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; then
7177 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
7188 if test $pkg_failed = yes; then
7190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7191 _pkg_short_errors_supported=yes
7193 _pkg_short_errors_supported=no
7195 if test $_pkg_short_errors_supported = yes; then
7196 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
7198 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
7200 # Put the nasty error message in config.log where it belongs
7201 echo "$GTK_PKG_ERRORS" >&5
7203 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
7207 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7208 installed software in a non-standard prefix.
7210 Alternatively, you may set the environment variables GTK_CFLAGS
7211 and GTK_LIBS to avoid the need to call pkg-config.
7212 See the pkg-config man page for more details.
7214 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
7218 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7219 installed software in a non-standard prefix.
7221 Alternatively, you may set the environment variables GTK_CFLAGS
7222 and GTK_LIBS to avoid the need to call pkg-config.
7223 See the pkg-config man page for more details.
7225 { (exit 1); exit 1; }; }
7226 elif test $pkg_failed = untried; then
7227 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7228 is in your PATH or set the PKG_CONFIG environment variable to the full
7231 Alternatively, you may set the environment variables GTK_CFLAGS
7232 and GTK_LIBS to avoid the need to call pkg-config.
7233 See the pkg-config man page for more details.
7235 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7236 See \`config.log' for more details." >&5
7237 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7238 is in your PATH or set the PKG_CONFIG environment variable to the full
7241 Alternatively, you may set the environment variables GTK_CFLAGS
7242 and GTK_LIBS to avoid the need to call pkg-config.
7243 See the pkg-config man page for more details.
7245 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7246 See \`config.log' for more details." >&2;}
7247 { (exit 1); exit 1; }; }
7249 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7250 GTK_LIBS=$pkg_cv_GTK_LIBS
7251 { $as_echo "$as_me:$LINENO: result: yes" >&5
7252 $as_echo "yes" >&6; }
7256 cat >>confdefs.h <<\_ACEOF
7263 LIBS="$LIBS $GTK_LIBS"
7264 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
7265 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
7266 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
7267 $as_echo_n "(cached) " >&6
7269 cat >conftest.$ac_ext <<_ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h. */
7275 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
7276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7277 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
7279 /* System header to define __stub macros and hopefully few prototypes,
7280 which can conflict with char gdk_x11_display_get_xdisplay (); below.
7281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7282 <limits.h> exists even on freestanding compilers. */
7285 # include <limits.h>
7287 # include <assert.h>
7290 #undef gdk_x11_display_get_xdisplay
7292 /* Override any GCC internal prototype to avoid an error.
7293 Use char because int might match the return type of a GCC
7294 builtin and then its argument prototype would still apply. */
7298 char gdk_x11_display_get_xdisplay ();
7299 /* The GNU C library defines this for functions which it implements
7300 to always fail with ENOSYS. Some functions are actually named
7301 something starting with __ and the normal name is an alias. */
7302 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
7309 return gdk_x11_display_get_xdisplay ();
7314 rm -f conftest.$ac_objext conftest$ac_exeext
7315 if { (ac_try="$ac_link"
7317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7318 *) ac_try_echo=$ac_try;;
7320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7321 $as_echo "$ac_try_echo") >&5
7322 (eval "$ac_link") 2>conftest.er1
7324 grep -v '^ *+' conftest.er1 >conftest.err
7326 cat conftest.err >&5
7327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } && {
7329 test -z "$ac_c_werror_flag" ||
7330 test ! -s conftest.err
7331 } && test -s conftest$ac_exeext && {
7332 test "$cross_compiling" = yes ||
7333 $as_test_x conftest$ac_exeext
7335 ac_cv_func_gdk_x11_display_get_xdisplay=yes
7337 $as_echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7340 ac_cv_func_gdk_x11_display_get_xdisplay=no
7343 rm -rf conftest.dSYM
7344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7345 conftest$ac_exeext conftest.$ac_ext
7347 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
7348 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
7349 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
7353 cat >>confdefs.h <<\_ACEOF
7354 #define HAVE_GTK_X11 1
7359 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
7360 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
7361 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
7362 $as_echo_n "(cached) " >&6
7364 cat >conftest.$ac_ext <<_ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
7371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7372 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
7374 /* System header to define __stub macros and hopefully few prototypes,
7375 which can conflict with char gdk_quartz_window_get_nsview (); below.
7376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7377 <limits.h> exists even on freestanding compilers. */
7380 # include <limits.h>
7382 # include <assert.h>
7385 #undef gdk_quartz_window_get_nsview
7387 /* Override any GCC internal prototype to avoid an error.
7388 Use char because int might match the return type of a GCC
7389 builtin and then its argument prototype would still apply. */
7393 char gdk_quartz_window_get_nsview ();
7394 /* The GNU C library defines this for functions which it implements
7395 to always fail with ENOSYS. Some functions are actually named
7396 something starting with __ and the normal name is an alias. */
7397 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
7404 return gdk_quartz_window_get_nsview ();
7409 rm -f conftest.$ac_objext conftest$ac_exeext
7410 if { (ac_try="$ac_link"
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7416 $as_echo "$ac_try_echo") >&5
7417 (eval "$ac_link") 2>conftest.er1
7419 grep -v '^ *+' conftest.er1 >conftest.err
7421 cat conftest.err >&5
7422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } && {
7424 test -z "$ac_c_werror_flag" ||
7425 test ! -s conftest.err
7426 } && test -s conftest$ac_exeext && {
7427 test "$cross_compiling" = yes ||
7428 $as_test_x conftest$ac_exeext
7430 ac_cv_func_gdk_quartz_window_get_nsview=yes
7432 $as_echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ac_cv_func_gdk_quartz_window_get_nsview=no
7438 rm -rf conftest.dSYM
7439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7440 conftest$ac_exeext conftest.$ac_ext
7442 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
7443 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
7444 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
7448 cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_GTK_OSX 1
7458 if test "$HAVE_GTK" = 'yes'; then
7467 if test "x$with_osmesa" != xno; then
7471 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
7472 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
7473 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
7474 $as_echo_n "(cached) " >&6
7476 ac_check_lib_save_LIBS=$LIBS
7477 LIBS="-lOSMesa $LIBS"
7478 cat >conftest.$ac_ext <<_ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7485 /* Override any GCC internal prototype to avoid an error.
7486 Use char because int might match the return type of a GCC
7487 builtin and then its argument prototype would still apply. */
7491 char OSMesaCreateContext ();
7495 return OSMesaCreateContext ();
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (ac_try="$ac_link"
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7507 $as_echo "$ac_try_echo") >&5
7508 (eval "$ac_link") 2>conftest.er1
7510 grep -v '^ *+' conftest.er1 >conftest.err
7512 cat conftest.err >&5
7513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } && {
7515 test -z "$ac_c_werror_flag" ||
7516 test ! -s conftest.err
7517 } && test -s conftest$ac_exeext && {
7518 test "$cross_compiling" = yes ||
7519 $as_test_x conftest$ac_exeext
7521 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
7523 $as_echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7526 ac_cv_lib_OSMesa_OSMesaCreateContext=no
7529 rm -rf conftest.dSYM
7530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7531 conftest$ac_exeext conftest.$ac_ext
7532 LIBS=$ac_check_lib_save_LIBS
7534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
7535 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
7536 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
7537 cat >>confdefs.h <<_ACEOF
7538 #define HAVE_LIBOSMESA 1
7541 LIBS="-lOSMesa $LIBS"
7544 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
7545 See \`config.log' for more details." >&5
7546 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
7547 See \`config.log' for more details." >&2;}
7548 { (exit 1); exit 1; }; }
7551 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7552 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7553 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7554 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7557 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7558 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7560 # Is the header compilable?
7561 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
7562 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
7563 cat >conftest.$ac_ext <<_ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 $ac_includes_default
7570 #include <GL/osmesa.h>
7572 rm -f conftest.$ac_objext
7573 if { (ac_try="$ac_compile"
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7579 $as_echo "$ac_try_echo") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7582 grep -v '^ *+' conftest.er1 >conftest.err
7584 cat conftest.err >&5
7585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7590 ac_header_compiler=yes
7592 $as_echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 ac_header_compiler=no
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7600 $as_echo "$ac_header_compiler" >&6; }
7602 # Is the header present?
7603 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
7604 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
7605 cat >conftest.$ac_ext <<_ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 #include <GL/osmesa.h>
7613 if { (ac_try="$ac_cpp conftest.$ac_ext"
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7619 $as_echo "$ac_try_echo") >&5
7620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7622 grep -v '^ *+' conftest.er1 >conftest.err
7624 cat conftest.err >&5
7625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } >/dev/null && {
7627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7628 test ! -s conftest.err
7630 ac_header_preproc=yes
7632 $as_echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7635 ac_header_preproc=no
7638 rm -f conftest.err conftest.$ac_ext
7639 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7640 $as_echo "$ac_header_preproc" >&6; }
7642 # So? What about this header?
7643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7645 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
7646 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7647 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
7648 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
7649 ac_header_preproc=yes
7652 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
7653 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
7654 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
7655 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
7656 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
7657 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
7658 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
7659 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
7660 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
7661 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
7662 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
7663 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
7667 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7668 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7669 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7670 $as_echo_n "(cached) " >&6
7672 ac_cv_header_GL_osmesa_h=$ac_header_preproc
7674 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7675 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7678 if test $ac_cv_header_GL_osmesa_h = yes; then
7681 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
7682 See \`config.log' for more details." >&5
7683 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
7684 See \`config.log' for more details." >&2;}
7685 { (exit 1); exit 1; }; }
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_OSMESA 1
7698 if test "x$APPLE_BUILD" != 'xyes'; then
7700 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
7701 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
7702 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
7703 $as_echo_n "(cached) " >&6
7705 ac_check_lib_save_LIBS=$LIBS
7707 cat >conftest.$ac_ext <<_ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7714 /* Override any GCC internal prototype to avoid an error.
7715 Use char because int might match the return type of a GCC
7716 builtin and then its argument prototype would still apply. */
7724 return glVertex3f ();
7729 rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (ac_try="$ac_link"
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7736 $as_echo "$ac_try_echo") >&5
7737 (eval "$ac_link") 2>conftest.er1
7739 grep -v '^ *+' conftest.er1 >conftest.err
7741 cat conftest.err >&5
7742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest$ac_exeext && {
7747 test "$cross_compiling" = yes ||
7748 $as_test_x conftest$ac_exeext
7750 ac_cv_lib_GL_glVertex3f=yes
7752 $as_echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7755 ac_cv_lib_GL_glVertex3f=no
7758 rm -rf conftest.dSYM
7759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7760 conftest$ac_exeext conftest.$ac_ext
7761 LIBS=$ac_check_lib_save_LIBS
7763 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
7764 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
7765 if test $ac_cv_lib_GL_glVertex3f = yes; then
7766 cat >>confdefs.h <<_ACEOF
7767 #define HAVE_LIBGL 1
7774 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7775 See \`config.log' for more details." >&5
7776 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7777 See \`config.log' for more details." >&2;}
7778 { (exit 1); exit 1; }; }
7781 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7782 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7783 $as_echo_n "checking for GL/gl.h... " >&6; }
7784 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7785 $as_echo_n "(cached) " >&6
7787 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7788 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
7790 # Is the header compilable?
7791 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
7792 $as_echo_n "checking GL/gl.h usability... " >&6; }
7793 cat >conftest.$ac_ext <<_ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 $ac_includes_default
7802 rm -f conftest.$ac_objext
7803 if { (ac_try="$ac_compile"
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7809 $as_echo "$ac_try_echo") >&5
7810 (eval "$ac_compile") 2>conftest.er1
7812 grep -v '^ *+' conftest.er1 >conftest.err
7814 cat conftest.err >&5
7815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
7819 } && test -s conftest.$ac_objext; then
7820 ac_header_compiler=yes
7822 $as_echo "$as_me: failed program was:" >&5
7823 sed 's/^/| /' conftest.$ac_ext >&5
7825 ac_header_compiler=no
7828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7829 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7830 $as_echo "$ac_header_compiler" >&6; }
7832 # Is the header present?
7833 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
7834 $as_echo_n "checking GL/gl.h presence... " >&6; }
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7843 if { (ac_try="$ac_cpp conftest.$ac_ext"
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7849 $as_echo "$ac_try_echo") >&5
7850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7852 grep -v '^ *+' conftest.er1 >conftest.err
7854 cat conftest.err >&5
7855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } >/dev/null && {
7857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7858 test ! -s conftest.err
7860 ac_header_preproc=yes
7862 $as_echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7865 ac_header_preproc=no
7868 rm -f conftest.err conftest.$ac_ext
7869 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7870 $as_echo "$ac_header_preproc" >&6; }
7872 # So? What about this header?
7873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7875 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7876 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7877 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
7878 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
7879 ac_header_preproc=yes
7882 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
7883 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
7884 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
7885 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
7886 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
7887 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
7888 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
7889 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7890 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
7891 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
7892 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
7893 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
7897 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7898 $as_echo_n "checking for GL/gl.h... " >&6; }
7899 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7900 $as_echo_n "(cached) " >&6
7902 ac_cv_header_GL_gl_h=$ac_header_preproc
7904 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7905 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
7908 if test $ac_cv_header_GL_gl_h = yes; then
7912 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
7913 See \`config.log' for more details." >&5
7914 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
7915 See \`config.log' for more details." >&2;}
7916 { (exit 1); exit 1; }; }
7921 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
7922 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
7923 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
7924 $as_echo_n "(cached) " >&6
7926 cat >conftest.$ac_ext <<_ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
7933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7934 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
7936 /* System header to define __stub macros and hopefully few prototypes,
7937 which can conflict with char NSOpenGLGetVersion (); below.
7938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7939 <limits.h> exists even on freestanding compilers. */
7942 # include <limits.h>
7944 # include <assert.h>
7947 #undef NSOpenGLGetVersion
7949 /* Override any GCC internal prototype to avoid an error.
7950 Use char because int might match the return type of a GCC
7951 builtin and then its argument prototype would still apply. */
7955 char NSOpenGLGetVersion ();
7956 /* The GNU C library defines this for functions which it implements
7957 to always fail with ENOSYS. Some functions are actually named
7958 something starting with __ and the normal name is an alias. */
7959 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
7966 return NSOpenGLGetVersion ();
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7978 $as_echo "$ac_try_echo") >&5
7979 (eval "$ac_link") 2>conftest.er1
7981 grep -v '^ *+' conftest.er1 >conftest.err
7983 cat conftest.err >&5
7984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } && {
7986 test -z "$ac_c_werror_flag" ||
7987 test ! -s conftest.err
7988 } && test -s conftest$ac_exeext && {
7989 test "$cross_compiling" = yes ||
7990 $as_test_x conftest$ac_exeext
7992 ac_cv_func_NSOpenGLGetVersion=yes
7994 $as_echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 ac_cv_func_NSOpenGLGetVersion=no
8000 rm -rf conftest.dSYM
8001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8002 conftest$ac_exeext conftest.$ac_ext
8004 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
8005 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
8006 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
8010 cat >>confdefs.h <<\_ACEOF
8018 if test "x$HAVE_GTK_X11" = "xyes"; then
8019 if test "x$APPLE_BUILD" = "xyes"; then
8020 LIBS="$LIBS -L/usr/X11/lib -lGL"
8022 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
8023 $as_echo_n "checking for glXQueryVersion... " >&6; }
8024 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
8025 $as_echo_n "(cached) " >&6
8027 cat >conftest.$ac_ext <<_ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8033 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
8034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8035 #define glXQueryVersion innocuous_glXQueryVersion
8037 /* System header to define __stub macros and hopefully few prototypes,
8038 which can conflict with char glXQueryVersion (); below.
8039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8040 <limits.h> exists even on freestanding compilers. */
8043 # include <limits.h>
8045 # include <assert.h>
8048 #undef glXQueryVersion
8050 /* Override any GCC internal prototype to avoid an error.
8051 Use char because int might match the return type of a GCC
8052 builtin and then its argument prototype would still apply. */
8056 char glXQueryVersion ();
8057 /* The GNU C library defines this for functions which it implements
8058 to always fail with ENOSYS. Some functions are actually named
8059 something starting with __ and the normal name is an alias. */
8060 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
8067 return glXQueryVersion ();
8072 rm -f conftest.$ac_objext conftest$ac_exeext
8073 if { (ac_try="$ac_link"
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8079 $as_echo "$ac_try_echo") >&5
8080 (eval "$ac_link") 2>conftest.er1
8082 grep -v '^ *+' conftest.er1 >conftest.err
8084 cat conftest.err >&5
8085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } && {
8087 test -z "$ac_c_werror_flag" ||
8088 test ! -s conftest.err
8089 } && test -s conftest$ac_exeext && {
8090 test "$cross_compiling" = yes ||
8091 $as_test_x conftest$ac_exeext
8093 ac_cv_func_glXQueryVersion=yes
8095 $as_echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 ac_cv_func_glXQueryVersion=no
8101 rm -rf conftest.dSYM
8102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8103 conftest$ac_exeext conftest.$ac_ext
8105 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
8106 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
8107 if test $ac_cv_func_glXQueryVersion = yes; then
8111 cat >>confdefs.h <<\_ACEOF
8124 if test "x$HAVE_OSMESA" = "x" -a "x$HAVE_GLX" = "x" -a "x$HAVE_NSGL" = "x"; then
8125 echo "Warning: Building with no video support"
8130 if test "x$HAVE_OSMESA" = "xyes"; then
8132 VIDEO_OSMESA_FALSE='#'
8134 VIDEO_OSMESA_TRUE='#'
8140 if test "x$HAVE_GLX" = "xyes"; then
8150 if test "x$HAVE_NSGL" = "xyes"; then
8152 VIDEO_NSGL_FALSE='#'
8159 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
8160 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
8161 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
8162 $as_echo_n "(cached) " >&6
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
8171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8172 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
8174 /* System header to define __stub macros and hopefully few prototypes,
8175 which can conflict with char glGenFramebuffersEXT (); below.
8176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8177 <limits.h> exists even on freestanding compilers. */
8180 # include <limits.h>
8182 # include <assert.h>
8185 #undef glGenFramebuffersEXT
8187 /* Override any GCC internal prototype to avoid an error.
8188 Use char because int might match the return type of a GCC
8189 builtin and then its argument prototype would still apply. */
8193 char glGenFramebuffersEXT ();
8194 /* The GNU C library defines this for functions which it implements
8195 to always fail with ENOSYS. Some functions are actually named
8196 something starting with __ and the normal name is an alias. */
8197 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
8204 return glGenFramebuffersEXT ();
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8216 $as_echo "$ac_try_echo") >&5
8217 (eval "$ac_link") 2>conftest.er1
8219 grep -v '^ *+' conftest.er1 >conftest.err
8221 cat conftest.err >&5
8222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } && {
8224 test -z "$ac_c_werror_flag" ||
8225 test ! -s conftest.err
8226 } && test -s conftest$ac_exeext && {
8227 test "$cross_compiling" = yes ||
8228 $as_test_x conftest$ac_exeext
8230 ac_cv_func_glGenFramebuffersEXT=yes
8232 $as_echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8235 ac_cv_func_glGenFramebuffersEXT=no
8238 rm -rf conftest.dSYM
8239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8240 conftest$ac_exeext conftest.$ac_ext
8242 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
8243 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
8244 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
8246 cat >>confdefs.h <<\_ACEOF
8247 #define HAVE_OPENGL_FBO 1
8252 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
8253 $as_echo_n "checking for glCreateShader... " >&6; }
8254 if test "${ac_cv_func_glCreateShader+set}" = set; then
8255 $as_echo_n "(cached) " >&6
8257 cat >conftest.$ac_ext <<_ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8263 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
8264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8265 #define glCreateShader innocuous_glCreateShader
8267 /* System header to define __stub macros and hopefully few prototypes,
8268 which can conflict with char glCreateShader (); below.
8269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270 <limits.h> exists even on freestanding compilers. */
8273 # include <limits.h>
8275 # include <assert.h>
8278 #undef glCreateShader
8280 /* Override any GCC internal prototype to avoid an error.
8281 Use char because int might match the return type of a GCC
8282 builtin and then its argument prototype would still apply. */
8286 char glCreateShader ();
8287 /* The GNU C library defines this for functions which it implements
8288 to always fail with ENOSYS. Some functions are actually named
8289 something starting with __ and the normal name is an alias. */
8290 #if defined __stub_glCreateShader || defined __stub___glCreateShader
8297 return glCreateShader ();
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (ac_try="$ac_link"
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8309 $as_echo "$ac_try_echo") >&5
8310 (eval "$ac_link") 2>conftest.er1
8312 grep -v '^ *+' conftest.er1 >conftest.err
8314 cat conftest.err >&5
8315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } && {
8317 test -z "$ac_c_werror_flag" ||
8318 test ! -s conftest.err
8319 } && test -s conftest$ac_exeext && {
8320 test "$cross_compiling" = yes ||
8321 $as_test_x conftest$ac_exeext
8323 ac_cv_func_glCreateShader=yes
8325 $as_echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 ac_cv_func_glCreateShader=no
8331 rm -rf conftest.dSYM
8332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8333 conftest$ac_exeext conftest.$ac_ext
8335 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
8336 $as_echo "$ac_cv_func_glCreateShader" >&6; }
8337 if test $ac_cv_func_glCreateShader = yes; then
8339 cat >>confdefs.h <<\_ACEOF
8340 #define HAVE_OPENGL_SHADER 1
8345 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
8346 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
8347 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
8348 $as_echo_n "(cached) " >&6
8350 cat >conftest.$ac_ext <<_ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8356 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
8357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8358 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
8360 /* System header to define __stub macros and hopefully few prototypes,
8361 which can conflict with char glCreateShaderObjectARB (); below.
8362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8363 <limits.h> exists even on freestanding compilers. */
8366 # include <limits.h>
8368 # include <assert.h>
8371 #undef glCreateShaderObjectARB
8373 /* Override any GCC internal prototype to avoid an error.
8374 Use char because int might match the return type of a GCC
8375 builtin and then its argument prototype would still apply. */
8379 char glCreateShaderObjectARB ();
8380 /* The GNU C library defines this for functions which it implements
8381 to always fail with ENOSYS. Some functions are actually named
8382 something starting with __ and the normal name is an alias. */
8383 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
8390 return glCreateShaderObjectARB ();
8395 rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (ac_try="$ac_link"
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8402 $as_echo "$ac_try_echo") >&5
8403 (eval "$ac_link") 2>conftest.er1
8405 grep -v '^ *+' conftest.er1 >conftest.err
8407 cat conftest.err >&5
8408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } && {
8410 test -z "$ac_c_werror_flag" ||
8411 test ! -s conftest.err
8412 } && test -s conftest$ac_exeext && {
8413 test "$cross_compiling" = yes ||
8414 $as_test_x conftest$ac_exeext
8416 ac_cv_func_glCreateShaderObjectARB=yes
8418 $as_echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 ac_cv_func_glCreateShaderObjectARB=no
8424 rm -rf conftest.dSYM
8425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8426 conftest$ac_exeext conftest.$ac_ext
8428 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
8429 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
8430 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
8432 cat >>confdefs.h <<\_ACEOF
8433 #define HAVE_OPENGL_SHADER_ARB 1
8438 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
8439 $as_echo_n "checking for glClampColorARB... " >&6; }
8440 if test "${ac_cv_func_glClampColorARB+set}" = set; then
8441 $as_echo_n "(cached) " >&6
8443 cat >conftest.$ac_ext <<_ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
8450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8451 #define glClampColorARB innocuous_glClampColorARB
8453 /* System header to define __stub macros and hopefully few prototypes,
8454 which can conflict with char glClampColorARB (); below.
8455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8456 <limits.h> exists even on freestanding compilers. */
8459 # include <limits.h>
8461 # include <assert.h>
8464 #undef glClampColorARB
8466 /* Override any GCC internal prototype to avoid an error.
8467 Use char because int might match the return type of a GCC
8468 builtin and then its argument prototype would still apply. */
8472 char glClampColorARB ();
8473 /* The GNU C library defines this for functions which it implements
8474 to always fail with ENOSYS. Some functions are actually named
8475 something starting with __ and the normal name is an alias. */
8476 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
8483 return glClampColorARB ();
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (ac_try="$ac_link"
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8495 $as_echo "$ac_try_echo") >&5
8496 (eval "$ac_link") 2>conftest.er1
8498 grep -v '^ *+' conftest.er1 >conftest.err
8500 cat conftest.err >&5
8501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } && {
8503 test -z "$ac_c_werror_flag" ||
8504 test ! -s conftest.err
8505 } && test -s conftest$ac_exeext && {
8506 test "$cross_compiling" = yes ||
8507 $as_test_x conftest$ac_exeext
8509 ac_cv_func_glClampColorARB=yes
8511 $as_echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 ac_cv_func_glClampColorARB=no
8517 rm -rf conftest.dSYM
8518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8519 conftest$ac_exeext conftest.$ac_ext
8521 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
8522 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
8523 if test $ac_cv_func_glClampColorARB = yes; then
8525 cat >>confdefs.h <<\_ACEOF
8526 #define HAVE_OPENGL_CLAMP_COLOR 1
8534 i386|i486|i586|i686|x86_64)
8535 SH4_TRANSLATOR="x86"
8537 cat >>confdefs.h <<_ACEOF
8538 #define SH4_TRANSLATOR TARGET_X86
8542 echo "Warning: No translator available for $host. Building emulation core only";;
8546 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
8548 BUILD_SH4X86_FALSE='#'
8550 BUILD_SH4X86_TRUE='#'
8556 if test "$SH4_TRANSLATOR" = "x86_64"; then
8558 BUILD_X86_64_FALSE='#'
8560 BUILD_X86_64_TRUE='#'
8567 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
8568 $as_echo_n "checking for PULSE... " >&6; }
8570 if test -n "$PKG_CONFIG"; then
8571 if test -n "$PULSE_CFLAGS"; then
8572 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
8574 if test -n "$PKG_CONFIG" && \
8575 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8576 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; then
8580 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
8588 if test -n "$PKG_CONFIG"; then
8589 if test -n "$PULSE_LIBS"; then
8590 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
8592 if test -n "$PKG_CONFIG" && \
8593 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8594 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; then
8598 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
8609 if test $pkg_failed = yes; then
8611 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8612 _pkg_short_errors_supported=yes
8614 _pkg_short_errors_supported=no
8616 if test $_pkg_short_errors_supported = yes; then
8617 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
8619 PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
8621 # Put the nasty error message in config.log where it belongs
8622 echo "$PULSE_PKG_ERRORS" >&5
8624 { $as_echo "$as_me:$LINENO: result: no" >&5
8625 $as_echo "no" >&6; }
8627 elif test $pkg_failed = untried; then
8630 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
8631 PULSE_LIBS=$pkg_cv_PULSE_LIBS
8632 { $as_echo "$as_me:$LINENO: result: yes" >&5
8633 $as_echo "yes" >&6; }
8637 cat >>confdefs.h <<\_ACEOF
8638 #define HAVE_PULSE 1
8644 if test "$HAVE_PULSE" = 'yes' ; then
8646 AUDIO_PULSE_FALSE='#'
8648 AUDIO_PULSE_TRUE='#'
8655 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
8656 $as_echo_n "checking for ESOUND... " >&6; }
8658 if test -n "$PKG_CONFIG"; then
8659 if test -n "$ESOUND_CFLAGS"; then
8660 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
8662 if test -n "$PKG_CONFIG" && \
8663 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8664 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; then
8668 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
8676 if test -n "$PKG_CONFIG"; then
8677 if test -n "$ESOUND_LIBS"; then
8678 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
8680 if test -n "$PKG_CONFIG" && \
8681 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8682 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; then
8686 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
8697 if test $pkg_failed = yes; then
8699 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8700 _pkg_short_errors_supported=yes
8702 _pkg_short_errors_supported=no
8704 if test $_pkg_short_errors_supported = yes; then
8705 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
8707 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
8709 # Put the nasty error message in config.log where it belongs
8710 echo "$ESOUND_PKG_ERRORS" >&5
8712 { $as_echo "$as_me:$LINENO: result: no" >&5
8713 $as_echo "no" >&6; }
8715 elif test $pkg_failed = untried; then
8718 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
8719 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
8720 { $as_echo "$as_me:$LINENO: result: yes" >&5
8721 $as_echo "yes" >&6; }
8725 cat >>confdefs.h <<\_ACEOF
8726 #define HAVE_ESOUND 1
8732 if test "$HAVE_ESOUND" = 'yes' ; then
8734 AUDIO_ESOUND_FALSE='#'
8736 AUDIO_ESOUND_TRUE='#'
8743 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
8744 $as_echo_n "checking for ALSA... " >&6; }
8746 if test -n "$PKG_CONFIG"; then
8747 if test -n "$ALSA_CFLAGS"; then
8748 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
8750 if test -n "$PKG_CONFIG" && \
8751 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
8752 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
8754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; then
8756 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
8764 if test -n "$PKG_CONFIG"; then
8765 if test -n "$ALSA_LIBS"; then
8766 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
8768 if test -n "$PKG_CONFIG" && \
8769 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
8770 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
8772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; then
8774 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
8785 if test $pkg_failed = yes; then
8787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8788 _pkg_short_errors_supported=yes
8790 _pkg_short_errors_supported=no
8792 if test $_pkg_short_errors_supported = yes; then
8793 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
8795 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
8797 # Put the nasty error message in config.log where it belongs
8798 echo "$ALSA_PKG_ERRORS" >&5
8800 { $as_echo "$as_me:$LINENO: result: no" >&5
8801 $as_echo "no" >&6; }
8803 elif test $pkg_failed = untried; then
8806 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
8807 ALSA_LIBS=$pkg_cv_ALSA_LIBS
8808 { $as_echo "$as_me:$LINENO: result: yes" >&5
8809 $as_echo "yes" >&6; }
8813 cat >>confdefs.h <<\_ACEOF
8820 if test "$HAVE_ALSA" = 'yes' ; then
8822 AUDIO_ALSA_FALSE='#'
8829 if test "x$HAVE_ESOUND" = "x" -a "x$HAVE_ALSA" = "x" -a "x$HAVE_PULSE" = "x"; then
8830 echo "Warning: Building without audio support"
8833 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8834 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
8835 $as_echo_n "checking for linux/cdrom.h... " >&6; }
8836 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8837 $as_echo_n "(cached) " >&6
8839 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
8840 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
8842 # Is the header compilable?
8843 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
8844 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
8845 cat >conftest.$ac_ext <<_ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8851 $ac_includes_default
8852 #include <linux/cdrom.h>
8854 rm -f conftest.$ac_objext
8855 if { (ac_try="$ac_compile"
8857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858 *) ac_try_echo=$ac_try;;
8860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8861 $as_echo "$ac_try_echo") >&5
8862 (eval "$ac_compile") 2>conftest.er1
8864 grep -v '^ *+' conftest.er1 >conftest.err
8866 cat conftest.err >&5
8867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } && {
8869 test -z "$ac_c_werror_flag" ||
8870 test ! -s conftest.err
8871 } && test -s conftest.$ac_objext; then
8872 ac_header_compiler=yes
8874 $as_echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8877 ac_header_compiler=no
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8882 $as_echo "$ac_header_compiler" >&6; }
8884 # Is the header present?
8885 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
8886 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
8887 cat >conftest.$ac_ext <<_ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8893 #include <linux/cdrom.h>
8895 if { (ac_try="$ac_cpp conftest.$ac_ext"
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8901 $as_echo "$ac_try_echo") >&5
8902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8904 grep -v '^ *+' conftest.er1 >conftest.err
8906 cat conftest.err >&5
8907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } >/dev/null && {
8909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8910 test ! -s conftest.err
8912 ac_header_preproc=yes
8914 $as_echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 ac_header_preproc=no
8920 rm -f conftest.err conftest.$ac_ext
8921 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8922 $as_echo "$ac_header_preproc" >&6; }
8924 # So? What about this header?
8925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8927 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
8928 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8929 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
8930 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
8931 ac_header_preproc=yes
8934 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
8935 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
8936 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
8937 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
8938 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
8939 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
8940 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
8941 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
8942 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
8943 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
8944 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
8945 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
8949 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
8950 $as_echo_n "checking for linux/cdrom.h... " >&6; }
8951 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8952 $as_echo_n "(cached) " >&6
8954 ac_cv_header_linux_cdrom_h=$ac_header_preproc
8956 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
8957 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
8960 if test $ac_cv_header_linux_cdrom_h = yes; then
8961 HAVE_LINUX_CDROM_H=yes
8964 echo "Linux CDROM support not found, building without it."
8970 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
8972 CDROM_LINUX_FALSE='#'
8974 CDROM_LINUX_TRUE='#'
8979 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8980 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
8981 $as_echo_n "checking for linux/joystick.h... " >&6; }
8982 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8983 $as_echo_n "(cached) " >&6
8985 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
8986 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
8988 # Is the header compilable?
8989 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
8990 $as_echo_n "checking linux/joystick.h usability... " >&6; }
8991 cat >conftest.$ac_ext <<_ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
8997 $ac_includes_default
8998 #include <linux/joystick.h>
9000 rm -f conftest.$ac_objext
9001 if { (ac_try="$ac_compile"
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9007 $as_echo "$ac_try_echo") >&5
9008 (eval "$ac_compile") 2>conftest.er1
9010 grep -v '^ *+' conftest.er1 >conftest.err
9012 cat conftest.err >&5
9013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } && {
9015 test -z "$ac_c_werror_flag" ||
9016 test ! -s conftest.err
9017 } && test -s conftest.$ac_objext; then
9018 ac_header_compiler=yes
9020 $as_echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9023 ac_header_compiler=no
9026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9027 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9028 $as_echo "$ac_header_compiler" >&6; }
9030 # Is the header present?
9031 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
9032 $as_echo_n "checking linux/joystick.h presence... " >&6; }
9033 cat >conftest.$ac_ext <<_ACEOF
9036 cat confdefs.h >>conftest.$ac_ext
9037 cat >>conftest.$ac_ext <<_ACEOF
9038 /* end confdefs.h. */
9039 #include <linux/joystick.h>
9041 if { (ac_try="$ac_cpp conftest.$ac_ext"
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9047 $as_echo "$ac_try_echo") >&5
9048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9050 grep -v '^ *+' conftest.er1 >conftest.err
9052 cat conftest.err >&5
9053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } >/dev/null && {
9055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9056 test ! -s conftest.err
9058 ac_header_preproc=yes
9060 $as_echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 ac_header_preproc=no
9066 rm -f conftest.err conftest.$ac_ext
9067 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9068 $as_echo "$ac_header_preproc" >&6; }
9070 # So? What about this header?
9071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9073 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
9074 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9075 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
9076 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
9077 ac_header_preproc=yes
9080 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
9081 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
9082 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
9083 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
9084 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
9085 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
9086 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
9087 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
9088 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
9089 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
9090 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
9091 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
9095 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9096 $as_echo_n "checking for linux/joystick.h... " >&6; }
9097 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9098 $as_echo_n "(cached) " >&6
9100 ac_cv_header_linux_joystick_h=$ac_header_preproc
9102 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9103 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9106 if test $ac_cv_header_linux_joystick_h = yes; then
9108 HAVE_LINUX_JOYSTICK_H=yes
9110 cat >>confdefs.h <<\_ACEOF
9111 #define HAVE_LINUX_JOYSTICK 1
9115 echo "Linux Joystick support not found, building without it."
9121 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
9130 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
9131 set dummy sh-elf-gcc; ac_word=$2
9132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9133 $as_echo_n "checking for $ac_word... " >&6; }
9134 if test "${ac_cv_path_SHCC+set}" = set; then
9135 $as_echo_n "(cached) " >&6
9139 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
9142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146 test -z "$as_dir" && as_dir=.
9147 for ac_exec_ext in '' $ac_executable_extensions; do
9148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9149 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
9150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9160 SHCC=$ac_cv_path_SHCC
9161 if test -n "$SHCC"; then
9162 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
9163 $as_echo "$SHCC" >&6; }
9165 { $as_echo "$as_me:$LINENO: result: no" >&5
9166 $as_echo "no" >&6; }
9170 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
9171 set dummy sh-elf-ld; ac_word=$2
9172 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9173 $as_echo_n "checking for $ac_word... " >&6; }
9174 if test "${ac_cv_path_SHLD+set}" = set; then
9175 $as_echo_n "(cached) " >&6
9179 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
9182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186 test -z "$as_dir" && as_dir=.
9187 for ac_exec_ext in '' $ac_executable_extensions; do
9188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9189 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
9190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9200 SHLD=$ac_cv_path_SHLD
9201 if test -n "$SHLD"; then
9202 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
9203 $as_echo "$SHLD" >&6; }
9205 { $as_echo "$as_me:$LINENO: result: no" >&5
9206 $as_echo "no" >&6; }
9210 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
9211 set dummy sh-elf-objcopy; ac_word=$2
9212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
9215 $as_echo_n "(cached) " >&6
9219 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
9222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226 test -z "$as_dir" && as_dir=.
9227 for ac_exec_ext in '' $ac_executable_extensions; do
9228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9229 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9240 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
9241 if test -n "$SHOBJCOPY"; then
9242 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
9243 $as_echo "$SHOBJCOPY" >&6; }
9245 { $as_echo "$as_me:$LINENO: result: no" >&5
9246 $as_echo "no" >&6; }
9250 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
9251 set dummy arm-elf-gcc; ac_word=$2
9252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9253 $as_echo_n "checking for $ac_word... " >&6; }
9254 if test "${ac_cv_path_ARMCC+set}" = set; then
9255 $as_echo_n "(cached) " >&6
9259 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9269 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
9270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9280 ARMCC=$ac_cv_path_ARMCC
9281 if test -n "$ARMCC"; then
9282 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
9283 $as_echo "$ARMCC" >&6; }
9285 { $as_echo "$as_me:$LINENO: result: no" >&5
9286 $as_echo "no" >&6; }
9290 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
9291 set dummy arm-elf-ld; ac_word=$2
9292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9293 $as_echo_n "checking for $ac_word... " >&6; }
9294 if test "${ac_cv_path_ARMLD+set}" = set; then
9295 $as_echo_n "(cached) " >&6
9299 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
9302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306 test -z "$as_dir" && as_dir=.
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9309 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
9310 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9320 ARMLD=$ac_cv_path_ARMLD
9321 if test -n "$ARMLD"; then
9322 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
9323 $as_echo "$ARMLD" >&6; }
9325 { $as_echo "$as_me:$LINENO: result: no" >&5
9326 $as_echo "no" >&6; }
9330 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
9331 set dummy arm-elf-objcopy; ac_word=$2
9332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9333 $as_echo_n "checking for $ac_word... " >&6; }
9334 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
9335 $as_echo_n "(cached) " >&6
9339 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9360 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
9361 if test -n "$ARMOBJCOPY"; then
9362 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
9363 $as_echo "$ARMOBJCOPY" >&6; }
9365 { $as_echo "$as_me:$LINENO: result: no" >&5
9366 $as_echo "no" >&6; }
9371 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
9373 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
9377 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
9379 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
9385 if test "$BUILD_SH" = "yes"; then
9387 BUILD_SYSTEST_FALSE='#'
9389 BUILD_SYSTEST_TRUE='#'
9390 BUILD_SYSTEST_FALSE=
9395 if test "$BUILD_ARM" = "yes"; then
9397 BUILD_ARMTEST_FALSE='#'
9399 BUILD_ARMTEST_TRUE='#'
9400 BUILD_ARMTEST_FALSE=
9405 GETTEXT_PACKAGE=lxdream
9408 cat >>confdefs.h <<_ACEOF
9409 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
9413 ALL_LINGUAS="de es it pt_BR"
9416 for ac_header in locale.h
9418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9420 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9421 $as_echo_n "checking for $ac_header... " >&6; }
9422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9423 $as_echo_n "(cached) " >&6
9425 ac_res=`eval 'as_val=${'$as_ac_Header'}
9426 $as_echo "$as_val"'`
9427 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9428 $as_echo "$ac_res" >&6; }
9430 # Is the header compilable?
9431 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9432 $as_echo_n "checking $ac_header usability... " >&6; }
9433 cat >conftest.$ac_ext <<_ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 $ac_includes_default
9440 #include <$ac_header>
9442 rm -f conftest.$ac_objext
9443 if { (ac_try="$ac_compile"
9445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9449 $as_echo "$ac_try_echo") >&5
9450 (eval "$ac_compile") 2>conftest.er1
9452 grep -v '^ *+' conftest.er1 >conftest.err
9454 cat conftest.err >&5
9455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && {
9457 test -z "$ac_c_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest.$ac_objext; then
9460 ac_header_compiler=yes
9462 $as_echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9465 ac_header_compiler=no
9468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9469 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9470 $as_echo "$ac_header_compiler" >&6; }
9472 # Is the header present?
9473 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9474 $as_echo_n "checking $ac_header presence... " >&6; }
9475 cat >conftest.$ac_ext <<_ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481 #include <$ac_header>
9483 if { (ac_try="$ac_cpp conftest.$ac_ext"
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9489 $as_echo "$ac_try_echo") >&5
9490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9492 grep -v '^ *+' conftest.er1 >conftest.err
9494 cat conftest.err >&5
9495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } >/dev/null && {
9497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9498 test ! -s conftest.err
9500 ac_header_preproc=yes
9502 $as_echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9505 ac_header_preproc=no
9508 rm -f conftest.err conftest.$ac_ext
9509 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9510 $as_echo "$ac_header_preproc" >&6; }
9512 # So? What about this header?
9513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9516 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9518 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9519 ac_header_preproc=yes
9522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9523 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9525 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9527 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9529 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9531 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9533 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9537 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9538 $as_echo_n "checking for $ac_header... " >&6; }
9539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9540 $as_echo_n "(cached) " >&6
9542 eval "$as_ac_Header=\$ac_header_preproc"
9544 ac_res=`eval 'as_val=${'$as_ac_Header'}
9545 $as_echo "$as_val"'`
9546 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9547 $as_echo "$ac_res" >&6; }
9550 if test `eval 'as_val=${'$as_ac_Header'}
9551 $as_echo "$as_val"'` = yes; then
9552 cat >>confdefs.h <<_ACEOF
9553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9560 if test $ac_cv_header_locale_h = yes; then
9561 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9562 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9563 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9564 $as_echo_n "(cached) " >&6
9566 cat >conftest.$ac_ext <<_ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9581 rm -f conftest.$ac_objext conftest$ac_exeext
9582 if { (ac_try="$ac_link"
9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9588 $as_echo "$ac_try_echo") >&5
9589 (eval "$ac_link") 2>conftest.er1
9591 grep -v '^ *+' conftest.er1 >conftest.err
9593 cat conftest.err >&5
9594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest$ac_exeext && {
9599 test "$cross_compiling" = yes ||
9600 $as_test_x conftest$ac_exeext
9602 am_cv_val_LC_MESSAGES=yes
9604 $as_echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9607 am_cv_val_LC_MESSAGES=no
9610 rm -rf conftest.dSYM
9611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9612 conftest$ac_exeext conftest.$ac_ext
9614 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9615 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9616 if test $am_cv_val_LC_MESSAGES = yes; then
9618 cat >>confdefs.h <<\_ACEOF
9619 #define HAVE_LC_MESSAGES 1
9627 gt_cv_have_gettext=no
9633 if test "${ac_cv_header_libintl_h+set}" = set; then
9634 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
9635 $as_echo_n "checking for libintl.h... " >&6; }
9636 if test "${ac_cv_header_libintl_h+set}" = set; then
9637 $as_echo_n "(cached) " >&6
9639 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9640 $as_echo "$ac_cv_header_libintl_h" >&6; }
9642 # Is the header compilable?
9643 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
9644 $as_echo_n "checking libintl.h usability... " >&6; }
9645 cat >conftest.$ac_ext <<_ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 $ac_includes_default
9652 #include <libintl.h>
9654 rm -f conftest.$ac_objext
9655 if { (ac_try="$ac_compile"
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9661 $as_echo "$ac_try_echo") >&5
9662 (eval "$ac_compile") 2>conftest.er1
9664 grep -v '^ *+' conftest.er1 >conftest.err
9666 cat conftest.err >&5
9667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } && {
9669 test -z "$ac_c_werror_flag" ||
9670 test ! -s conftest.err
9671 } && test -s conftest.$ac_objext; then
9672 ac_header_compiler=yes
9674 $as_echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9677 ac_header_compiler=no
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9682 $as_echo "$ac_header_compiler" >&6; }
9684 # Is the header present?
9685 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
9686 $as_echo_n "checking libintl.h presence... " >&6; }
9687 cat >conftest.$ac_ext <<_ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 #include <libintl.h>
9695 if { (ac_try="$ac_cpp conftest.$ac_ext"
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9701 $as_echo "$ac_try_echo") >&5
9702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9704 grep -v '^ *+' conftest.er1 >conftest.err
9706 cat conftest.err >&5
9707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } >/dev/null && {
9709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9710 test ! -s conftest.err
9712 ac_header_preproc=yes
9714 $as_echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 ac_header_preproc=no
9720 rm -f conftest.err conftest.$ac_ext
9721 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9722 $as_echo "$ac_header_preproc" >&6; }
9724 # So? What about this header?
9725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9727 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9728 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9729 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
9730 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
9731 ac_header_preproc=yes
9734 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
9735 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
9736 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
9737 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
9738 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
9739 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
9740 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
9741 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9742 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
9743 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
9744 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
9745 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
9749 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
9750 $as_echo_n "checking for libintl.h... " >&6; }
9751 if test "${ac_cv_header_libintl_h+set}" = set; then
9752 $as_echo_n "(cached) " >&6
9754 ac_cv_header_libintl_h=$ac_header_preproc
9756 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9757 $as_echo "$ac_cv_header_libintl_h" >&6; }
9760 if test $ac_cv_header_libintl_h = yes; then
9761 gt_cv_func_dgettext_libintl="no"
9762 libintl_extra_libs=""
9765 # First check in libc
9767 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
9768 $as_echo_n "checking for ngettext in libc... " >&6; }
9769 if test "${gt_cv_func_ngettext_libc+set}" = set; then
9770 $as_echo_n "(cached) " >&6
9772 cat >conftest.$ac_ext <<_ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9779 #include <libintl.h>
9784 return !ngettext ("","", 1)
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9796 $as_echo "$ac_try_echo") >&5
9797 (eval "$ac_link") 2>conftest.er1
9799 grep -v '^ *+' conftest.er1 >conftest.err
9801 cat conftest.err >&5
9802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } && {
9804 test -z "$ac_c_werror_flag" ||
9805 test ! -s conftest.err
9806 } && test -s conftest$ac_exeext && {
9807 test "$cross_compiling" = yes ||
9808 $as_test_x conftest$ac_exeext
9810 gt_cv_func_ngettext_libc=yes
9812 $as_echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 gt_cv_func_ngettext_libc=no
9818 rm -rf conftest.dSYM
9819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9820 conftest$ac_exeext conftest.$ac_ext
9823 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
9824 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
9826 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9827 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
9828 $as_echo_n "checking for dgettext in libc... " >&6; }
9829 if test "${gt_cv_func_dgettext_libc+set}" = set; then
9830 $as_echo_n "(cached) " >&6
9832 cat >conftest.$ac_ext <<_ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9839 #include <libintl.h>
9844 return !dgettext ("","")
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (ac_try="$ac_link"
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9856 $as_echo "$ac_try_echo") >&5
9857 (eval "$ac_link") 2>conftest.er1
9859 grep -v '^ *+' conftest.er1 >conftest.err
9861 cat conftest.err >&5
9862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } && {
9864 test -z "$ac_c_werror_flag" ||
9865 test ! -s conftest.err
9866 } && test -s conftest$ac_exeext && {
9867 test "$cross_compiling" = yes ||
9868 $as_test_x conftest$ac_exeext
9870 gt_cv_func_dgettext_libc=yes
9872 $as_echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 gt_cv_func_dgettext_libc=no
9878 rm -rf conftest.dSYM
9879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9880 conftest$ac_exeext conftest.$ac_ext
9883 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
9884 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
9887 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9889 for ac_func in bind_textdomain_codeset
9891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9892 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9893 $as_echo_n "checking for $ac_func... " >&6; }
9894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9895 $as_echo_n "(cached) " >&6
9897 cat >conftest.$ac_ext <<_ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9905 #define $ac_func innocuous_$ac_func
9907 /* System header to define __stub macros and hopefully few prototypes,
9908 which can conflict with char $ac_func (); below.
9909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9910 <limits.h> exists even on freestanding compilers. */
9913 # include <limits.h>
9915 # include <assert.h>
9920 /* Override any GCC internal prototype to avoid an error.
9921 Use char because int might match the return type of a GCC
9922 builtin and then its argument prototype would still apply. */
9927 /* The GNU C library defines this for functions which it implements
9928 to always fail with ENOSYS. Some functions are actually named
9929 something starting with __ and the normal name is an alias. */
9930 #if defined __stub_$ac_func || defined __stub___$ac_func
9942 rm -f conftest.$ac_objext conftest$ac_exeext
9943 if { (ac_try="$ac_link"
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9949 $as_echo "$ac_try_echo") >&5
9950 (eval "$ac_link") 2>conftest.er1
9952 grep -v '^ *+' conftest.er1 >conftest.err
9954 cat conftest.err >&5
9955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } && {
9957 test -z "$ac_c_werror_flag" ||
9958 test ! -s conftest.err
9959 } && test -s conftest$ac_exeext && {
9960 test "$cross_compiling" = yes ||
9961 $as_test_x conftest$ac_exeext
9963 eval "$as_ac_var=yes"
9965 $as_echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 eval "$as_ac_var=no"
9971 rm -rf conftest.dSYM
9972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9973 conftest$ac_exeext conftest.$ac_ext
9975 ac_res=`eval 'as_val=${'$as_ac_var'}
9976 $as_echo "$as_val"'`
9977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9978 $as_echo "$ac_res" >&6; }
9979 if test `eval 'as_val=${'$as_ac_var'}
9980 $as_echo "$as_val"'` = yes; then
9981 cat >>confdefs.h <<_ACEOF
9982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9991 # If we don't have everything we want, check in libintl
9993 if test "$gt_cv_func_dgettext_libc" != "yes" \
9994 || test "$gt_cv_func_ngettext_libc" != "yes" \
9995 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
9997 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
9998 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
9999 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
10000 $as_echo_n "(cached) " >&6
10002 ac_check_lib_save_LIBS=$LIBS
10003 LIBS="-lintl $LIBS"
10004 cat >conftest.$ac_ext <<_ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10011 /* Override any GCC internal prototype to avoid an error.
10012 Use char because int might match the return type of a GCC
10013 builtin and then its argument prototype would still apply. */
10017 char bindtextdomain ();
10021 return bindtextdomain ();
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (ac_try="$ac_link"
10028 case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10033 $as_echo "$ac_try_echo") >&5
10034 (eval "$ac_link") 2>conftest.er1
10036 grep -v '^ *+' conftest.er1 >conftest.err
10038 cat conftest.err >&5
10039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && {
10041 test -z "$ac_c_werror_flag" ||
10042 test ! -s conftest.err
10043 } && test -s conftest$ac_exeext && {
10044 test "$cross_compiling" = yes ||
10045 $as_test_x conftest$ac_exeext
10047 ac_cv_lib_intl_bindtextdomain=yes
10049 $as_echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10052 ac_cv_lib_intl_bindtextdomain=no
10055 rm -rf conftest.dSYM
10056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10057 conftest$ac_exeext conftest.$ac_ext
10058 LIBS=$ac_check_lib_save_LIBS
10060 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
10061 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
10062 if test $ac_cv_lib_intl_bindtextdomain = yes; then
10063 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10064 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10065 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10066 $as_echo_n "(cached) " >&6
10068 ac_check_lib_save_LIBS=$LIBS
10069 LIBS="-lintl $LIBS"
10070 cat >conftest.$ac_ext <<_ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10077 /* Override any GCC internal prototype to avoid an error.
10078 Use char because int might match the return type of a GCC
10079 builtin and then its argument prototype would still apply. */
10087 return ngettext ();
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (ac_try="$ac_link"
10094 case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10099 $as_echo "$ac_try_echo") >&5
10100 (eval "$ac_link") 2>conftest.er1
10102 grep -v '^ *+' conftest.er1 >conftest.err
10104 cat conftest.err >&5
10105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } && {
10107 test -z "$ac_c_werror_flag" ||
10108 test ! -s conftest.err
10109 } && test -s conftest$ac_exeext && {
10110 test "$cross_compiling" = yes ||
10111 $as_test_x conftest$ac_exeext
10113 ac_cv_lib_intl_ngettext=yes
10115 $as_echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_cv_lib_intl_ngettext=no
10121 rm -rf conftest.dSYM
10122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10123 conftest$ac_exeext conftest.$ac_ext
10124 LIBS=$ac_check_lib_save_LIBS
10126 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10127 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10128 if test $ac_cv_lib_intl_ngettext = yes; then
10129 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
10130 $as_echo_n "checking for dgettext in -lintl... " >&6; }
10131 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
10132 $as_echo_n "(cached) " >&6
10134 ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-lintl $LIBS"
10136 cat >conftest.$ac_ext <<_ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10143 /* Override any GCC internal prototype to avoid an error.
10144 Use char because int might match the return type of a GCC
10145 builtin and then its argument prototype would still apply. */
10153 return dgettext ();
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (ac_try="$ac_link"
10160 case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10165 $as_echo "$ac_try_echo") >&5
10166 (eval "$ac_link") 2>conftest.er1
10168 grep -v '^ *+' conftest.er1 >conftest.err
10170 cat conftest.err >&5
10171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && {
10173 test -z "$ac_c_werror_flag" ||
10174 test ! -s conftest.err
10175 } && test -s conftest$ac_exeext && {
10176 test "$cross_compiling" = yes ||
10177 $as_test_x conftest$ac_exeext
10179 ac_cv_lib_intl_dgettext=yes
10181 $as_echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ac_cv_lib_intl_dgettext=no
10187 rm -rf conftest.dSYM
10188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10189 conftest$ac_exeext conftest.$ac_ext
10190 LIBS=$ac_check_lib_save_LIBS
10192 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
10193 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
10194 if test $ac_cv_lib_intl_dgettext = yes; then
10195 gt_cv_func_dgettext_libintl=yes
10203 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
10204 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
10205 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
10206 { $as_echo "$as_me:$LINENO: result: " >&5
10208 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10209 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10210 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10211 $as_echo_n "(cached) " >&6
10213 ac_check_lib_save_LIBS=$LIBS
10214 LIBS="-lintl -liconv $LIBS"
10215 cat >conftest.$ac_ext <<_ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10222 /* Override any GCC internal prototype to avoid an error.
10223 Use char because int might match the return type of a GCC
10224 builtin and then its argument prototype would still apply. */
10232 return ngettext ();
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (ac_try="$ac_link"
10239 case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10244 $as_echo "$ac_try_echo") >&5
10245 (eval "$ac_link") 2>conftest.er1
10247 grep -v '^ *+' conftest.er1 >conftest.err
10249 cat conftest.err >&5
10250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } && {
10252 test -z "$ac_c_werror_flag" ||
10253 test ! -s conftest.err
10254 } && test -s conftest$ac_exeext && {
10255 test "$cross_compiling" = yes ||
10256 $as_test_x conftest$ac_exeext
10258 ac_cv_lib_intl_ngettext=yes
10260 $as_echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10263 ac_cv_lib_intl_ngettext=no
10266 rm -rf conftest.dSYM
10267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10268 conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10272 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10273 if test $ac_cv_lib_intl_ngettext = yes; then
10274 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
10275 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
10276 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
10277 $as_echo_n "(cached) " >&6
10279 ac_check_lib_save_LIBS=$LIBS
10280 LIBS="-lintl -liconv $LIBS"
10281 cat >conftest.$ac_ext <<_ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10288 /* Override any GCC internal prototype to avoid an error.
10289 Use char because int might match the return type of a GCC
10290 builtin and then its argument prototype would still apply. */
10298 return dcgettext ();
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (ac_try="$ac_link"
10305 case "(($ac_try" in
10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10310 $as_echo "$ac_try_echo") >&5
10311 (eval "$ac_link") 2>conftest.er1
10313 grep -v '^ *+' conftest.er1 >conftest.err
10315 cat conftest.err >&5
10316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && {
10318 test -z "$ac_c_werror_flag" ||
10319 test ! -s conftest.err
10320 } && test -s conftest$ac_exeext && {
10321 test "$cross_compiling" = yes ||
10322 $as_test_x conftest$ac_exeext
10324 ac_cv_lib_intl_dcgettext=yes
10326 $as_echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ac_cv_lib_intl_dcgettext=no
10332 rm -rf conftest.dSYM
10333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10334 conftest$ac_exeext conftest.$ac_ext
10335 LIBS=$ac_check_lib_save_LIBS
10337 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
10338 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
10339 if test $ac_cv_lib_intl_dcgettext = yes; then
10340 gt_cv_func_dgettext_libintl=yes
10341 libintl_extra_libs=-liconv
10353 # If we found libintl, then check in it for bind_textdomain_codeset();
10354 # we'll prefer libc if neither have bind_textdomain_codeset(),
10355 # and both have dgettext and ngettext
10357 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
10358 glib_save_LIBS="$LIBS"
10359 LIBS="$LIBS -lintl $libintl_extra_libs"
10360 unset ac_cv_func_bind_textdomain_codeset
10362 for ac_func in bind_textdomain_codeset
10364 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10365 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10366 $as_echo_n "checking for $ac_func... " >&6; }
10367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10368 $as_echo_n "(cached) " >&6
10370 cat >conftest.$ac_ext <<_ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10378 #define $ac_func innocuous_$ac_func
10380 /* System header to define __stub macros and hopefully few prototypes,
10381 which can conflict with char $ac_func (); below.
10382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10383 <limits.h> exists even on freestanding compilers. */
10386 # include <limits.h>
10388 # include <assert.h>
10393 /* Override any GCC internal prototype to avoid an error.
10394 Use char because int might match the return type of a GCC
10395 builtin and then its argument prototype would still apply. */
10400 /* The GNU C library defines this for functions which it implements
10401 to always fail with ENOSYS. Some functions are actually named
10402 something starting with __ and the normal name is an alias. */
10403 #if defined __stub_$ac_func || defined __stub___$ac_func
10410 return $ac_func ();
10415 rm -f conftest.$ac_objext conftest$ac_exeext
10416 if { (ac_try="$ac_link"
10417 case "(($ac_try" in
10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10422 $as_echo "$ac_try_echo") >&5
10423 (eval "$ac_link") 2>conftest.er1
10425 grep -v '^ *+' conftest.er1 >conftest.err
10427 cat conftest.err >&5
10428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } && {
10430 test -z "$ac_c_werror_flag" ||
10431 test ! -s conftest.err
10432 } && test -s conftest$ac_exeext && {
10433 test "$cross_compiling" = yes ||
10434 $as_test_x conftest$ac_exeext
10436 eval "$as_ac_var=yes"
10438 $as_echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10441 eval "$as_ac_var=no"
10444 rm -rf conftest.dSYM
10445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10446 conftest$ac_exeext conftest.$ac_ext
10448 ac_res=`eval 'as_val=${'$as_ac_var'}
10449 $as_echo "$as_val"'`
10450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10451 $as_echo "$ac_res" >&6; }
10452 if test `eval 'as_val=${'$as_ac_var'}
10453 $as_echo "$as_val"'` = yes; then
10454 cat >>confdefs.h <<_ACEOF
10455 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10461 LIBS="$glib_save_LIBS"
10463 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
10464 gt_cv_func_dgettext_libc=no
10466 if test "$gt_cv_func_dgettext_libc" = "yes" \
10467 && test "$gt_cv_func_ngettext_libc" = "yes"; then
10468 gt_cv_func_dgettext_libintl=no
10474 if test "$gt_cv_func_dgettext_libc" = "yes" \
10475 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10476 gt_cv_have_gettext=yes
10479 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10480 INTLLIBS="-lintl $libintl_extra_libs"
10483 if test "$gt_cv_have_gettext" = "yes"; then
10485 cat >>confdefs.h <<\_ACEOF
10486 #define HAVE_GETTEXT 1
10489 # Extract the first word of "msgfmt", so it can be a program name with args.
10490 set dummy msgfmt; ac_word=$2
10491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10492 $as_echo_n "checking for $ac_word... " >&6; }
10493 if test "${ac_cv_path_MSGFMT+set}" = set; then
10494 $as_echo_n "(cached) " >&6
10498 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10502 for ac_dir in $PATH; do
10503 test -z "$ac_dir" && ac_dir=.
10504 if test -f $ac_dir/$ac_word; then
10505 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
10506 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10512 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
10516 MSGFMT="$ac_cv_path_MSGFMT"
10517 if test "$MSGFMT" != "no"; then
10518 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10519 $as_echo "$MSGFMT" >&6; }
10521 { $as_echo "$as_me:$LINENO: result: no" >&5
10522 $as_echo "no" >&6; }
10524 if test "$MSGFMT" != "no"; then
10525 glib_save_LIBS="$LIBS"
10526 LIBS="$LIBS $INTLLIBS"
10528 for ac_func in dcgettext
10530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10531 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10532 $as_echo_n "checking for $ac_func... " >&6; }
10533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10534 $as_echo_n "(cached) " >&6
10536 cat >conftest.$ac_ext <<_ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10544 #define $ac_func innocuous_$ac_func
10546 /* System header to define __stub macros and hopefully few prototypes,
10547 which can conflict with char $ac_func (); below.
10548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10549 <limits.h> exists even on freestanding compilers. */
10552 # include <limits.h>
10554 # include <assert.h>
10559 /* Override any GCC internal prototype to avoid an error.
10560 Use char because int might match the return type of a GCC
10561 builtin and then its argument prototype would still apply. */
10566 /* The GNU C library defines this for functions which it implements
10567 to always fail with ENOSYS. Some functions are actually named
10568 something starting with __ and the normal name is an alias. */
10569 #if defined __stub_$ac_func || defined __stub___$ac_func
10576 return $ac_func ();
10581 rm -f conftest.$ac_objext conftest$ac_exeext
10582 if { (ac_try="$ac_link"
10583 case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10588 $as_echo "$ac_try_echo") >&5
10589 (eval "$ac_link") 2>conftest.er1
10591 grep -v '^ *+' conftest.er1 >conftest.err
10593 cat conftest.err >&5
10594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && {
10596 test -z "$ac_c_werror_flag" ||
10597 test ! -s conftest.err
10598 } && test -s conftest$ac_exeext && {
10599 test "$cross_compiling" = yes ||
10600 $as_test_x conftest$ac_exeext
10602 eval "$as_ac_var=yes"
10604 $as_echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10607 eval "$as_ac_var=no"
10610 rm -rf conftest.dSYM
10611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10612 conftest$ac_exeext conftest.$ac_ext
10614 ac_res=`eval 'as_val=${'$as_ac_var'}
10615 $as_echo "$as_val"'`
10616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10617 $as_echo "$ac_res" >&6; }
10618 if test `eval 'as_val=${'$as_ac_var'}
10619 $as_echo "$as_val"'` = yes; then
10620 cat >>confdefs.h <<_ACEOF
10621 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10628 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
10629 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
10630 cat >conftest.foo <<_ACEOF
10634 "Content-Type: text/plain; charset=UTF-8\n"
10635 "Project-Id-Version: test 1.0\n"
10636 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
10637 "Last-Translator: test <foo@bar.xx>\n"
10638 "Language-Team: C <LL@li.org>\n"
10639 "MIME-Version: 1.0\n"
10640 "Content-Transfer-Encoding: 8bit\n"
10643 if { ($as_echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
10644 (msgfmt -c -o /dev/null conftest.foo) 2>&5
10646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; then
10648 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
10649 $as_echo "yes" >&6; }
10650 else { $as_echo "$as_me:$LINENO: result: no" >&5
10651 $as_echo "no" >&6; }
10652 echo "$as_me: failed input was:" >&5
10653 sed 's/^/| /' conftest.foo >&5
10656 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10657 set dummy gmsgfmt; ac_word=$2
10658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10659 $as_echo_n "checking for $ac_word... " >&6; }
10660 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10661 $as_echo_n "(cached) " >&6
10665 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669 for as_dir in $PATH
10672 test -z "$as_dir" && as_dir=.
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10675 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10687 GMSGFMT=$ac_cv_path_GMSGFMT
10688 if test -n "$GMSGFMT"; then
10689 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10690 $as_echo "$GMSGFMT" >&6; }
10692 { $as_echo "$as_me:$LINENO: result: no" >&5
10693 $as_echo "no" >&6; }
10697 # Extract the first word of "xgettext", so it can be a program name with args.
10698 set dummy xgettext; ac_word=$2
10699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10700 $as_echo_n "checking for $ac_word... " >&6; }
10701 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10702 $as_echo_n "(cached) " >&6
10704 case "$XGETTEXT" in
10706 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10710 for ac_dir in $PATH; do
10711 test -z "$ac_dir" && ac_dir=.
10712 if test -f $ac_dir/$ac_word; then
10713 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
10714 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
10720 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10724 XGETTEXT="$ac_cv_path_XGETTEXT"
10725 if test "$XGETTEXT" != ":"; then
10726 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10727 $as_echo "$XGETTEXT" >&6; }
10729 { $as_echo "$as_me:$LINENO: result: no" >&5
10730 $as_echo "no" >&6; }
10733 cat >conftest.$ac_ext <<_ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10743 extern int _nl_msg_cat_cntr;
10744 return _nl_msg_cat_cntr
10749 rm -f conftest.$ac_objext conftest$ac_exeext
10750 if { (ac_try="$ac_link"
10751 case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10756 $as_echo "$ac_try_echo") >&5
10757 (eval "$ac_link") 2>conftest.er1
10759 grep -v '^ *+' conftest.er1 >conftest.err
10761 cat conftest.err >&5
10762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } && {
10764 test -z "$ac_c_werror_flag" ||
10765 test ! -s conftest.err
10766 } && test -s conftest$ac_exeext && {
10767 test "$cross_compiling" = yes ||
10768 $as_test_x conftest$ac_exeext
10773 $as_echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10778 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
10779 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
10780 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
10781 $as_echo_n "(cached) " >&6
10783 cat >conftest.$ac_ext <<_ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
10790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10791 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
10793 /* System header to define __stub macros and hopefully few prototypes,
10794 which can conflict with char bind_textdomain_codeset (); below.
10795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10796 <limits.h> exists even on freestanding compilers. */
10799 # include <limits.h>
10801 # include <assert.h>
10804 #undef bind_textdomain_codeset
10806 /* Override any GCC internal prototype to avoid an error.
10807 Use char because int might match the return type of a GCC
10808 builtin and then its argument prototype would still apply. */
10812 char bind_textdomain_codeset ();
10813 /* The GNU C library defines this for functions which it implements
10814 to always fail with ENOSYS. Some functions are actually named
10815 something starting with __ and the normal name is an alias. */
10816 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
10823 return bind_textdomain_codeset ();
10828 rm -f conftest.$ac_objext conftest$ac_exeext
10829 if { (ac_try="$ac_link"
10830 case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10835 $as_echo "$ac_try_echo") >&5
10836 (eval "$ac_link") 2>conftest.er1
10838 grep -v '^ *+' conftest.er1 >conftest.err
10840 cat conftest.err >&5
10841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && {
10843 test -z "$ac_c_werror_flag" ||
10844 test ! -s conftest.err
10845 } && test -s conftest$ac_exeext && {
10846 test "$cross_compiling" = yes ||
10847 $as_test_x conftest$ac_exeext
10849 ac_cv_func_bind_textdomain_codeset=yes
10851 $as_echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10854 ac_cv_func_bind_textdomain_codeset=no
10857 rm -rf conftest.dSYM
10858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10859 conftest$ac_exeext conftest.$ac_ext
10861 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
10862 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
10863 if test $ac_cv_func_bind_textdomain_codeset = yes; then
10879 rm -rf conftest.dSYM
10880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10881 conftest$ac_exeext conftest.$ac_ext
10882 LIBS="$glib_save_LIBS"
10885 gt_cv_have_gettext=no
10893 if test "$gt_cv_have_gettext" = "yes" ; then
10895 cat >>confdefs.h <<\_ACEOF
10896 #define ENABLE_NLS 1
10901 if test "$XGETTEXT" != ":"; then
10902 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
10905 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10906 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
10911 # We need to process the po/ directory.
10914 ac_config_commands="$ac_config_commands default-1"
10917 for lang in $ALL_LINGUAS; do
10918 GMOFILES="$GMOFILES $lang.gmo"
10919 POFILES="$POFILES $lang.po"
10934 if test "$gt_cv_have_gettext" = "yes"; then
10935 if test "x$ALL_LINGUAS" = "x"; then
10938 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10939 $as_echo_n "checking for catalogs to be installed... " >&6; }
10941 for presentlang in $ALL_LINGUAS; do
10943 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
10944 desiredlanguages="$LINGUAS"
10946 desiredlanguages="$ALL_LINGUAS"
10948 for desiredlang in $desiredlanguages; do
10949 # Use the presentlang catalog if desiredlang is
10950 # a. equal to presentlang, or
10951 # b. a variant of presentlang (because in this case,
10952 # presentlang can be used as a fallback for messages
10953 # which are not translated in the desiredlang catalog).
10954 case "$desiredlang" in
10955 "$presentlang"*) useit=yes;;
10958 if test $useit = yes; then
10959 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
10962 LINGUAS=$NEW_LINGUAS
10963 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
10964 $as_echo "$LINGUAS" >&6; }
10967 if test -n "$LINGUAS"; then
10968 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
10973 if test -n "$ac_aux_dir"; then
10974 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10976 if test -z "$MKINSTALLDIRS"; then
10977 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10981 test -d po || mkdir po
10982 if test "x$srcdir" != "x."; then
10983 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10984 posrcprefix="$srcdir/"
10986 posrcprefix="../$srcdir/"
10992 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10993 < $srcdir/po/POTFILES.in > po/POTFILES
10996 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
10998 cat >confcache <<\_ACEOF
10999 # This file is a shell script that caches the results of configure
11000 # tests run on this system so they can be shared between configure
11001 # scripts and configure runs, see configure's option --config-cache.
11002 # It is not useful on other systems. If it contains results you don't
11003 # want to keep, you may remove or edit it.
11005 # config.status only pays attention to the cache file if you give it
11006 # the --recheck option to rerun configure.
11008 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11009 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11010 # following values.
11014 # The following way of writing the cache mishandles newlines in values,
11015 # but we know of no workaround that is simple, portable, and efficient.
11016 # So, we kill variables containing newlines.
11017 # Ultrix sh set writes to stderr and can't be redirected directly,
11018 # and sets the high bit in the cache file unless we assign to the vars.
11020 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11021 eval ac_val=\$$ac_var
11025 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11026 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11029 _ | IFS | as_nl) ;; #(
11030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11031 *) $as_unset $ac_var ;;
11037 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11038 *${as_nl}ac_space=\ *)
11039 # `set' does not quote correctly, so add quotes (double-quote
11040 # substitution turns \\\\ into \\, and sed turns \\ into \).
11043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11046 # `set' quotes correctly as required by POSIX, so do not add quotes.
11047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11056 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11058 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11060 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11061 if test -w "$cache_file"; then
11062 test "x$cache_file" != "x/dev/null" &&
11063 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11064 $as_echo "$as_me: updating cache $cache_file" >&6;}
11065 cat confcache >$cache_file
11067 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11068 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11073 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11074 # Let make expand exec_prefix.
11075 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11077 DEFS=-DHAVE_CONFIG_H
11081 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11082 # 1. Remove the extension, and $U if already installed.
11083 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11084 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11085 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11086 # will be set to the directory where LIBOBJS objects are built.
11087 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11088 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11090 LIBOBJS=$ac_libobjs
11092 LTLIBOBJS=$ac_ltlibobjs
11095 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11096 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11097 Usually this means the macro was only invoked conditionally." >&5
11098 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11099 Usually this means the macro was only invoked conditionally." >&2;}
11100 { (exit 1); exit 1; }; }
11102 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11103 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11104 Usually this means the macro was only invoked conditionally." >&5
11105 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11106 Usually this means the macro was only invoked conditionally." >&2;}
11107 { (exit 1); exit 1; }; }
11109 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11110 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11111 Usually this means the macro was only invoked conditionally." >&5
11112 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11113 Usually this means the macro was only invoked conditionally." >&2;}
11114 { (exit 1); exit 1; }; }
11116 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11117 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11118 Usually this means the macro was only invoked conditionally." >&5
11119 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11120 Usually this means the macro was only invoked conditionally." >&2;}
11121 { (exit 1); exit 1; }; }
11123 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11124 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11125 Usually this means the macro was only invoked conditionally." >&5
11126 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11127 Usually this means the macro was only invoked conditionally." >&2;}
11128 { (exit 1); exit 1; }; }
11130 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
11131 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
11132 Usually this means the macro was only invoked conditionally." >&5
11133 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
11134 Usually this means the macro was only invoked conditionally." >&2;}
11135 { (exit 1); exit 1; }; }
11137 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
11138 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
11139 Usually this means the macro was only invoked conditionally." >&5
11140 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
11141 Usually this means the macro was only invoked conditionally." >&2;}
11142 { (exit 1); exit 1; }; }
11144 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
11145 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
11146 Usually this means the macro was only invoked conditionally." >&5
11147 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
11148 Usually this means the macro was only invoked conditionally." >&2;}
11149 { (exit 1); exit 1; }; }
11151 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
11152 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
11153 Usually this means the macro was only invoked conditionally." >&5
11154 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
11155 Usually this means the macro was only invoked conditionally." >&2;}
11156 { (exit 1); exit 1; }; }
11158 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
11159 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
11160 Usually this means the macro was only invoked conditionally." >&5
11161 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
11162 Usually this means the macro was only invoked conditionally." >&2;}
11163 { (exit 1); exit 1; }; }
11165 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
11166 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
11167 Usually this means the macro was only invoked conditionally." >&5
11168 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
11169 Usually this means the macro was only invoked conditionally." >&2;}
11170 { (exit 1); exit 1; }; }
11172 if test -z "${BUILD_X86_64_TRUE}" && test -z "${BUILD_X86_64_FALSE}"; then
11173 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_X86_64\" was never defined.
11174 Usually this means the macro was only invoked conditionally." >&5
11175 $as_echo "$as_me: error: conditional \"BUILD_X86_64\" was never defined.
11176 Usually this means the macro was only invoked conditionally." >&2;}
11177 { (exit 1); exit 1; }; }
11179 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
11180 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
11181 Usually this means the macro was only invoked conditionally." >&5
11182 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
11183 Usually this means the macro was only invoked conditionally." >&2;}
11184 { (exit 1); exit 1; }; }
11186 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
11187 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
11188 Usually this means the macro was only invoked conditionally." >&5
11189 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
11190 Usually this means the macro was only invoked conditionally." >&2;}
11191 { (exit 1); exit 1; }; }
11193 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
11194 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
11195 Usually this means the macro was only invoked conditionally." >&5
11196 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
11197 Usually this means the macro was only invoked conditionally." >&2;}
11198 { (exit 1); exit 1; }; }
11200 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
11201 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
11202 Usually this means the macro was only invoked conditionally." >&5
11203 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
11204 Usually this means the macro was only invoked conditionally." >&2;}
11205 { (exit 1); exit 1; }; }
11207 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
11208 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
11209 Usually this means the macro was only invoked conditionally." >&5
11210 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
11211 Usually this means the macro was only invoked conditionally." >&2;}
11212 { (exit 1); exit 1; }; }
11214 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
11215 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
11216 Usually this means the macro was only invoked conditionally." >&5
11217 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
11218 Usually this means the macro was only invoked conditionally." >&2;}
11219 { (exit 1); exit 1; }; }
11221 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
11222 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
11223 Usually this means the macro was only invoked conditionally." >&5
11224 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
11225 Usually this means the macro was only invoked conditionally." >&2;}
11226 { (exit 1); exit 1; }; }
11229 : ${CONFIG_STATUS=./config.status}
11231 ac_clean_files_save=$ac_clean_files
11232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11233 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11234 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11235 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11237 # Generated by $as_me.
11238 # Run this file to recreate the current configuration.
11239 # Compiler output produced by configure, useful for debugging
11240 # configure, is in config.log if it exists.
11243 ac_cs_recheck=false
11245 SHELL=\${CONFIG_SHELL-$SHELL}
11248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11249 ## --------------------- ##
11250 ## M4sh Initialization. ##
11251 ## --------------------- ##
11253 # Be more Bourne compatible
11254 DUALCASE=1; export DUALCASE # for MKS sh
11255 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11258 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11259 # is contrary to our usage. Disable this feature.
11260 alias -g '${1+"$@"}'='"$@"'
11261 setopt NO_GLOB_SUBST
11263 case `(set -o) 2>/dev/null` in
11264 *posix*) set -o posix ;;
11273 # Avoid depending upon Character Ranges.
11274 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11275 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11276 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11277 as_cr_digits='0123456789'
11278 as_cr_alnum=$as_cr_Letters$as_cr_digits
11283 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11284 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11285 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11286 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11287 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11288 as_echo='printf %s\n'
11289 as_echo_n='printf %s'
11291 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11292 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11293 as_echo_n='/usr/ucb/echo -n'
11295 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11296 as_echo_n_body='eval
11300 expr "X$arg" : "X\\(.*\\)$as_nl";
11301 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11303 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11305 export as_echo_n_body
11306 as_echo_n='sh -c $as_echo_n_body as_echo'
11308 export as_echo_body
11309 as_echo='sh -c $as_echo_body as_echo'
11312 # The user is always right.
11313 if test "${PATH_SEPARATOR+set}" != set; then
11315 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11316 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11321 # Support unset when possible.
11322 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11330 # We need space, tab and new line, in precisely that order. Quoting is
11331 # there to prevent editors from complaining about space-tab.
11332 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11333 # splitting by setting IFS to empty value.)
11336 # Find who we are. Look in the path if we contain no directory separator.
11338 *[\\/]* ) as_myself=$0 ;;
11339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11343 test -z "$as_dir" && as_dir=.
11344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11350 # We did not find ourselves, most probably we were run as `sh COMMAND'
11351 # in which case we are not to be found in the path.
11352 if test "x$as_myself" = x; then
11355 if test ! -f "$as_myself"; then
11356 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11357 { (exit 1); exit 1; }
11360 # Work around bugs in pre-3.0 UWIN ksh.
11361 for as_var in ENV MAIL MAILPATH
11362 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11374 # Required to use basename.
11375 if expr a : '\(a\)' >/dev/null 2>&1 &&
11376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11383 as_basename=basename
11389 # Name of the executable.
11390 as_me=`$as_basename -- "$0" ||
11391 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11392 X"$0" : 'X\(//\)$' \| \
11393 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11395 sed '/^.*\/\([^/][^/]*\)\/*$/{
11414 as_lineno_1=$LINENO
11415 as_lineno_2=$LINENO
11416 test "x$as_lineno_1" != "x$as_lineno_2" &&
11417 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11419 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11420 # uniformly replaced by the line number. The first 'sed' inserts a
11421 # line-number line after each line using $LINENO; the second 'sed'
11422 # does the real work. The second script uses 'N' to pair each
11423 # line-number line with the line containing $LINENO, and appends
11424 # trailing '-' during substitution so that $LINENO is not a special
11425 # case at line end.
11426 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11427 # scripts with optimization help from Paolo Bonzini. Blame Lee
11428 # E. McMahon (1931-1989) for sed's syntax. :-)
11440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11443 ' >$as_me.lineno &&
11444 chmod +x "$as_me.lineno" ||
11445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11446 { (exit 1); exit 1; }; }
11448 # Don't try to exec as it changes $[0], causing all sort of problems
11449 # (the dirname of $[0] is not the place where we might find the
11450 # original and so on. Autoconf is especially sensitive to this).
11451 . "./$as_me.lineno"
11452 # Exit status is that of the last command.
11457 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11463 ECHO_C= ECHO_N= ECHO_T=
11464 case `echo -n x` in
11466 case `echo 'x\c'` in
11467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11473 if expr a : '\(a\)' >/dev/null 2>&1 &&
11474 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11480 rm -f conf$$ conf$$.exe conf$$.file
11481 if test -d conf$$.dir; then
11482 rm -f conf$$.dir/conf$$.file
11485 mkdir conf$$.dir 2>/dev/null
11487 if (echo >conf$$.file) 2>/dev/null; then
11488 if ln -s conf$$.file conf$$ 2>/dev/null; then
11490 # ... but there are two gotchas:
11491 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11492 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11493 # In both cases, we have to default to `cp -p'.
11494 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11496 elif ln conf$$.file conf$$ 2>/dev/null; then
11504 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11505 rmdir conf$$.dir 2>/dev/null
11507 if mkdir -p . 2>/dev/null; then
11510 test -d ./-p && rmdir ./-p
11514 if test -x / >/dev/null 2>&1; then
11515 as_test_x='test -x'
11517 if ls -dL / >/dev/null 2>&1; then
11524 if test -d "$1"; then
11530 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11531 ???[sx]*):;;*)false;;esac;fi
11535 as_executable_p=$as_test_x
11537 # Sed expression to map a string onto a valid CPP name.
11538 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11540 # Sed expression to map a string onto a valid variable name.
11541 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11546 # Save the log message, to keep $[0] and so on meaningful, and to
11547 # report actual input values of CONFIG_FILES etc. instead of their
11548 # values after options handling.
11550 This file was extended by $as_me, which was
11551 generated by GNU Autoconf 2.62. Invocation command line was
11553 CONFIG_FILES = $CONFIG_FILES
11554 CONFIG_HEADERS = $CONFIG_HEADERS
11555 CONFIG_LINKS = $CONFIG_LINKS
11556 CONFIG_COMMANDS = $CONFIG_COMMANDS
11559 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11565 # Files that config.status was made for.
11566 config_files="$ac_config_files"
11567 config_headers="$ac_config_headers"
11568 config_commands="$ac_config_commands"
11572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11574 \`$as_me' instantiates files from templates according to the
11575 current configuration.
11577 Usage: $0 [OPTIONS] [FILE]...
11579 -h, --help print this help, then exit
11580 -V, --version print version number and configuration settings, then exit
11581 -q, --quiet do not print progress messages
11582 -d, --debug don't remove temporary files
11583 --recheck update $as_me by reconfiguring in the same conditions
11584 --file=FILE[:TEMPLATE]
11585 instantiate the configuration file FILE
11586 --header=FILE[:TEMPLATE]
11587 instantiate the configuration header FILE
11589 Configuration files:
11592 Configuration headers:
11595 Configuration commands:
11598 Report bugs to <bug-autoconf@gnu.org>."
11601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11604 configured by $0, generated by GNU Autoconf 2.62,
11605 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11607 Copyright (C) 2008 Free Software Foundation, Inc.
11608 This config.status script is free software; the Free Software Foundation
11609 gives unlimited permission to copy, distribute and modify it."
11615 test -n "\$AWK" || AWK=awk
11618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11619 # The default lists apply if the user does not specify any file.
11625 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11626 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11637 # Handling of the options.
11638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11640 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11641 $as_echo "$ac_cs_version"; exit ;;
11642 --debug | --debu | --deb | --de | --d | -d )
11644 --file | --fil | --fi | --f )
11647 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11649 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11650 ac_need_defaults=false;;
11651 --header | --heade | --head | --hea )
11654 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11656 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11657 ac_need_defaults=false;;
11659 # Conflict between --help and --header
11660 { $as_echo "$as_me: error: ambiguous option: $1
11661 Try \`$0 --help' for more information." >&2
11662 { (exit 1); exit 1; }; };;
11663 --help | --hel | -h )
11664 $as_echo "$ac_cs_usage"; exit ;;
11665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11666 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11669 # This is an error.
11670 -*) { $as_echo "$as_me: error: unrecognized option: $1
11671 Try \`$0 --help' for more information." >&2
11672 { (exit 1); exit 1; }; } ;;
11674 *) ac_config_targets="$ac_config_targets $1"
11675 ac_need_defaults=false ;;
11681 ac_configure_extra_args=
11683 if $ac_cs_silent; then
11685 ac_configure_extra_args="$ac_configure_extra_args --silent"
11689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11690 if \$ac_cs_recheck; then
11691 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11693 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11694 CONFIG_SHELL='$SHELL'
11695 export CONFIG_SHELL
11700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11704 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11705 ## Running $as_me. ##
11711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11715 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11722 # Handling of arguments.
11723 for ac_config_target in $ac_config_targets
11725 case $ac_config_target in
11726 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11727 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11728 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11729 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11730 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11731 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11732 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11734 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11735 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11736 { (exit 1); exit 1; }; };;
11741 # If the user did not use the arguments to specify the items to instantiate,
11742 # then the envvar interface is used. Set only those that are not.
11743 # We use the long form for the default assignment because of an extremely
11744 # bizarre bug on SunOS 4.1.3.
11745 if $ac_need_defaults; then
11746 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11747 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11748 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11751 # Have a temporary directory for convenience. Make it in the build tree
11752 # simply because there is no reason against having it here, and in addition,
11753 # creating and moving files from /tmp can sometimes cause problems.
11754 # Hook for its removal unless debugging.
11755 # Note that there is a small window in which the directory will not be cleaned:
11756 # after its creation but before its name has been assigned to `$tmp'.
11760 trap 'exit_status=$?
11761 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11763 trap '{ (exit 1); exit 1; }' 1 2 13 15
11765 # Create a (secure) tmp directory for tmp files.
11768 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11769 test -n "$tmp" && test -d "$tmp"
11772 tmp=./conf$$-$RANDOM
11773 (umask 077 && mkdir "$tmp")
11776 $as_echo "$as_me: cannot create a temporary directory in ." >&2
11777 { (exit 1); exit 1; }
11780 # Set up the scripts for CONFIG_FILES section.
11781 # No need to generate them if there are no CONFIG_FILES.
11782 # This happens for instance with `./config.status config.h'.
11783 if test -n "$CONFIG_FILES"; then
11788 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11789 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11792 ac_cs_awk_cr=$ac_cr
11795 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11800 echo "cat >conf$$subs.awk <<_ACEOF" &&
11801 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11803 } >conf$$subs.sh ||
11804 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11805 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11806 { (exit 1); exit 1; }; }
11807 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11809 for ac_last_try in false false false false false :; do
11810 . ./conf$$subs.sh ||
11811 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11812 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11813 { (exit 1); exit 1; }; }
11815 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
11817 elif $ac_last_try; then
11818 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11819 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11820 { (exit 1); exit 1; }; }
11822 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11825 rm -f conf$$subs.sh
11827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11828 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11832 s/^/S["/; s/!.*/"]=/
11842 s/\(.\{148\}\).*/\1/
11844 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11849 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11856 s/\(.\{148\}\).*/\1/
11858 s/["\\]/\\&/g; s/^/"/; s/$/"/
11862 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11867 ' <conf$$subs.awk | sed '
11872 ' >>$CONFIG_STATUS || ac_write_fail=1
11873 rm -f conf$$subs.awk
11874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11876 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11877 for (key in S) S_is_set[key] = 1
11883 nfields = split(line, field, "@")
11885 len = length(field[1])
11886 for (i = 2; i < nfields; i++) {
11888 keylen = length(key)
11889 if (S_is_set[key]) {
11891 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11892 len += length(value) + length(field[++i])
11903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11904 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11905 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11908 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11909 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11910 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11911 { (exit 1); exit 1; }; }
11914 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11915 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11916 # trailing colons and then remove the whole line if VPATH becomes empty
11917 # (actually we leave an empty line to preserve line numbers).
11918 if test "x$srcdir" = x.; then
11919 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11920 s/:*\$(srcdir):*/:/
11921 s/:*\${srcdir}:*/:/
11923 s/^\([^=]*=[ ]*\):*/\1/
11929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11930 fi # test -n "$CONFIG_FILES"
11932 # Set up the scripts for CONFIG_HEADERS section.
11933 # No need to generate them if there are no CONFIG_HEADERS.
11934 # This happens for instance with `./config.status Makefile'.
11935 if test -n "$CONFIG_HEADERS"; then
11936 cat >"$tmp/defines.awk" <<\_ACAWK ||
11940 # Transform confdefs.h into an awk script `defines.awk', embedded as
11941 # here-document in config.status, that substitutes the proper values into
11942 # config.h.in to produce config.h.
11944 # Create a delimiter string that does not exist in confdefs.h, to ease
11945 # handling of long lines.
11947 for ac_last_try in false false :; do
11948 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11949 if test -z "$ac_t"; then
11951 elif $ac_last_try; then
11952 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11953 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11954 { (exit 1); exit 1; }; }
11956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11960 # For the awk script, D is an array of macro values keyed by name,
11961 # likewise P contains macro parameters if any. Preserve backslash
11962 # newline sequences.
11964 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11966 s/.\{148\}/&'"$ac_delim"'/g
11969 s/^[ ]*#[ ]*define[ ][ ]*/ /
11976 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11978 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11982 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11983 D["\1"]=" \3\\\\\\n"\\/p
11985 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11990 s/.\{148\}/&'"$ac_delim"'/g
11995 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11998 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12000 ' <confdefs.h | sed '
12001 s/'"$ac_delim"'/"\\\
12002 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12005 for (key in D) D_is_set[key] = 1
12008 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12010 split(line, arg, " ")
12011 if (arg[1] == "#") {
12015 defundef = substr(arg[1], 2)
12018 split(mac1, mac2, "(") #)
12020 if (D_is_set[macro]) {
12021 # Preserve the white space surrounding the "#".
12022 prefix = substr(line, 1, index(line, defundef) - 1)
12023 print prefix "define", macro P[macro] D[macro]
12026 # Replace #undef with comments. This is necessary, for example,
12027 # in the case of _POSIX_SOURCE, which is predefined and required
12028 # on some systems where configure will not decide to define it.
12029 if (defundef == "undef") {
12030 print "/*", line, "*/"
12038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12039 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12040 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12041 { (exit 1); exit 1; }; }
12042 fi # test -n "$CONFIG_HEADERS"
12045 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12050 :[FHLC]) ac_mode=$ac_tag; continue;;
12052 case $ac_mode$ac_tag in
12054 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12055 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12056 { (exit 1); exit 1; }; };;
12057 :[FH]-) ac_tag=-:-;;
12058 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12075 -) ac_f="$tmp/stdin";;
12076 *) # Look for the file first in the build tree, then in the source tree
12077 # (if the path is not absolute). The absolute path cannot be DOS-style,
12078 # because $ac_f cannot contain `:'.
12082 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12084 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12085 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12086 { (exit 1); exit 1; }; };;
12088 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12089 ac_file_inputs="$ac_file_inputs '$ac_f'"
12092 # Let's still pretend it is `configure' which instantiates (i.e., don't
12093 # use $as_me), people would be surprised to read:
12094 # /* config.h. Generated by config.status. */
12095 configure_input='Generated from '`
12096 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12098 if test x"$ac_file" != x-; then
12099 configure_input="$ac_file. $configure_input"
12100 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12101 $as_echo "$as_me: creating $ac_file" >&6;}
12103 # Neutralize special characters interpreted by sed in replacement strings.
12104 case $configure_input in #(
12105 *\&* | *\|* | *\\* )
12106 ac_sed_conf_input=`$as_echo "$configure_input" |
12107 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12108 *) ac_sed_conf_input=$configure_input;;
12112 *:-:* | *:-) cat >"$tmp/stdin" \
12113 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12114 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12115 { (exit 1); exit 1; }; } ;;
12120 ac_dir=`$as_dirname -- "$ac_file" ||
12121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12122 X"$ac_file" : 'X\(//\)[^/]' \| \
12123 X"$ac_file" : 'X\(//\)$' \| \
12124 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12125 $as_echo X"$ac_file" |
12126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12130 /^X\(\/\/\)[^/].*/{
12145 -*) as_dir=./$as_dir;;
12147 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12151 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12152 *) as_qdir=$as_dir;;
12154 as_dirs="'$as_qdir' $as_dirs"
12155 as_dir=`$as_dirname -- "$as_dir" ||
12156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12157 X"$as_dir" : 'X\(//\)[^/]' \| \
12158 X"$as_dir" : 'X\(//\)$' \| \
12159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12160 $as_echo X"$as_dir" |
12161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12165 /^X\(\/\/\)[^/].*/{
12178 test -d "$as_dir" && break
12180 test -z "$as_dirs" || eval "mkdir $as_dirs"
12181 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12182 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12183 { (exit 1); exit 1; }; }; }
12187 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12189 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12190 # A ".." for each directory in $ac_dir_suffix.
12191 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12192 case $ac_top_builddir_sub in
12193 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12194 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12197 ac_abs_top_builddir=$ac_pwd
12198 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12199 # for backward compatibility:
12200 ac_top_builddir=$ac_top_build_prefix
12203 .) # We are building in place.
12205 ac_top_srcdir=$ac_top_builddir_sub
12206 ac_abs_top_srcdir=$ac_pwd ;;
12207 [\\/]* | ?:[\\/]* ) # Absolute name.
12208 ac_srcdir=$srcdir$ac_dir_suffix;
12209 ac_top_srcdir=$srcdir
12210 ac_abs_top_srcdir=$srcdir ;;
12211 *) # Relative name.
12212 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12213 ac_top_srcdir=$ac_top_build_prefix$srcdir
12214 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12216 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12226 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12227 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12232 # If the template does not know about datarootdir, expand it.
12233 # FIXME: This hack should be removed a few years after 2.60.
12234 ac_datarootdir_hack=; ac_datarootdir_seen=
12247 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12248 *datarootdir*) ac_datarootdir_seen=yes;;
12249 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12250 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12251 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12254 ac_datarootdir_hack='
12255 s&@datadir@&$datadir&g
12256 s&@docdir@&$docdir&g
12257 s&@infodir@&$infodir&g
12258 s&@localedir@&$localedir&g
12259 s&@mandir@&$mandir&g
12260 s&\\\${datarootdir}&$datarootdir&g' ;;
12264 # Neutralize VPATH when `$srcdir' = `.'.
12265 # Shell code in configure.ac might set extrasub.
12266 # FIXME: do we really want to maintain this feature?
12267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12268 ac_sed_extra="$ac_vpsub
12271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12274 s|@configure_input@|$ac_sed_conf_input|;t t
12275 s&@top_builddir@&$ac_top_builddir_sub&;t t
12276 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12277 s&@srcdir@&$ac_srcdir&;t t
12278 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12279 s&@top_srcdir@&$ac_top_srcdir&;t t
12280 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12281 s&@builddir@&$ac_builddir&;t t
12282 s&@abs_builddir@&$ac_abs_builddir&;t t
12283 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12284 s&@INSTALL@&$ac_INSTALL&;t t
12285 $ac_datarootdir_hack
12287 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12288 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12289 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12290 { (exit 1); exit 1; }; }
12292 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12293 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12294 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12295 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12296 which seems to be undefined. Please make sure it is defined." >&5
12297 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12298 which seems to be undefined. Please make sure it is defined." >&2;}
12302 -) cat "$tmp/out" && rm -f "$tmp/out";;
12303 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12305 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12306 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12307 { (exit 1); exit 1; }; }
12313 if test x"$ac_file" != x-; then
12315 $as_echo "/* $configure_input */" \
12316 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12317 } >"$tmp/config.h" \
12318 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12319 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12320 { (exit 1); exit 1; }; }
12321 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12322 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12323 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12326 mv "$tmp/config.h" "$ac_file" \
12327 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12328 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12329 { (exit 1); exit 1; }; }
12332 $as_echo "/* $configure_input */" \
12333 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12334 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12335 $as_echo "$as_me: error: could not create -" >&2;}
12336 { (exit 1); exit 1; }; }
12338 # Compute "$ac_file"'s index in $config_headers.
12340 for _am_header in $config_headers :; do
12341 case $_am_header in
12342 "$ac_file" | "$ac_file":* )
12345 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12348 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
12349 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12350 X"$ac_file" : 'X\(//\)[^/]' \| \
12351 X"$ac_file" : 'X\(//\)$' \| \
12352 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12353 $as_echo X"$ac_file" |
12354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12358 /^X\(\/\/\)[^/].*/{
12370 s/.*/./; q'`/stamp-h$_am_stamp_count
12373 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12374 $as_echo "$as_me: executing $ac_file commands" >&6;}
12379 case $ac_file$ac_mode in
12380 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12381 # Strip MF so we end up with the name of the file.
12382 mf=`echo "$mf" | sed -e 's/:.*$//'`
12383 # Check whether this is an Automake generated Makefile or not.
12384 # We used to match only the files named `Makefile.in', but
12385 # some people rename them; so instead we look at the file content.
12386 # Grep'ing the first line is not enough: some people post-process
12387 # each Makefile.in and add a new line on top of each file to say so.
12388 # So let's grep whole file.
12389 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12390 dirpart=`$as_dirname -- "$mf" ||
12391 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12392 X"$mf" : 'X\(//\)[^/]' \| \
12393 X"$mf" : 'X\(//\)$' \| \
12394 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12400 /^X\(\/\/\)[^/].*/{
12416 # Extract the definition of DEPDIR, am__include, and am__quote
12417 # from the Makefile without running `make'.
12418 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12419 test -z "$DEPDIR" && continue
12420 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12421 test -z "am__include" && continue
12422 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12423 # When using ansi2knr, U may be empty or an underscore; expand it
12424 U=`sed -n 's/^U = //p' < "$mf"`
12425 # Find all dependency output files, they are included files with
12426 # $(DEPDIR) in their names. We invoke sed twice because it is the
12427 # simplest approach to changing $(DEPDIR) to its actual value in the
12429 for file in `sed -n "
12430 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12431 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12432 # Make sure the directory exists.
12433 test -f "$dirpart/$file" && continue
12434 fdir=`$as_dirname -- "$file" ||
12435 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12436 X"$file" : 'X\(//\)[^/]' \| \
12437 X"$file" : 'X\(//\)$' \| \
12438 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12439 $as_echo X"$file" |
12440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12444 /^X\(\/\/\)[^/].*/{
12457 { as_dir=$dirpart/$fdir
12459 -*) as_dir=./$as_dir;;
12461 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12465 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12466 *) as_qdir=$as_dir;;
12468 as_dirs="'$as_qdir' $as_dirs"
12469 as_dir=`$as_dirname -- "$as_dir" ||
12470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12471 X"$as_dir" : 'X\(//\)[^/]' \| \
12472 X"$as_dir" : 'X\(//\)$' \| \
12473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12474 $as_echo X"$as_dir" |
12475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12479 /^X\(\/\/\)[^/].*/{
12492 test -d "$as_dir" && break
12494 test -z "$as_dirs" || eval "mkdir $as_dirs"
12495 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12496 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12497 { (exit 1); exit 1; }; }; }
12498 # echo "creating $dirpart/$file"
12499 echo '# dummy' > "$dirpart/$file"
12503 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
12504 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
12511 { (exit 0); exit 0; }
12513 chmod +x $CONFIG_STATUS
12514 ac_clean_files=$ac_clean_files_save
12516 test $ac_write_fail = 0 ||
12517 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
12518 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
12519 { (exit 1); exit 1; }; }
12522 # configure is writing to config.log, and then calls config.status.
12523 # config.status does its own redirection, appending to config.log.
12524 # Unfortunately, on DOS this fails, as config.log is still kept open
12525 # by configure, so config.status won't be able to write to it; its
12526 # output is simply discarded. So we exec the FD to /dev/null,
12527 # effectively closing config.log, so it can be properly (re)opened and
12528 # appended to by config.status. When coming back to configure, we
12529 # need to make the FD available again.
12530 if test "$no_create" != yes; then
12532 ac_config_status_args=
12533 test "$silent" = yes &&
12534 ac_config_status_args="$ac_config_status_args --quiet"
12536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12539 # would make configure fail if this is the last instruction.
12540 $ac_cs_success || { (exit 1); exit 1; }
12542 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12543 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
12544 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
.