2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="src/"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
717 ac_precious_vars='build_alias
731 # Initialize some variables set by options.
733 ac_init_version=false
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
743 program_transform_name=s,x,x,
751 # Installation directory options.
752 # These are left unexpanded so users can "make install exec_prefix=/foo"
753 # and all the variables that are supposed to be based on exec_prefix
754 # by default will actually change.
755 # Use braces instead of parens because sh, perl, etc. also accept them.
756 # (The list follows the same order as the GNU Coding Standards.)
757 bindir='${exec_prefix}/bin'
758 sbindir='${exec_prefix}/sbin'
759 libexecdir='${exec_prefix}/libexec'
760 datarootdir='${prefix}/share'
761 datadir='${datarootdir}'
762 sysconfdir='${prefix}/etc'
763 sharedstatedir='${prefix}/com'
764 localstatedir='${prefix}/var'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE}'
768 infodir='${datarootdir}/info'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
781 # If the previous option needs an argument, assign it.
782 if test -n "$ac_prev"; then
783 eval $ac_prev=\$ac_option
789 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 # Accept the important Cygnus configure options, so we can diagnose typos.
795 case $ac_dashdash$ac_option in
799 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 -build | --build | --buil | --bui | --bu)
805 ac_prev=build_alias ;;
806 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807 build_alias=$ac_optarg ;;
809 -cache-file | --cache-file | --cache-fil | --cache-fi \
810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811 ac_prev=cache_file ;;
812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814 cache_file=$ac_optarg ;;
817 cache_file=config.cache ;;
819 -datadir | --datadir | --datadi | --datad)
821 -datadir=* | --datadir=* | --datadi=* | --datad=*)
822 datadir=$ac_optarg ;;
824 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825 | --dataroo | --dataro | --datar)
826 ac_prev=datarootdir ;;
827 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829 datarootdir=$ac_optarg ;;
831 -disable-* | --disable-*)
832 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
835 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836 { (exit 1); exit 1; }; }
837 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
838 eval enable_$ac_feature=no ;;
840 -docdir | --docdir | --docdi | --doc | --do)
842 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
845 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
850 -enable-* | --enable-*)
851 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_$ac_feature=\$ac_optarg ;;
859 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861 | --exec | --exe | --ex)
862 ac_prev=exec_prefix ;;
863 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865 | --exec=* | --exe=* | --ex=*)
866 exec_prefix=$ac_optarg ;;
868 -gas | --gas | --ga | --g)
869 # Obsolete; use --with-gas.
872 -help | --help | --hel | --he | -h)
874 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875 ac_init_help=recursive ;;
876 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877 ac_init_help=short ;;
879 -host | --host | --hos | --ho)
880 ac_prev=host_alias ;;
881 -host=* | --host=* | --hos=* | --ho=*)
882 host_alias=$ac_optarg ;;
884 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
886 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
888 htmldir=$ac_optarg ;;
890 -includedir | --includedir | --includedi | --included | --include \
891 | --includ | --inclu | --incl | --inc)
892 ac_prev=includedir ;;
893 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894 | --includ=* | --inclu=* | --incl=* | --inc=*)
895 includedir=$ac_optarg ;;
897 -infodir | --infodir | --infodi | --infod | --info | --inf)
899 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900 infodir=$ac_optarg ;;
902 -libdir | --libdir | --libdi | --libd)
904 -libdir=* | --libdir=* | --libdi=* | --libd=*)
907 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908 | --libexe | --libex | --libe)
909 ac_prev=libexecdir ;;
910 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911 | --libexe=* | --libex=* | --libe=*)
912 libexecdir=$ac_optarg ;;
914 -localedir | --localedir | --localedi | --localed | --locale)
916 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917 localedir=$ac_optarg ;;
919 -localstatedir | --localstatedir | --localstatedi | --localstated \
920 | --localstate | --localstat | --localsta | --localst | --locals)
921 ac_prev=localstatedir ;;
922 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
923 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
924 localstatedir=$ac_optarg ;;
926 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
928 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
932 # Obsolete; use --without-fp.
935 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936 | --no-cr | --no-c | -n)
939 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
943 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945 | --oldin | --oldi | --old | --ol | --o)
946 ac_prev=oldincludedir ;;
947 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950 oldincludedir=$ac_optarg ;;
952 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
954 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
957 -program-prefix | --program-prefix | --program-prefi | --program-pref \
958 | --program-pre | --program-pr | --program-p)
959 ac_prev=program_prefix ;;
960 -program-prefix=* | --program-prefix=* | --program-prefi=* \
961 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962 program_prefix=$ac_optarg ;;
964 -program-suffix | --program-suffix | --program-suffi | --program-suff \
965 | --program-suf | --program-su | --program-s)
966 ac_prev=program_suffix ;;
967 -program-suffix=* | --program-suffix=* | --program-suffi=* \
968 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969 program_suffix=$ac_optarg ;;
971 -program-transform-name | --program-transform-name \
972 | --program-transform-nam | --program-transform-na \
973 | --program-transform-n | --program-transform- \
974 | --program-transform | --program-transfor \
975 | --program-transfo | --program-transf \
976 | --program-trans | --program-tran \
977 | --progr-tra | --program-tr | --program-t)
978 ac_prev=program_transform_name ;;
979 -program-transform-name=* | --program-transform-name=* \
980 | --program-transform-nam=* | --program-transform-na=* \
981 | --program-transform-n=* | --program-transform-=* \
982 | --program-transform=* | --program-transfor=* \
983 | --program-transfo=* | --program-transf=* \
984 | --program-trans=* | --program-tran=* \
985 | --progr-tra=* | --program-tr=* | --program-t=*)
986 program_transform_name=$ac_optarg ;;
988 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
990 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
993 -psdir | --psdir | --psdi | --psd | --ps)
995 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999 | -silent | --silent | --silen | --sile | --sil)
1002 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1004 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1006 sbindir=$ac_optarg ;;
1008 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010 | --sharedst | --shareds | --shared | --share | --shar \
1012 ac_prev=sharedstatedir ;;
1013 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1017 sharedstatedir=$ac_optarg ;;
1019 -site | --site | --sit)
1021 -site=* | --site=* | --sit=*)
1024 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1026 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027 srcdir=$ac_optarg ;;
1029 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1030 | --syscon | --sysco | --sysc | --sys | --sy)
1031 ac_prev=sysconfdir ;;
1032 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1033 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1034 sysconfdir=$ac_optarg ;;
1036 -target | --target | --targe | --targ | --tar | --ta | --t)
1037 ac_prev=target_alias ;;
1038 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1039 target_alias=$ac_optarg ;;
1041 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1044 -version | --version | --versio | --versi | --vers | -V)
1045 ac_init_version=: ;;
1048 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid package name: $ac_package" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1054 eval with_$ac_package=\$ac_optarg ;;
1056 -without-* | --without-*)
1057 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid package name: $ac_package" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1063 eval with_$ac_package=no ;;
1066 # Obsolete; use --with-x.
1069 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1070 | --x-incl | --x-inc | --x-in | --x-i)
1071 ac_prev=x_includes ;;
1072 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1073 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1074 x_includes=$ac_optarg ;;
1076 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1077 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1078 ac_prev=x_libraries ;;
1079 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1080 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1081 x_libraries=$ac_optarg ;;
1083 -*) { echo "$as_me: error: unrecognized option: $ac_option
1084 Try \`$0 --help' for more information." >&2
1085 { (exit 1); exit 1; }; }
1089 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1092 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1093 { (exit 1); exit 1; }; }
1094 eval $ac_envvar=\$ac_optarg
1095 export $ac_envvar ;;
1098 # FIXME: should be removed in autoconf 3.0.
1099 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1100 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1102 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1108 if test -n "$ac_prev"; then
1109 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1110 { echo "$as_me: error: missing argument to $ac_option" >&2
1111 { (exit 1); exit 1; }; }
1114 # Be sure to have absolute directory names.
1115 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1116 datadir sysconfdir sharedstatedir localstatedir includedir \
1117 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1118 libdir localedir mandir
1120 eval ac_val=\$$ac_var
1122 [\\/$]* | ?:[\\/]* ) continue;;
1123 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1125 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1126 { (exit 1); exit 1; }; }
1129 # There might be people who depend on the old broken behavior: `$host'
1130 # used to hold the argument of --host etc.
1131 # FIXME: To remove some day.
1134 target=$target_alias
1136 # FIXME: To remove some day.
1137 if test "x$host_alias" != x; then
1138 if test "x$build_alias" = x; then
1139 cross_compiling=maybe
1140 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1141 If a cross compiler is detected then cross compile mode will be used." >&2
1142 elif test "x$build_alias" != "x$host_alias"; then
1148 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1150 test "$silent" = yes && exec 6>/dev/null
1153 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1154 ac_ls_di=`ls -di .` &&
1155 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1156 { echo "$as_me: error: Working directory cannot be determined" >&2
1157 { (exit 1); exit 1; }; }
1158 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1159 { echo "$as_me: error: pwd does not report name of working directory" >&2
1160 { (exit 1); exit 1; }; }
1163 # Find the source files, if location was not specified.
1164 if test -z "$srcdir"; then
1165 ac_srcdir_defaulted=yes
1166 # Try the directory containing this script, then the parent directory.
1167 ac_confdir=`$as_dirname -- "$0" ||
1168 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1169 X"$0" : 'X\(//\)[^/]' \| \
1170 X"$0" : 'X\(//\)$' \| \
1171 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1191 if test ! -r "$srcdir/$ac_unique_file"; then
1195 ac_srcdir_defaulted=no
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1199 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1200 { (exit 1); exit 1; }; }
1202 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1204 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1205 { (exit 1); exit 1; }; }
1207 # When building in place, set srcdir=.
1208 if test "$ac_abs_confdir" = "$ac_pwd"; then
1211 # Remove unnecessary trailing slashes from srcdir.
1212 # Double slashes in file names in object file debugging info
1213 # mess up M-x gdb in Emacs.
1215 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1217 for ac_var in $ac_precious_vars; do
1218 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1219 eval ac_env_${ac_var}_value=\$${ac_var}
1220 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1221 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1225 # Report the --help message.
1227 if test "$ac_init_help" = "long"; then
1228 # Omit some internal or obsolete options to make the list less imposing.
1229 # This message is too long to be a string in the A/UX 3.1 sh.
1231 \`configure' configures this package to adapt to many kinds of systems.
1233 Usage: $0 [OPTION]... [VAR=VALUE]...
1235 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1236 VAR=VALUE. See below for descriptions of some of the useful variables.
1238 Defaults for the options are specified in brackets.
1241 -h, --help display this help and exit
1242 --help=short display options specific to this package
1243 --help=recursive display the short help of all the included packages
1244 -V, --version display version information and exit
1245 -q, --quiet, --silent do not print \`checking...' messages
1246 --cache-file=FILE cache test results in FILE [disabled]
1247 -C, --config-cache alias for \`--cache-file=config.cache'
1248 -n, --no-create do not create output files
1249 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1251 Installation directories:
1252 --prefix=PREFIX install architecture-independent files in PREFIX
1253 [$ac_default_prefix]
1254 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1257 By default, \`make install' will install all the files in
1258 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1259 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1260 for instance \`--prefix=\$HOME'.
1262 For better control, use the options below.
1264 Fine tuning of the installation directories:
1265 --bindir=DIR user executables [EPREFIX/bin]
1266 --sbindir=DIR system admin executables [EPREFIX/sbin]
1267 --libexecdir=DIR program executables [EPREFIX/libexec]
1268 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1269 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1270 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1271 --libdir=DIR object code libraries [EPREFIX/lib]
1272 --includedir=DIR C header files [PREFIX/include]
1273 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1274 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1275 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1276 --infodir=DIR info documentation [DATAROOTDIR/info]
1277 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1278 --mandir=DIR man documentation [DATAROOTDIR/man]
1279 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1280 --htmldir=DIR html documentation [DOCDIR]
1281 --dvidir=DIR dvi documentation [DOCDIR]
1282 --pdfdir=DIR pdf documentation [DOCDIR]
1283 --psdir=DIR ps documentation [DOCDIR]
1289 --program-prefix=PREFIX prepend PREFIX to installed program names
1290 --program-suffix=SUFFIX append SUFFIX to installed program names
1291 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1294 --build=BUILD configure for building on BUILD [guessed]
1295 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1296 --target=TARGET configure for building compilers for TARGET [HOST]
1300 if test -n "$ac_init_help"; then
1305 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1306 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1307 --enable-checkmem turn on ccmalloc debugging
1308 --enable-debug turn on debugging
1309 --enable-profiling turn on profiling
1310 --enable-warnings turn on compiler warnings
1311 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1312 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1314 Some influential environment variables:
1315 CC C compiler command
1316 CFLAGS C compiler flags
1317 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1318 nonstandard directory <lib dir>
1319 LIBS libraries to pass to the linker, e.g. -l<library>
1320 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1321 you have headers in a nonstandard directory <include dir>
1322 CXX C++ compiler command
1323 CXXFLAGS C++ compiler flags
1326 Use these variables to override the choices made by `configure' or to help
1327 it to find libraries and programs with nonstandard names/locations.
1333 if test "$ac_init_help" = "recursive"; then
1334 # If there are subdirs, report their specific --help.
1335 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1336 test -d "$ac_dir" || continue
1340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1342 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1343 # A ".." for each directory in $ac_dir_suffix.
1344 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1345 case $ac_top_builddir_sub in
1346 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1347 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1350 ac_abs_top_builddir=$ac_pwd
1351 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1352 # for backward compatibility:
1353 ac_top_builddir=$ac_top_build_prefix
1356 .) # We are building in place.
1358 ac_top_srcdir=$ac_top_builddir_sub
1359 ac_abs_top_srcdir=$ac_pwd ;;
1360 [\\/]* | ?:[\\/]* ) # Absolute name.
1361 ac_srcdir=$srcdir$ac_dir_suffix;
1362 ac_top_srcdir=$srcdir
1363 ac_abs_top_srcdir=$srcdir ;;
1365 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1366 ac_top_srcdir=$ac_top_build_prefix$srcdir
1367 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1371 cd "$ac_dir" || { ac_status=$?; continue; }
1372 # Check for guested configure.
1373 if test -f "$ac_srcdir/configure.gnu"; then
1375 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1376 elif test -f "$ac_srcdir/configure"; then
1378 $SHELL "$ac_srcdir/configure" --help=recursive
1380 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1382 cd "$ac_pwd" || { ac_status=$?; break; }
1386 test -n "$ac_init_help" && exit $ac_status
1387 if $ac_init_version; then
1390 generated by GNU Autoconf 2.61
1392 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1393 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1394 This configure script is free software; the Free Software Foundation
1395 gives unlimited permission to copy, distribute and modify it.
1399 cat >config.log <<_ACEOF
1400 This file contains any messages produced by compilers while
1401 running configure, to aid debugging if configure makes a mistake.
1403 It was created by $as_me, which was
1404 generated by GNU Autoconf 2.61. Invocation command line was
1416 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1417 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1418 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1419 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1420 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1422 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1423 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1425 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1426 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1427 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1428 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1429 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1430 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1431 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 test -z "$as_dir" && as_dir=.
1440 echo "PATH: $as_dir"
1456 # Keep a trace of the command line.
1457 # Strip out --no-create and --no-recursion so they do not pile up.
1458 # Strip out --silent because we don't want to record it for future runs.
1459 # Also quote any args containing shell meta-characters.
1460 # Make two passes to allow for proper duplicate-argument suppression.
1464 ac_must_keep_next=false
1470 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1471 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1472 | -silent | --silent | --silen | --sile | --sil)
1475 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1480 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1481 if test $ac_must_keep_next = true; then
1482 ac_must_keep_next=false # Got value, back to normal.
1485 *=* | --config-cache | -C | -disable-* | --disable-* \
1486 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1487 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1488 | -with-* | --with-* | -without-* | --without-* | --x)
1489 case "$ac_configure_args0 " in
1490 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1493 -* ) ac_must_keep_next=true ;;
1496 ac_configure_args="$ac_configure_args '$ac_arg'"
1501 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1502 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1504 # When interrupted or exit'd, cleanup temporary files, and complete
1505 # config.log. We remove comments because anyway the quotes in there
1506 # would cause problems or look ugly.
1507 # WARNING: Use '\'' to represent an apostrophe within the trap.
1508 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1509 trap 'exit_status=$?
1510 # Save into config.log some information that might help in debugging.
1515 ## ---------------- ##
1516 ## Cache variables. ##
1517 ## ---------------- ##
1520 # The following way of writing the cache mishandles newlines in values,
1522 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1523 eval ac_val=\$$ac_var
1527 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1528 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1531 _ | IFS | as_nl) ;; #(
1532 *) $as_unset $ac_var ;;
1537 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1538 *${as_nl}ac_space=\ *)
1540 "s/'\''/'\''\\\\'\'''\''/g;
1541 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1544 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1552 ## ----------------- ##
1553 ## Output variables. ##
1554 ## ----------------- ##
1557 for ac_var in $ac_subst_vars
1559 eval ac_val=\$$ac_var
1561 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1563 echo "$ac_var='\''$ac_val'\''"
1567 if test -n "$ac_subst_files"; then
1569 ## ------------------- ##
1570 ## File substitutions. ##
1571 ## ------------------- ##
1574 for ac_var in $ac_subst_files
1576 eval ac_val=\$$ac_var
1578 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1580 echo "$ac_var='\''$ac_val'\''"
1585 if test -s confdefs.h; then
1595 test "$ac_signal" != 0 &&
1596 echo "$as_me: caught signal $ac_signal"
1597 echo "$as_me: exit $exit_status"
1599 rm -f core *.core core.conftest.* &&
1600 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1603 for ac_signal in 1 2 13 15; do
1604 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1608 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1609 rm -f -r conftest* confdefs.h
1611 # Predefined preprocessor variables.
1613 cat >>confdefs.h <<_ACEOF
1614 #define PACKAGE_NAME "$PACKAGE_NAME"
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_STRING "$PACKAGE_STRING"
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1638 # Let the site file select an alternate cache file if it wants to.
1639 # Prefer explicitly selected file to automatically selected ones.
1640 if test -n "$CONFIG_SITE"; then
1641 set x "$CONFIG_SITE"
1642 elif test "x$prefix" != xNONE; then
1643 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1645 set x "$ac_default_prefix/share/config.site" \
1646 "$ac_default_prefix/etc/config.site"
1651 if test -r "$ac_site_file"; then
1652 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1653 echo "$as_me: loading site script $ac_site_file" >&6;}
1654 sed 's/^/| /' "$ac_site_file" >&5
1659 if test -r "$cache_file"; then
1660 # Some versions of bash will fail to source /dev/null (special
1661 # files actually), so we avoid doing that.
1662 if test -f "$cache_file"; then
1663 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1664 echo "$as_me: loading cache $cache_file" >&6;}
1666 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1667 *) . "./$cache_file";;
1671 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1672 echo "$as_me: creating cache $cache_file" >&6;}
1676 # Check that the precious variables saved in the cache have kept the same
1678 ac_cache_corrupted=false
1679 for ac_var in $ac_precious_vars; do
1680 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1681 eval ac_new_set=\$ac_env_${ac_var}_set
1682 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1683 eval ac_new_val=\$ac_env_${ac_var}_value
1684 case $ac_old_set,$ac_new_set in
1686 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1687 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1688 ac_cache_corrupted=: ;;
1690 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1691 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1692 ac_cache_corrupted=: ;;
1695 if test "x$ac_old_val" != "x$ac_new_val"; then
1696 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1697 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1698 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1699 echo "$as_me: former value: $ac_old_val" >&2;}
1700 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1701 echo "$as_me: current value: $ac_new_val" >&2;}
1702 ac_cache_corrupted=:
1705 # Pass precious variables to config.status.
1706 if test "$ac_new_set" = set; then
1708 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1709 *) ac_arg=$ac_var=$ac_new_val ;;
1711 case " $ac_configure_args " in
1712 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1713 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1717 if $ac_cache_corrupted; then
1718 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1719 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1720 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1721 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1722 { (exit 1); exit 1; }; }
1742 ac_cpp='$CPP $CPPFLAGS'
1743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1750 # Check whether --enable-checkmem was given.
1751 if test "${enable_checkmem+set}" = set; then
1752 enableval=$enable_checkmem; CHECKMEM=true
1755 # Check whether --enable-debug was given.
1756 if test "${enable_debug+set}" = set; then
1757 enableval=$enable_debug; DEBUG=true
1760 # Check whether --enable-profiling was given.
1761 if test "${enable_profiling+set}" = set; then
1762 enableval=$enable_profiling; PROFILING=true
1765 # Check whether --enable-warnings was given.
1766 if test "${enable_warnings+set}" = set; then
1767 enableval=$enable_warnings; ENABLE_WARNINGS=true
1770 # Check whether --enable-optimizations was given.
1771 if test "${enable_optimizations+set}" = set; then
1772 enableval=$enable_optimizations; OPTIMIZE=true
1775 # Check whether --enable-lame was given.
1776 if test "${enable_lame+set}" = set; then
1777 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1789 # ------------------------------------------------------------------
1791 if test "x${srcdir}" != "x."; then
1792 echo "--srcdir is not supported"
1796 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1797 if test "x$ENABLE_WARNINGS" '!=' "x";then
1798 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1801 if test "x$CHECKMEM" '!=' "x";then
1804 if test "x$PROFILING" '!=' "x";then
1807 if test "x$DEBUG" '!=' "x";then
1808 if test "x$PROFILING" = "x";then
1809 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1810 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1813 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1814 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1815 LDFLAGS="-g -pg $LIBS"
1817 else if test "x$OPTIMIZE" '!=' "x"; then
1818 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1819 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1821 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1822 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1826 CFLAGS="-fPIC $CFLAGS"
1827 CXXFLAGS="-fPIC $CFLAGS"
1830 #if test "x$OLDGCC" '!=' "x";then
1831 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1832 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1833 # CFLAGS="$CFLAGS -ansi -pendantic"
1834 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1837 export PACKAGE VERSION CFLAGS CXXFLAGS
1841 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1842 if test -f "$ac_dir/install-sh"; then
1844 ac_install_sh="$ac_aux_dir/install-sh -c"
1846 elif test -f "$ac_dir/install.sh"; then
1848 ac_install_sh="$ac_aux_dir/install.sh -c"
1850 elif test -f "$ac_dir/shtool"; then
1852 ac_install_sh="$ac_aux_dir/shtool install -c"
1856 if test -z "$ac_aux_dir"; then
1857 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1858 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1859 { (exit 1); exit 1; }; }
1862 # These three variables are undocumented and unsupported,
1863 # and are intended to be withdrawn in a future Autoconf release.
1864 # They can cause serious problems if a builder's source tree is in a directory
1865 # whose full name contains unusual characters.
1866 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1867 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1868 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1871 # Make sure we can run config.sub.
1872 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1873 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1874 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1875 { (exit 1); exit 1; }; }
1877 { echo "$as_me:$LINENO: checking build system type" >&5
1878 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1879 if test "${ac_cv_build+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 ac_build_alias=$build_alias
1883 test "x$ac_build_alias" = x &&
1884 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1885 test "x$ac_build_alias" = x &&
1886 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1887 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1888 { (exit 1); exit 1; }; }
1889 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1890 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1891 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1892 { (exit 1); exit 1; }; }
1895 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1896 echo "${ECHO_T}$ac_cv_build" >&6; }
1897 case $ac_cv_build in
1899 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1900 echo "$as_me: error: invalid value of canonical build" >&2;}
1901 { (exit 1); exit 1; }; };;
1904 ac_save_IFS=$IFS; IFS='-'
1910 # Remember, the first character of IFS is used to create $*,
1911 # except with old shells:
1914 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1917 { echo "$as_me:$LINENO: checking host system type" >&5
1918 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1919 if test "${ac_cv_host+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 if test "x$host_alias" = x; then
1923 ac_cv_host=$ac_cv_build
1925 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1926 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1927 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1928 { (exit 1); exit 1; }; }
1932 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1933 echo "${ECHO_T}$ac_cv_host" >&6; }
1936 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1937 echo "$as_me: error: invalid value of canonical host" >&2;}
1938 { (exit 1); exit 1; }; };;
1941 ac_save_IFS=$IFS; IFS='-'
1947 # Remember, the first character of IFS is used to create $*,
1948 # except with old shells:
1951 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1961 CXXFLAGS="$CXXFLAGS -fno-rtti"
1963 if test -d /opt/local/include && test -d /opt/local/lib; then
1964 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
1965 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
1967 # Use fink packages if available.
1968 #if test -d /sw/include && test -d /sw/lib; then
1969 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
1970 # LDFLAGS="${LDFLAGS} -L/sw/lib"
1978 ac_cpp='$CPP $CPPFLAGS'
1979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1982 if test -n "$ac_tool_prefix"; then
1983 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1984 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2000 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 if test -n "$CC"; then
2012 { echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6; }
2015 { echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6; }
2021 if test -z "$ac_cv_prog_CC"; then
2023 # Extract the first word of "gcc", so it can be a program name with args.
2024 set dummy gcc; ac_word=$2
2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test -n "$ac_ct_CC"; then
2031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2040 ac_cv_prog_ac_ct_CC="gcc"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2051 if test -n "$ac_ct_CC"; then
2052 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2053 echo "${ECHO_T}$ac_ct_CC" >&6; }
2055 { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2059 if test "x$ac_ct_CC" = x; then
2062 case $cross_compiling:$ac_tool_warned in
2064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2065 whose name does not start with the host triplet. If you think this
2066 configuration is useful to you, please write to autoconf@gnu.org." >&5
2067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet. If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2070 ac_tool_warned=yes ;;
2078 if test -z "$CC"; then
2079 if test -n "$ac_tool_prefix"; then
2080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2081 set dummy ${ac_tool_prefix}cc; ac_word=$2
2082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2084 if test "${ac_cv_prog_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 if test -n "$CC"; then
2088 ac_cv_prog_CC="$CC" # Let the user override the test.
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2097 ac_cv_prog_CC="${ac_tool_prefix}cc"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 if test -n "$CC"; then
2109 { echo "$as_me:$LINENO: result: $CC" >&5
2110 echo "${ECHO_T}$CC" >&6; }
2112 { echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6; }
2119 if test -z "$CC"; then
2120 # Extract the first word of "cc", so it can be a program name with args.
2121 set dummy cc; ac_word=$2
2122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2124 if test "${ac_cv_prog_CC+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 if test -n "$CC"; then
2128 ac_cv_prog_CC="$CC" # Let the user override the test.
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2139 ac_prog_rejected=yes
2143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 if test $ac_prog_rejected = yes; then
2151 # We found a bogon in the path, so make sure we never use it.
2152 set dummy $ac_cv_prog_CC
2154 if test $# != 0; then
2155 # We chose a different compiler from the bogus one.
2156 # However, it has the same basename, so the bogon will be chosen
2157 # first if we set CC to just the basename; use the full file name.
2159 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2165 if test -n "$CC"; then
2166 { echo "$as_me:$LINENO: result: $CC" >&5
2167 echo "${ECHO_T}$CC" >&6; }
2169 { echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6; }
2175 if test -z "$CC"; then
2176 if test -n "$ac_tool_prefix"; then
2177 for ac_prog in cl.exe
2179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2183 if test "${ac_cv_prog_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 if test -n "$CC"; then
2187 ac_cv_prog_CC="$CC" # Let the user override the test.
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2196 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 if test -n "$CC"; then
2208 { echo "$as_me:$LINENO: result: $CC" >&5
2209 echo "${ECHO_T}$CC" >&6; }
2211 { echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6; }
2216 test -n "$CC" && break
2219 if test -z "$CC"; then
2221 for ac_prog in cl.exe
2223 # Extract the first word of "$ac_prog", so it can be a program name with args.
2224 set dummy $ac_prog; ac_word=$2
2225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 if test -n "$ac_ct_CC"; then
2231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2240 ac_cv_prog_ac_ct_CC="$ac_prog"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6; }
2255 { echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6; }
2260 test -n "$ac_ct_CC" && break
2263 if test "x$ac_ct_CC" = x; then
2266 case $cross_compiling:$ac_tool_warned in
2268 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2269 whose name does not start with the host triplet. If you think this
2270 configuration is useful to you, please write to autoconf@gnu.org." >&5
2271 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2272 whose name does not start with the host triplet. If you think this
2273 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2274 ac_tool_warned=yes ;;
2283 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: no acceptable C compiler found in \$PATH
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2289 # Provide some information about the compiler.
2290 echo "$as_me:$LINENO: checking for C compiler version" >&5
2291 ac_compiler=`set X $ac_compile; echo $2`
2292 { (ac_try="$ac_compiler --version >&5"
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2298 (eval "$ac_compiler --version >&5") 2>&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }
2302 { (ac_try="$ac_compiler -v >&5"
2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305 *) ac_try_echo=$ac_try;;
2307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2308 (eval "$ac_compiler -v >&5") 2>&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }
2312 { (ac_try="$ac_compiler -V >&5"
2314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315 *) ac_try_echo=$ac_try;;
2317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2318 (eval "$ac_compiler -V >&5") 2>&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }
2323 cat >conftest.$ac_ext <<_ACEOF
2326 cat confdefs.h >>conftest.$ac_ext
2327 cat >>conftest.$ac_ext <<_ACEOF
2328 /* end confdefs.h. */
2338 ac_clean_files_save=$ac_clean_files
2339 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2340 # Try to create an executable without -o first, disregard a.out.
2341 # It will help us diagnose broken compilers, and finding out an intuition
2343 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2344 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2345 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2347 # List of possible output files, starting from the most likely.
2348 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2349 # only as a last resort. b.out is created by i960 compilers.
2350 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2352 # The IRIX 6 linker writes into existing files which may not be
2353 # executable, retaining their permissions. Remove them first so a
2354 # subsequent execution test works.
2356 for ac_file in $ac_files
2359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2360 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2365 if { (ac_try="$ac_link_default"
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371 (eval "$ac_link_default") 2>&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; then
2375 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2376 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2377 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2378 # so that the user can short-circuit this test for compilers unknown to
2380 for ac_file in $ac_files ''
2382 test -f "$ac_file" || continue
2384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2387 # We found the default executable, but exeext='' is most
2391 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2393 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2395 # We set ac_cv_exeext here because the later test for it is not
2396 # safe: cross compilers may not add the suffix if given an `-o'
2397 # argument, so we may need to know it at that point already.
2398 # Even if this section looks crufty: it has the advantage of
2405 test "$ac_cv_exeext" = no && ac_cv_exeext=
2411 { echo "$as_me:$LINENO: result: $ac_file" >&5
2412 echo "${ECHO_T}$ac_file" >&6; }
2413 if test -z "$ac_file"; then
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2417 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2418 See \`config.log' for more details." >&5
2419 echo "$as_me: error: C compiler cannot create executables
2420 See \`config.log' for more details." >&2;}
2421 { (exit 77); exit 77; }; }
2424 ac_exeext=$ac_cv_exeext
2426 # Check that the compiler produces executables we can run. If not, either
2427 # the compiler is broken, or we cross compile.
2428 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2429 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2430 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2431 # If not cross compiling, check that we can run a simple program.
2432 if test "$cross_compiling" != yes; then
2433 if { ac_try='./$ac_file'
2434 { (case "(($ac_try" in
2435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436 *) ac_try_echo=$ac_try;;
2438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439 (eval "$ac_try") 2>&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2445 if test "$cross_compiling" = maybe; then
2448 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2449 If you meant to cross compile, use \`--host'.
2450 See \`config.log' for more details." >&5
2451 echo "$as_me: error: cannot run C compiled programs.
2452 If you meant to cross compile, use \`--host'.
2453 See \`config.log' for more details." >&2;}
2454 { (exit 1); exit 1; }; }
2458 { echo "$as_me:$LINENO: result: yes" >&5
2459 echo "${ECHO_T}yes" >&6; }
2461 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2462 ac_clean_files=$ac_clean_files_save
2463 # Check that the compiler produces executables we can run. If not, either
2464 # the compiler is broken, or we cross compile.
2465 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2466 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2467 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2468 echo "${ECHO_T}$cross_compiling" >&6; }
2470 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2471 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2472 if { (ac_try="$ac_link"
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_link") 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; then
2482 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2483 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2484 # work properly (i.e., refer to `conftest.exe'), while it won't with
2486 for ac_file in conftest.exe conftest conftest.*; do
2487 test -f "$ac_file" || continue
2489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2496 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2497 See \`config.log' for more details." >&5
2498 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2499 See \`config.log' for more details." >&2;}
2500 { (exit 1); exit 1; }; }
2503 rm -f conftest$ac_cv_exeext
2504 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2505 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2507 rm -f conftest.$ac_ext
2508 EXEEXT=$ac_cv_exeext
2510 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2511 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2512 if test "${ac_cv_objext+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 cat >conftest.$ac_ext <<_ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2530 rm -f conftest.o conftest.obj
2531 if { (ac_try="$ac_compile"
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_compile") 2>&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; then
2541 for ac_file in conftest.o conftest.obj conftest.*; do
2542 test -f "$ac_file" || continue;
2544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2545 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2553 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2554 See \`config.log' for more details." >&5
2555 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2556 See \`config.log' for more details." >&2;}
2557 { (exit 1); exit 1; }; }
2560 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2562 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2563 echo "${ECHO_T}$ac_cv_objext" >&6; }
2564 OBJEXT=$ac_cv_objext
2566 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2567 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2568 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 cat >conftest.$ac_ext <<_ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2589 rm -f conftest.$ac_objext
2590 if { (ac_try="$ac_compile"
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_compile") 2>conftest.er1
2598 grep -v '^ *+' conftest.er1 >conftest.err
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } && {
2603 test -z "$ac_c_werror_flag" ||
2604 test ! -s conftest.err
2605 } && test -s conftest.$ac_objext; then
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2618 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2619 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2620 GCC=`test $ac_compiler_gnu = yes && echo yes`
2621 ac_test_CFLAGS=${CFLAGS+set}
2622 ac_save_CFLAGS=$CFLAGS
2623 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2624 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2625 if test "${ac_cv_prog_cc_g+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 ac_save_c_werror_flag=$ac_c_werror_flag
2629 ac_c_werror_flag=yes
2632 cat >conftest.$ac_ext <<_ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2647 rm -f conftest.$ac_objext
2648 if { (ac_try="$ac_compile"
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compile") 2>conftest.er1
2656 grep -v '^ *+' conftest.er1 >conftest.err
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } && {
2661 test -z "$ac_c_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest.$ac_objext; then
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2685 rm -f conftest.$ac_objext
2686 if { (ac_try="$ac_compile"
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } && {
2699 test -z "$ac_c_werror_flag" ||
2700 test ! -s conftest.err
2701 } && test -s conftest.$ac_objext; then
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2707 ac_c_werror_flag=$ac_save_c_werror_flag
2709 cat >conftest.$ac_ext <<_ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2724 rm -f conftest.$ac_objext
2725 if { (ac_try="$ac_compile"
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_compile") 2>conftest.er1
2733 grep -v '^ *+' conftest.er1 >conftest.err
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } && {
2738 test -z "$ac_c_werror_flag" ||
2739 test ! -s conftest.err
2740 } && test -s conftest.$ac_objext; then
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756 ac_c_werror_flag=$ac_save_c_werror_flag
2758 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2759 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2760 if test "$ac_test_CFLAGS" = set; then
2761 CFLAGS=$ac_save_CFLAGS
2762 elif test $ac_cv_prog_cc_g = yes; then
2763 if test "$GCC" = yes; then
2769 if test "$GCC" = yes; then
2775 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2776 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2777 if test "${ac_cv_prog_cc_c89+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 ac_cv_prog_cc_c89=no
2782 cat >conftest.$ac_ext <<_ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2790 #include <sys/types.h>
2791 #include <sys/stat.h>
2792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2793 struct buf { int x; };
2794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2795 static char *e (p, i)
2801 static char *f (char * (*g) (char **, int), char **p, ...)
2806 s = g (p, va_arg (v,int));
2811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2812 function prototypes and stuff, but not '\xHH' hex character constants.
2813 These don't provoke an error unfortunately, instead are silently treated
2814 as 'x'. The following induces an error, until -std is added to get
2815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2816 array size at least. It's necessary to write '\x00'==0 to get something
2817 that's true only with -std. */
2818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2821 inside strings and character constants. */
2823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2825 int test (int i, double x);
2826 struct s1 {int (*f) (int a);};
2827 struct s2 {int (*f) (double a);};
2828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2842 CC="$ac_save_CC $ac_arg"
2843 rm -f conftest.$ac_objext
2844 if { (ac_try="$ac_compile"
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_compile") 2>conftest.er1
2852 grep -v '^ *+' conftest.er1 >conftest.err
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } && {
2857 test -z "$ac_c_werror_flag" ||
2858 test ! -s conftest.err
2859 } && test -s conftest.$ac_objext; then
2860 ac_cv_prog_cc_c89=$ac_arg
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2868 rm -f core conftest.err conftest.$ac_objext
2869 test "x$ac_cv_prog_cc_c89" != "xno" && break
2871 rm -f conftest.$ac_ext
2876 case "x$ac_cv_prog_cc_c89" in
2878 { echo "$as_me:$LINENO: result: none needed" >&5
2879 echo "${ECHO_T}none needed" >&6; } ;;
2881 { echo "$as_me:$LINENO: result: unsupported" >&5
2882 echo "${ECHO_T}unsupported" >&6; } ;;
2884 CC="$CC $ac_cv_prog_cc_c89"
2885 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2886 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2891 ac_cpp='$CPP $CPPFLAGS'
2892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2897 ac_cpp='$CXXCPP $CPPFLAGS'
2898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2901 if test -z "$CXX"; then
2902 if test -n "$CCC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2912 if test "${ac_cv_prog_CXX+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 if test -n "$CXX"; then
2916 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 if test -n "$CXX"; then
2937 { echo "$as_me:$LINENO: result: $CXX" >&5
2938 echo "${ECHO_T}$CXX" >&6; }
2940 { echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6; }
2945 test -n "$CXX" && break
2948 if test -z "$CXX"; then
2950 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2952 # Extract the first word of "$ac_prog", so it can be a program name with args.
2953 set dummy $ac_prog; ac_word=$2
2954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2956 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 if test -n "$ac_ct_CXX"; then
2960 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_ac_ct_CXX="$ac_prog"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2980 if test -n "$ac_ct_CXX"; then
2981 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2982 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2984 { echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6; }
2989 test -n "$ac_ct_CXX" && break
2992 if test "x$ac_ct_CXX" = x; then
2995 case $cross_compiling:$ac_tool_warned in
2997 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2998 whose name does not start with the host triplet. If you think this
2999 configuration is useful to you, please write to autoconf@gnu.org." >&5
3000 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3001 whose name does not start with the host triplet. If you think this
3002 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3003 ac_tool_warned=yes ;;
3011 # Provide some information about the compiler.
3012 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3013 ac_compiler=`set X $ac_compile; echo $2`
3014 { (ac_try="$ac_compiler --version >&5"
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compiler --version >&5") 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }
3024 { (ac_try="$ac_compiler -v >&5"
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compiler -v >&5") 2>&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }
3034 { (ac_try="$ac_compiler -V >&5"
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compiler -V >&5") 2>&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }
3045 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3046 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3047 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 cat >conftest.$ac_ext <<_ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } && {
3082 test -z "$ac_cxx_werror_flag" ||
3083 test ! -s conftest.err
3084 } && test -s conftest.$ac_objext; then
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3097 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3098 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3099 GXX=`test $ac_compiler_gnu = yes && echo yes`
3100 ac_test_CXXFLAGS=${CXXFLAGS+set}
3101 ac_save_CXXFLAGS=$CXXFLAGS
3102 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3103 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3104 if test "${ac_cv_prog_cxx_g+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3108 ac_cxx_werror_flag=yes
3111 cat >conftest.$ac_ext <<_ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } && {
3140 test -z "$ac_cxx_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3143 ac_cv_prog_cxx_g=yes
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3149 cat >conftest.$ac_ext <<_ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_cxx_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3188 cat >conftest.$ac_ext <<_ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3203 rm -f conftest.$ac_objext
3204 if { (ac_try="$ac_compile"
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_compile") 2>conftest.er1
3212 grep -v '^ *+' conftest.er1 >conftest.err
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } && {
3217 test -z "$ac_cxx_werror_flag" ||
3218 test ! -s conftest.err
3219 } && test -s conftest.$ac_objext; then
3220 ac_cv_prog_cxx_g=yes
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3239 if test "$ac_test_CXXFLAGS" = set; then
3240 CXXFLAGS=$ac_save_CXXFLAGS
3241 elif test $ac_cv_prog_cxx_g = yes; then
3242 if test "$GXX" = yes; then
3248 if test "$GXX" = yes; then
3255 ac_cpp='$CPP $CPPFLAGS'
3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3264 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3266 cat > conftest.c << EOF
3270 int main (int argc, char*argv)
3280 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3281 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3282 { echo "$as_me:$LINENO: result: yes" >&5
3283 echo "${ECHO_T}yes" >&6; }
3287 echo "configure: failed program was:" >&5
3289 { echo "$as_me:$LINENO: result: no" >&5
3290 echo "${ECHO_T}no" >&6; }
3295 if test "x$GCC_IS_OK" '=' "x";then
3296 echo "***************************************************"
3297 echo "* Your gcc is too old to compile this!"
3299 echo "* The last version compileable by this compiler is "
3300 echo "* swftools 0.7.0, which you can download from "
3301 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3303 echo "* Newer versions require at least gcc 3.0.0 "
3304 echo "***************************************************"
3308 if test "x$CHECKMEM" '!=' "x";then
3312 #unset ac_cv_prog_CC
3313 #unset ac_cv_prog_CXX
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3323 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3324 # On Suns, sometimes $CPP names a directory.
3325 if test -n "$CPP" && test -d "$CPP"; then
3328 if test -z "$CPP"; then
3329 if test "${ac_cv_prog_CPP+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 # Double quotes because CPP needs to be expanded
3333 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3336 for ac_c_preproc_warn_flag in '' yes
3338 # Use a header file that comes with gcc, so configuring glibc
3339 # with a fresh cross-compiler works.
3340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341 # <limits.h> exists even on freestanding compilers.
3342 # On the NeXT, cc -E runs the code through the compiler's parser,
3343 # not just through cpp. "Syntax error" is here to catch this case.
3344 cat >conftest.$ac_ext <<_ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3351 # include <limits.h>
3353 # include <assert.h>
3357 if { (ac_try="$ac_cpp conftest.$ac_ext"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3365 grep -v '^ *+' conftest.er1 >conftest.err
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } >/dev/null && {
3370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3371 test ! -s conftest.err
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3378 # Broken: fails on valid input.
3382 rm -f conftest.err conftest.$ac_ext
3384 # OK, works on sane cases. Now check whether nonexistent headers
3385 # can be detected and how.
3386 cat >conftest.$ac_ext <<_ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3392 #include <ac_nonexistent.h>
3394 if { (ac_try="$ac_cpp conftest.$ac_ext"
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3402 grep -v '^ *+' conftest.er1 >conftest.err
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } >/dev/null && {
3407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3408 test ! -s conftest.err
3410 # Broken: success on invalid input.
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 # Passes both tests.
3421 rm -f conftest.err conftest.$ac_ext
3424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3425 rm -f conftest.err conftest.$ac_ext
3426 if $ac_preproc_ok; then
3438 { echo "$as_me:$LINENO: result: $CPP" >&5
3439 echo "${ECHO_T}$CPP" >&6; }
3441 for ac_c_preproc_warn_flag in '' yes
3443 # Use a header file that comes with gcc, so configuring glibc
3444 # with a fresh cross-compiler works.
3445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3446 # <limits.h> exists even on freestanding compilers.
3447 # On the NeXT, cc -E runs the code through the compiler's parser,
3448 # not just through cpp. "Syntax error" is here to catch this case.
3449 cat >conftest.$ac_ext <<_ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3456 # include <limits.h>
3458 # include <assert.h>
3462 if { (ac_try="$ac_cpp conftest.$ac_ext"
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3470 grep -v '^ *+' conftest.er1 >conftest.err
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } >/dev/null && {
3475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3476 test ! -s conftest.err
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 # Broken: fails on valid input.
3487 rm -f conftest.err conftest.$ac_ext
3489 # OK, works on sane cases. Now check whether nonexistent headers
3490 # can be detected and how.
3491 cat >conftest.$ac_ext <<_ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3497 #include <ac_nonexistent.h>
3499 if { (ac_try="$ac_cpp conftest.$ac_ext"
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3507 grep -v '^ *+' conftest.er1 >conftest.err
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } >/dev/null && {
3512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3515 # Broken: success on invalid input.
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521 # Passes both tests.
3526 rm -f conftest.err conftest.$ac_ext
3529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530 rm -f conftest.err conftest.$ac_ext
3531 if $ac_preproc_ok; then
3534 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3535 See \`config.log' for more details." >&5
3536 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3537 See \`config.log' for more details." >&2;}
3538 { (exit 1); exit 1; }; }
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548 if test -n "$ac_tool_prefix"; then
3549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3553 if test "${ac_cv_prog_RANLIB+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 if test -n "$RANLIB"; then
3557 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 RANLIB=$ac_cv_prog_RANLIB
3577 if test -n "$RANLIB"; then
3578 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3579 echo "${ECHO_T}$RANLIB" >&6; }
3581 { echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6; }
3587 if test -z "$ac_cv_prog_RANLIB"; then
3588 ac_ct_RANLIB=$RANLIB
3589 # Extract the first word of "ranlib", so it can be a program name with args.
3590 set dummy ranlib; ac_word=$2
3591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3593 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 if test -n "$ac_ct_RANLIB"; then
3597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 ac_cv_prog_ac_ct_RANLIB="ranlib"
3607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3617 if test -n "$ac_ct_RANLIB"; then
3618 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3619 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3621 { echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6; }
3625 if test "x$ac_ct_RANLIB" = x; then
3628 case $cross_compiling:$ac_tool_warned in
3630 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3631 whose name does not start with the host triplet. If you think this
3632 configuration is useful to you, please write to autoconf@gnu.org." >&5
3633 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3634 whose name does not start with the host triplet. If you think this
3635 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3636 ac_tool_warned=yes ;;
3638 RANLIB=$ac_ct_RANLIB
3641 RANLIB="$ac_cv_prog_RANLIB"
3644 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3645 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3646 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3647 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 cat >conftest.make <<\_ACEOF
3653 @echo '@@@%%%=$(MAKE)=@@@%%%'
3655 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3656 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3658 eval ac_cv_prog_make_${ac_make}_set=yes;;
3660 eval ac_cv_prog_make_${ac_make}_set=no;;
3664 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3665 { echo "$as_me:$LINENO: result: yes" >&5
3666 echo "${ECHO_T}yes" >&6; }
3669 { echo "$as_me:$LINENO: result: no" >&5
3670 echo "${ECHO_T}no" >&6; }
3671 SET_MAKE="MAKE=${MAKE-make}"
3674 # Find a good install program. We prefer a C program (faster),
3675 # so one script is as good as another. But avoid the broken or
3676 # incompatible versions:
3677 # SysV /etc/install, /usr/sbin/install
3678 # SunOS /usr/etc/install
3679 # IRIX /sbin/install
3681 # AmigaOS /C/install, which installs bootblocks on floppy discs
3682 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3683 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3684 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3685 # OS/2's system install, which has a completely different semantic
3686 # ./install, which can be erroneously created by make from ./install.sh.
3687 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3688 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3689 if test -z "$INSTALL"; then
3690 if test "${ac_cv_path_install+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 test -z "$as_dir" && as_dir=.
3698 # Account for people who put trailing slashes in PATH elements.
3700 ./ | .// | /cC/* | \
3701 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3702 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3705 # OSF1 and SCO ODT 3.0 have their own names for install.
3706 # Don't use installbsd from OSF since it installs stuff as root
3708 for ac_prog in ginstall scoinst install; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3711 if test $ac_prog = install &&
3712 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3713 # AIX install. It has an incompatible calling convention.
3715 elif test $ac_prog = install &&
3716 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3717 # program-specific install script used by HP pwplus--don't use.
3720 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3733 if test "${ac_cv_path_install+set}" = set; then
3734 INSTALL=$ac_cv_path_install
3736 # As a last resort, use the slow shell script. Don't cache a
3737 # value for INSTALL within a source directory, because that will
3738 # break other packages using the cache if that directory is
3739 # removed, or if the value is a relative name.
3740 INSTALL=$ac_install_sh
3743 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3744 echo "${ECHO_T}$INSTALL" >&6; }
3746 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3747 # It thinks the first close brace ends the variable substitution.
3748 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3750 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3752 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3754 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3755 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3757 if test "$LN_S" = "ln -s"; then
3758 { echo "$as_me:$LINENO: result: yes" >&5
3759 echo "${ECHO_T}yes" >&6; }
3761 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3762 echo "${ECHO_T}no, using $LN_S" >&6; }
3765 for ac_prog in gzip uncompress compress
3767 # Extract the first word of "$ac_prog", so it can be a program name with args.
3768 set dummy $ac_prog; ac_word=$2
3769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3771 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 if test -n "$UNCOMPRESS"; then
3775 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3784 ac_cv_prog_UNCOMPRESS="$ac_prog"
3785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3795 if test -n "$UNCOMPRESS"; then
3796 { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3797 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3799 { echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6; }
3804 test -n "$UNCOMPRESS" && break
3815 if test "x$EXEEXT" = "x.exe";then
3824 { echo "$as_me:$LINENO: checking host system type" >&5
3825 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3826 if test "${ac_cv_host+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 if test "x$host_alias" = x; then
3830 ac_cv_host=$ac_cv_build
3832 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3833 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3834 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3835 { (exit 1); exit 1; }; }
3839 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3840 echo "${ECHO_T}$ac_cv_host" >&6; }
3843 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3844 echo "$as_me: error: invalid value of canonical host" >&2;}
3845 { (exit 1); exit 1; }; };;
3848 ac_save_IFS=$IFS; IFS='-'
3854 # Remember, the first character of IFS is used to create $*,
3855 # except with old shells:
3858 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3863 { echo "$as_me:$LINENO: checking for target system" >&5
3864 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
3868 *cygwin* ) CYGWIN=yes;;
3869 *mingw* ) MINGW=yes;;
3873 if test "x$MINGW" = "xyes"; then
3874 #fix for the debian distribution of mingw
3875 if test -x "/usr/i586-mingw32msvc/bin/ar";then
3876 AR="/usr/i586-mingw32msvc/bin/ar"
3878 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
3879 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
3881 #fix for the gentoo distribution of mingw
3882 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
3883 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
3885 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
3886 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
3888 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
3889 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
3895 if test "x${CYGWIN}" = "xyes"; then
3897 cat >>confdefs.h <<\_ACEOF
3901 { echo "$as_me:$LINENO: result: cygwin" >&5
3902 echo "${ECHO_T}cygwin" >&6; }
3904 if test "x${MINGW}" = "xyes"; then
3906 cat >>confdefs.h <<\_ACEOF
3912 cat >>confdefs.h <<\_ACEOF
3916 LIBS="$LIBS -lws2_32 -lgdi32"
3917 { echo "$as_me:$LINENO: result: mingw" >&5
3918 echo "${ECHO_T}mingw" >&6; }
3923 cat >>confdefs.h <<\_ACEOF
3927 { echo "$as_me:$LINENO: result: " >&5
3928 echo "${ECHO_T}" >&6; }
3934 if test "x${MINGW}" != "xyes"; then
3937 cat >>confdefs.h <<\_ACEOF
3950 # The following tries to make use of includes and libraries in
3951 # /usr/local, too. Notice: A -I/usr/local/include might break
3952 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
3953 # especially on systems which link /usr/local to /usr, so it has yet
3954 # to be seen how useful this is.
3955 if test -d /usr/local/lib; then
3956 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3958 if test -d /usr/local/include; then
3959 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
3960 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3963 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
3964 # if the user has a special prefix (like /opt), there might also be $prefix/lib
3965 # and $prefix/include, which should be included in our search paths for libraries
3967 LDFLAGS="$LDFLAGS -L${libdir}"
3968 CPPFLAGS="$CPPFLAGS -I${includedir}"
3969 # TODO- test whether gcc still works after this
3973 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
3976 # this must be done after (I believe) AC_PROG_MAKE_SET
3977 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
3978 STRIP="@echo debug enabled, not stripping "
3985 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
3986 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
3987 if test "${ac_cv_lib_m_sin+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 ac_check_lib_save_LIBS=$LIBS
3992 cat >conftest.$ac_ext <<_ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3999 /* Override any GCC internal prototype to avoid an error.
4000 Use char because int might match the return type of a GCC
4001 builtin and then its argument prototype would still apply. */
4014 rm -f conftest.$ac_objext conftest$ac_exeext
4015 if { (ac_try="$ac_link"
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_link") 2>conftest.er1
4023 grep -v '^ *+' conftest.er1 >conftest.err
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest$ac_exeext &&
4031 $as_test_x conftest$ac_exeext; then
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4041 conftest$ac_exeext conftest.$ac_ext
4042 LIBS=$ac_check_lib_save_LIBS
4044 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4045 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4046 if test $ac_cv_lib_m_sin = yes; then
4047 cat >>confdefs.h <<_ACEOF
4054 echo "Error: Math library not found.";
4060 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4061 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4062 if test "${ac_cv_lib_z_deflate+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 ac_check_lib_save_LIBS=$LIBS
4067 cat >conftest.$ac_ext <<_ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4074 /* Override any GCC internal prototype to avoid an error.
4075 Use char because int might match the return type of a GCC
4076 builtin and then its argument prototype would still apply. */
4089 rm -f conftest.$ac_objext conftest$ac_exeext
4090 if { (ac_try="$ac_link"
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_link") 2>conftest.er1
4098 grep -v '^ *+' conftest.er1 >conftest.err
4100 cat conftest.err >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } && {
4103 test -z "$ac_c_werror_flag" ||
4104 test ! -s conftest.err
4105 } && test -s conftest$ac_exeext &&
4106 $as_test_x conftest$ac_exeext; then
4107 ac_cv_lib_z_deflate=yes
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 ac_cv_lib_z_deflate=no
4115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4116 conftest$ac_exeext conftest.$ac_ext
4117 LIBS=$ac_check_lib_save_LIBS
4119 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4120 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4121 if test $ac_cv_lib_z_deflate = yes; then
4122 cat >>confdefs.h <<_ACEOF
4133 if test "x$ZLIBMISSING" = "xtrue";then
4136 echo "You need zlib to compile swftools"
4142 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4143 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4144 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 ac_check_lib_save_LIBS=$LIBS
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4156 /* Override any GCC internal prototype to avoid an error.
4157 Use char because int might match the return type of a GCC
4158 builtin and then its argument prototype would still apply. */
4162 char jpeg_write_raw_data ();
4166 return jpeg_write_raw_data ();
4171 rm -f conftest.$ac_objext conftest$ac_exeext
4172 if { (ac_try="$ac_link"
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_link") 2>conftest.er1
4180 grep -v '^ *+' conftest.er1 >conftest.err
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } && {
4185 test -z "$ac_c_werror_flag" ||
4186 test ! -s conftest.err
4187 } && test -s conftest$ac_exeext &&
4188 $as_test_x conftest$ac_exeext; then
4189 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4198 conftest$ac_exeext conftest.$ac_ext
4199 LIBS=$ac_check_lib_save_LIBS
4201 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4202 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4203 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4204 cat >>confdefs.h <<_ACEOF
4205 #define HAVE_LIBJPEG 1
4215 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4216 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4217 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 ac_check_lib_save_LIBS=$LIBS
4221 LIBS="-lungif $LIBS"
4222 cat >conftest.$ac_ext <<_ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4229 /* Override any GCC internal prototype to avoid an error.
4230 Use char because int might match the return type of a GCC
4231 builtin and then its argument prototype would still apply. */
4244 rm -f conftest.$ac_objext conftest$ac_exeext
4245 if { (ac_try="$ac_link"
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_link") 2>conftest.er1
4253 grep -v '^ *+' conftest.er1 >conftest.err
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } && {
4258 test -z "$ac_c_werror_flag" ||
4259 test ! -s conftest.err
4260 } && test -s conftest$ac_exeext &&
4261 $as_test_x conftest$ac_exeext; then
4262 ac_cv_lib_ungif_DGifOpen=yes
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4267 ac_cv_lib_ungif_DGifOpen=no
4270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4271 conftest$ac_exeext conftest.$ac_ext
4272 LIBS=$ac_check_lib_save_LIBS
4274 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4275 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4276 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4277 cat >>confdefs.h <<_ACEOF
4278 #define HAVE_LIBUNGIF 1
4281 LIBS="-lungif $LIBS"
4287 if test "$UNGIFMISSING";then
4290 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4291 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4292 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 ac_check_lib_save_LIBS=$LIBS
4297 cat >conftest.$ac_ext <<_ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4304 /* Override any GCC internal prototype to avoid an error.
4305 Use char because int might match the return type of a GCC
4306 builtin and then its argument prototype would still apply. */
4319 rm -f conftest.$ac_objext conftest$ac_exeext
4320 if { (ac_try="$ac_link"
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_link") 2>conftest.er1
4328 grep -v '^ *+' conftest.er1 >conftest.err
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } && {
4333 test -z "$ac_c_werror_flag" ||
4334 test ! -s conftest.err
4335 } && test -s conftest$ac_exeext &&
4336 $as_test_x conftest$ac_exeext; then
4337 ac_cv_lib_gif_DGifOpen=yes
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 ac_cv_lib_gif_DGifOpen=no
4345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4346 conftest$ac_exeext conftest.$ac_ext
4347 LIBS=$ac_check_lib_save_LIBS
4349 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4350 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4351 if test $ac_cv_lib_gif_DGifOpen = yes; then
4352 cat >>confdefs.h <<_ACEOF
4353 #define HAVE_LIBGIF 1
4365 { echo "$as_me:$LINENO: checking for byte order" >&5
4366 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4367 if test "$cross_compiling" = yes; then
4370 cat >conftest.$ac_ext <<_ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4377 int main (int argc, char *argv[])
4384 rm -f conftest$ac_exeext
4385 if { (ac_try="$ac_link"
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4391 (eval "$ac_link") 2>&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4395 { (case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400 (eval "$ac_try") 2>&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4406 echo "$as_me: program exited with status $ac_status" >&5
4407 echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4419 if test "x${CROSSCOMPILE}" = "x1"; then
4420 { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4421 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4422 { echo "$as_me:$LINENO: checking target system type" >&5
4423 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4424 if test "${ac_cv_target+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 if test "x$target_alias" = x; then
4428 ac_cv_target=$ac_cv_host
4430 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4431 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4432 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4433 { (exit 1); exit 1; }; }
4437 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4438 echo "${ECHO_T}$ac_cv_target" >&6; }
4439 case $ac_cv_target in
4441 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4442 echo "$as_me: error: invalid value of canonical target" >&2;}
4443 { (exit 1); exit 1; }; };;
4445 target=$ac_cv_target
4446 ac_save_IFS=$IFS; IFS='-'
4452 # Remember, the first character of IFS is used to create $*,
4453 # except with old shells:
4456 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4459 # The aliases save the names the user supplied, while $host etc.
4460 # will get canonicalized.
4461 test -n "$target_alias" &&
4462 test "$program_prefix$program_suffix$program_transform_name" = \
4464 program_prefix=${target_alias}-
4465 { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4466 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4471 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4478 if test "x${LITTLEENDIAN}" = "x1"; then
4479 { echo "$as_me:$LINENO: result: little endian" >&5
4480 echo "${ECHO_T}little endian" >&6; }
4484 if test "x${BIGENDIAN}" = "x1"; then
4485 { echo "$as_me:$LINENO: result: big endian" >&5
4486 echo "${ECHO_T}big endian" >&6; }
4489 export WORDS_BIGENDIAN
4491 cat >>confdefs.h <<\_ACEOF
4492 #define WORDS_BIGENDIAN 1
4496 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4497 { echo "$as_me:$LINENO: result: unknown" >&5
4498 echo "${ECHO_T}unknown" >&6; }
4499 echo Byte order could not determined.
4505 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4506 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4507 if test "$cross_compiling" = yes; then
4510 cat >conftest.$ac_ext <<_ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4518 int main (int argc, char*argv[])
4520 return system("test `touch config.tmp2`");
4524 rm -f conftest$ac_exeext
4525 if { (ac_try="$ac_link"
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_link") 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4535 { (case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_try") 2>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4546 echo "$as_me: program exited with status $ac_status" >&5
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4556 if test "x${OK}" = "xOK";then
4557 test -f config.tmp2 || OK=
4560 if test "x${CROSSCOMPILE}" = "x1";then
4563 if test "x${OK}" = "xOK";then
4565 { echo "$as_me:$LINENO: result: yes" >&5
4566 echo "${ECHO_T}yes" >&6; }
4568 export SYSTEM_BACKTICKS
4570 cat >>confdefs.h <<\_ACEOF
4571 #define SYSTEM_BACKTICKS 1
4575 { echo "$as_me:$LINENO: result: no" >&5
4576 echo "${ECHO_T}no" >&6; }
4581 test "$program_prefix" != NONE &&
4582 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4583 # Use a double $ so make ignores it.
4584 test "$program_suffix" != NONE &&
4585 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4586 # Double any \ or $. echo might interpret backslashes.
4587 # By default was `s,x,x', remove it if useless.
4588 cat <<\_ACEOF >conftest.sed
4589 s/[\\$]/&&/g;s/;s,x,x,$//
4591 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4595 ac_config_headers="$ac_config_headers config.h"
4603 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4604 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4605 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4606 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 cat >conftest.$ac_ext <<_ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 #include <sys/types.h>
4628 rm -f conftest.$ac_objext
4629 if { (ac_try="$ac_compile"
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_compile") 2>conftest.er1
4637 grep -v '^ *+' conftest.er1 >conftest.err
4639 cat conftest.err >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest.$ac_objext; then
4645 eval "$as_ac_Header=yes"
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 eval "$as_ac_Header=no"
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 ac_res=`eval echo '${'$as_ac_Header'}'`
4656 { echo "$as_me:$LINENO: result: $ac_res" >&5
4657 echo "${ECHO_T}$ac_res" >&6; }
4658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4659 cat >>confdefs.h <<_ACEOF
4660 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4663 ac_header_dirent=$ac_hdr; break
4667 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4668 if test $ac_header_dirent = dirent.h; then
4669 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4670 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4671 if test "${ac_cv_search_opendir+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 ac_func_search_save_LIBS=$LIBS
4675 cat >conftest.$ac_ext <<_ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4682 /* Override any GCC internal prototype to avoid an error.
4683 Use char because int might match the return type of a GCC
4684 builtin and then its argument prototype would still apply. */
4697 for ac_lib in '' dir; do
4698 if test -z "$ac_lib"; then
4699 ac_res="none required"
4702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4704 rm -f conftest.$ac_objext conftest$ac_exeext
4705 if { (ac_try="$ac_link"
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711 (eval "$ac_link") 2>conftest.er1
4713 grep -v '^ *+' conftest.er1 >conftest.err
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && {
4718 test -z "$ac_c_werror_flag" ||
4719 test ! -s conftest.err
4720 } && test -s conftest$ac_exeext &&
4721 $as_test_x conftest$ac_exeext; then
4722 ac_cv_search_opendir=$ac_res
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4732 if test "${ac_cv_search_opendir+set}" = set; then
4736 if test "${ac_cv_search_opendir+set}" = set; then
4739 ac_cv_search_opendir=no
4742 LIBS=$ac_func_search_save_LIBS
4744 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4745 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4746 ac_res=$ac_cv_search_opendir
4747 if test "$ac_res" != no; then
4748 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4753 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4754 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4755 if test "${ac_cv_search_opendir+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 ac_func_search_save_LIBS=$LIBS
4759 cat >conftest.$ac_ext <<_ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4766 /* Override any GCC internal prototype to avoid an error.
4767 Use char because int might match the return type of a GCC
4768 builtin and then its argument prototype would still apply. */
4781 for ac_lib in '' x; do
4782 if test -z "$ac_lib"; then
4783 ac_res="none required"
4786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4788 rm -f conftest.$ac_objext conftest$ac_exeext
4789 if { (ac_try="$ac_link"
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4795 (eval "$ac_link") 2>conftest.er1
4797 grep -v '^ *+' conftest.er1 >conftest.err
4799 cat conftest.err >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } && {
4802 test -z "$ac_c_werror_flag" ||
4803 test ! -s conftest.err
4804 } && test -s conftest$ac_exeext &&
4805 $as_test_x conftest$ac_exeext; then
4806 ac_cv_search_opendir=$ac_res
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4816 if test "${ac_cv_search_opendir+set}" = set; then
4820 if test "${ac_cv_search_opendir+set}" = set; then
4823 ac_cv_search_opendir=no
4826 LIBS=$ac_func_search_save_LIBS
4828 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4829 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4830 ac_res=$ac_cv_search_opendir
4831 if test "$ac_res" != no; then
4832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4839 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4840 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4841 if test "${ac_cv_path_GREP+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 # Extract the first word of "grep ggrep" to use in msg output
4845 if test -z "$GREP"; then
4846 set dummy grep ggrep; ac_prog_name=$2
4847 if test "${ac_cv_path_GREP+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 ac_path_GREP_found=false
4851 # Loop through the user's path and test for each of PROGNAME-LIST
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4856 test -z "$as_dir" && as_dir=.
4857 for ac_prog in grep ggrep; do
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4860 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4861 # Check for GNU ac_path_GREP and select it if it is found.
4862 # Check for GNU $ac_path_GREP
4863 case `"$ac_path_GREP" --version 2>&1` in
4865 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4868 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4871 cat "conftest.in" "conftest.in" >"conftest.tmp"
4872 mv "conftest.tmp" "conftest.in"
4873 cp "conftest.in" "conftest.nl"
4874 echo 'GREP' >> "conftest.nl"
4875 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4876 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4877 ac_count=`expr $ac_count + 1`
4878 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4879 # Best one so far, save it but keep looking for a better one
4880 ac_cv_path_GREP="$ac_path_GREP"
4881 ac_path_GREP_max=$ac_count
4883 # 10*(2^10) chars as input seems more than enough
4884 test $ac_count -gt 10 && break
4886 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4890 $ac_path_GREP_found && break 3
4900 GREP="$ac_cv_path_GREP"
4901 if test -z "$GREP"; then
4902 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4903 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4904 { (exit 1); exit 1; }; }
4908 ac_cv_path_GREP=$GREP
4913 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4914 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4915 GREP="$ac_cv_path_GREP"
4918 { echo "$as_me:$LINENO: checking for egrep" >&5
4919 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4920 if test "${ac_cv_path_EGREP+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4924 then ac_cv_path_EGREP="$GREP -E"
4926 # Extract the first word of "egrep" to use in msg output
4927 if test -z "$EGREP"; then
4928 set dummy egrep; ac_prog_name=$2
4929 if test "${ac_cv_path_EGREP+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 ac_path_EGREP_found=false
4933 # Loop through the user's path and test for each of PROGNAME-LIST
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4938 test -z "$as_dir" && as_dir=.
4939 for ac_prog in egrep; do
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4942 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4943 # Check for GNU ac_path_EGREP and select it if it is found.
4944 # Check for GNU $ac_path_EGREP
4945 case `"$ac_path_EGREP" --version 2>&1` in
4947 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4950 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4953 cat "conftest.in" "conftest.in" >"conftest.tmp"
4954 mv "conftest.tmp" "conftest.in"
4955 cp "conftest.in" "conftest.nl"
4956 echo 'EGREP' >> "conftest.nl"
4957 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4959 ac_count=`expr $ac_count + 1`
4960 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4961 # Best one so far, save it but keep looking for a better one
4962 ac_cv_path_EGREP="$ac_path_EGREP"
4963 ac_path_EGREP_max=$ac_count
4965 # 10*(2^10) chars as input seems more than enough
4966 test $ac_count -gt 10 && break
4968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4972 $ac_path_EGREP_found && break 3
4982 EGREP="$ac_cv_path_EGREP"
4983 if test -z "$EGREP"; then
4984 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4985 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4986 { (exit 1); exit 1; }; }
4990 ac_cv_path_EGREP=$EGREP
4996 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4997 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4998 EGREP="$ac_cv_path_EGREP"
5001 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5002 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5003 if test "${ac_cv_header_stdc+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 cat >conftest.$ac_ext <<_ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5025 rm -f conftest.$ac_objext
5026 if { (ac_try="$ac_compile"
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032 (eval "$ac_compile") 2>conftest.er1
5034 grep -v '^ *+' conftest.er1 >conftest.err
5036 cat conftest.err >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } && {
5039 test -z "$ac_c_werror_flag" ||
5040 test ! -s conftest.err
5041 } && test -s conftest.$ac_objext; then
5042 ac_cv_header_stdc=yes
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5047 ac_cv_header_stdc=no
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 if test $ac_cv_header_stdc = yes; then
5053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5064 $EGREP "memchr" >/dev/null 2>&1; then
5067 ac_cv_header_stdc=no
5073 if test $ac_cv_header_stdc = yes; then
5074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5085 $EGREP "free" >/dev/null 2>&1; then
5088 ac_cv_header_stdc=no
5094 if test $ac_cv_header_stdc = yes; then
5095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5096 if test "$cross_compiling" = yes; then
5099 cat >conftest.$ac_ext <<_ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5107 #if ((' ' & 0x0FF) == 0x020)
5108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5111 # define ISLOWER(c) \
5112 (('a' <= (c) && (c) <= 'i') \
5113 || ('j' <= (c) && (c) <= 'r') \
5114 || ('s' <= (c) && (c) <= 'z'))
5115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5123 for (i = 0; i < 256; i++)
5124 if (XOR (islower (i), ISLOWER (i))
5125 || toupper (i) != TOUPPER (i))
5130 rm -f conftest$ac_exeext
5131 if { (ac_try="$ac_link"
5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134 *) ac_try_echo=$ac_try;;
5136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137 (eval "$ac_link") 2>&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5141 { (case "(($ac_try" in
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_try") 2>&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5152 echo "$as_me: program exited with status $ac_status" >&5
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5157 ac_cv_header_stdc=no
5159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5165 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5166 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5167 if test $ac_cv_header_stdc = yes; then
5169 cat >>confdefs.h <<\_ACEOF
5170 #define STDC_HEADERS 1
5176 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5186 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5187 inttypes.h stdint.h unistd.h
5189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 cat >conftest.$ac_ext <<_ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h. */
5201 $ac_includes_default
5203 #include <$ac_header>
5205 rm -f conftest.$ac_objext
5206 if { (ac_try="$ac_compile"
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_compile") 2>conftest.er1
5214 grep -v '^ *+' conftest.er1 >conftest.err
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } && {
5219 test -z "$ac_c_werror_flag" ||
5220 test ! -s conftest.err
5221 } && test -s conftest.$ac_objext; then
5222 eval "$as_ac_Header=yes"
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5227 eval "$as_ac_Header=no"
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232 ac_res=`eval echo '${'$as_ac_Header'}'`
5233 { echo "$as_me:$LINENO: result: $ac_res" >&5
5234 echo "${ECHO_T}$ac_res" >&6; }
5235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5236 cat >>confdefs.h <<_ACEOF
5237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5264 for ac_header in zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/mman.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h
5266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 ac_res=`eval echo '${'$as_ac_Header'}'`
5274 { echo "$as_me:$LINENO: result: $ac_res" >&5
5275 echo "${ECHO_T}$ac_res" >&6; }
5277 # Is the header compilable?
5278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5280 cat >conftest.$ac_ext <<_ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 $ac_includes_default
5287 #include <$ac_header>
5289 rm -f conftest.$ac_objext
5290 if { (ac_try="$ac_compile"
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_compile") 2>conftest.er1
5298 grep -v '^ *+' conftest.er1 >conftest.err
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } && {
5303 test -z "$ac_c_werror_flag" ||
5304 test ! -s conftest.err
5305 } && test -s conftest.$ac_objext; then
5306 ac_header_compiler=yes
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 ac_header_compiler=no
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5316 echo "${ECHO_T}$ac_header_compiler" >&6; }
5318 # Is the header present?
5319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5321 cat >conftest.$ac_ext <<_ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <$ac_header>
5329 if { (ac_try="$ac_cpp conftest.$ac_ext"
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5337 grep -v '^ *+' conftest.er1 >conftest.err
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } >/dev/null && {
5342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5343 test ! -s conftest.err
5345 ac_header_preproc=yes
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5350 ac_header_preproc=no
5353 rm -f conftest.err conftest.$ac_ext
5354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5355 echo "${ECHO_T}$ac_header_preproc" >&6; }
5357 # So? What about this header?
5358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5364 ac_header_preproc=yes
5367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 eval "$as_ac_Header=\$ac_header_preproc"
5389 ac_res=`eval echo '${'$as_ac_Header'}'`
5390 { echo "$as_me:$LINENO: result: $ac_res" >&5
5391 echo "${ECHO_T}$ac_res" >&6; }
5394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5395 cat >>confdefs.h <<_ACEOF
5396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5405 cat >>confdefs.h <<_ACEOF
5406 #define PACKAGE "$PACKAGE"
5410 cat >>confdefs.h <<_ACEOF
5411 #define VERSION "$VERSION"
5420 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5421 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5422 if test "${ac_cv_c_const+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 cat >conftest.$ac_ext <<_ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5435 /* FIXME: Include the comments suggested by Paul. */
5437 /* Ultrix mips cc rejects this. */
5438 typedef int charset[2];
5440 /* SunOS 4.1.1 cc rejects this. */
5441 char const *const *pcpcc;
5443 /* NEC SVR4.0.2 mips cc rejects this. */
5444 struct point {int x, y;};
5445 static struct point const zero = {0,0};
5446 /* AIX XL C 1.02.0.0 rejects this.
5447 It does not let you subtract one const X* pointer from another in
5448 an arm of an if-expression whose if-part is not a constant
5450 const char *g = "string";
5451 pcpcc = &g + (g ? g-g : 0);
5452 /* HPUX 7.0 cc rejects these. */
5454 ppc = (char**) pcpcc;
5455 pcpcc = (char const *const *) ppc;
5456 { /* SCO 3.2v4 cc rejects this. */
5458 char const *s = 0 ? (char *) 0 : (char const *) 0;
5463 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5465 const int *foo = &x[0];
5468 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5469 typedef const int *iptr;
5473 { /* AIX XL C 1.02.0.0 rejects this saying
5474 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5475 struct s { int j; const int *ap[3]; };
5476 struct s *b; b->j = 5;
5478 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5482 return !cs[0] && !zero.x;
5489 rm -f conftest.$ac_objext
5490 if { (ac_try="$ac_compile"
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_compile") 2>conftest.er1
5498 grep -v '^ *+' conftest.er1 >conftest.err
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && {
5503 test -z "$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest.$ac_objext; then
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5517 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5518 if test $ac_cv_c_const = no; then
5520 cat >>confdefs.h <<\_ACEOF
5526 { echo "$as_me:$LINENO: checking for inline" >&5
5527 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5528 if test "${ac_cv_c_inline+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 for ac_kw in inline __inline__ __inline; do
5533 cat >conftest.$ac_ext <<_ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5541 static $ac_kw foo_t static_foo () {return 0; }
5542 $ac_kw foo_t foo () {return 0; }
5546 rm -f conftest.$ac_objext
5547 if { (ac_try="$ac_compile"
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_compile") 2>conftest.er1
5555 grep -v '^ *+' conftest.er1 >conftest.err
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } && {
5560 test -z "$ac_c_werror_flag" ||
5561 test ! -s conftest.err
5562 } && test -s conftest.$ac_objext; then
5563 ac_cv_c_inline=$ac_kw
5565 echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.$ac_ext >&5
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 test "$ac_cv_c_inline" != no && break
5576 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5577 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5580 case $ac_cv_c_inline in
5583 case $ac_cv_c_inline in
5585 *) ac_val=$ac_cv_c_inline;;
5587 cat >>confdefs.h <<_ACEOF
5589 #define inline $ac_val
5595 { echo "$as_me:$LINENO: checking for off_t" >&5
5596 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5597 if test "${ac_cv_type_off_t+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 cat >conftest.$ac_ext <<_ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 $ac_includes_default
5607 typedef off_t ac__type_new_;
5611 if ((ac__type_new_ *) 0)
5613 if (sizeof (ac__type_new_))
5619 rm -f conftest.$ac_objext
5620 if { (ac_try="$ac_compile"
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_compile") 2>conftest.er1
5628 grep -v '^ *+' conftest.er1 >conftest.err
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && {
5633 test -z "$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest.$ac_objext; then
5636 ac_cv_type_off_t=yes
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5647 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5648 if test $ac_cv_type_off_t = yes; then
5652 cat >>confdefs.h <<_ACEOF
5653 #define off_t long int
5658 { echo "$as_me:$LINENO: checking for size_t" >&5
5659 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5660 if test "${ac_cv_type_size_t+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 cat >conftest.$ac_ext <<_ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 $ac_includes_default
5670 typedef size_t ac__type_new_;
5674 if ((ac__type_new_ *) 0)
5676 if (sizeof (ac__type_new_))
5682 rm -f conftest.$ac_objext
5683 if { (ac_try="$ac_compile"
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_compile") 2>conftest.er1
5691 grep -v '^ *+' conftest.er1 >conftest.err
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest.$ac_objext; then
5699 ac_cv_type_size_t=yes
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5704 ac_cv_type_size_t=no
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5710 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5711 if test $ac_cv_type_size_t = yes; then
5715 cat >>confdefs.h <<_ACEOF
5716 #define size_t unsigned int
5721 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5722 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5723 if test "${ac_cv_struct_tm+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 cat >conftest.$ac_ext <<_ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 #include <sys/types.h>
5739 int *p = &tm.tm_sec;
5745 rm -f conftest.$ac_objext
5746 if { (ac_try="$ac_compile"
5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752 (eval "$ac_compile") 2>conftest.er1
5754 grep -v '^ *+' conftest.er1 >conftest.err
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } && {
5759 test -z "$ac_c_werror_flag" ||
5760 test ! -s conftest.err
5761 } && test -s conftest.$ac_objext; then
5762 ac_cv_struct_tm=time.h
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 ac_cv_struct_tm=sys/time.h
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5773 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5774 if test $ac_cv_struct_tm = sys/time.h; then
5776 cat >>confdefs.h <<\_ACEOF
5777 #define TM_IN_SYS_TIME 1
5782 { echo "$as_me:$LINENO: checking for boolean" >&5
5783 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5784 if test "${ac_cv_type_boolean+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 cat >conftest.$ac_ext <<_ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 $ac_includes_default
5794 typedef boolean ac__type_new_;
5798 if ((ac__type_new_ *) 0)
5800 if (sizeof (ac__type_new_))
5806 rm -f conftest.$ac_objext
5807 if { (ac_try="$ac_compile"
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5815 grep -v '^ *+' conftest.er1 >conftest.err
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.$ac_objext; then
5823 ac_cv_type_boolean=yes
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5828 ac_cv_type_boolean=no
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5834 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5835 if test $ac_cv_type_boolean = yes; then
5839 cat >>confdefs.h <<_ACEOF
5860 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
5862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 cat >conftest.$ac_ext <<_ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5876 #define $ac_func innocuous_$ac_func
5878 /* System header to define __stub macros and hopefully few prototypes,
5879 which can conflict with char $ac_func (); below.
5880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5881 <limits.h> exists even on freestanding compilers. */
5884 # include <limits.h>
5886 # include <assert.h>
5891 /* Override any GCC internal prototype to avoid an error.
5892 Use char because int might match the return type of a GCC
5893 builtin and then its argument prototype would still apply. */
5898 /* The GNU C library defines this for functions which it implements
5899 to always fail with ENOSYS. Some functions are actually named
5900 something starting with __ and the normal name is an alias. */
5901 #if defined __stub_$ac_func || defined __stub___$ac_func
5913 rm -f conftest.$ac_objext conftest$ac_exeext
5914 if { (ac_try="$ac_link"
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_link") 2>conftest.er1
5922 grep -v '^ *+' conftest.er1 >conftest.err
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } && {
5927 test -z "$ac_c_werror_flag" ||
5928 test ! -s conftest.err
5929 } && test -s conftest$ac_exeext &&
5930 $as_test_x conftest$ac_exeext; then
5931 eval "$as_ac_var=yes"
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 eval "$as_ac_var=no"
5939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5940 conftest$ac_exeext conftest.$ac_ext
5942 ac_res=`eval echo '${'$as_ac_var'}'`
5943 { echo "$as_me:$LINENO: result: $ac_res" >&5
5944 echo "${ECHO_T}$ac_res" >&6; }
5945 if test `eval echo '${'$as_ac_var'}'` = yes; then
5946 cat >>confdefs.h <<_ACEOF
5947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5954 { echo "$as_me:$LINENO: checking for signed char" >&5
5955 echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
5956 if test "${ac_cv_type_signed_char+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 cat >conftest.$ac_ext <<_ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 $ac_includes_default
5966 typedef signed char ac__type_new_;
5970 if ((ac__type_new_ *) 0)
5972 if (sizeof (ac__type_new_))
5978 rm -f conftest.$ac_objext
5979 if { (ac_try="$ac_compile"
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_compile") 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } && {
5992 test -z "$ac_c_werror_flag" ||
5993 test ! -s conftest.err
5994 } && test -s conftest.$ac_objext; then
5995 ac_cv_type_signed_char=yes
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6000 ac_cv_type_signed_char=no
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
6006 echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
6008 # The cast to long int works around a bug in the HP C Compiler
6009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6011 # This bug is HP SR number 8606223364.
6012 { echo "$as_me:$LINENO: checking size of signed char" >&5
6013 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6; }
6014 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 if test "$cross_compiling" = yes; then
6018 # Depending upon the size, compute the lo and hi bounds.
6019 cat >conftest.$ac_ext <<_ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6025 $ac_includes_default
6026 typedef signed char ac__type_sizeof_;
6030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6037 rm -f conftest.$ac_objext
6038 if { (ac_try="$ac_compile"
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_compile") 2>conftest.er1
6046 grep -v '^ *+' conftest.er1 >conftest.err
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && {
6051 test -z "$ac_c_werror_flag" ||
6052 test ! -s conftest.err
6053 } && test -s conftest.$ac_objext; then
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 $ac_includes_default
6063 typedef signed char ac__type_sizeof_;
6067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6074 rm -f conftest.$ac_objext
6075 if { (ac_try="$ac_compile"
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compile") 2>conftest.er1
6083 grep -v '^ *+' conftest.er1 >conftest.err
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } && {
6088 test -z "$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6090 } && test -s conftest.$ac_objext; then
6091 ac_hi=$ac_mid; break
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6096 ac_lo=`expr $ac_mid + 1`
6097 if test $ac_lo -le $ac_mid; then
6101 ac_mid=`expr 2 '*' $ac_mid + 1`
6104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6110 cat >conftest.$ac_ext <<_ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 $ac_includes_default
6117 typedef signed char ac__type_sizeof_;
6121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6128 rm -f conftest.$ac_objext
6129 if { (ac_try="$ac_compile"
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_compile") 2>conftest.er1
6137 grep -v '^ *+' conftest.er1 >conftest.err
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } && {
6142 test -z "$ac_c_werror_flag" ||
6143 test ! -s conftest.err
6144 } && test -s conftest.$ac_objext; then
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 $ac_includes_default
6154 typedef signed char ac__type_sizeof_;
6158 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6165 rm -f conftest.$ac_objext
6166 if { (ac_try="$ac_compile"
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172 (eval "$ac_compile") 2>conftest.er1
6174 grep -v '^ *+' conftest.er1 >conftest.err
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } && {
6179 test -z "$ac_c_werror_flag" ||
6180 test ! -s conftest.err
6181 } && test -s conftest.$ac_objext; then
6182 ac_lo=$ac_mid; break
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6187 ac_hi=`expr '(' $ac_mid ')' - 1`
6188 if test $ac_mid -le $ac_hi; then
6192 ac_mid=`expr 2 '*' $ac_mid`
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 # Binary search between lo and hi bounds.
6209 while test "x$ac_lo" != "x$ac_hi"; do
6210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6211 cat >conftest.$ac_ext <<_ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6217 $ac_includes_default
6218 typedef signed char ac__type_sizeof_;
6222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6229 rm -f conftest.$ac_objext
6230 if { (ac_try="$ac_compile"
6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 *) ac_try_echo=$ac_try;;
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236 (eval "$ac_compile") 2>conftest.er1
6238 grep -v '^ *+' conftest.er1 >conftest.err
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } && {
6243 test -z "$ac_c_werror_flag" ||
6244 test ! -s conftest.err
6245 } && test -s conftest.$ac_objext; then
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6251 ac_lo=`expr '(' $ac_mid ')' + 1`
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6258 '') if test "$ac_cv_type_signed_char" = yes; then
6259 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6260 See \`config.log' for more details." >&5
6261 echo "$as_me: error: cannot compute sizeof (signed char)
6262 See \`config.log' for more details." >&2;}
6263 { (exit 77); exit 77; }; }
6265 ac_cv_sizeof_signed_char=0
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 $ac_includes_default
6276 typedef signed char ac__type_sizeof_;
6277 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6278 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6285 FILE *f = fopen ("conftest.val", "w");
6288 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6290 long int i = longval ();
6291 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6293 fprintf (f, "%ld\n", i);
6297 unsigned long int i = ulongval ();
6298 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6300 fprintf (f, "%lu\n", i);
6302 return ferror (f) || fclose (f) != 0;
6308 rm -f conftest$ac_exeext
6309 if { (ac_try="$ac_link"
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_link") 2>&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6319 { (case "(($ac_try" in
6320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6324 (eval "$ac_try") 2>&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 ac_cv_sizeof_signed_char=`cat conftest.val`
6330 echo "$as_me: program exited with status $ac_status" >&5
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6335 if test "$ac_cv_type_signed_char" = yes; then
6336 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6337 See \`config.log' for more details." >&5
6338 echo "$as_me: error: cannot compute sizeof (signed char)
6339 See \`config.log' for more details." >&2;}
6340 { (exit 77); exit 77; }; }
6342 ac_cv_sizeof_signed_char=0
6345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6349 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6350 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6; }
6354 cat >>confdefs.h <<_ACEOF
6355 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6359 { echo "$as_me:$LINENO: checking for signed short" >&5
6360 echo $ECHO_N "checking for signed short... $ECHO_C" >&6; }
6361 if test "${ac_cv_type_signed_short+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 cat >conftest.$ac_ext <<_ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 $ac_includes_default
6371 typedef signed short ac__type_new_;
6375 if ((ac__type_new_ *) 0)
6377 if (sizeof (ac__type_new_))
6383 rm -f conftest.$ac_objext
6384 if { (ac_try="$ac_compile"
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_compile") 2>conftest.er1
6392 grep -v '^ *+' conftest.er1 >conftest.err
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } && {
6397 test -z "$ac_c_werror_flag" ||
6398 test ! -s conftest.err
6399 } && test -s conftest.$ac_objext; then
6400 ac_cv_type_signed_short=yes
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_cv_type_signed_short=no
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_short" >&5
6411 echo "${ECHO_T}$ac_cv_type_signed_short" >&6; }
6413 # The cast to long int works around a bug in the HP C Compiler
6414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6416 # This bug is HP SR number 8606223364.
6417 { echo "$as_me:$LINENO: checking size of signed short" >&5
6418 echo $ECHO_N "checking size of signed short... $ECHO_C" >&6; }
6419 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 if test "$cross_compiling" = yes; then
6423 # Depending upon the size, compute the lo and hi bounds.
6424 cat >conftest.$ac_ext <<_ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h. */
6430 $ac_includes_default
6431 typedef signed short ac__type_sizeof_;
6435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6442 rm -f conftest.$ac_objext
6443 if { (ac_try="$ac_compile"
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_compile") 2>conftest.er1
6451 grep -v '^ *+' conftest.er1 >conftest.err
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } && {
6456 test -z "$ac_c_werror_flag" ||
6457 test ! -s conftest.err
6458 } && test -s conftest.$ac_objext; then
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 $ac_includes_default
6468 typedef signed short ac__type_sizeof_;
6472 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6479 rm -f conftest.$ac_objext
6480 if { (ac_try="$ac_compile"
6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6486 (eval "$ac_compile") 2>conftest.er1
6488 grep -v '^ *+' conftest.er1 >conftest.err
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } && {
6493 test -z "$ac_c_werror_flag" ||
6494 test ! -s conftest.err
6495 } && test -s conftest.$ac_objext; then
6496 ac_hi=$ac_mid; break
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 ac_lo=`expr $ac_mid + 1`
6502 if test $ac_lo -le $ac_mid; then
6506 ac_mid=`expr 2 '*' $ac_mid + 1`
6509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6515 cat >conftest.$ac_ext <<_ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 $ac_includes_default
6522 typedef signed short ac__type_sizeof_;
6526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6533 rm -f conftest.$ac_objext
6534 if { (ac_try="$ac_compile"
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_compile") 2>conftest.er1
6542 grep -v '^ *+' conftest.er1 >conftest.err
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest.$ac_objext; then
6552 cat >conftest.$ac_ext <<_ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 $ac_includes_default
6559 typedef signed short ac__type_sizeof_;
6563 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6570 rm -f conftest.$ac_objext
6571 if { (ac_try="$ac_compile"
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_compile") 2>conftest.er1
6579 grep -v '^ *+' conftest.er1 >conftest.err
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && {
6584 test -z "$ac_c_werror_flag" ||
6585 test ! -s conftest.err
6586 } && test -s conftest.$ac_objext; then
6587 ac_lo=$ac_mid; break
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6592 ac_hi=`expr '(' $ac_mid ')' - 1`
6593 if test $ac_mid -le $ac_hi; then
6597 ac_mid=`expr 2 '*' $ac_mid`
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 # Binary search between lo and hi bounds.
6614 while test "x$ac_lo" != "x$ac_hi"; do
6615 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6616 cat >conftest.$ac_ext <<_ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 $ac_includes_default
6623 typedef signed short ac__type_sizeof_;
6627 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6634 rm -f conftest.$ac_objext
6635 if { (ac_try="$ac_compile"
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641 (eval "$ac_compile") 2>conftest.er1
6643 grep -v '^ *+' conftest.er1 >conftest.err
6645 cat conftest.err >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } && {
6648 test -z "$ac_c_werror_flag" ||
6649 test ! -s conftest.err
6650 } && test -s conftest.$ac_objext; then
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6656 ac_lo=`expr '(' $ac_mid ')' + 1`
6659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
6663 '') if test "$ac_cv_type_signed_short" = yes; then
6664 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6665 See \`config.log' for more details." >&5
6666 echo "$as_me: error: cannot compute sizeof (signed short)
6667 See \`config.log' for more details." >&2;}
6668 { (exit 77); exit 77; }; }
6670 ac_cv_sizeof_signed_short=0
6674 cat >conftest.$ac_ext <<_ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 $ac_includes_default
6681 typedef signed short ac__type_sizeof_;
6682 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6683 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6690 FILE *f = fopen ("conftest.val", "w");
6693 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6695 long int i = longval ();
6696 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6698 fprintf (f, "%ld\n", i);
6702 unsigned long int i = ulongval ();
6703 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6705 fprintf (f, "%lu\n", i);
6707 return ferror (f) || fclose (f) != 0;
6713 rm -f conftest$ac_exeext
6714 if { (ac_try="$ac_link"
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_link") 2>&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6724 { (case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_try") 2>&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 ac_cv_sizeof_signed_short=`cat conftest.val`
6735 echo "$as_me: program exited with status $ac_status" >&5
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6740 if test "$ac_cv_type_signed_short" = yes; then
6741 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6742 See \`config.log' for more details." >&5
6743 echo "$as_me: error: cannot compute sizeof (signed short)
6744 See \`config.log' for more details." >&2;}
6745 { (exit 77); exit 77; }; }
6747 ac_cv_sizeof_signed_short=0
6750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6754 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
6755 echo "${ECHO_T}$ac_cv_sizeof_signed_short" >&6; }
6759 cat >>confdefs.h <<_ACEOF
6760 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
6764 { echo "$as_me:$LINENO: checking for signed" >&5
6765 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
6766 if test "${ac_cv_type_signed+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 cat >conftest.$ac_ext <<_ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 $ac_includes_default
6776 typedef signed ac__type_new_;
6780 if ((ac__type_new_ *) 0)
6782 if (sizeof (ac__type_new_))
6788 rm -f conftest.$ac_objext
6789 if { (ac_try="$ac_compile"
6791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6792 *) ac_try_echo=$ac_try;;
6794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6795 (eval "$ac_compile") 2>conftest.er1
6797 grep -v '^ *+' conftest.er1 >conftest.err
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } && {
6802 test -z "$ac_c_werror_flag" ||
6803 test ! -s conftest.err
6804 } && test -s conftest.$ac_objext; then
6805 ac_cv_type_signed=yes
6807 echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6810 ac_cv_type_signed=no
6813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
6816 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
6818 # The cast to long int works around a bug in the HP C Compiler
6819 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6820 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6821 # This bug is HP SR number 8606223364.
6822 { echo "$as_me:$LINENO: checking size of signed" >&5
6823 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
6824 if test "${ac_cv_sizeof_signed+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 if test "$cross_compiling" = yes; then
6828 # Depending upon the size, compute the lo and hi bounds.
6829 cat >conftest.$ac_ext <<_ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 $ac_includes_default
6836 typedef signed ac__type_sizeof_;
6840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6847 rm -f conftest.$ac_objext
6848 if { (ac_try="$ac_compile"
6850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851 *) ac_try_echo=$ac_try;;
6853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6854 (eval "$ac_compile") 2>conftest.er1
6856 grep -v '^ *+' conftest.er1 >conftest.err
6858 cat conftest.err >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } && {
6861 test -z "$ac_c_werror_flag" ||
6862 test ! -s conftest.err
6863 } && test -s conftest.$ac_objext; then
6866 cat >conftest.$ac_ext <<_ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6872 $ac_includes_default
6873 typedef signed ac__type_sizeof_;
6877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6884 rm -f conftest.$ac_objext
6885 if { (ac_try="$ac_compile"
6887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891 (eval "$ac_compile") 2>conftest.er1
6893 grep -v '^ *+' conftest.er1 >conftest.err
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest.$ac_objext; then
6901 ac_hi=$ac_mid; break
6903 echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6906 ac_lo=`expr $ac_mid + 1`
6907 if test $ac_lo -le $ac_mid; then
6911 ac_mid=`expr 2 '*' $ac_mid + 1`
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6920 cat >conftest.$ac_ext <<_ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6926 $ac_includes_default
6927 typedef signed ac__type_sizeof_;
6931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6938 rm -f conftest.$ac_objext
6939 if { (ac_try="$ac_compile"
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_compile") 2>conftest.er1
6947 grep -v '^ *+' conftest.er1 >conftest.err
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && {
6952 test -z "$ac_c_werror_flag" ||
6953 test ! -s conftest.err
6954 } && test -s conftest.$ac_objext; then
6957 cat >conftest.$ac_ext <<_ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 $ac_includes_default
6964 typedef signed ac__type_sizeof_;
6968 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6975 rm -f conftest.$ac_objext
6976 if { (ac_try="$ac_compile"
6978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979 *) ac_try_echo=$ac_try;;
6981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6982 (eval "$ac_compile") 2>conftest.er1
6984 grep -v '^ *+' conftest.er1 >conftest.err
6986 cat conftest.err >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } && {
6989 test -z "$ac_c_werror_flag" ||
6990 test ! -s conftest.err
6991 } && test -s conftest.$ac_objext; then
6992 ac_lo=$ac_mid; break
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6997 ac_hi=`expr '(' $ac_mid ')' - 1`
6998 if test $ac_mid -le $ac_hi; then
7002 ac_mid=`expr 2 '*' $ac_mid`
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008 echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 # Binary search between lo and hi bounds.
7019 while test "x$ac_lo" != "x$ac_hi"; do
7020 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7021 cat >conftest.$ac_ext <<_ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7027 $ac_includes_default
7028 typedef signed ac__type_sizeof_;
7032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7039 rm -f conftest.$ac_objext
7040 if { (ac_try="$ac_compile"
7042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7046 (eval "$ac_compile") 2>conftest.er1
7048 grep -v '^ *+' conftest.er1 >conftest.err
7050 cat conftest.err >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } && {
7053 test -z "$ac_c_werror_flag" ||
7054 test ! -s conftest.err
7055 } && test -s conftest.$ac_objext; then
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7061 ac_lo=`expr '(' $ac_mid ')' + 1`
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 ?*) ac_cv_sizeof_signed=$ac_lo;;
7068 '') if test "$ac_cv_type_signed" = yes; then
7069 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7070 See \`config.log' for more details." >&5
7071 echo "$as_me: error: cannot compute sizeof (signed)
7072 See \`config.log' for more details." >&2;}
7073 { (exit 77); exit 77; }; }
7075 ac_cv_sizeof_signed=0
7079 cat >conftest.$ac_ext <<_ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7085 $ac_includes_default
7086 typedef signed ac__type_sizeof_;
7087 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7088 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7095 FILE *f = fopen ("conftest.val", "w");
7098 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7100 long int i = longval ();
7101 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7103 fprintf (f, "%ld\n", i);
7107 unsigned long int i = ulongval ();
7108 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7110 fprintf (f, "%lu\n", i);
7112 return ferror (f) || fclose (f) != 0;
7118 rm -f conftest$ac_exeext
7119 if { (ac_try="$ac_link"
7121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122 *) ac_try_echo=$ac_try;;
7124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125 (eval "$ac_link") 2>&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7129 { (case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134 (eval "$ac_try") 2>&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 ac_cv_sizeof_signed=`cat conftest.val`
7140 echo "$as_me: program exited with status $ac_status" >&5
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7145 if test "$ac_cv_type_signed" = yes; then
7146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7147 See \`config.log' for more details." >&5
7148 echo "$as_me: error: cannot compute sizeof (signed)
7149 See \`config.log' for more details." >&2;}
7150 { (exit 77); exit 77; }; }
7152 ac_cv_sizeof_signed=0
7155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7159 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7160 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
7164 cat >>confdefs.h <<_ACEOF
7165 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7169 { echo "$as_me:$LINENO: checking for signed long long" >&5
7170 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7171 if test "${ac_cv_type_signed_long_long+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 cat >conftest.$ac_ext <<_ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 $ac_includes_default
7181 typedef signed long long ac__type_new_;
7185 if ((ac__type_new_ *) 0)
7187 if (sizeof (ac__type_new_))
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7200 (eval "$ac_compile") 2>conftest.er1
7202 grep -v '^ *+' conftest.er1 >conftest.err
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest.$ac_objext; then
7210 ac_cv_type_signed_long_long=yes
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7215 ac_cv_type_signed_long_long=no
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7221 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7223 # The cast to long int works around a bug in the HP C Compiler
7224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7226 # This bug is HP SR number 8606223364.
7227 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7228 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7229 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 if test "$cross_compiling" = yes; then
7233 # Depending upon the size, compute the lo and hi bounds.
7234 cat >conftest.$ac_ext <<_ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7241 typedef signed long long ac__type_sizeof_;
7245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7252 rm -f conftest.$ac_objext
7253 if { (ac_try="$ac_compile"
7255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256 *) ac_try_echo=$ac_try;;
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7261 grep -v '^ *+' conftest.er1 >conftest.err
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7271 cat >conftest.$ac_ext <<_ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 $ac_includes_default
7278 typedef signed long long ac__type_sizeof_;
7282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7289 rm -f conftest.$ac_objext
7290 if { (ac_try="$ac_compile"
7292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7293 *) ac_try_echo=$ac_try;;
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296 (eval "$ac_compile") 2>conftest.er1
7298 grep -v '^ *+' conftest.er1 >conftest.err
7300 cat conftest.err >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } && {
7303 test -z "$ac_c_werror_flag" ||
7304 test ! -s conftest.err
7305 } && test -s conftest.$ac_objext; then
7306 ac_hi=$ac_mid; break
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7311 ac_lo=`expr $ac_mid + 1`
7312 if test $ac_lo -le $ac_mid; then
7316 ac_mid=`expr 2 '*' $ac_mid + 1`
7319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7325 cat >conftest.$ac_ext <<_ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7331 $ac_includes_default
7332 typedef signed long long ac__type_sizeof_;
7336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7343 rm -f conftest.$ac_objext
7344 if { (ac_try="$ac_compile"
7346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350 (eval "$ac_compile") 2>conftest.er1
7352 grep -v '^ *+' conftest.er1 >conftest.err
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest.$ac_objext; then
7362 cat >conftest.$ac_ext <<_ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7368 $ac_includes_default
7369 typedef signed long long ac__type_sizeof_;
7373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7380 rm -f conftest.$ac_objext
7381 if { (ac_try="$ac_compile"
7383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7387 (eval "$ac_compile") 2>conftest.er1
7389 grep -v '^ *+' conftest.er1 >conftest.err
7391 cat conftest.err >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } && {
7394 test -z "$ac_c_werror_flag" ||
7395 test ! -s conftest.err
7396 } && test -s conftest.$ac_objext; then
7397 ac_lo=$ac_mid; break
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 ac_hi=`expr '(' $ac_mid ')' - 1`
7403 if test $ac_mid -le $ac_hi; then
7407 ac_mid=`expr 2 '*' $ac_mid`
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 # Binary search between lo and hi bounds.
7424 while test "x$ac_lo" != "x$ac_hi"; do
7425 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7426 cat >conftest.$ac_ext <<_ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7432 $ac_includes_default
7433 typedef signed long long ac__type_sizeof_;
7437 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7444 rm -f conftest.$ac_objext
7445 if { (ac_try="$ac_compile"
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_compile") 2>conftest.er1
7453 grep -v '^ *+' conftest.er1 >conftest.err
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } && {
7458 test -z "$ac_c_werror_flag" ||
7459 test ! -s conftest.err
7460 } && test -s conftest.$ac_objext; then
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7466 ac_lo=`expr '(' $ac_mid ')' + 1`
7469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7473 '') if test "$ac_cv_type_signed_long_long" = yes; then
7474 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7475 See \`config.log' for more details." >&5
7476 echo "$as_me: error: cannot compute sizeof (signed long long)
7477 See \`config.log' for more details." >&2;}
7478 { (exit 77); exit 77; }; }
7480 ac_cv_sizeof_signed_long_long=0
7484 cat >conftest.$ac_ext <<_ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 $ac_includes_default
7491 typedef signed long long ac__type_sizeof_;
7492 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7493 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7500 FILE *f = fopen ("conftest.val", "w");
7503 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7505 long int i = longval ();
7506 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7508 fprintf (f, "%ld\n", i);
7512 unsigned long int i = ulongval ();
7513 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7515 fprintf (f, "%lu\n", i);
7517 return ferror (f) || fclose (f) != 0;
7523 rm -f conftest$ac_exeext
7524 if { (ac_try="$ac_link"
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530 (eval "$ac_link") 2>&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7534 { (case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_try") 2>&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7545 echo "$as_me: program exited with status $ac_status" >&5
7546 echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7550 if test "$ac_cv_type_signed_long_long" = yes; then
7551 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7552 See \`config.log' for more details." >&5
7553 echo "$as_me: error: cannot compute sizeof (signed long long)
7554 See \`config.log' for more details." >&2;}
7555 { (exit 77); exit 77; }; }
7557 ac_cv_sizeof_signed_long_long=0
7560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7564 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7565 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
7569 cat >>confdefs.h <<_ACEOF
7570 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7574 { echo "$as_me:$LINENO: checking for void*" >&5
7575 echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
7576 if test "${ac_cv_type_voidp+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 $ac_includes_default
7586 typedef void* ac__type_new_;
7590 if ((ac__type_new_ *) 0)
7592 if (sizeof (ac__type_new_))
7598 rm -f conftest.$ac_objext
7599 if { (ac_try="$ac_compile"
7601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605 (eval "$ac_compile") 2>conftest.er1
7607 grep -v '^ *+' conftest.er1 >conftest.err
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && {
7612 test -z "$ac_c_werror_flag" ||
7613 test ! -s conftest.err
7614 } && test -s conftest.$ac_objext; then
7615 ac_cv_type_voidp=yes
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 { echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
7626 echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
7628 # The cast to long int works around a bug in the HP C Compiler
7629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7631 # This bug is HP SR number 8606223364.
7632 { echo "$as_me:$LINENO: checking size of void*" >&5
7633 echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
7634 if test "${ac_cv_sizeof_voidp+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 if test "$cross_compiling" = yes; then
7638 # Depending upon the size, compute the lo and hi bounds.
7639 cat >conftest.$ac_ext <<_ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 $ac_includes_default
7646 typedef void* ac__type_sizeof_;
7650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7657 rm -f conftest.$ac_objext
7658 if { (ac_try="$ac_compile"
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7666 grep -v '^ *+' conftest.er1 >conftest.err
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7676 cat >conftest.$ac_ext <<_ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 $ac_includes_default
7683 typedef void* ac__type_sizeof_;
7687 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7694 rm -f conftest.$ac_objext
7695 if { (ac_try="$ac_compile"
7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7701 (eval "$ac_compile") 2>conftest.er1
7703 grep -v '^ *+' conftest.er1 >conftest.err
7705 cat conftest.err >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } && {
7708 test -z "$ac_c_werror_flag" ||
7709 test ! -s conftest.err
7710 } && test -s conftest.$ac_objext; then
7711 ac_hi=$ac_mid; break
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7716 ac_lo=`expr $ac_mid + 1`
7717 if test $ac_lo -le $ac_mid; then
7721 ac_mid=`expr 2 '*' $ac_mid + 1`
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.$ac_ext >&5
7730 cat >conftest.$ac_ext <<_ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 $ac_includes_default
7737 typedef void* ac__type_sizeof_;
7741 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7748 rm -f conftest.$ac_objext
7749 if { (ac_try="$ac_compile"
7751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752 *) ac_try_echo=$ac_try;;
7754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7755 (eval "$ac_compile") 2>conftest.er1
7757 grep -v '^ *+' conftest.er1 >conftest.err
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && {
7762 test -z "$ac_c_werror_flag" ||
7763 test ! -s conftest.err
7764 } && test -s conftest.$ac_objext; then
7767 cat >conftest.$ac_ext <<_ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h. */
7773 $ac_includes_default
7774 typedef void* ac__type_sizeof_;
7778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7785 rm -f conftest.$ac_objext
7786 if { (ac_try="$ac_compile"
7788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789 *) ac_try_echo=$ac_try;;
7791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792 (eval "$ac_compile") 2>conftest.er1
7794 grep -v '^ *+' conftest.er1 >conftest.err
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } && {
7799 test -z "$ac_c_werror_flag" ||
7800 test ! -s conftest.err
7801 } && test -s conftest.$ac_objext; then
7802 ac_lo=$ac_mid; break
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7807 ac_hi=`expr '(' $ac_mid ')' - 1`
7808 if test $ac_mid -le $ac_hi; then
7812 ac_mid=`expr 2 '*' $ac_mid`
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828 # Binary search between lo and hi bounds.
7829 while test "x$ac_lo" != "x$ac_hi"; do
7830 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7831 cat >conftest.$ac_ext <<_ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 $ac_includes_default
7838 typedef void* ac__type_sizeof_;
7842 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7849 rm -f conftest.$ac_objext
7850 if { (ac_try="$ac_compile"
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_compile") 2>conftest.er1
7858 grep -v '^ *+' conftest.er1 >conftest.err
7860 cat conftest.err >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } && {
7863 test -z "$ac_c_werror_flag" ||
7864 test ! -s conftest.err
7865 } && test -s conftest.$ac_objext; then
7868 echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7871 ac_lo=`expr '(' $ac_mid ')' + 1`
7874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 ?*) ac_cv_sizeof_voidp=$ac_lo;;
7878 '') if test "$ac_cv_type_voidp" = yes; then
7879 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
7880 See \`config.log' for more details." >&5
7881 echo "$as_me: error: cannot compute sizeof (void*)
7882 See \`config.log' for more details." >&2;}
7883 { (exit 77); exit 77; }; }
7885 ac_cv_sizeof_voidp=0
7889 cat >conftest.$ac_ext <<_ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 $ac_includes_default
7896 typedef void* ac__type_sizeof_;
7897 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7898 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7905 FILE *f = fopen ("conftest.val", "w");
7908 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7910 long int i = longval ();
7911 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7913 fprintf (f, "%ld\n", i);
7917 unsigned long int i = ulongval ();
7918 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7920 fprintf (f, "%lu\n", i);
7922 return ferror (f) || fclose (f) != 0;
7928 rm -f conftest$ac_exeext
7929 if { (ac_try="$ac_link"
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_link") 2>&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7939 { (case "(($ac_try" in
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944 (eval "$ac_try") 2>&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; }; then
7948 ac_cv_sizeof_voidp=`cat conftest.val`
7950 echo "$as_me: program exited with status $ac_status" >&5
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7955 if test "$ac_cv_type_voidp" = yes; then
7956 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
7957 See \`config.log' for more details." >&5
7958 echo "$as_me: error: cannot compute sizeof (void*)
7959 See \`config.log' for more details." >&2;}
7960 { (exit 77); exit 77; }; }
7962 ac_cv_sizeof_voidp=0
7965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7969 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
7970 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
7974 cat >>confdefs.h <<_ACEOF
7975 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
7982 # Extract the first word of "freetype-config", so it can be a program name with args.
7983 set dummy freetype-config; ac_word=$2
7984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7986 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 case $FREETYPE_CONFIG in
7991 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
7996 for as_dir in $as_dummy
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8002 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8014 if test -n "$FREETYPE_CONFIG"; then
8015 { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8016 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8018 { echo "$as_me:$LINENO: result: no" >&5
8019 echo "${ECHO_T}no" >&6; }
8024 OLDCPPFLAGS="${CPPFLAGS}"
8026 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8027 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8028 else if test -d /usr/include/freetype2; then
8029 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8030 else if test -d /usr/local/include/freetype2; then
8031 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8036 if test "x${FREETYPE_CONFIG}" '=' "x";then
8037 # if we didn't find the freetype-config program, we won't
8038 # know where the libs are expected to be. So just blindly
8039 # try to link against them.
8040 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8041 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8042 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 ac_check_lib_save_LIBS=$LIBS
8046 LIBS="-lfreetype $LIBS"
8047 cat >conftest.$ac_ext <<_ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8054 /* Override any GCC internal prototype to avoid an error.
8055 Use char because int might match the return type of a GCC
8056 builtin and then its argument prototype would still apply. */
8060 char FT_Init_FreeType ();
8064 return FT_Init_FreeType ();
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (ac_try="$ac_link"
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_link") 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest$ac_exeext &&
8086 $as_test_x conftest$ac_exeext; then
8087 ac_cv_lib_freetype_FT_Init_FreeType=yes
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 ac_cv_lib_freetype_FT_Init_FreeType=no
8095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8096 conftest$ac_exeext conftest.$ac_ext
8097 LIBS=$ac_check_lib_save_LIBS
8099 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8100 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8101 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8108 for ac_header in ft2build.h
8110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 ac_res=`eval echo '${'$as_ac_Header'}'`
8118 { echo "$as_me:$LINENO: result: $ac_res" >&5
8119 echo "${ECHO_T}$ac_res" >&6; }
8121 # Is the header compilable?
8122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8124 cat >conftest.$ac_ext <<_ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130 $ac_includes_default
8131 #include <$ac_header>
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_compile") 2>conftest.er1
8142 grep -v '^ *+' conftest.er1 >conftest.err
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } && {
8147 test -z "$ac_c_werror_flag" ||
8148 test ! -s conftest.err
8149 } && test -s conftest.$ac_objext; then
8150 ac_header_compiler=yes
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8155 ac_header_compiler=no
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8160 echo "${ECHO_T}$ac_header_compiler" >&6; }
8162 # Is the header present?
8163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 #include <$ac_header>
8173 if { (ac_try="$ac_cpp conftest.$ac_ext"
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8181 grep -v '^ *+' conftest.er1 >conftest.err
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } >/dev/null && {
8186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8189 ac_header_preproc=yes
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_header_preproc=no
8197 rm -f conftest.err conftest.$ac_ext
8198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8199 echo "${ECHO_T}$ac_header_preproc" >&6; }
8201 # So? What about this header?
8202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8208 ac_header_preproc=yes
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 eval "$as_ac_Header=\$ac_header_preproc"
8233 ac_res=`eval echo '${'$as_ac_Header'}'`
8234 { echo "$as_me:$LINENO: result: $ac_res" >&5
8235 echo "${ECHO_T}$ac_res" >&6; }
8238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8239 cat >>confdefs.h <<_ACEOF
8240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8247 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8249 for ac_header in freetype/freetype.h
8251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 ac_res=`eval echo '${'$as_ac_Header'}'`
8259 { echo "$as_me:$LINENO: result: $ac_res" >&5
8260 echo "${ECHO_T}$ac_res" >&6; }
8262 # Is the header compilable?
8263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8265 cat >conftest.$ac_ext <<_ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8272 #include <$ac_header>
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1 >conftest.err
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_header_compiler=yes
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 ac_header_compiler=no
8299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8301 echo "${ECHO_T}$ac_header_compiler" >&6; }
8303 # Is the header present?
8304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8306 cat >conftest.$ac_ext <<_ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312 #include <$ac_header>
8314 if { (ac_try="$ac_cpp conftest.$ac_ext"
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8322 grep -v '^ *+' conftest.er1 >conftest.err
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } >/dev/null && {
8327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8328 test ! -s conftest.err
8330 ac_header_preproc=yes
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 ac_header_preproc=no
8338 rm -f conftest.err conftest.$ac_ext
8339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8340 echo "${ECHO_T}$ac_header_preproc" >&6; }
8342 # So? What about this header?
8343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8349 ac_header_preproc=yes
8352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 eval "$as_ac_Header=\$ac_header_preproc"
8374 ac_res=`eval echo '${'$as_ac_Header'}'`
8375 { echo "$as_me:$LINENO: result: $ac_res" >&5
8376 echo "${ECHO_T}$ac_res" >&6; }
8379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8380 cat >>confdefs.h <<_ACEOF
8381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8383 HAVE_FREETYPE_FREETYPE_H=1
8390 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8391 "x${FREETYPE_CONFIG}" '!=' "x";then
8392 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8395 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8400 if test "x${HAVE_FREETYPE}" = "x1"; then
8401 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8402 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8404 LIBS="$LIBS -lfreetype"
8407 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8408 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8411 { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8412 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8414 cat > conftest.c << EOF
8415 $HAVE_FT2BUILD_H_DEFINE
8417 #ifdef HAVE_FT2BUILD_H
8418 #include <ft2build.h>
8419 #include FT_FREETYPE_H
8422 #include FT_SFNT_NAMES_H
8423 #include FT_TRUETYPE_IDS_H
8424 #include FT_OUTLINE_H
8426 #include <freetype/freetype.h>
8427 #include <freetype/ftglyph.h>
8428 #include <freetype/ftsizes.h>
8429 #include <freetype/ftsnames.h>
8430 #include <freetype/ttnameid.h>
8431 #include <freetype/ftoutln.h>
8436 FT_Library ftlibrary;
8448 FT_Init_FreeType(&ftlibrary);
8449 FT_New_Face(ftlibrary, "filename", 0, &face);
8450 i = face->num_glyphs - 1;
8451 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8452 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8453 FT_Get_Postscript_Name(face);
8454 FT_Get_Char_Index(face, 33);
8455 FT_Get_First_Char(face, &i);
8456 FT_Get_Next_Char(face, 33, &i);
8457 if(FT_HAS_GLYPH_NAMES(face)) {
8458 FT_Get_Glyph_Name(face, 33, name, 127);
8460 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8461 FT_Get_Glyph(face->glyph, &glyph);
8462 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8463 FT_Done_Glyph(glyph);
8465 FT_Done_FreeType(ftlibrary);
8470 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8471 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8472 { echo "$as_me:$LINENO: result: yes" >&5
8473 echo "${ECHO_T}yes" >&6; }
8475 cat >>confdefs.h <<\_ACEOF
8476 #define HAVE_FREETYPE 1
8480 cat >>confdefs.h <<\_ACEOF
8481 #define HAVE_FREETYPE_FREETYPE_H 1
8485 cat >>confdefs.h <<\_ACEOF
8486 #define USE_FREETYPE 1
8490 echo "configure: failed program was:" >&5
8493 { echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6; }
8499 # if the above didn't work out, reset all changes to the compiler variables.
8500 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8501 CPPFLAGS=$OLDCPPFLAGS
8507 OLDCPPFLAGS="${CPPFLAGS}"
8510 if test -d /usr/include/fontconfig; then
8511 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8514 { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8515 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; }
8516 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 ac_check_lib_save_LIBS=$LIBS
8520 LIBS="-lfontconfig $LIBS"
8521 cat >conftest.$ac_ext <<_ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8528 /* Override any GCC internal prototype to avoid an error.
8529 Use char because int might match the return type of a GCC
8530 builtin and then its argument prototype would still apply. */
8543 rm -f conftest.$ac_objext conftest$ac_exeext
8544 if { (ac_try="$ac_link"
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_link") 2>conftest.er1
8552 grep -v '^ *+' conftest.er1 >conftest.err
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } && {
8557 test -z "$ac_c_werror_flag" ||
8558 test ! -s conftest.err
8559 } && test -s conftest$ac_exeext &&
8560 $as_test_x conftest$ac_exeext; then
8561 ac_cv_lib_fontconfig_FcInit=yes
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8566 ac_cv_lib_fontconfig_FcInit=no
8569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8570 conftest$ac_exeext conftest.$ac_ext
8571 LIBS=$ac_check_lib_save_LIBS
8573 { echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8574 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; }
8575 if test $ac_cv_lib_fontconfig_FcInit = yes; then
8576 HAVE_LIB_FONTCONFIG=1
8580 for ac_header in fontconfig.h
8582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 ac_res=`eval echo '${'$as_ac_Header'}'`
8590 { echo "$as_me:$LINENO: result: $ac_res" >&5
8591 echo "${ECHO_T}$ac_res" >&6; }
8593 # Is the header compilable?
8594 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8596 cat >conftest.$ac_ext <<_ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8602 $ac_includes_default
8603 #include <$ac_header>
8605 rm -f conftest.$ac_objext
8606 if { (ac_try="$ac_compile"
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_compile") 2>conftest.er1
8614 grep -v '^ *+' conftest.er1 >conftest.err
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && {
8619 test -z "$ac_c_werror_flag" ||
8620 test ! -s conftest.err
8621 } && test -s conftest.$ac_objext; then
8622 ac_header_compiler=yes
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 ac_header_compiler=no
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8632 echo "${ECHO_T}$ac_header_compiler" >&6; }
8634 # Is the header present?
8635 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8637 cat >conftest.$ac_ext <<_ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8643 #include <$ac_header>
8645 if { (ac_try="$ac_cpp conftest.$ac_ext"
8647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8648 *) ac_try_echo=$ac_try;;
8650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8653 grep -v '^ *+' conftest.er1 >conftest.err
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } >/dev/null && {
8658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8659 test ! -s conftest.err
8661 ac_header_preproc=yes
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8666 ac_header_preproc=no
8669 rm -f conftest.err conftest.$ac_ext
8670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8671 echo "${ECHO_T}$ac_header_preproc" >&6; }
8673 # So? What about this header?
8674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8680 ac_header_preproc=yes
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 eval "$as_ac_Header=\$ac_header_preproc"
8705 ac_res=`eval echo '${'$as_ac_Header'}'`
8706 { echo "$as_me:$LINENO: result: $ac_res" >&5
8707 echo "${ECHO_T}$ac_res" >&6; }
8710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8711 cat >>confdefs.h <<_ACEOF
8712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8720 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8721 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8726 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8727 LIBS="$LIBS -lfontconfig"
8728 { echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8729 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6; }
8731 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8732 #move freetype library to the end of libraries, otherwise fontconfig
8734 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8737 cat > conftest.c << EOF
8739 #include <fontconfig.h>
8743 FcPattern *pattern, *match;
8746 char*s1="abc",*s2="ABC";
8749 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8750 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8751 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8753 FcConfig*c = FcConfigCreate();
8754 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8755 FcConfigBuildFonts(c);
8756 FcConfigSetCurrent(c);
8758 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
8759 FcFontSetDestroy(set);
8761 FcConfigSubstitute(0, pattern, FcMatchPattern);
8762 FcDefaultSubstitute(pattern);
8763 match = FcFontMatch(0, pattern, &result);
8764 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8765 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8766 FcPatternPrint(pattern);
8767 FcPatternDestroy(pattern);
8768 FcPatternDestroy(match);
8774 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8775 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8776 { echo "$as_me:$LINENO: result: yes" >&5
8777 echo "${ECHO_T}yes" >&6; }
8779 cat >>confdefs.h <<\_ACEOF
8780 #define HAVE_FONTCONFIG 1
8784 echo "configure: failed program was:" >&5
8787 { echo "$as_me:$LINENO: result: no" >&5
8788 echo "${ECHO_T}no" >&6; }
8793 # if the above didn't work out, reset all changes to the compiler variables.
8794 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
8795 CPPFLAGS=$OLDCPPFLAGS
8801 OLDCPPFLAGS="${CPPFLAGS}"
8805 { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
8806 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
8807 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 ac_check_lib_save_LIBS=$LIBS
8812 cat >conftest.$ac_ext <<_ACEOF
8815 cat confdefs.h >>conftest.$ac_ext
8816 cat >>conftest.$ac_ext <<_ACEOF
8817 /* end confdefs.h. */
8819 /* Override any GCC internal prototype to avoid an error.
8820 Use char because int might match the return type of a GCC
8821 builtin and then its argument prototype would still apply. */
8834 rm -f conftest.$ac_objext conftest$ac_exeext
8835 if { (ac_try="$ac_link"
8837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838 *) ac_try_echo=$ac_try;;
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_link") 2>conftest.er1
8843 grep -v '^ *+' conftest.er1 >conftest.err
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } && {
8848 test -z "$ac_c_werror_flag" ||
8849 test ! -s conftest.err
8850 } && test -s conftest$ac_exeext &&
8851 $as_test_x conftest$ac_exeext; then
8852 ac_cv_lib_GL_glBegin=yes
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8857 ac_cv_lib_GL_glBegin=no
8860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8861 conftest$ac_exeext conftest.$ac_ext
8862 LIBS=$ac_check_lib_save_LIBS
8864 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
8865 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
8866 if test $ac_cv_lib_GL_glBegin = yes; then
8867 cat >>confdefs.h <<_ACEOF
8868 #define HAVE_LIBGL 1
8876 { echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
8877 echo $ECHO_N "checking for gluBeginSurface in -lGLU... $ECHO_C" >&6; }
8878 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 ac_check_lib_save_LIBS=$LIBS
8883 cat >conftest.$ac_ext <<_ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8890 /* Override any GCC internal prototype to avoid an error.
8891 Use char because int might match the return type of a GCC
8892 builtin and then its argument prototype would still apply. */
8896 char gluBeginSurface ();
8900 return gluBeginSurface ();
8905 rm -f conftest.$ac_objext conftest$ac_exeext
8906 if { (ac_try="$ac_link"
8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909 *) ac_try_echo=$ac_try;;
8911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8912 (eval "$ac_link") 2>conftest.er1
8914 grep -v '^ *+' conftest.er1 >conftest.err
8916 cat conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } && {
8919 test -z "$ac_c_werror_flag" ||
8920 test ! -s conftest.err
8921 } && test -s conftest$ac_exeext &&
8922 $as_test_x conftest$ac_exeext; then
8923 ac_cv_lib_GLU_gluBeginSurface=yes
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 ac_cv_lib_GLU_gluBeginSurface=no
8931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8932 conftest$ac_exeext conftest.$ac_ext
8933 LIBS=$ac_check_lib_save_LIBS
8935 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
8936 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginSurface" >&6; }
8937 if test $ac_cv_lib_GLU_gluBeginSurface = yes; then
8938 cat >>confdefs.h <<_ACEOF
8939 #define HAVE_LIBGLU 1
8947 { echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
8948 echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6; }
8949 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 ac_check_lib_save_LIBS=$LIBS
8954 cat >conftest.$ac_ext <<_ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8961 /* Override any GCC internal prototype to avoid an error.
8962 Use char because int might match the return type of a GCC
8963 builtin and then its argument prototype would still apply. */
8976 rm -f conftest.$ac_objext conftest$ac_exeext
8977 if { (ac_try="$ac_link"
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983 (eval "$ac_link") 2>conftest.er1
8985 grep -v '^ *+' conftest.er1 >conftest.err
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && {
8990 test -z "$ac_c_werror_flag" ||
8991 test ! -s conftest.err
8992 } && test -s conftest$ac_exeext &&
8993 $as_test_x conftest$ac_exeext; then
8994 ac_cv_lib_glut_glutInit=yes
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 ac_cv_lib_glut_glutInit=no
9002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9003 conftest$ac_exeext conftest.$ac_ext
9004 LIBS=$ac_check_lib_save_LIBS
9006 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
9007 echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6; }
9008 if test $ac_cv_lib_glut_glutInit = yes; then
9009 cat >>confdefs.h <<_ACEOF
9010 #define HAVE_LIBGLUT 1
9019 for ac_header in GL/gl.h GL/glut.h
9021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 ac_res=`eval echo '${'$as_ac_Header'}'`
9029 { echo "$as_me:$LINENO: result: $ac_res" >&5
9030 echo "${ECHO_T}$ac_res" >&6; }
9032 # Is the header compilable?
9033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9035 cat >conftest.$ac_ext <<_ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9041 $ac_includes_default
9042 #include <$ac_header>
9044 rm -f conftest.$ac_objext
9045 if { (ac_try="$ac_compile"
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_compile") 2>conftest.er1
9053 grep -v '^ *+' conftest.er1 >conftest.err
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } && {
9058 test -z "$ac_c_werror_flag" ||
9059 test ! -s conftest.err
9060 } && test -s conftest.$ac_objext; then
9061 ac_header_compiler=yes
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9066 ac_header_compiler=no
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9071 echo "${ECHO_T}$ac_header_compiler" >&6; }
9073 # Is the header present?
9074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9076 cat >conftest.$ac_ext <<_ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h. */
9082 #include <$ac_header>
9084 if { (ac_try="$ac_cpp conftest.$ac_ext"
9086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9087 *) ac_try_echo=$ac_try;;
9089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9092 grep -v '^ *+' conftest.er1 >conftest.err
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } >/dev/null && {
9097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9098 test ! -s conftest.err
9100 ac_header_preproc=yes
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9105 ac_header_preproc=no
9108 rm -f conftest.err conftest.$ac_ext
9109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9110 echo "${ECHO_T}$ac_header_preproc" >&6; }
9112 # So? What about this header?
9113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9119 ac_header_preproc=yes
9122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
9142 eval "$as_ac_Header=\$ac_header_preproc"
9144 ac_res=`eval echo '${'$as_ac_Header'}'`
9145 { echo "$as_me:$LINENO: result: $ac_res" >&5
9146 echo "${ECHO_T}$ac_res" >&6; }
9149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9150 cat >>confdefs.h <<_ACEOF
9151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9159 cat > conftest.c << EOF
9162 #include <GL/glut.h>
9164 int main(int argc, char*argv)
9166 glutInit(&argc, argv);
9167 glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
9168 glutInitWindowSize(320,200);
9169 glutInitWindowPosition(0,0);
9170 glutCreateWindow("main");
9171 glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
9172 glShadeModel(GL_SMOOTH);
9173 glEnable (GL_LINE_SMOOTH);
9174 glEnable (GL_POLYGON_SMOOTH);
9175 glEnable (GL_BLEND);
9176 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
9177 glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
9178 glHint (GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
9182 { echo "$as_me:$LINENO: checking whether we can compile the opengl test program" >&5
9183 echo $ECHO_N "checking whether we can compile the opengl test program... $ECHO_C" >&6; }
9185 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9186 if { (eval echo opengl.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9187 { echo "$as_me:$LINENO: result: yes" >&5
9188 echo "${ECHO_T}yes" >&6; }
9191 cat >>confdefs.h <<\_ACEOF
9192 #define HAVE_OPENGL 1
9196 echo "configure: failed program was:" >&5
9199 { echo "$as_me:$LINENO: result: no" >&5
9200 echo "${ECHO_T}no" >&6; }
9204 # if the above didn't work out, reset all changes to the compiler variables.
9205 if test "x${HAVE_OPENGL}" "!=" "x1"; then
9206 CPPFLAGS=$OLDCPPFLAGS
9210 if test "$HAVE_OPENGL";then
9211 DEVICE_OPENGL='devices/opengl.$(O)'
9217 if test "x${DISABLE_LAME}" = "xtrue"; then
9218 echo "*" Disabling lame support...
9220 # old lame code at lib/lame
9221 if test -f lib/lame/Makefile.in; then
9222 lame_in_source='$(lame_objects)'
9223 lame_makefile="lib/lame/Makefile"
9224 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9226 cat >>confdefs.h <<\_ACEOF
9231 if test -d /usr/include/lame; then
9232 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9234 if test -d /usr/local/include/lame; then
9235 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9239 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9240 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
9241 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 ac_check_lib_save_LIBS=$LIBS
9245 LIBS="-lmp3lame $LIBS"
9246 cat >conftest.$ac_ext <<_ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9253 /* Override any GCC internal prototype to avoid an error.
9254 Use char because int might match the return type of a GCC
9255 builtin and then its argument prototype would still apply. */
9263 return lame_init ();
9268 rm -f conftest.$ac_objext conftest$ac_exeext
9269 if { (ac_try="$ac_link"
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_link") 2>conftest.er1
9277 grep -v '^ *+' conftest.er1 >conftest.err
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } && {
9282 test -z "$ac_c_werror_flag" ||
9283 test ! -s conftest.err
9284 } && test -s conftest$ac_exeext &&
9285 $as_test_x conftest$ac_exeext; then
9286 ac_cv_lib_mp3lame_lame_init=yes
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_cv_lib_mp3lame_lame_init=no
9294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9295 conftest$ac_exeext conftest.$ac_ext
9296 LIBS=$ac_check_lib_save_LIBS
9298 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9299 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
9300 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9301 cat >>confdefs.h <<_ACEOF
9302 #define HAVE_LIBMP3LAME 1
9305 LIBS="-lmp3lame $LIBS"
9313 for ac_header in lame.h
9315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 ac_res=`eval echo '${'$as_ac_Header'}'`
9323 { echo "$as_me:$LINENO: result: $ac_res" >&5
9324 echo "${ECHO_T}$ac_res" >&6; }
9326 # Is the header compilable?
9327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9329 cat >conftest.$ac_ext <<_ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 $ac_includes_default
9336 #include <$ac_header>
9338 rm -f conftest.$ac_objext
9339 if { (ac_try="$ac_compile"
9341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342 *) ac_try_echo=$ac_try;;
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345 (eval "$ac_compile") 2>conftest.er1
9347 grep -v '^ *+' conftest.er1 >conftest.err
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } && {
9352 test -z "$ac_c_werror_flag" ||
9353 test ! -s conftest.err
9354 } && test -s conftest.$ac_objext; then
9355 ac_header_compiler=yes
9357 echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9360 ac_header_compiler=no
9363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9365 echo "${ECHO_T}$ac_header_compiler" >&6; }
9367 # Is the header present?
9368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9370 cat >conftest.$ac_ext <<_ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9376 #include <$ac_header>
9378 if { (ac_try="$ac_cpp conftest.$ac_ext"
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9386 grep -v '^ *+' conftest.er1 >conftest.err
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } >/dev/null && {
9391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9392 test ! -s conftest.err
9394 ac_header_preproc=yes
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9399 ac_header_preproc=no
9402 rm -f conftest.err conftest.$ac_ext
9403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9404 echo "${ECHO_T}$ac_header_preproc" >&6; }
9406 # So? What about this header?
9407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9413 ac_header_preproc=yes
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 eval "$as_ac_Header=\$ac_header_preproc"
9438 ac_res=`eval echo '${'$as_ac_Header'}'`
9439 { echo "$as_me:$LINENO: result: $ac_res" >&5
9440 echo "${ECHO_T}$ac_res" >&6; }
9443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9444 cat >>confdefs.h <<_ACEOF
9445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9452 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9453 cat >>confdefs.h <<\_ACEOF
9463 cat >>confdefs.h <<\_ACEOF
9464 #define INTERNAL_LIBART 1
9467 art_in_source='$(art_objects)'
9468 splash_in_source='$(splash_objects)'
9469 xpdf_in_source='$(xpdf_objects)'
9476 # ------------------------------------------------------------------
9480 for ac_prog in avifile-config
9482 # Extract the first word of "$ac_prog", so it can be a program name with args.
9483 set dummy $ac_prog; ac_word=$2
9484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9486 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 if test -n "$AVIFILE_CONFIG"; then
9490 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496 test -z "$as_dir" && as_dir=.
9497 for ac_exec_ext in '' $ac_executable_extensions; do
9498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9499 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9509 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9510 if test -n "$AVIFILE_CONFIG"; then
9511 { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9512 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
9514 { echo "$as_me:$LINENO: result: no" >&5
9515 echo "${ECHO_T}no" >&6; }
9519 test -n "$AVIFILE_CONFIG" && break
9523 if test "x$AVIFILE_CONFIG" '!=' "x";then
9524 OLDCPPFLAGS="$CPPFLAGS"
9525 # temporarily add avifile paths to CPPFLAGS...
9526 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9529 for ac_header in avifile/version.h version.h
9531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 ac_res=`eval echo '${'$as_ac_Header'}'`
9539 { echo "$as_me:$LINENO: result: $ac_res" >&5
9540 echo "${ECHO_T}$ac_res" >&6; }
9542 # Is the header compilable?
9543 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9545 cat >conftest.$ac_ext <<_ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9551 $ac_includes_default
9552 #include <$ac_header>
9554 rm -f conftest.$ac_objext
9555 if { (ac_try="$ac_compile"
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_compile") 2>conftest.er1
9563 grep -v '^ *+' conftest.er1 >conftest.err
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } && {
9568 test -z "$ac_c_werror_flag" ||
9569 test ! -s conftest.err
9570 } && test -s conftest.$ac_objext; then
9571 ac_header_compiler=yes
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ac_header_compiler=no
9579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9581 echo "${ECHO_T}$ac_header_compiler" >&6; }
9583 # Is the header present?
9584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9586 cat >conftest.$ac_ext <<_ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9592 #include <$ac_header>
9594 if { (ac_try="$ac_cpp conftest.$ac_ext"
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9602 grep -v '^ *+' conftest.er1 >conftest.err
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } >/dev/null && {
9607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9608 test ! -s conftest.err
9610 ac_header_preproc=yes
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9615 ac_header_preproc=no
9618 rm -f conftest.err conftest.$ac_ext
9619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9620 echo "${ECHO_T}$ac_header_preproc" >&6; }
9622 # So? What about this header?
9623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9629 ac_header_preproc=yes
9632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 eval "$as_ac_Header=\$ac_header_preproc"
9654 ac_res=`eval echo '${'$as_ac_Header'}'`
9655 { echo "$as_me:$LINENO: result: $ac_res" >&5
9656 echo "${ECHO_T}$ac_res" >&6; }
9659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9660 cat >>confdefs.h <<_ACEOF
9661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9669 CPPFLAGS="$OLDCPPFLAGS"
9672 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9673 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
9675 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9676 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9678 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9679 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9682 cat > conftest.cpp << EOF
9684 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9685 // so we have to introduce them this way
9686 $HAVE_VERSION_H_DEFINE
9687 $HAVE_AVIFILE_VERSION_H_DEFINE
9689 #ifdef HAVE_VERSION_H
9690 #include <version.h>
9692 #ifdef HAVE_AVIFILE_VERSION_H
9693 #include <avifile/version.h>
9696 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9697 #include <avifile.h>
9698 #include <aviplay.h>
9699 #include <avm_fourcc.h>
9700 #include <avm_creators.h>
9701 #include <StreamInfo.h>
9704 #include <avifile.h>
9705 #include <aviplay.h>
9706 #include <aviutil.h>
9708 #define Height height
9715 IAviReadFile* player;
9716 IAviReadStream* astream;
9717 IAviReadStream* vstream;
9718 player = CreateIAviReadFile(0);
9719 astream = player->GetStream(0, AviStream::Audio);
9720 vstream = player->GetStream(0, AviStream::Video);
9721 vstream -> StartStreaming();
9722 astream -> StartStreaming();
9725 player->GetFileHeader(&head);
9726 head.dwMicroSecPerFrame;
9731 head.dwMicroSecPerFrame;
9732 astream->GetEndPos(),
9733 astream->GetEndTime());
9734 player->StreamCount();
9736 StreamInfo*audioinfo;
9737 StreamInfo*videoinfo;
9738 audioinfo = astream->GetStreamInfo();
9739 videoinfo = vstream->GetStreamInfo();
9740 videoinfo->GetVideoWidth();
9741 videoinfo->GetVideoHeight();
9742 audioinfo->GetAudioSamplesPerSec();
9743 videoinfo->GetFps();
9745 CImage*img = vstream->GetFrame();
9752 astream->GetAudioFormatInfo(&wave,0);
9754 astream->ReadFrames(0,0,0,a,b);
9756 int main (int argc, char*argv)
9762 if test "x$AVIFILE_CONFIG" '!=' "x";then
9763 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9764 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9765 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9766 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9767 { echo "$as_me:$LINENO: result: yes" >&5
9768 echo "${ECHO_T}yes" >&6; }
9772 cat >>confdefs.h <<\_ACEOF
9773 #define AVIFILE true
9777 echo "configure: failed program was:" >&5
9778 cat conftest.cpp >&5
9779 { echo "$as_me:$LINENO: result: no" >&5
9780 echo "${ECHO_T}no" >&6; }
9783 { echo "$as_me:$LINENO: result: no" >&5
9784 echo "${ECHO_T}no" >&6; }
9788 if test "x${AVIFILE}" = "xtrue"; then
9789 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9790 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9792 cat >>confdefs.h <<\_ACEOF
9793 #define HAVE_AVIFILE 1
9798 if test "x${WIN32}" != "x"; then
9799 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9800 #if test "x${AVIFIL32}" != "x"; then
9801 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9803 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9809 # ------------------------------------------------------------------
9811 if test "x${UNCOMPRESS}" = "xgzip"; then
9813 cat >>confdefs.h <<\_ACEOF
9820 # ------------------------------------------------------------------
9823 { echo "$as_me:$LINENO: checking for Python.h" >&5
9824 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
9826 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9829 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9830 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9832 # iterate through version 2.2 to 2.6
9833 for v in 2 3 4 5 6; do
9835 if test -f "/usr/include/python2.$v/Python.h";then
9837 PYTHON_LIB="-lpython$PY_VERSION"
9838 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9839 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9840 HAVE_PYTHON_IMAGING_LIB=1
9842 PYTHON_LIB2="$PYTHON_LIB"
9844 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9846 elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9848 PYTHON_LIB="-framework Python"
9849 if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
9850 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9851 HAVE_PYTHON_IMAGING_LIB=1
9853 PYTHON_LIB2="$PYTHON_LIB"
9855 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9857 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9858 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9859 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9861 -a -f "/sw/include/python2.$v/Python.h"; then
9863 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9864 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9865 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9866 HAVE_PYTHON_IMAGING_LIB=1
9868 PYTHON_LIB2="$PYTHON_LIB"
9870 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9875 if test "x$PY_VERSION" "!=" "x"; then
9876 { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9877 echo "${ECHO_T}$PY_VERSION" >&6; }
9878 export PYTHON_INCLUDES PYTHON_LIB
9881 { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9882 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
9884 cat > conftest.c << EOF
9890 ret = Py_Main(0, 0);
9891 int x; // check also for gcc 2.95.x incompatibilities
9896 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9897 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9898 { echo "$as_me:$LINENO: result: yes" >&5
9899 echo "${ECHO_T}yes" >&6; }
9902 echo "configure: failed program was:" >&5
9904 { echo "$as_me:$LINENO: result: no" >&5
9905 echo "${ECHO_T}no" >&6; }
9908 if test "x$PYTHON_OK" = "xyes";then
9909 { echo "$as_me:$LINENO: checking for Python-Imaging" >&5
9910 echo $ECHO_N "checking for Python-Imaging... $ECHO_C" >&6; }
9911 cat > conftest.c << EOF
9913 #include <Imaging.h>
9921 if test "$HAVE_PYTHON_IMAGING_LIB"; then
9922 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9923 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9924 PYTHON_LIB="${PYTHON_LIB2}"
9926 cat >>confdefs.h <<\_ACEOF
9927 #define HAVE_PYTHON_IMAGING 1
9930 HAVE_PYTHON_IMAGING=yes
9931 export HAVE_PYTHON_IMAGING
9933 { echo "$as_me:$LINENO: result: yes" >&5
9934 echo "${ECHO_T}yes" >&6; }
9936 echo "configure: failed program was:" >&5
9938 { echo "$as_me:$LINENO: result: no" >&5
9939 echo "${ECHO_T}no" >&6; }
9942 echo "(didn't find the Python-Imaging libraries)" >&5
9943 { echo "$as_me:$LINENO: result: no" >&5
9944 echo "${ECHO_T}no" >&6; }
9949 { echo "$as_me:$LINENO: result: nope" >&5
9950 echo "${ECHO_T}nope" >&6; }
9954 if test "x$PYTHON_OK" '!=' "xyes";then
9955 echo all install uninstall clean: > lib/python/Makefile
9956 # fail silently- the most users won't have any need for the
9957 # python interface anyway
9959 pythonrfxswf="lib/python/Makefile"
9962 # ------------------------------------------------------------------
9964 { echo "$as_me:$LINENO: checking for missing libraries" >&5
9965 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
9967 if test "x$ZLIBMISSING" = "xtrue";then
9968 MISSINGLIBS="${MISSINGLIBS} zlib"
9972 if test "x$JPEGLIBMISSING" = "xtrue";then
9973 MISSINGLIBS="${MISSINGLIBS} jpeglib"
9975 DISABLEJPEG2SWF=true
9978 #if test "x$T1LIBMISSING" = "xtrue";then
9979 # MISSINGLIBS="${MISSINGLIBS} t1lib"
9981 if test "x$UNGIFMISSING" = "xtrue";then
9983 MISSINGLIBS="${MISSINGLIBS} ungif"
9987 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
9988 DISABLEPDF2SWF=true;
9989 DISABLEJPEG2SWF=true;
9990 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9993 if test "x$HAVE_FREETYPE" '!=' "x1"; then
9994 DISABLEPDF2SWF=true;
9995 MISSINGLIBS="${MISSINGLIBS} freetype"
9998 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
9999 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10001 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10002 DISABLEGIF2SWF=true
10003 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10006 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10007 DISABLEPNG2SWF=true;
10008 MISSINGLIBS="${MISSINGLIBS} zlib.h"
10011 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10012 # MISSINGLIBS="${MISSINGLIBS} avifile"
10015 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10016 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
10018 # ------------------------------------------------------------------
10020 if test "x${MISSINGLIBS}" '!=' "x"; then
10021 echo "***************************************************"
10022 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10025 avi2swf="avi2swf/Makefile"
10026 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10027 #don't whine, avi2swf is outdated anyway
10028 #echo "* Disabling avi2swf tool..."
10029 echo all install uninstall clean: > avi2swf/Makefile
10033 pdf2swf_makefile="lib/pdf/Makefile"
10034 PDF2SWF='pdf2swf$(E)'
10035 LIBPDF='libpdf$(A)'
10037 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10038 echo "* Disabling pdf2swf tool..."
10039 rm -f lib/pdf/Makefile
10040 echo all install uninstall clean libpdf: > lib/pdf/Makefile
10041 pdf2swf_makefile=""
10048 if test "x${ZLIBMISSING}" = "xtrue"; then
10050 echo "* Warning! Without zlib, you will not be able to read"
10051 echo "* or write compressed Flash MX files!"
10054 JPEG2SWF='jpeg2swf$(E)'
10055 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10056 echo "* Disabling jpeg2swf tool..."
10062 GIF2SWF='gif2swf$(E)'
10063 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10064 echo "* Disabling gif2swf tool..."
10070 PNG2SWF='png2swf$(E)'
10071 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10072 echo "* Disabling png2swf tool..."
10078 if test "x${MISSINGLIBS}" '!=' "x"; then
10079 if test "x${PARTIAL}" '=' "x"; then
10080 echo "* (never mind)"
10082 echo "***************************************************"
10085 # ------------------------------------------------------------------
10093 if test -f "release.in"; then release_in="./release"; fi
10094 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10095 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/readers/Makefile"
10096 ac_config_files="$ac_config_files ${FILES}"
10098 cat >confcache <<\_ACEOF
10099 # This file is a shell script that caches the results of configure
10100 # tests run on this system so they can be shared between configure
10101 # scripts and configure runs, see configure's option --config-cache.
10102 # It is not useful on other systems. If it contains results you don't
10103 # want to keep, you may remove or edit it.
10105 # config.status only pays attention to the cache file if you give it
10106 # the --recheck option to rerun configure.
10108 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10109 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10110 # following values.
10114 # The following way of writing the cache mishandles newlines in values,
10115 # but we know of no workaround that is simple, portable, and efficient.
10116 # So, we kill variables containing newlines.
10117 # Ultrix sh set writes to stderr and can't be redirected directly,
10118 # and sets the high bit in the cache file unless we assign to the vars.
10120 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10121 eval ac_val=\$$ac_var
10125 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10126 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10129 _ | IFS | as_nl) ;; #(
10130 *) $as_unset $ac_var ;;
10136 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10137 *${as_nl}ac_space=\ *)
10138 # `set' does not quote correctly, so add quotes (double-quote
10139 # substitution turns \\\\ into \\, and sed turns \\ into \).
10142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10145 # `set' quotes correctly as required by POSIX, so do not add quotes.
10146 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10155 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10157 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10159 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10160 if test -w "$cache_file"; then
10161 test "x$cache_file" != "x/dev/null" &&
10162 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10163 echo "$as_me: updating cache $cache_file" >&6;}
10164 cat confcache >$cache_file
10166 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10167 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10172 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10173 # Let make expand exec_prefix.
10174 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10176 DEFS=-DHAVE_CONFIG_H
10180 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10181 # 1. Remove the extension, and $U if already installed.
10182 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10183 ac_i=`echo "$ac_i" | sed "$ac_script"`
10184 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10185 # will be set to the directory where LIBOBJS objects are built.
10186 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10187 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10189 LIBOBJS=$ac_libobjs
10191 LTLIBOBJS=$ac_ltlibobjs
10195 : ${CONFIG_STATUS=./config.status}
10196 ac_clean_files_save=$ac_clean_files
10197 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10198 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10199 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10200 cat >$CONFIG_STATUS <<_ACEOF
10202 # Generated by $as_me.
10203 # Run this file to recreate the current configuration.
10204 # Compiler output produced by configure, useful for debugging
10205 # configure, is in config.log if it exists.
10208 ac_cs_recheck=false
10210 SHELL=\${CONFIG_SHELL-$SHELL}
10213 cat >>$CONFIG_STATUS <<\_ACEOF
10214 ## --------------------- ##
10215 ## M4sh Initialization. ##
10216 ## --------------------- ##
10218 # Be more Bourne compatible
10219 DUALCASE=1; export DUALCASE # for MKS sh
10220 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10223 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10224 # is contrary to our usage. Disable this feature.
10225 alias -g '${1+"$@"}'='"$@"'
10226 setopt NO_GLOB_SUBST
10228 case `(set -o) 2>/dev/null` in
10229 *posix*) set -o posix ;;
10238 # Avoid depending upon Character Ranges.
10239 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10240 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10241 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10242 as_cr_digits='0123456789'
10243 as_cr_alnum=$as_cr_Letters$as_cr_digits
10245 # The user is always right.
10246 if test "${PATH_SEPARATOR+set}" != set; then
10247 echo "#! /bin/sh" >conf$$.sh
10248 echo "exit 0" >>conf$$.sh
10250 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10258 # Support unset when possible.
10259 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10267 # We need space, tab and new line, in precisely that order. Quoting is
10268 # there to prevent editors from complaining about space-tab.
10269 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10270 # splitting by setting IFS to empty value.)
10275 # Find who we are. Look in the path if we contain no directory separator.
10277 *[\\/]* ) as_myself=$0 ;;
10278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279 for as_dir in $PATH
10282 test -z "$as_dir" && as_dir=.
10283 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10289 # We did not find ourselves, most probably we were run as `sh COMMAND'
10290 # in which case we are not to be found in the path.
10291 if test "x$as_myself" = x; then
10294 if test ! -f "$as_myself"; then
10295 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10296 { (exit 1); exit 1; }
10299 # Work around bugs in pre-3.0 UWIN ksh.
10300 for as_var in ENV MAIL MAILPATH
10301 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10309 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10310 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10311 LC_TELEPHONE LC_TIME
10313 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10314 eval $as_var=C; export $as_var
10316 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10320 # Required to use basename.
10321 if expr a : '\(a\)' >/dev/null 2>&1 &&
10322 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10328 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10329 as_basename=basename
10335 # Name of the executable.
10336 as_me=`$as_basename -- "$0" ||
10337 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10338 X"$0" : 'X\(//\)$' \| \
10339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10341 sed '/^.*\/\([^/][^/]*\)\/*$/{
10360 as_lineno_1=$LINENO
10361 as_lineno_2=$LINENO
10362 test "x$as_lineno_1" != "x$as_lineno_2" &&
10363 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10365 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10366 # uniformly replaced by the line number. The first 'sed' inserts a
10367 # line-number line after each line using $LINENO; the second 'sed'
10368 # does the real work. The second script uses 'N' to pair each
10369 # line-number line with the line containing $LINENO, and appends
10370 # trailing '-' during substitution so that $LINENO is not a special
10371 # case at line end.
10372 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10373 # scripts with optimization help from Paolo Bonzini. Blame Lee
10374 # E. McMahon (1931-1989) for sed's syntax. :-)
10386 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10389 ' >$as_me.lineno &&
10390 chmod +x "$as_me.lineno" ||
10391 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10392 { (exit 1); exit 1; }; }
10394 # Don't try to exec as it changes $[0], causing all sort of problems
10395 # (the dirname of $[0] is not the place where we might find the
10396 # original and so on. Autoconf is especially sensitive to this).
10397 . "./$as_me.lineno"
10398 # Exit status is that of the last command.
10403 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10409 ECHO_C= ECHO_N= ECHO_T=
10410 case `echo -n x` in
10412 case `echo 'x\c'` in
10413 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10420 if expr a : '\(a\)' >/dev/null 2>&1 &&
10421 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10427 rm -f conf$$ conf$$.exe conf$$.file
10428 if test -d conf$$.dir; then
10429 rm -f conf$$.dir/conf$$.file
10435 if ln -s conf$$.file conf$$ 2>/dev/null; then
10437 # ... but there are two gotchas:
10438 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10439 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10440 # In both cases, we have to default to `cp -p'.
10441 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10443 elif ln conf$$.file conf$$ 2>/dev/null; then
10448 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10449 rmdir conf$$.dir 2>/dev/null
10451 if mkdir -p . 2>/dev/null; then
10454 test -d ./-p && rmdir ./-p
10458 if test -x / >/dev/null 2>&1; then
10459 as_test_x='test -x'
10461 if ls -dL / >/dev/null 2>&1; then
10468 if test -d "$1"; then
10474 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10475 ???[sx]*):;;*)false;;esac;fi
10479 as_executable_p=$as_test_x
10481 # Sed expression to map a string onto a valid CPP name.
10482 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10484 # Sed expression to map a string onto a valid variable name.
10485 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10490 # Save the log message, to keep $[0] and so on meaningful, and to
10491 # report actual input values of CONFIG_FILES etc. instead of their
10492 # values after options handling.
10494 This file was extended by $as_me, which was
10495 generated by GNU Autoconf 2.61. Invocation command line was
10497 CONFIG_FILES = $CONFIG_FILES
10498 CONFIG_HEADERS = $CONFIG_HEADERS
10499 CONFIG_LINKS = $CONFIG_LINKS
10500 CONFIG_COMMANDS = $CONFIG_COMMANDS
10503 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10508 cat >>$CONFIG_STATUS <<_ACEOF
10509 # Files that config.status was made for.
10510 config_files="$ac_config_files"
10511 config_headers="$ac_config_headers"
10515 cat >>$CONFIG_STATUS <<\_ACEOF
10517 \`$as_me' instantiates files from templates according to the
10518 current configuration.
10520 Usage: $0 [OPTIONS] [FILE]...
10522 -h, --help print this help, then exit
10523 -V, --version print version number and configuration settings, then exit
10524 -q, --quiet do not print progress messages
10525 -d, --debug don't remove temporary files
10526 --recheck update $as_me by reconfiguring in the same conditions
10527 --file=FILE[:TEMPLATE]
10528 instantiate the configuration file FILE
10529 --header=FILE[:TEMPLATE]
10530 instantiate the configuration header FILE
10532 Configuration files:
10535 Configuration headers:
10538 Report bugs to <bug-autoconf@gnu.org>."
10541 cat >>$CONFIG_STATUS <<_ACEOF
10544 configured by $0, generated by GNU Autoconf 2.61,
10545 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10547 Copyright (C) 2006 Free Software Foundation, Inc.
10548 This config.status script is free software; the Free Software Foundation
10549 gives unlimited permission to copy, distribute and modify it."
10556 cat >>$CONFIG_STATUS <<\_ACEOF
10557 # If no file are specified by the user, then we need to provide default
10558 # value. By we need to know if files were specified by the user.
10564 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10565 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10576 # Handling of the options.
10577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10579 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10580 echo "$ac_cs_version"; exit ;;
10581 --debug | --debu | --deb | --de | --d | -d )
10583 --file | --fil | --fi | --f )
10585 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10586 ac_need_defaults=false;;
10587 --header | --heade | --head | --hea )
10589 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10590 ac_need_defaults=false;;
10592 # Conflict between --help and --header
10593 { echo "$as_me: error: ambiguous option: $1
10594 Try \`$0 --help' for more information." >&2
10595 { (exit 1); exit 1; }; };;
10596 --help | --hel | -h )
10597 echo "$ac_cs_usage"; exit ;;
10598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10599 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10602 # This is an error.
10603 -*) { echo "$as_me: error: unrecognized option: $1
10604 Try \`$0 --help' for more information." >&2
10605 { (exit 1); exit 1; }; } ;;
10607 *) ac_config_targets="$ac_config_targets $1"
10608 ac_need_defaults=false ;;
10614 ac_configure_extra_args=
10616 if $ac_cs_silent; then
10618 ac_configure_extra_args="$ac_configure_extra_args --silent"
10622 cat >>$CONFIG_STATUS <<_ACEOF
10623 if \$ac_cs_recheck; then
10624 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10625 CONFIG_SHELL=$SHELL
10626 export CONFIG_SHELL
10627 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10631 cat >>$CONFIG_STATUS <<\_ACEOF
10635 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10636 ## Running $as_me. ##
10642 cat >>$CONFIG_STATUS <<_ACEOF
10645 cat >>$CONFIG_STATUS <<\_ACEOF
10647 # Handling of arguments.
10648 for ac_config_target in $ac_config_targets
10650 case $ac_config_target in
10651 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10652 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10654 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10655 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10656 { (exit 1); exit 1; }; };;
10661 # If the user did not use the arguments to specify the items to instantiate,
10662 # then the envvar interface is used. Set only those that are not.
10663 # We use the long form for the default assignment because of an extremely
10664 # bizarre bug on SunOS 4.1.3.
10665 if $ac_need_defaults; then
10666 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10667 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10670 # Have a temporary directory for convenience. Make it in the build tree
10671 # simply because there is no reason against having it here, and in addition,
10672 # creating and moving files from /tmp can sometimes cause problems.
10673 # Hook for its removal unless debugging.
10674 # Note that there is a small window in which the directory will not be cleaned:
10675 # after its creation but before its name has been assigned to `$tmp'.
10679 trap 'exit_status=$?
10680 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10682 trap '{ (exit 1); exit 1; }' 1 2 13 15
10684 # Create a (secure) tmp directory for tmp files.
10687 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10688 test -n "$tmp" && test -d "$tmp"
10691 tmp=./conf$$-$RANDOM
10692 (umask 077 && mkdir "$tmp")
10695 echo "$me: cannot create a temporary directory in ." >&2
10696 { (exit 1); exit 1; }
10700 # Set up the sed scripts for CONFIG_FILES section.
10703 # No need to generate the scripts if there are no CONFIG_FILES.
10704 # This happens for instance when ./config.status config.h
10705 if test -n "$CONFIG_FILES"; then
10712 for ac_last_try in false false false false false :; do
10713 cat >conf$$subs.sed <<_ACEOF
10714 SHELL!$SHELL$ac_delim
10715 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10716 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10717 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10718 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10719 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10720 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10721 exec_prefix!$exec_prefix$ac_delim
10722 prefix!$prefix$ac_delim
10723 program_transform_name!$program_transform_name$ac_delim
10724 bindir!$bindir$ac_delim
10725 sbindir!$sbindir$ac_delim
10726 libexecdir!$libexecdir$ac_delim
10727 datarootdir!$datarootdir$ac_delim
10728 datadir!$datadir$ac_delim
10729 sysconfdir!$sysconfdir$ac_delim
10730 sharedstatedir!$sharedstatedir$ac_delim
10731 localstatedir!$localstatedir$ac_delim
10732 includedir!$includedir$ac_delim
10733 oldincludedir!$oldincludedir$ac_delim
10734 docdir!$docdir$ac_delim
10735 infodir!$infodir$ac_delim
10736 htmldir!$htmldir$ac_delim
10737 dvidir!$dvidir$ac_delim
10738 pdfdir!$pdfdir$ac_delim
10739 psdir!$psdir$ac_delim
10740 libdir!$libdir$ac_delim
10741 localedir!$localedir$ac_delim
10742 mandir!$mandir$ac_delim
10743 DEFS!$DEFS$ac_delim
10744 ECHO_C!$ECHO_C$ac_delim
10745 ECHO_N!$ECHO_N$ac_delim
10746 ECHO_T!$ECHO_T$ac_delim
10747 LIBS!$LIBS$ac_delim
10748 build_alias!$build_alias$ac_delim
10749 host_alias!$host_alias$ac_delim
10750 target_alias!$target_alias$ac_delim
10751 build!$build$ac_delim
10752 build_cpu!$build_cpu$ac_delim
10753 build_vendor!$build_vendor$ac_delim
10754 build_os!$build_os$ac_delim
10755 host!$host$ac_delim
10756 host_cpu!$host_cpu$ac_delim
10757 host_vendor!$host_vendor$ac_delim
10758 host_os!$host_os$ac_delim
10759 SHARED!$SHARED$ac_delim
10761 CFLAGS!$CFLAGS$ac_delim
10762 LDFLAGS!$LDFLAGS$ac_delim
10763 CPPFLAGS!$CPPFLAGS$ac_delim
10764 ac_ct_CC!$ac_ct_CC$ac_delim
10765 EXEEXT!$EXEEXT$ac_delim
10766 OBJEXT!$OBJEXT$ac_delim
10768 CXXFLAGS!$CXXFLAGS$ac_delim
10769 ac_ct_CXX!$ac_ct_CXX$ac_delim
10771 RANLIB!$RANLIB$ac_delim
10772 SET_MAKE!$SET_MAKE$ac_delim
10773 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10774 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10775 INSTALL_DATA!$INSTALL_DATA$ac_delim
10776 LN_S!$LN_S$ac_delim
10777 UNCOMPRESS!$UNCOMPRESS$ac_delim
10778 AREXT!$AREXT$ac_delim
10780 SLEXT!$SLEXT$ac_delim
10781 CXXLIBS!$CXXLIBS$ac_delim
10782 STRIP!$STRIP$ac_delim
10783 target!$target$ac_delim
10784 target_cpu!$target_cpu$ac_delim
10785 target_vendor!$target_vendor$ac_delim
10786 target_os!$target_os$ac_delim
10787 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
10788 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
10789 GREP!$GREP$ac_delim
10790 EGREP!$EGREP$ac_delim
10791 PACKAGE!$PACKAGE$ac_delim
10792 VERSION!$VERSION$ac_delim
10793 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
10794 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
10795 DEVICE_OPENGL!$DEVICE_OPENGL$ac_delim
10796 lame_in_source!$lame_in_source$ac_delim
10797 art_in_source!$art_in_source$ac_delim
10798 xpdf_in_source!$xpdf_in_source$ac_delim
10799 splash_in_source!$splash_in_source$ac_delim
10800 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
10801 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
10802 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
10803 USE_GZIP!$USE_GZIP$ac_delim
10804 PYTHON_LIB!$PYTHON_LIB$ac_delim
10805 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
10806 HAVE_PYTHON_IMAGING!$HAVE_PYTHON_IMAGING$ac_delim
10807 PDF2SWF!$PDF2SWF$ac_delim
10808 LIBPDF!$LIBPDF$ac_delim
10809 JPEG2SWF!$JPEG2SWF$ac_delim
10810 GIF2SWF!$GIF2SWF$ac_delim
10813 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10815 elif $ac_last_try; then
10816 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10817 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10818 { (exit 1); exit 1; }; }
10820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10824 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10825 if test -n "$ac_eof"; then
10826 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10827 ac_eof=`expr $ac_eof + 1`
10830 cat >>$CONFIG_STATUS <<_ACEOF
10831 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10835 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10836 s/^/s,@/; s/!/@,|#_!!_#|/
10839 s/'"$ac_delim"'$/,g/; t
10841 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10842 ' >>$CONFIG_STATUS <conf$$subs.sed
10843 rm -f conf$$subs.sed
10844 cat >>$CONFIG_STATUS <<_ACEOF
10850 for ac_last_try in false false false false false :; do
10851 cat >conf$$subs.sed <<_ACEOF
10852 PNG2SWF!$PNG2SWF$ac_delim
10853 LIBOBJS!$LIBOBJS$ac_delim
10854 LTLIBOBJS!$LTLIBOBJS$ac_delim
10857 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
10859 elif $ac_last_try; then
10860 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10861 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10862 { (exit 1); exit 1; }; }
10864 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10868 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10869 if test -n "$ac_eof"; then
10870 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10871 ac_eof=`expr $ac_eof + 1`
10874 cat >>$CONFIG_STATUS <<_ACEOF
10875 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10879 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10880 s/^/s,@/; s/!/@,|#_!!_#|/
10883 s/'"$ac_delim"'$/,g/; t
10885 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10886 ' >>$CONFIG_STATUS <conf$$subs.sed
10887 rm -f conf$$subs.sed
10888 cat >>$CONFIG_STATUS <<_ACEOF
10895 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10896 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10897 # trailing colons and then remove the whole line if VPATH becomes empty
10898 # (actually we leave an empty line to preserve line numbers).
10899 if test "x$srcdir" = x.; then
10900 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10901 s/:*\$(srcdir):*/:/
10902 s/:*\${srcdir}:*/:/
10904 s/^\([^=]*=[ ]*\):*/\1/
10910 cat >>$CONFIG_STATUS <<\_ACEOF
10911 fi # test -n "$CONFIG_FILES"
10914 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
10917 :[FHLC]) ac_mode=$ac_tag; continue;;
10919 case $ac_mode$ac_tag in
10921 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10922 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10923 { (exit 1); exit 1; }; };;
10924 :[FH]-) ac_tag=-:-;;
10925 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10942 -) ac_f="$tmp/stdin";;
10943 *) # Look for the file first in the build tree, then in the source tree
10944 # (if the path is not absolute). The absolute path cannot be DOS-style,
10945 # because $ac_f cannot contain `:'.
10949 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10951 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10952 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10953 { (exit 1); exit 1; }; };;
10955 ac_file_inputs="$ac_file_inputs $ac_f"
10958 # Let's still pretend it is `configure' which instantiates (i.e., don't
10959 # use $as_me), people would be surprised to read:
10960 # /* config.h. Generated by config.status. */
10961 configure_input="Generated from "`IFS=:
10962 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10963 if test x"$ac_file" != x-; then
10964 configure_input="$ac_file. $configure_input"
10965 { echo "$as_me:$LINENO: creating $ac_file" >&5
10966 echo "$as_me: creating $ac_file" >&6;}
10970 *:-:* | *:-) cat >"$tmp/stdin";;
10975 ac_dir=`$as_dirname -- "$ac_file" ||
10976 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10977 X"$ac_file" : 'X\(//\)[^/]' \| \
10978 X"$ac_file" : 'X\(//\)$' \| \
10979 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10985 /^X\(\/\/\)[^/].*/{
11000 -*) as_dir=./$as_dir;;
11002 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11006 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11007 *) as_qdir=$as_dir;;
11009 as_dirs="'$as_qdir' $as_dirs"
11010 as_dir=`$as_dirname -- "$as_dir" ||
11011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11012 X"$as_dir" : 'X\(//\)[^/]' \| \
11013 X"$as_dir" : 'X\(//\)$' \| \
11014 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11020 /^X\(\/\/\)[^/].*/{
11033 test -d "$as_dir" && break
11035 test -z "$as_dirs" || eval "mkdir $as_dirs"
11036 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11037 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11038 { (exit 1); exit 1; }; }; }
11042 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11044 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11045 # A ".." for each directory in $ac_dir_suffix.
11046 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11047 case $ac_top_builddir_sub in
11048 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11049 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11052 ac_abs_top_builddir=$ac_pwd
11053 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11054 # for backward compatibility:
11055 ac_top_builddir=$ac_top_build_prefix
11058 .) # We are building in place.
11060 ac_top_srcdir=$ac_top_builddir_sub
11061 ac_abs_top_srcdir=$ac_pwd ;;
11062 [\\/]* | ?:[\\/]* ) # Absolute name.
11063 ac_srcdir=$srcdir$ac_dir_suffix;
11064 ac_top_srcdir=$srcdir
11065 ac_abs_top_srcdir=$srcdir ;;
11066 *) # Relative name.
11067 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11068 ac_top_srcdir=$ac_top_build_prefix$srcdir
11069 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11071 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11081 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11082 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11086 cat >>$CONFIG_STATUS <<\_ACEOF
11087 # If the template does not know about datarootdir, expand it.
11088 # FIXME: This hack should be removed a few years after 2.60.
11089 ac_datarootdir_hack=; ac_datarootdir_seen=
11091 case `sed -n '/datarootdir/ {
11100 ' $ac_file_inputs` in
11101 *datarootdir*) ac_datarootdir_seen=yes;;
11102 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11103 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11104 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11106 cat >>$CONFIG_STATUS <<_ACEOF
11107 ac_datarootdir_hack='
11108 s&@datadir@&$datadir&g
11109 s&@docdir@&$docdir&g
11110 s&@infodir@&$infodir&g
11111 s&@localedir@&$localedir&g
11112 s&@mandir@&$mandir&g
11113 s&\\\${datarootdir}&$datarootdir&g' ;;
11117 # Neutralize VPATH when `$srcdir' = `.'.
11118 # Shell code in configure.ac might set extrasub.
11119 # FIXME: do we really want to maintain this feature?
11120 cat >>$CONFIG_STATUS <<_ACEOF
11124 cat >>$CONFIG_STATUS <<\_ACEOF
11126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11127 s&@configure_input@&$configure_input&;t t
11128 s&@top_builddir@&$ac_top_builddir_sub&;t t
11129 s&@srcdir@&$ac_srcdir&;t t
11130 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11131 s&@top_srcdir@&$ac_top_srcdir&;t t
11132 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11133 s&@builddir@&$ac_builddir&;t t
11134 s&@abs_builddir@&$ac_abs_builddir&;t t
11135 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11136 s&@INSTALL@&$ac_INSTALL&;t t
11137 $ac_datarootdir_hack
11138 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11140 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11141 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11142 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11143 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11144 which seems to be undefined. Please make sure it is defined." >&5
11145 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11146 which seems to be undefined. Please make sure it is defined." >&2;}
11150 -) cat "$tmp/out"; rm -f "$tmp/out";;
11151 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11160 # Transform confdefs.h into a sed script `conftest.defines', that
11161 # substitutes the proper values into config.h.in to produce config.h.
11162 rm -f conftest.defines conftest.tail
11163 # First, append a space to every undef/define line, to ease matching.
11164 echo 's/$/ /' >conftest.defines
11165 # Then, protect against being on the right side of a sed subst, or in
11166 # an unquoted here document, in config.status. If some macros were
11167 # called several times there might be several #defines for the same
11168 # symbol, which is useless. But do not sort them, since the last
11169 # AC_DEFINE must be honored.
11170 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11171 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11172 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11173 # PARAMS is the parameter list in the macro definition--in most cases, it's
11174 # just an empty string.
11175 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11176 ac_dB='\\)[ (].*,\\1define\\2'
11184 s/^[ ]*#[ ]*define[ ][ ]*//
11189 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11190 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11191 ' >>conftest.defines
11193 # Remove the space that was appended to ease matching.
11194 # Then replace #undef with comments. This is necessary, for
11195 # example, in the case of _POSIX_SOURCE, which is predefined and required
11196 # on some systems where configure will not decide to define it.
11197 # (The regexp can be short, since the line contains either #define or #undef.)
11199 s,^[ #]*u.*,/* & */,' >>conftest.defines
11201 # Break up conftest.defines:
11202 ac_max_sed_lines=50
11204 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11205 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11206 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11208 ac_in='$ac_file_inputs'
11209 ac_out='"$tmp/out1"'
11210 ac_nxt='"$tmp/out2"'
11214 # Write a here document:
11215 cat >>$CONFIG_STATUS <<_ACEOF
11216 # First, check the format of the line:
11217 cat >"\$tmp/defines.sed" <<\\CEOF
11218 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11219 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11223 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11225 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11226 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11227 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11228 grep . conftest.tail >/dev/null || break
11229 rm -f conftest.defines
11230 mv conftest.tail conftest.defines
11232 rm -f conftest.defines conftest.tail
11234 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11235 cat >>$CONFIG_STATUS <<\_ACEOF
11236 if test x"$ac_file" != x-; then
11237 echo "/* $configure_input */" >"$tmp/config.h"
11238 cat "$ac_result" >>"$tmp/config.h"
11239 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11240 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11241 echo "$as_me: $ac_file is unchanged" >&6;}
11244 mv "$tmp/config.h" $ac_file
11247 echo "/* $configure_input */"
11259 { (exit 0); exit 0; }
11261 chmod +x $CONFIG_STATUS
11262 ac_clean_files=$ac_clean_files_save
11265 # configure is writing to config.log, and then calls config.status.
11266 # config.status does its own redirection, appending to config.log.
11267 # Unfortunately, on DOS this fails, as config.log is still kept open
11268 # by configure, so config.status won't be able to write to it; its
11269 # output is simply discarded. So we exec the FD to /dev/null,
11270 # effectively closing config.log, so it can be properly (re)opened and
11271 # appended to by config.status. When coming back to configure, we
11272 # need to make the FD available again.
11273 if test "$no_create" != yes; then
11275 ac_config_status_args=
11276 test "$silent" = yes &&
11277 ac_config_status_args="$ac_config_status_args --quiet"
11279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11282 # would make configure fail if this is the last instruction.
11283 $ac_cs_success || { (exit 1); exit 1; }
11289 # On development trees, create snapshots of config.status
11291 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11292 if test "x${MINGW}" = "xyes"; then
11293 echo cp config.status config.status.win32
11294 cp config.status config.status.win32
11296 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
11297 echo cp config.status config.status.linux
11298 cp config.status config.status.linux
11300 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
11301 echo cp config.status config.status.debug
11302 cp config.status config.status.debug
11304 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
11305 echo cp config.status config.status.optimize
11306 cp config.status config.status.optimize