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
712 ac_precious_vars='build_alias
726 # Initialize some variables set by options.
728 ac_init_version=false
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
738 program_transform_name=s,x,x,
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir='${exec_prefix}/bin'
753 sbindir='${exec_prefix}/sbin'
754 libexecdir='${exec_prefix}/libexec'
755 datarootdir='${prefix}/share'
756 datadir='${datarootdir}'
757 sysconfdir='${prefix}/etc'
758 sharedstatedir='${prefix}/com'
759 localstatedir='${prefix}/var'
760 includedir='${prefix}/include'
761 oldincludedir='/usr/include'
762 docdir='${datarootdir}/doc/${PACKAGE}'
763 infodir='${datarootdir}/info'
768 libdir='${exec_prefix}/lib'
769 localedir='${datarootdir}/locale'
770 mandir='${datarootdir}/man'
776 # If the previous option needs an argument, assign it.
777 if test -n "$ac_prev"; then
778 eval $ac_prev=\$ac_option
784 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
788 # Accept the important Cygnus configure options, so we can diagnose typos.
790 case $ac_dashdash$ac_option in
794 -bindir | --bindir | --bindi | --bind | --bin | --bi)
796 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799 -build | --build | --buil | --bui | --bu)
800 ac_prev=build_alias ;;
801 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802 build_alias=$ac_optarg ;;
804 -cache-file | --cache-file | --cache-fil | --cache-fi \
805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806 ac_prev=cache_file ;;
807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809 cache_file=$ac_optarg ;;
812 cache_file=config.cache ;;
814 -datadir | --datadir | --datadi | --datad)
816 -datadir=* | --datadir=* | --datadi=* | --datad=*)
817 datadir=$ac_optarg ;;
819 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820 | --dataroo | --dataro | --datar)
821 ac_prev=datarootdir ;;
822 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824 datarootdir=$ac_optarg ;;
826 -disable-* | --disable-*)
827 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
830 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
831 { (exit 1); exit 1; }; }
832 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
833 eval enable_$ac_feature=no ;;
835 -docdir | --docdir | --docdi | --doc | --do)
837 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
840 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
842 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
845 -enable-* | --enable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=\$ac_optarg ;;
854 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
855 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
856 | --exec | --exe | --ex)
857 ac_prev=exec_prefix ;;
858 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
859 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
860 | --exec=* | --exe=* | --ex=*)
861 exec_prefix=$ac_optarg ;;
863 -gas | --gas | --ga | --g)
864 # Obsolete; use --with-gas.
867 -help | --help | --hel | --he | -h)
869 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
870 ac_init_help=recursive ;;
871 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
872 ac_init_help=short ;;
874 -host | --host | --hos | --ho)
875 ac_prev=host_alias ;;
876 -host=* | --host=* | --hos=* | --ho=*)
877 host_alias=$ac_optarg ;;
879 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
881 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
883 htmldir=$ac_optarg ;;
885 -includedir | --includedir | --includedi | --included | --include \
886 | --includ | --inclu | --incl | --inc)
887 ac_prev=includedir ;;
888 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
889 | --includ=* | --inclu=* | --incl=* | --inc=*)
890 includedir=$ac_optarg ;;
892 -infodir | --infodir | --infodi | --infod | --info | --inf)
894 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
895 infodir=$ac_optarg ;;
897 -libdir | --libdir | --libdi | --libd)
899 -libdir=* | --libdir=* | --libdi=* | --libd=*)
902 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
903 | --libexe | --libex | --libe)
904 ac_prev=libexecdir ;;
905 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
906 | --libexe=* | --libex=* | --libe=*)
907 libexecdir=$ac_optarg ;;
909 -localedir | --localedir | --localedi | --localed | --locale)
911 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
912 localedir=$ac_optarg ;;
914 -localstatedir | --localstatedir | --localstatedi | --localstated \
915 | --localstate | --localstat | --localsta | --localst | --locals)
916 ac_prev=localstatedir ;;
917 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
918 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
919 localstatedir=$ac_optarg ;;
921 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
923 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
927 # Obsolete; use --without-fp.
930 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
931 | --no-cr | --no-c | -n)
934 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
938 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
939 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
940 | --oldin | --oldi | --old | --ol | --o)
941 ac_prev=oldincludedir ;;
942 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
943 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
944 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
945 oldincludedir=$ac_optarg ;;
947 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
949 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
952 -program-prefix | --program-prefix | --program-prefi | --program-pref \
953 | --program-pre | --program-pr | --program-p)
954 ac_prev=program_prefix ;;
955 -program-prefix=* | --program-prefix=* | --program-prefi=* \
956 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
957 program_prefix=$ac_optarg ;;
959 -program-suffix | --program-suffix | --program-suffi | --program-suff \
960 | --program-suf | --program-su | --program-s)
961 ac_prev=program_suffix ;;
962 -program-suffix=* | --program-suffix=* | --program-suffi=* \
963 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
964 program_suffix=$ac_optarg ;;
966 -program-transform-name | --program-transform-name \
967 | --program-transform-nam | --program-transform-na \
968 | --program-transform-n | --program-transform- \
969 | --program-transform | --program-transfor \
970 | --program-transfo | --program-transf \
971 | --program-trans | --program-tran \
972 | --progr-tra | --program-tr | --program-t)
973 ac_prev=program_transform_name ;;
974 -program-transform-name=* | --program-transform-name=* \
975 | --program-transform-nam=* | --program-transform-na=* \
976 | --program-transform-n=* | --program-transform-=* \
977 | --program-transform=* | --program-transfor=* \
978 | --program-transfo=* | --program-transf=* \
979 | --program-trans=* | --program-tran=* \
980 | --progr-tra=* | --program-tr=* | --program-t=*)
981 program_transform_name=$ac_optarg ;;
983 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
985 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
988 -psdir | --psdir | --psdi | --psd | --ps)
990 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994 | -silent | --silent | --silen | --sile | --sil)
997 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
999 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1001 sbindir=$ac_optarg ;;
1003 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1004 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1005 | --sharedst | --shareds | --shared | --share | --shar \
1007 ac_prev=sharedstatedir ;;
1008 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1009 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1010 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1012 sharedstatedir=$ac_optarg ;;
1014 -site | --site | --sit)
1016 -site=* | --site=* | --sit=*)
1019 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1021 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1022 srcdir=$ac_optarg ;;
1024 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1025 | --syscon | --sysco | --sysc | --sys | --sy)
1026 ac_prev=sysconfdir ;;
1027 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1028 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1029 sysconfdir=$ac_optarg ;;
1031 -target | --target | --targe | --targ | --tar | --ta | --t)
1032 ac_prev=target_alias ;;
1033 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1034 target_alias=$ac_optarg ;;
1036 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1039 -version | --version | --versio | --versi | --vers | -V)
1040 ac_init_version=: ;;
1043 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1049 eval with_$ac_package=\$ac_optarg ;;
1051 -without-* | --without-*)
1052 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid package name: $ac_package" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058 eval with_$ac_package=no ;;
1061 # Obsolete; use --with-x.
1064 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065 | --x-incl | --x-inc | --x-in | --x-i)
1066 ac_prev=x_includes ;;
1067 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069 x_includes=$ac_optarg ;;
1071 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073 ac_prev=x_libraries ;;
1074 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076 x_libraries=$ac_optarg ;;
1078 -*) { echo "$as_me: error: unrecognized option: $ac_option
1079 Try \`$0 --help' for more information." >&2
1080 { (exit 1); exit 1; }; }
1084 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1087 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1088 { (exit 1); exit 1; }; }
1089 eval $ac_envvar=\$ac_optarg
1090 export $ac_envvar ;;
1093 # FIXME: should be removed in autoconf 3.0.
1094 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1103 if test -n "$ac_prev"; then
1104 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105 { echo "$as_me: error: missing argument to $ac_option" >&2
1106 { (exit 1); exit 1; }; }
1109 # Be sure to have absolute directory names.
1110 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1111 datadir sysconfdir sharedstatedir localstatedir includedir \
1112 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1113 libdir localedir mandir
1115 eval ac_val=\$$ac_var
1117 [\\/$]* | ?:[\\/]* ) continue;;
1118 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1120 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1121 { (exit 1); exit 1; }; }
1124 # There might be people who depend on the old broken behavior: `$host'
1125 # used to hold the argument of --host etc.
1126 # FIXME: To remove some day.
1129 target=$target_alias
1131 # FIXME: To remove some day.
1132 if test "x$host_alias" != x; then
1133 if test "x$build_alias" = x; then
1134 cross_compiling=maybe
1135 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1136 If a cross compiler is detected then cross compile mode will be used." >&2
1137 elif test "x$build_alias" != "x$host_alias"; then
1143 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1145 test "$silent" = yes && exec 6>/dev/null
1148 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1149 ac_ls_di=`ls -di .` &&
1150 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1151 { echo "$as_me: error: Working directory cannot be determined" >&2
1152 { (exit 1); exit 1; }; }
1153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1154 { echo "$as_me: error: pwd does not report name of working directory" >&2
1155 { (exit 1); exit 1; }; }
1158 # Find the source files, if location was not specified.
1159 if test -z "$srcdir"; then
1160 ac_srcdir_defaulted=yes
1161 # Try the directory containing this script, then the parent directory.
1162 ac_confdir=`$as_dirname -- "$0" ||
1163 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164 X"$0" : 'X\(//\)[^/]' \| \
1165 X"$0" : 'X\(//\)$' \| \
1166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1190 ac_srcdir_defaulted=no
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1194 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1195 { (exit 1); exit 1; }; }
1197 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1199 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1200 { (exit 1); exit 1; }; }
1202 # When building in place, set srcdir=.
1203 if test "$ac_abs_confdir" = "$ac_pwd"; then
1206 # Remove unnecessary trailing slashes from srcdir.
1207 # Double slashes in file names in object file debugging info
1208 # mess up M-x gdb in Emacs.
1210 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212 for ac_var in $ac_precious_vars; do
1213 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_env_${ac_var}_value=\$${ac_var}
1215 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1216 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1220 # Report the --help message.
1222 if test "$ac_init_help" = "long"; then
1223 # Omit some internal or obsolete options to make the list less imposing.
1224 # This message is too long to be a string in the A/UX 3.1 sh.
1226 \`configure' configures this package to adapt to many kinds of systems.
1228 Usage: $0 [OPTION]... [VAR=VALUE]...
1230 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1231 VAR=VALUE. See below for descriptions of some of the useful variables.
1233 Defaults for the options are specified in brackets.
1236 -h, --help display this help and exit
1237 --help=short display options specific to this package
1238 --help=recursive display the short help of all the included packages
1239 -V, --version display version information and exit
1240 -q, --quiet, --silent do not print \`checking...' messages
1241 --cache-file=FILE cache test results in FILE [disabled]
1242 -C, --config-cache alias for \`--cache-file=config.cache'
1243 -n, --no-create do not create output files
1244 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1246 Installation directories:
1247 --prefix=PREFIX install architecture-independent files in PREFIX
1248 [$ac_default_prefix]
1249 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1252 By default, \`make install' will install all the files in
1253 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1254 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1255 for instance \`--prefix=\$HOME'.
1257 For better control, use the options below.
1259 Fine tuning of the installation directories:
1260 --bindir=DIR user executables [EPREFIX/bin]
1261 --sbindir=DIR system admin executables [EPREFIX/sbin]
1262 --libexecdir=DIR program executables [EPREFIX/libexec]
1263 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1264 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1265 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1266 --libdir=DIR object code libraries [EPREFIX/lib]
1267 --includedir=DIR C header files [PREFIX/include]
1268 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1269 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1270 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1271 --infodir=DIR info documentation [DATAROOTDIR/info]
1272 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1273 --mandir=DIR man documentation [DATAROOTDIR/man]
1274 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1275 --htmldir=DIR html documentation [DOCDIR]
1276 --dvidir=DIR dvi documentation [DOCDIR]
1277 --pdfdir=DIR pdf documentation [DOCDIR]
1278 --psdir=DIR ps documentation [DOCDIR]
1284 --program-prefix=PREFIX prepend PREFIX to installed program names
1285 --program-suffix=SUFFIX append SUFFIX to installed program names
1286 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1289 --build=BUILD configure for building on BUILD [guessed]
1290 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1291 --target=TARGET configure for building compilers for TARGET [HOST]
1295 if test -n "$ac_init_help"; then
1300 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1301 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1302 --enable-checkmem turn on ccmalloc debugging
1303 --enable-debug turn on debugging
1304 --enable-profiling turn on profiling
1305 --enable-warnings turn on compiler warnings
1306 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1307 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1309 Some influential environment variables:
1310 CC C compiler command
1311 CFLAGS C compiler flags
1312 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1313 nonstandard directory <lib dir>
1314 LIBS libraries to pass to the linker, e.g. -l<library>
1315 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1316 you have headers in a nonstandard directory <include dir>
1317 CXX C++ compiler command
1318 CXXFLAGS C++ compiler flags
1321 Use these variables to override the choices made by `configure' or to help
1322 it to find libraries and programs with nonstandard names/locations.
1328 if test "$ac_init_help" = "recursive"; then
1329 # If there are subdirs, report their specific --help.
1330 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1331 test -d "$ac_dir" || continue
1335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1337 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1338 # A ".." for each directory in $ac_dir_suffix.
1339 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1340 case $ac_top_builddir_sub in
1341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1345 ac_abs_top_builddir=$ac_pwd
1346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1347 # for backward compatibility:
1348 ac_top_builddir=$ac_top_build_prefix
1351 .) # We are building in place.
1353 ac_top_srcdir=$ac_top_builddir_sub
1354 ac_abs_top_srcdir=$ac_pwd ;;
1355 [\\/]* | ?:[\\/]* ) # Absolute name.
1356 ac_srcdir=$srcdir$ac_dir_suffix;
1357 ac_top_srcdir=$srcdir
1358 ac_abs_top_srcdir=$srcdir ;;
1360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1361 ac_top_srcdir=$ac_top_build_prefix$srcdir
1362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1366 cd "$ac_dir" || { ac_status=$?; continue; }
1367 # Check for guested configure.
1368 if test -f "$ac_srcdir/configure.gnu"; then
1370 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1371 elif test -f "$ac_srcdir/configure"; then
1373 $SHELL "$ac_srcdir/configure" --help=recursive
1375 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1377 cd "$ac_pwd" || { ac_status=$?; break; }
1381 test -n "$ac_init_help" && exit $ac_status
1382 if $ac_init_version; then
1385 generated by GNU Autoconf 2.61
1387 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1388 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1389 This configure script is free software; the Free Software Foundation
1390 gives unlimited permission to copy, distribute and modify it.
1394 cat >config.log <<_ACEOF
1395 This file contains any messages produced by compilers while
1396 running configure, to aid debugging if configure makes a mistake.
1398 It was created by $as_me, which was
1399 generated by GNU Autoconf 2.61. Invocation command line was
1411 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1412 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1413 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1414 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1415 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1417 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1418 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1420 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1421 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1422 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1423 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1424 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1425 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1426 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434 test -z "$as_dir" && as_dir=.
1435 echo "PATH: $as_dir"
1451 # Keep a trace of the command line.
1452 # Strip out --no-create and --no-recursion so they do not pile up.
1453 # Strip out --silent because we don't want to record it for future runs.
1454 # Also quote any args containing shell meta-characters.
1455 # Make two passes to allow for proper duplicate-argument suppression.
1459 ac_must_keep_next=false
1465 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1466 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1467 | -silent | --silent | --silen | --sile | --sil)
1470 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1473 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1475 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1476 if test $ac_must_keep_next = true; then
1477 ac_must_keep_next=false # Got value, back to normal.
1480 *=* | --config-cache | -C | -disable-* | --disable-* \
1481 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1482 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1483 | -with-* | --with-* | -without-* | --without-* | --x)
1484 case "$ac_configure_args0 " in
1485 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1488 -* ) ac_must_keep_next=true ;;
1491 ac_configure_args="$ac_configure_args '$ac_arg'"
1496 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1497 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1499 # When interrupted or exit'd, cleanup temporary files, and complete
1500 # config.log. We remove comments because anyway the quotes in there
1501 # would cause problems or look ugly.
1502 # WARNING: Use '\'' to represent an apostrophe within the trap.
1503 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1504 trap 'exit_status=$?
1505 # Save into config.log some information that might help in debugging.
1510 ## ---------------- ##
1511 ## Cache variables. ##
1512 ## ---------------- ##
1515 # The following way of writing the cache mishandles newlines in values,
1517 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1518 eval ac_val=\$$ac_var
1522 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1523 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1526 _ | IFS | as_nl) ;; #(
1527 *) $as_unset $ac_var ;;
1532 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1533 *${as_nl}ac_space=\ *)
1535 "s/'\''/'\''\\\\'\'''\''/g;
1536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1547 ## ----------------- ##
1548 ## Output variables. ##
1549 ## ----------------- ##
1552 for ac_var in $ac_subst_vars
1554 eval ac_val=\$$ac_var
1556 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1558 echo "$ac_var='\''$ac_val'\''"
1562 if test -n "$ac_subst_files"; then
1564 ## ------------------- ##
1565 ## File substitutions. ##
1566 ## ------------------- ##
1569 for ac_var in $ac_subst_files
1571 eval ac_val=\$$ac_var
1573 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1575 echo "$ac_var='\''$ac_val'\''"
1580 if test -s confdefs.h; then
1590 test "$ac_signal" != 0 &&
1591 echo "$as_me: caught signal $ac_signal"
1592 echo "$as_me: exit $exit_status"
1594 rm -f core *.core core.conftest.* &&
1595 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1598 for ac_signal in 1 2 13 15; do
1599 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1603 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1604 rm -f -r conftest* confdefs.h
1606 # Predefined preprocessor variables.
1608 cat >>confdefs.h <<_ACEOF
1609 #define PACKAGE_NAME "$PACKAGE_NAME"
1613 cat >>confdefs.h <<_ACEOF
1614 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_STRING "$PACKAGE_STRING"
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1633 # Let the site file select an alternate cache file if it wants to.
1634 # Prefer explicitly selected file to automatically selected ones.
1635 if test -n "$CONFIG_SITE"; then
1636 set x "$CONFIG_SITE"
1637 elif test "x$prefix" != xNONE; then
1638 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1640 set x "$ac_default_prefix/share/config.site" \
1641 "$ac_default_prefix/etc/config.site"
1646 if test -r "$ac_site_file"; then
1647 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1648 echo "$as_me: loading site script $ac_site_file" >&6;}
1649 sed 's/^/| /' "$ac_site_file" >&5
1654 if test -r "$cache_file"; then
1655 # Some versions of bash will fail to source /dev/null (special
1656 # files actually), so we avoid doing that.
1657 if test -f "$cache_file"; then
1658 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1659 echo "$as_me: loading cache $cache_file" >&6;}
1661 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1662 *) . "./$cache_file";;
1666 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1667 echo "$as_me: creating cache $cache_file" >&6;}
1671 # Check that the precious variables saved in the cache have kept the same
1673 ac_cache_corrupted=false
1674 for ac_var in $ac_precious_vars; do
1675 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1676 eval ac_new_set=\$ac_env_${ac_var}_set
1677 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1678 eval ac_new_val=\$ac_env_${ac_var}_value
1679 case $ac_old_set,$ac_new_set in
1681 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1682 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1683 ac_cache_corrupted=: ;;
1685 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1686 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1687 ac_cache_corrupted=: ;;
1690 if test "x$ac_old_val" != "x$ac_new_val"; then
1691 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1692 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1693 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1694 echo "$as_me: former value: $ac_old_val" >&2;}
1695 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1696 echo "$as_me: current value: $ac_new_val" >&2;}
1697 ac_cache_corrupted=:
1700 # Pass precious variables to config.status.
1701 if test "$ac_new_set" = set; then
1703 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1704 *) ac_arg=$ac_var=$ac_new_val ;;
1706 case " $ac_configure_args " in
1707 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1708 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1712 if $ac_cache_corrupted; then
1713 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1714 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1715 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1716 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1717 { (exit 1); exit 1; }; }
1737 ac_cpp='$CPP $CPPFLAGS'
1738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1745 # Check whether --enable-checkmem was given.
1746 if test "${enable_checkmem+set}" = set; then
1747 enableval=$enable_checkmem; CHECKMEM=true
1750 # Check whether --enable-debug was given.
1751 if test "${enable_debug+set}" = set; then
1752 enableval=$enable_debug; DEBUG=true
1755 # Check whether --enable-profiling was given.
1756 if test "${enable_profiling+set}" = set; then
1757 enableval=$enable_profiling; PROFILING=true
1760 # Check whether --enable-warnings was given.
1761 if test "${enable_warnings+set}" = set; then
1762 enableval=$enable_warnings; ENABLE_WARNINGS=true
1765 # Check whether --enable-optimizations was given.
1766 if test "${enable_optimizations+set}" = set; then
1767 enableval=$enable_optimizations; OPTIMIZE=true
1770 # Check whether --enable-lame was given.
1771 if test "${enable_lame+set}" = set; then
1772 enableval=$enable_lame; DISABLE_LAME=true
1780 # ------------------------------------------------------------------
1782 if test "x${srcdir}" != "x."; then
1783 echo "--srcdir is not supported"
1787 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1788 if test "x$ENABLE_WARNINGS" '!=' "x";then
1789 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1792 if test "x$CHECKMEM" '!=' "x";then
1795 if test "x$PROFILING" '!=' "x";then
1798 if test "x$DEBUG" '!=' "x";then
1799 if test "x$PROFILING" = "x";then
1800 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1801 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1804 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1805 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1806 LDFLAGS="-g -pg $LIBS"
1808 else if test "x$OPTIMIZE" '!=' "x"; then
1809 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1810 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1812 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1813 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1817 #if test "x$OLDGCC" '!=' "x";then
1818 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1819 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1820 # CFLAGS="$CFLAGS -ansi -pendantic"
1821 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1824 export PACKAGE VERSION CFLAGS CXXFLAGS
1828 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1829 if test -f "$ac_dir/install-sh"; then
1831 ac_install_sh="$ac_aux_dir/install-sh -c"
1833 elif test -f "$ac_dir/install.sh"; then
1835 ac_install_sh="$ac_aux_dir/install.sh -c"
1837 elif test -f "$ac_dir/shtool"; then
1839 ac_install_sh="$ac_aux_dir/shtool install -c"
1843 if test -z "$ac_aux_dir"; then
1844 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1845 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1846 { (exit 1); exit 1; }; }
1849 # These three variables are undocumented and unsupported,
1850 # and are intended to be withdrawn in a future Autoconf release.
1851 # They can cause serious problems if a builder's source tree is in a directory
1852 # whose full name contains unusual characters.
1853 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1854 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1855 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1858 # Make sure we can run config.sub.
1859 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1860 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1861 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1862 { (exit 1); exit 1; }; }
1864 { echo "$as_me:$LINENO: checking build system type" >&5
1865 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1866 if test "${ac_cv_build+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 ac_build_alias=$build_alias
1870 test "x$ac_build_alias" = x &&
1871 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1872 test "x$ac_build_alias" = x &&
1873 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1874 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1875 { (exit 1); exit 1; }; }
1876 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1877 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1878 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1879 { (exit 1); exit 1; }; }
1882 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1883 echo "${ECHO_T}$ac_cv_build" >&6; }
1884 case $ac_cv_build in
1886 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1887 echo "$as_me: error: invalid value of canonical build" >&2;}
1888 { (exit 1); exit 1; }; };;
1891 ac_save_IFS=$IFS; IFS='-'
1897 # Remember, the first character of IFS is used to create $*,
1898 # except with old shells:
1901 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1904 { echo "$as_me:$LINENO: checking host system type" >&5
1905 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1906 if test "${ac_cv_host+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 if test "x$host_alias" = x; then
1910 ac_cv_host=$ac_cv_build
1912 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1913 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1914 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1915 { (exit 1); exit 1; }; }
1919 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1920 echo "${ECHO_T}$ac_cv_host" >&6; }
1923 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1924 echo "$as_me: error: invalid value of canonical host" >&2;}
1925 { (exit 1); exit 1; }; };;
1928 ac_save_IFS=$IFS; IFS='-'
1934 # Remember, the first character of IFS is used to create $*,
1935 # except with old shells:
1938 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1948 CXXFLAGS="$CXXFLAGS -fno-rtti"
1950 # Use fink packages if available.
1951 #if test -d /sw/include && test -d /sw/lib; then
1952 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
1953 # LDFLAGS="${LDFLAGS} -L/sw/lib"
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965 if test -n "$ac_tool_prefix"; then
1966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1970 if test "${ac_cv_prog_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 if test -n "$CC"; then
1995 { echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6; }
1998 { echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6; }
2004 if test -z "$ac_cv_prog_CC"; then
2006 # Extract the first word of "gcc", so it can be a program name with args.
2007 set dummy gcc; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$ac_ct_CC"; then
2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_ac_ct_CC="gcc"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6; }
2038 { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2042 if test "x$ac_ct_CC" = x; then
2045 case $cross_compiling:$ac_tool_warned in
2047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2048 whose name does not start with the host triplet. If you think this
2049 configuration is useful to you, please write to autoconf@gnu.org." >&5
2050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2051 whose name does not start with the host triplet. If you think this
2052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2053 ac_tool_warned=yes ;;
2061 if test -z "$CC"; then
2062 if test -n "$ac_tool_prefix"; then
2063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2064 set dummy ${ac_tool_prefix}cc; ac_word=$2
2065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2067 if test "${ac_cv_prog_CC+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 if test -n "$CC"; then
2071 ac_cv_prog_CC="$CC" # Let the user override the test.
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2080 ac_cv_prog_CC="${ac_tool_prefix}cc"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 if test -n "$CC"; then
2092 { echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6; }
2095 { echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6; }
2102 if test -z "$CC"; then
2103 # Extract the first word of "cc", so it can be a program name with args.
2104 set dummy cc; ac_word=$2
2105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 if test -n "$CC"; then
2111 ac_cv_prog_CC="$CC" # Let the user override the test.
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2122 ac_prog_rejected=yes
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 if test $ac_prog_rejected = yes; then
2134 # We found a bogon in the path, so make sure we never use it.
2135 set dummy $ac_cv_prog_CC
2137 if test $# != 0; then
2138 # We chose a different compiler from the bogus one.
2139 # However, it has the same basename, so the bogon will be chosen
2140 # first if we set CC to just the basename; use the full file name.
2142 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2148 if test -n "$CC"; then
2149 { echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6; }
2152 { echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6; }
2158 if test -z "$CC"; then
2159 if test -n "$ac_tool_prefix"; then
2160 for ac_prog in cl.exe
2162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_prog_CC+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 if test -n "$CC"; then
2170 ac_cv_prog_CC="$CC" # Let the user override the test.
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 test -z "$as_dir" && as_dir=.
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 if test -n "$CC"; then
2191 { echo "$as_me:$LINENO: result: $CC" >&5
2192 echo "${ECHO_T}$CC" >&6; }
2194 { echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6; }
2199 test -n "$CC" && break
2202 if test -z "$CC"; then
2204 for ac_prog in cl.exe
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy $ac_prog; ac_word=$2
2208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 if test -n "$ac_ct_CC"; then
2214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 ac_cv_prog_ac_ct_CC="$ac_prog"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2234 if test -n "$ac_ct_CC"; then
2235 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2236 echo "${ECHO_T}$ac_ct_CC" >&6; }
2238 { echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6; }
2243 test -n "$ac_ct_CC" && break
2246 if test "x$ac_ct_CC" = x; then
2249 case $cross_compiling:$ac_tool_warned in
2251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2252 whose name does not start with the host triplet. If you think this
2253 configuration is useful to you, please write to autoconf@gnu.org." >&5
2254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2255 whose name does not start with the host triplet. If you think this
2256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2257 ac_tool_warned=yes ;;
2266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2272 # Provide some information about the compiler.
2273 echo "$as_me:$LINENO: checking for C compiler version" >&5
2274 ac_compiler=`set X $ac_compile; echo $2`
2275 { (ac_try="$ac_compiler --version >&5"
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2281 (eval "$ac_compiler --version >&5") 2>&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }
2285 { (ac_try="$ac_compiler -v >&5"
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2291 (eval "$ac_compiler -v >&5") 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }
2295 { (ac_try="$ac_compiler -V >&5"
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301 (eval "$ac_compiler -V >&5") 2>&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }
2306 cat >conftest.$ac_ext <<_ACEOF
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h. */
2321 ac_clean_files_save=$ac_clean_files
2322 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2323 # Try to create an executable without -o first, disregard a.out.
2324 # It will help us diagnose broken compilers, and finding out an intuition
2326 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2327 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2328 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2330 # List of possible output files, starting from the most likely.
2331 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2332 # only as a last resort. b.out is created by i960 compilers.
2333 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2335 # The IRIX 6 linker writes into existing files which may not be
2336 # executable, retaining their permissions. Remove them first so a
2337 # subsequent execution test works.
2339 for ac_file in $ac_files
2342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2343 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2348 if { (ac_try="$ac_link_default"
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_link_default") 2>&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; then
2358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2361 # so that the user can short-circuit this test for compilers unknown to
2363 for ac_file in $ac_files ''
2365 test -f "$ac_file" || continue
2367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2370 # We found the default executable, but exeext='' is most
2374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 # We set ac_cv_exeext here because the later test for it is not
2379 # safe: cross compilers may not add the suffix if given an `-o'
2380 # argument, so we may need to know it at that point already.
2381 # Even if this section looks crufty: it has the advantage of
2388 test "$ac_cv_exeext" = no && ac_cv_exeext=
2394 { echo "$as_me:$LINENO: result: $ac_file" >&5
2395 echo "${ECHO_T}$ac_file" >&6; }
2396 if test -z "$ac_file"; then
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2400 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2401 See \`config.log' for more details." >&5
2402 echo "$as_me: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&2;}
2404 { (exit 77); exit 77; }; }
2407 ac_exeext=$ac_cv_exeext
2409 # Check that the compiler produces executables we can run. If not, either
2410 # the compiler is broken, or we cross compile.
2411 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2412 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2413 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2414 # If not cross compiling, check that we can run a simple program.
2415 if test "$cross_compiling" != yes; then
2416 if { ac_try='./$ac_file'
2417 { (case "(($ac_try" in
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_try") 2>&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2428 if test "$cross_compiling" = maybe; then
2431 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2432 If you meant to cross compile, use \`--host'.
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2441 { echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6; }
2444 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2445 ac_clean_files=$ac_clean_files_save
2446 # Check that the compiler produces executables we can run. If not, either
2447 # the compiler is broken, or we cross compile.
2448 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2449 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2450 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2451 echo "${ECHO_T}$cross_compiling" >&6; }
2453 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2454 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2455 if { (ac_try="$ac_link"
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_link") 2>&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; then
2465 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2466 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2467 # work properly (i.e., refer to `conftest.exe'), while it won't with
2469 for ac_file in conftest.exe conftest conftest.*; do
2470 test -f "$ac_file" || continue
2472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2473 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2480 See \`config.log' for more details." >&5
2481 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2482 See \`config.log' for more details." >&2;}
2483 { (exit 1); exit 1; }; }
2486 rm -f conftest$ac_cv_exeext
2487 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2488 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2490 rm -f conftest.$ac_ext
2491 EXEEXT=$ac_cv_exeext
2493 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2494 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2495 if test "${ac_cv_objext+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 cat >conftest.$ac_ext <<_ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2513 rm -f conftest.o conftest.obj
2514 if { (ac_try="$ac_compile"
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_compile") 2>&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; then
2524 for ac_file in conftest.o conftest.obj conftest.*; do
2525 test -f "$ac_file" || continue;
2527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2528 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2536 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2539 See \`config.log' for more details." >&2;}
2540 { (exit 1); exit 1; }; }
2543 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2545 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2546 echo "${ECHO_T}$ac_cv_objext" >&6; }
2547 OBJEXT=$ac_cv_objext
2549 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2550 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2551 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 cat >conftest.$ac_ext <<_ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h. */
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2581 grep -v '^ *+' conftest.er1 >conftest.err
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } && {
2586 test -z "$ac_c_werror_flag" ||
2587 test ! -s conftest.err
2588 } && test -s conftest.$ac_objext; then
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2601 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2602 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2603 GCC=`test $ac_compiler_gnu = yes && echo yes`
2604 ac_test_CFLAGS=${CFLAGS+set}
2605 ac_save_CFLAGS=$CFLAGS
2606 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2607 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2608 if test "${ac_cv_prog_cc_g+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 ac_save_c_werror_flag=$ac_c_werror_flag
2612 ac_c_werror_flag=yes
2615 cat >conftest.$ac_ext <<_ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2630 rm -f conftest.$ac_objext
2631 if { (ac_try="$ac_compile"
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_compile") 2>conftest.er1
2639 grep -v '^ *+' conftest.er1 >conftest.err
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } && {
2644 test -z "$ac_c_werror_flag" ||
2645 test ! -s conftest.err
2646 } && test -s conftest.$ac_objext; then
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2653 cat >conftest.$ac_ext <<_ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h. */
2668 rm -f conftest.$ac_objext
2669 if { (ac_try="$ac_compile"
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_compile") 2>conftest.er1
2677 grep -v '^ *+' conftest.er1 >conftest.err
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } && {
2682 test -z "$ac_c_werror_flag" ||
2683 test ! -s conftest.err
2684 } && test -s conftest.$ac_objext; then
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2690 ac_c_werror_flag=$ac_save_c_werror_flag
2692 cat >conftest.$ac_ext <<_ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2707 rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compile") 2>conftest.er1
2716 grep -v '^ *+' conftest.er1 >conftest.err
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } && {
2721 test -z "$ac_c_werror_flag" ||
2722 test ! -s conftest.err
2723 } && test -s conftest.$ac_objext; then
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_c_werror_flag=$ac_save_c_werror_flag
2741 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2742 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2743 if test "$ac_test_CFLAGS" = set; then
2744 CFLAGS=$ac_save_CFLAGS
2745 elif test $ac_cv_prog_cc_g = yes; then
2746 if test "$GCC" = yes; then
2752 if test "$GCC" = yes; then
2758 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2759 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_cc_c89+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 ac_cv_prog_cc_c89=no
2765 cat >conftest.$ac_ext <<_ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2773 #include <sys/types.h>
2774 #include <sys/stat.h>
2775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2776 struct buf { int x; };
2777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2778 static char *e (p, i)
2784 static char *f (char * (*g) (char **, int), char **p, ...)
2789 s = g (p, va_arg (v,int));
2794 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2795 function prototypes and stuff, but not '\xHH' hex character constants.
2796 These don't provoke an error unfortunately, instead are silently treated
2797 as 'x'. The following induces an error, until -std is added to get
2798 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2799 array size at least. It's necessary to write '\x00'==0 to get something
2800 that's true only with -std. */
2801 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2803 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2804 inside strings and character constants. */
2806 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2808 int test (int i, double x);
2809 struct s1 {int (*f) (int a);};
2810 struct s2 {int (*f) (double a);};
2811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2817 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2822 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2823 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2825 CC="$ac_save_CC $ac_arg"
2826 rm -f conftest.$ac_objext
2827 if { (ac_try="$ac_compile"
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833 (eval "$ac_compile") 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } && {
2840 test -z "$ac_c_werror_flag" ||
2841 test ! -s conftest.err
2842 } && test -s conftest.$ac_objext; then
2843 ac_cv_prog_cc_c89=$ac_arg
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2851 rm -f core conftest.err conftest.$ac_objext
2852 test "x$ac_cv_prog_cc_c89" != "xno" && break
2854 rm -f conftest.$ac_ext
2859 case "x$ac_cv_prog_cc_c89" in
2861 { echo "$as_me:$LINENO: result: none needed" >&5
2862 echo "${ECHO_T}none needed" >&6; } ;;
2864 { echo "$as_me:$LINENO: result: unsupported" >&5
2865 echo "${ECHO_T}unsupported" >&6; } ;;
2867 CC="$CC $ac_cv_prog_cc_c89"
2868 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2869 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 ac_cpp='$CXXCPP $CPPFLAGS'
2881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2884 if test -z "$CXX"; then
2885 if test -n "$CCC"; then
2888 if test -n "$ac_tool_prefix"; then
2889 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2895 if test "${ac_cv_prog_CXX+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 if test -n "$CXX"; then
2899 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 if test -n "$CXX"; then
2920 { echo "$as_me:$LINENO: result: $CXX" >&5
2921 echo "${ECHO_T}$CXX" >&6; }
2923 { echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6; }
2928 test -n "$CXX" && break
2931 if test -z "$CXX"; then
2933 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2939 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 if test -n "$ac_ct_CXX"; then
2943 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_ac_ct_CXX="$ac_prog"
2953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2963 if test -n "$ac_ct_CXX"; then
2964 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2965 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2967 { echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6; }
2972 test -n "$ac_ct_CXX" && break
2975 if test "x$ac_ct_CXX" = x; then
2978 case $cross_compiling:$ac_tool_warned in
2980 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2981 whose name does not start with the host triplet. If you think this
2982 configuration is useful to you, please write to autoconf@gnu.org." >&5
2983 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2984 whose name does not start with the host triplet. If you think this
2985 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2986 ac_tool_warned=yes ;;
2994 # Provide some information about the compiler.
2995 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2996 ac_compiler=`set X $ac_compile; echo $2`
2997 { (ac_try="$ac_compiler --version >&5"
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_compiler --version >&5") 2>&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }
3007 { (ac_try="$ac_compiler -v >&5"
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compiler -v >&5") 2>&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }
3017 { (ac_try="$ac_compiler -V >&5"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_compiler -V >&5") 2>&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }
3028 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3029 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3030 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 cat >conftest.$ac_ext <<_ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3051 rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compile") 2>conftest.er1
3060 grep -v '^ *+' conftest.er1 >conftest.err
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } && {
3065 test -z "$ac_cxx_werror_flag" ||
3066 test ! -s conftest.err
3067 } && test -s conftest.$ac_objext; then
3070 echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3080 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3081 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3082 GXX=`test $ac_compiler_gnu = yes && echo yes`
3083 ac_test_CXXFLAGS=${CXXFLAGS+set}
3084 ac_save_CXXFLAGS=$CXXFLAGS
3085 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3086 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3087 if test "${ac_cv_prog_cxx_g+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3091 ac_cxx_werror_flag=yes
3094 cat >conftest.$ac_ext <<_ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3118 grep -v '^ *+' conftest.er1 >conftest.err
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } && {
3123 test -z "$ac_cxx_werror_flag" ||
3124 test ! -s conftest.err
3125 } && test -s conftest.$ac_objext; then
3126 ac_cv_prog_cxx_g=yes
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3132 cat >conftest.$ac_ext <<_ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3147 rm -f conftest.$ac_objext
3148 if { (ac_try="$ac_compile"
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_compile") 2>conftest.er1
3156 grep -v '^ *+' conftest.er1 >conftest.err
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } && {
3161 test -z "$ac_cxx_werror_flag" ||
3162 test ! -s conftest.err
3163 } && test -s conftest.$ac_objext; then
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3195 grep -v '^ *+' conftest.er1 >conftest.err
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } && {
3200 test -z "$ac_cxx_werror_flag" ||
3201 test ! -s conftest.err
3202 } && test -s conftest.$ac_objext; then
3203 ac_cv_prog_cxx_g=yes
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3220 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3221 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3222 if test "$ac_test_CXXFLAGS" = set; then
3223 CXXFLAGS=$ac_save_CXXFLAGS
3224 elif test $ac_cv_prog_cxx_g = yes; then
3225 if test "$GXX" = yes; then
3231 if test "$GXX" = yes; then
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3247 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3249 cat > conftest.c << EOF
3253 int main (int argc, char*argv)
3263 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3264 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3265 { echo "$as_me:$LINENO: result: yes" >&5
3266 echo "${ECHO_T}yes" >&6; }
3270 echo "configure: failed program was:" >&5
3272 { echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6; }
3278 if test "x$GCC_IS_OK" '=' "x";then
3279 echo "***************************************************"
3280 echo "* Your gcc is too old to compile this!"
3282 echo "* The last version compilable by this compiler is "
3283 echo "* swftools 0.7.0, which you can download from "
3284 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3286 echo "* Newer versions require at least gcc 3.0.0 "
3287 echo "***************************************************"
3291 if test "x$CHECKMEM" '!=' "x";then
3295 #unset ac_cv_prog_CC
3296 #unset ac_cv_prog_CXX
3301 ac_cpp='$CPP $CPPFLAGS'
3302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3306 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3307 # On Suns, sometimes $CPP names a directory.
3308 if test -n "$CPP" && test -d "$CPP"; then
3311 if test -z "$CPP"; then
3312 if test "${ac_cv_prog_CPP+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 # Double quotes because CPP needs to be expanded
3316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3319 for ac_c_preproc_warn_flag in '' yes
3321 # Use a header file that comes with gcc, so configuring glibc
3322 # with a fresh cross-compiler works.
3323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3324 # <limits.h> exists even on freestanding compilers.
3325 # On the NeXT, cc -E runs the code through the compiler's parser,
3326 # not just through cpp. "Syntax error" is here to catch this case.
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3334 # include <limits.h>
3336 # include <assert.h>
3340 if { (ac_try="$ac_cpp conftest.$ac_ext"
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3348 grep -v '^ *+' conftest.er1 >conftest.err
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } >/dev/null && {
3353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3354 test ! -s conftest.err
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 # Broken: fails on valid input.
3365 rm -f conftest.err conftest.$ac_ext
3367 # OK, works on sane cases. Now check whether nonexistent headers
3368 # can be detected and how.
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 #include <ac_nonexistent.h>
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385 grep -v '^ *+' conftest.er1 >conftest.err
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null && {
3390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3393 # Broken: success on invalid input.
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 # Passes both tests.
3404 rm -f conftest.err conftest.$ac_ext
3407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3408 rm -f conftest.err conftest.$ac_ext
3409 if $ac_preproc_ok; then
3421 { echo "$as_me:$LINENO: result: $CPP" >&5
3422 echo "${ECHO_T}$CPP" >&6; }
3424 for ac_c_preproc_warn_flag in '' yes
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error" is here to catch this case.
3432 cat >conftest.$ac_ext <<_ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3439 # include <limits.h>
3441 # include <assert.h>
3445 if { (ac_try="$ac_cpp conftest.$ac_ext"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null && {
3458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3459 test ! -s conftest.err
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Broken: fails on valid input.
3470 rm -f conftest.err conftest.$ac_ext
3472 # OK, works on sane cases. Now check whether nonexistent headers
3473 # can be detected and how.
3474 cat >conftest.$ac_ext <<_ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #include <ac_nonexistent.h>
3482 if { (ac_try="$ac_cpp conftest.$ac_ext"
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null && {
3495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3498 # Broken: success on invalid input.
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 # Passes both tests.
3509 rm -f conftest.err conftest.$ac_ext
3512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3513 rm -f conftest.err conftest.$ac_ext
3514 if $ac_preproc_ok; then
3517 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3518 See \`config.log' for more details." >&5
3519 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3520 See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531 if test -n "$ac_tool_prefix"; then
3532 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3533 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3536 if test "${ac_cv_prog_RANLIB+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 if test -n "$RANLIB"; then
3540 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 RANLIB=$ac_cv_prog_RANLIB
3560 if test -n "$RANLIB"; then
3561 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3562 echo "${ECHO_T}$RANLIB" >&6; }
3564 { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3570 if test -z "$ac_cv_prog_RANLIB"; then
3571 ac_ct_RANLIB=$RANLIB
3572 # Extract the first word of "ranlib", so it can be a program name with args.
3573 set dummy ranlib; ac_word=$2
3574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3576 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 if test -n "$ac_ct_RANLIB"; then
3580 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3589 ac_cv_prog_ac_ct_RANLIB="ranlib"
3590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3600 if test -n "$ac_ct_RANLIB"; then
3601 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3602 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3604 { echo "$as_me:$LINENO: result: no" >&5
3605 echo "${ECHO_T}no" >&6; }
3608 if test "x$ac_ct_RANLIB" = x; then
3611 case $cross_compiling:$ac_tool_warned in
3613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3614 whose name does not start with the host triplet. If you think this
3615 configuration is useful to you, please write to autoconf@gnu.org." >&5
3616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3617 whose name does not start with the host triplet. If you think this
3618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3619 ac_tool_warned=yes ;;
3621 RANLIB=$ac_ct_RANLIB
3624 RANLIB="$ac_cv_prog_RANLIB"
3627 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3628 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3629 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3630 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 cat >conftest.make <<\_ACEOF
3636 @echo '@@@%%%=$(MAKE)=@@@%%%'
3638 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3639 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3641 eval ac_cv_prog_make_${ac_make}_set=yes;;
3643 eval ac_cv_prog_make_${ac_make}_set=no;;
3647 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3648 { echo "$as_me:$LINENO: result: yes" >&5
3649 echo "${ECHO_T}yes" >&6; }
3652 { echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6; }
3654 SET_MAKE="MAKE=${MAKE-make}"
3657 # Find a good install program. We prefer a C program (faster),
3658 # so one script is as good as another. But avoid the broken or
3659 # incompatible versions:
3660 # SysV /etc/install, /usr/sbin/install
3661 # SunOS /usr/etc/install
3662 # IRIX /sbin/install
3664 # AmigaOS /C/install, which installs bootblocks on floppy discs
3665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3668 # OS/2's system install, which has a completely different semantic
3669 # ./install, which can be erroneously created by make from ./install.sh.
3670 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3671 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3672 if test -z "$INSTALL"; then
3673 if test "${ac_cv_path_install+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir=.
3681 # Account for people who put trailing slashes in PATH elements.
3683 ./ | .// | /cC/* | \
3684 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3685 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3688 # OSF1 and SCO ODT 3.0 have their own names for install.
3689 # Don't use installbsd from OSF since it installs stuff as root
3691 for ac_prog in ginstall scoinst install; do
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3694 if test $ac_prog = install &&
3695 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3696 # AIX install. It has an incompatible calling convention.
3698 elif test $ac_prog = install &&
3699 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700 # program-specific install script used by HP pwplus--don't use.
3703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3716 if test "${ac_cv_path_install+set}" = set; then
3717 INSTALL=$ac_cv_path_install
3719 # As a last resort, use the slow shell script. Don't cache a
3720 # value for INSTALL within a source directory, because that will
3721 # break other packages using the cache if that directory is
3722 # removed, or if the value is a relative name.
3723 INSTALL=$ac_install_sh
3726 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3727 echo "${ECHO_T}$INSTALL" >&6; }
3729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3730 # It thinks the first close brace ends the variable substitution.
3731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3737 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3738 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3740 if test "$LN_S" = "ln -s"; then
3741 { echo "$as_me:$LINENO: result: yes" >&5
3742 echo "${ECHO_T}yes" >&6; }
3744 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3745 echo "${ECHO_T}no, using $LN_S" >&6; }
3748 for ac_prog in gzip uncompress compress
3750 # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy $ac_prog; ac_word=$2
3752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3754 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 if test -n "$UNCOMPRESS"; then
3758 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_UNCOMPRESS="$ac_prog"
3768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3778 if test -n "$UNCOMPRESS"; then
3779 { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3780 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3782 { echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6; }
3787 test -n "$UNCOMPRESS" && break
3797 if test "x$EXEEXT" = "x.exe";then
3806 { echo "$as_me:$LINENO: checking host system type" >&5
3807 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3808 if test "${ac_cv_host+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 if test "x$host_alias" = x; then
3812 ac_cv_host=$ac_cv_build
3814 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3817 { (exit 1); exit 1; }; }
3821 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3822 echo "${ECHO_T}$ac_cv_host" >&6; }
3825 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3826 echo "$as_me: error: invalid value of canonical host" >&2;}
3827 { (exit 1); exit 1; }; };;
3830 ac_save_IFS=$IFS; IFS='-'
3836 # Remember, the first character of IFS is used to create $*,
3837 # except with old shells:
3840 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3845 { echo "$as_me:$LINENO: checking for target system" >&5
3846 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
3850 *cygwin* ) CYGWIN=yes;;
3851 *mingw* ) MINGW=yes;;
3855 if test "x$MINGW" = "xyes"; then
3856 #fix for the debian distribution of mingw
3857 if test -x "/usr/i586-mingw32msvc/bin/ar";then
3858 AR="/usr/i586-mingw32msvc/bin/ar"
3860 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
3861 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
3863 #fix for the gentoo distribution of mingw
3864 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
3865 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
3867 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
3868 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
3870 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
3871 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
3877 if test "x${CYGWIN}" = "xyes"; then
3878 cat >>confdefs.h <<_ACEOF
3882 { echo "$as_me:$LINENO: result: cygwin" >&5
3883 echo "${ECHO_T}cygwin" >&6; }
3885 if test "x${MINGW}" = "xyes"; then
3886 cat >>confdefs.h <<_ACEOF
3891 cat >>confdefs.h <<_ACEOF
3895 LIBS="$LIBS -lws2_32 -lgdi32"
3896 { echo "$as_me:$LINENO: result: mingw" >&5
3897 echo "${ECHO_T}mingw" >&6; }
3901 cat >>confdefs.h <<_ACEOF
3905 { echo "$as_me:$LINENO: result: " >&5
3906 echo "${ECHO_T}" >&6; }
3912 if test "x${MINGW}" != "xyes"; then
3914 cat >>confdefs.h <<_ACEOF
3927 # The following tries to make use of includes and libraries in
3928 # /usr/local, too. Notice: A -I/usr/local/include might break
3929 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
3930 # especially on systems which link /usr/local to /usr, so it has yet
3931 # to be seen how useful this is.
3932 if test -d /usr/local/lib; then
3933 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3935 if test -d /usr/local/include; then
3936 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
3937 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3940 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
3941 # if the user has a special prefix (like /opt), there might also be $prefix/lib
3942 # and $prefix/include, which should be included in our search paths for libraries
3944 LDFLAGS="$LDFLAGS -L${libdir}"
3945 CPPFLAGS="$CPPFLAGS -I${includedir}"
3946 # TODO- test whether gcc still works after this
3950 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
3953 # this must be done after (I believe) AC_PROG_MAKE_SET
3954 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
3955 STRIP="@echo debug enabled, not stripping "
3962 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
3963 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
3964 if test "${ac_cv_lib_m_sin+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 ac_check_lib_save_LIBS=$LIBS
3969 cat >conftest.$ac_ext <<_ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3976 /* Override any GCC internal prototype to avoid an error.
3977 Use char because int might match the return type of a GCC
3978 builtin and then its argument prototype would still apply. */
3991 rm -f conftest.$ac_objext conftest$ac_exeext
3992 if { (ac_try="$ac_link"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_link") 2>conftest.er1
4000 grep -v '^ *+' conftest.er1 >conftest.err
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest$ac_exeext &&
4008 $as_test_x conftest$ac_exeext; then
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4018 conftest$ac_exeext conftest.$ac_ext
4019 LIBS=$ac_check_lib_save_LIBS
4021 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4022 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4023 if test $ac_cv_lib_m_sin = yes; then
4024 cat >>confdefs.h <<_ACEOF
4031 echo "Error: Math library not found.";
4037 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4038 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4039 if test "${ac_cv_lib_z_deflate+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 ac_check_lib_save_LIBS=$LIBS
4044 cat >conftest.$ac_ext <<_ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4051 /* Override any GCC internal prototype to avoid an error.
4052 Use char because int might match the return type of a GCC
4053 builtin and then its argument prototype would still apply. */
4066 rm -f conftest.$ac_objext conftest$ac_exeext
4067 if { (ac_try="$ac_link"
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_link") 2>conftest.er1
4075 grep -v '^ *+' conftest.er1 >conftest.err
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } && {
4080 test -z "$ac_c_werror_flag" ||
4081 test ! -s conftest.err
4082 } && test -s conftest$ac_exeext &&
4083 $as_test_x conftest$ac_exeext; then
4084 ac_cv_lib_z_deflate=yes
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 ac_cv_lib_z_deflate=no
4092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4093 conftest$ac_exeext conftest.$ac_ext
4094 LIBS=$ac_check_lib_save_LIBS
4096 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4097 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4098 if test $ac_cv_lib_z_deflate = yes; then
4099 cat >>confdefs.h <<_ACEOF
4110 if test "x$ZLIBMISSING" = "xtrue";then
4113 echo "You need zlib to compile swftools"
4119 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4120 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4121 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 ac_check_lib_save_LIBS=$LIBS
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4133 /* Override any GCC internal prototype to avoid an error.
4134 Use char because int might match the return type of a GCC
4135 builtin and then its argument prototype would still apply. */
4139 char jpeg_write_raw_data ();
4143 return jpeg_write_raw_data ();
4148 rm -f conftest.$ac_objext conftest$ac_exeext
4149 if { (ac_try="$ac_link"
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_link") 2>conftest.er1
4157 grep -v '^ *+' conftest.er1 >conftest.err
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } && {
4162 test -z "$ac_c_werror_flag" ||
4163 test ! -s conftest.err
4164 } && test -s conftest$ac_exeext &&
4165 $as_test_x conftest$ac_exeext; then
4166 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4175 conftest$ac_exeext conftest.$ac_ext
4176 LIBS=$ac_check_lib_save_LIBS
4178 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4179 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4180 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4181 cat >>confdefs.h <<_ACEOF
4182 #define HAVE_LIBJPEG 1
4192 { echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
4193 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6; }
4194 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 ac_check_lib_save_LIBS=$LIBS
4199 cat >conftest.$ac_ext <<_ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4206 /* Override any GCC internal prototype to avoid an error.
4207 Use char because int might match the return type of a GCC
4208 builtin and then its argument prototype would still apply. */
4212 char T1_LoadFont ();
4216 return T1_LoadFont ();
4221 rm -f conftest.$ac_objext conftest$ac_exeext
4222 if { (ac_try="$ac_link"
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_link") 2>conftest.er1
4230 grep -v '^ *+' conftest.er1 >conftest.err
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && {
4235 test -z "$ac_c_werror_flag" ||
4236 test ! -s conftest.err
4237 } && test -s conftest$ac_exeext &&
4238 $as_test_x conftest$ac_exeext; then
4239 ac_cv_lib_t1_T1_LoadFont=yes
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 ac_cv_lib_t1_T1_LoadFont=no
4247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4248 conftest$ac_exeext conftest.$ac_ext
4249 LIBS=$ac_check_lib_save_LIBS
4251 { echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
4252 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6; }
4253 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
4254 cat >>confdefs.h <<_ACEOF
4255 #define HAVE_LIBT1 1
4265 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4266 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4267 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 ac_check_lib_save_LIBS=$LIBS
4271 LIBS="-lungif $LIBS"
4272 cat >conftest.$ac_ext <<_ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4279 /* Override any GCC internal prototype to avoid an error.
4280 Use char because int might match the return type of a GCC
4281 builtin and then its argument prototype would still apply. */
4294 rm -f conftest.$ac_objext conftest$ac_exeext
4295 if { (ac_try="$ac_link"
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_link") 2>conftest.er1
4303 grep -v '^ *+' conftest.er1 >conftest.err
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } && {
4308 test -z "$ac_c_werror_flag" ||
4309 test ! -s conftest.err
4310 } && test -s conftest$ac_exeext &&
4311 $as_test_x conftest$ac_exeext; then
4312 ac_cv_lib_ungif_DGifOpen=yes
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 ac_cv_lib_ungif_DGifOpen=no
4320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4321 conftest$ac_exeext conftest.$ac_ext
4322 LIBS=$ac_check_lib_save_LIBS
4324 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4325 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4326 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4327 cat >>confdefs.h <<_ACEOF
4328 #define HAVE_LIBUNGIF 1
4331 LIBS="-lungif $LIBS"
4337 if test "$UNGIFMISSING";then
4340 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4341 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4342 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 ac_check_lib_save_LIBS=$LIBS
4347 cat >conftest.$ac_ext <<_ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4354 /* Override any GCC internal prototype to avoid an error.
4355 Use char because int might match the return type of a GCC
4356 builtin and then its argument prototype would still apply. */
4369 rm -f conftest.$ac_objext conftest$ac_exeext
4370 if { (ac_try="$ac_link"
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376 (eval "$ac_link") 2>conftest.er1
4378 grep -v '^ *+' conftest.er1 >conftest.err
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } && {
4383 test -z "$ac_c_werror_flag" ||
4384 test ! -s conftest.err
4385 } && test -s conftest$ac_exeext &&
4386 $as_test_x conftest$ac_exeext; then
4387 ac_cv_lib_gif_DGifOpen=yes
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 ac_cv_lib_gif_DGifOpen=no
4395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4396 conftest$ac_exeext conftest.$ac_ext
4397 LIBS=$ac_check_lib_save_LIBS
4399 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4400 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4401 if test $ac_cv_lib_gif_DGifOpen = yes; then
4402 cat >>confdefs.h <<_ACEOF
4403 #define HAVE_LIBGIF 1
4415 { echo "$as_me:$LINENO: checking for byte order" >&5
4416 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4417 if test "$cross_compiling" = yes; then
4420 cat >conftest.$ac_ext <<_ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4427 int main (int argc, char *argv[])
4434 rm -f conftest$ac_exeext
4435 if { (ac_try="$ac_link"
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441 (eval "$ac_link") 2>&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4445 { (case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_try") 2>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4456 echo "$as_me: program exited with status $ac_status" >&5
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4469 if test "x${CROSSCOMPILE}" = "x1"; then
4470 { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4471 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4472 { echo "$as_me:$LINENO: checking target system type" >&5
4473 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4474 if test "${ac_cv_target+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 if test "x$target_alias" = x; then
4478 ac_cv_target=$ac_cv_host
4480 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4481 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4482 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4483 { (exit 1); exit 1; }; }
4487 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4488 echo "${ECHO_T}$ac_cv_target" >&6; }
4489 case $ac_cv_target in
4491 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4492 echo "$as_me: error: invalid value of canonical target" >&2;}
4493 { (exit 1); exit 1; }; };;
4495 target=$ac_cv_target
4496 ac_save_IFS=$IFS; IFS='-'
4502 # Remember, the first character of IFS is used to create $*,
4503 # except with old shells:
4506 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4509 # The aliases save the names the user supplied, while $host etc.
4510 # will get canonicalized.
4511 test -n "$target_alias" &&
4512 test "$program_prefix$program_suffix$program_transform_name" = \
4514 program_prefix=${target_alias}-
4515 { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4516 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4521 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4528 if test "x${LITTLEENDIAN}" = "x1"; then
4529 { echo "$as_me:$LINENO: result: little endian" >&5
4530 echo "${ECHO_T}little endian" >&6; }
4534 if test "x${BIGENDIAN}" = "x1"; then
4535 { echo "$as_me:$LINENO: result: big endian" >&5
4536 echo "${ECHO_T}big endian" >&6; }
4539 export WORDS_BIGENDIAN
4540 cat >>confdefs.h <<_ACEOF
4541 #define WORDS_BIGENDIAN 1
4545 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4546 { echo "$as_me:$LINENO: result: unknown" >&5
4547 echo "${ECHO_T}unknown" >&6; }
4548 echo Byte order could not determined.
4554 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4555 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4556 if test "$cross_compiling" = yes; then
4559 cat >conftest.$ac_ext <<_ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4567 int main (int argc, char*argv[])
4569 return system("test `touch config.tmp2`");
4573 rm -f conftest$ac_exeext
4574 if { (ac_try="$ac_link"
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_link") 2>&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4584 { (case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_try") 2>&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4595 echo "$as_me: program exited with status $ac_status" >&5
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4605 if test "x${OK}" = "xOK";then
4606 test -f config.tmp2 || OK=
4609 if test "x${CROSSCOMPILE}" = "x1";then
4612 if test "x${OK}" = "xOK";then
4614 { echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6; }
4617 export SYSTEM_BACKTICKS
4618 cat >>confdefs.h <<_ACEOF
4619 #define SYSTEM_BACKTICKS 1
4623 { echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6; }
4629 test "$program_prefix" != NONE &&
4630 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4631 # Use a double $ so make ignores it.
4632 test "$program_suffix" != NONE &&
4633 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4634 # Double any \ or $. echo might interpret backslashes.
4635 # By default was `s,x,x', remove it if useless.
4636 cat <<\_ACEOF >conftest.sed
4637 s/[\\$]/&&/g;s/;s,x,x,$//
4639 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4643 ac_config_headers="$ac_config_headers config.h"
4651 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4652 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4653 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4654 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 cat >conftest.$ac_ext <<_ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 #include <sys/types.h>
4676 rm -f conftest.$ac_objext
4677 if { (ac_try="$ac_compile"
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_compile") 2>conftest.er1
4685 grep -v '^ *+' conftest.er1 >conftest.err
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } && {
4690 test -z "$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 } && test -s conftest.$ac_objext; then
4693 eval "$as_ac_Header=yes"
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4698 eval "$as_ac_Header=no"
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 ac_res=`eval echo '${'$as_ac_Header'}'`
4704 { echo "$as_me:$LINENO: result: $ac_res" >&5
4705 echo "${ECHO_T}$ac_res" >&6; }
4706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4707 cat >>confdefs.h <<_ACEOF
4708 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4711 ac_header_dirent=$ac_hdr; break
4715 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4716 if test $ac_header_dirent = dirent.h; then
4717 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4718 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4719 if test "${ac_cv_search_opendir+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 ac_func_search_save_LIBS=$LIBS
4723 cat >conftest.$ac_ext <<_ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4730 /* Override any GCC internal prototype to avoid an error.
4731 Use char because int might match the return type of a GCC
4732 builtin and then its argument prototype would still apply. */
4745 for ac_lib in '' dir; do
4746 if test -z "$ac_lib"; then
4747 ac_res="none required"
4750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4752 rm -f conftest.$ac_objext conftest$ac_exeext
4753 if { (ac_try="$ac_link"
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_link") 2>conftest.er1
4761 grep -v '^ *+' conftest.er1 >conftest.err
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && {
4766 test -z "$ac_c_werror_flag" ||
4767 test ! -s conftest.err
4768 } && test -s conftest$ac_exeext &&
4769 $as_test_x conftest$ac_exeext; then
4770 ac_cv_search_opendir=$ac_res
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4780 if test "${ac_cv_search_opendir+set}" = set; then
4784 if test "${ac_cv_search_opendir+set}" = set; then
4787 ac_cv_search_opendir=no
4790 LIBS=$ac_func_search_save_LIBS
4792 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4793 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4794 ac_res=$ac_cv_search_opendir
4795 if test "$ac_res" != no; then
4796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4801 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4802 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4803 if test "${ac_cv_search_opendir+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 ac_func_search_save_LIBS=$LIBS
4807 cat >conftest.$ac_ext <<_ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4814 /* Override any GCC internal prototype to avoid an error.
4815 Use char because int might match the return type of a GCC
4816 builtin and then its argument prototype would still apply. */
4829 for ac_lib in '' x; do
4830 if test -z "$ac_lib"; then
4831 ac_res="none required"
4834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4836 rm -f conftest.$ac_objext conftest$ac_exeext
4837 if { (ac_try="$ac_link"
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_link") 2>conftest.er1
4845 grep -v '^ *+' conftest.er1 >conftest.err
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } && {
4850 test -z "$ac_c_werror_flag" ||
4851 test ! -s conftest.err
4852 } && test -s conftest$ac_exeext &&
4853 $as_test_x conftest$ac_exeext; then
4854 ac_cv_search_opendir=$ac_res
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4864 if test "${ac_cv_search_opendir+set}" = set; then
4868 if test "${ac_cv_search_opendir+set}" = set; then
4871 ac_cv_search_opendir=no
4874 LIBS=$ac_func_search_save_LIBS
4876 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4877 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4878 ac_res=$ac_cv_search_opendir
4879 if test "$ac_res" != no; then
4880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4887 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4888 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4889 if test "${ac_cv_path_GREP+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 # Extract the first word of "grep ggrep" to use in msg output
4893 if test -z "$GREP"; then
4894 set dummy grep ggrep; ac_prog_name=$2
4895 if test "${ac_cv_path_GREP+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_path_GREP_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4904 test -z "$as_dir" && as_dir=.
4905 for ac_prog in grep ggrep; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4908 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4909 # Check for GNU ac_path_GREP and select it if it is found.
4910 # Check for GNU $ac_path_GREP
4911 case `"$ac_path_GREP" --version 2>&1` in
4913 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4916 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 echo 'GREP' >> "conftest.nl"
4923 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 ac_count=`expr $ac_count + 1`
4926 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_GREP="$ac_path_GREP"
4929 ac_path_GREP_max=$ac_count
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4938 $ac_path_GREP_found && break 3
4948 GREP="$ac_cv_path_GREP"
4949 if test -z "$GREP"; then
4950 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4951 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4952 { (exit 1); exit 1; }; }
4956 ac_cv_path_GREP=$GREP
4961 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4962 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4963 GREP="$ac_cv_path_GREP"
4966 { echo "$as_me:$LINENO: checking for egrep" >&5
4967 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4968 if test "${ac_cv_path_EGREP+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4972 then ac_cv_path_EGREP="$GREP -E"
4974 # Extract the first word of "egrep" to use in msg output
4975 if test -z "$EGREP"; then
4976 set dummy egrep; ac_prog_name=$2
4977 if test "${ac_cv_path_EGREP+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 ac_path_EGREP_found=false
4981 # Loop through the user's path and test for each of PROGNAME-LIST
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4986 test -z "$as_dir" && as_dir=.
4987 for ac_prog in egrep; do
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4990 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4991 # Check for GNU ac_path_EGREP and select it if it is found.
4992 # Check for GNU $ac_path_EGREP
4993 case `"$ac_path_EGREP" --version 2>&1` in
4995 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4998 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5001 cat "conftest.in" "conftest.in" >"conftest.tmp"
5002 mv "conftest.tmp" "conftest.in"
5003 cp "conftest.in" "conftest.nl"
5004 echo 'EGREP' >> "conftest.nl"
5005 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007 ac_count=`expr $ac_count + 1`
5008 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5009 # Best one so far, save it but keep looking for a better one
5010 ac_cv_path_EGREP="$ac_path_EGREP"
5011 ac_path_EGREP_max=$ac_count
5013 # 10*(2^10) chars as input seems more than enough
5014 test $ac_count -gt 10 && break
5016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5020 $ac_path_EGREP_found && break 3
5030 EGREP="$ac_cv_path_EGREP"
5031 if test -z "$EGREP"; then
5032 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5033 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5034 { (exit 1); exit 1; }; }
5038 ac_cv_path_EGREP=$EGREP
5044 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5045 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5046 EGREP="$ac_cv_path_EGREP"
5049 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5050 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5051 if test "${ac_cv_header_stdc+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5073 rm -f conftest.$ac_objext
5074 if { (ac_try="$ac_compile"
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080 (eval "$ac_compile") 2>conftest.er1
5082 grep -v '^ *+' conftest.er1 >conftest.err
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } && {
5087 test -z "$ac_c_werror_flag" ||
5088 test ! -s conftest.err
5089 } && test -s conftest.$ac_objext; then
5090 ac_cv_header_stdc=yes
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 ac_cv_header_stdc=no
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 if test $ac_cv_header_stdc = yes; then
5101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5102 cat >conftest.$ac_ext <<_ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5112 $EGREP "memchr" >/dev/null 2>&1; then
5115 ac_cv_header_stdc=no
5121 if test $ac_cv_header_stdc = yes; then
5122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5123 cat >conftest.$ac_ext <<_ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5133 $EGREP "free" >/dev/null 2>&1; then
5136 ac_cv_header_stdc=no
5142 if test $ac_cv_header_stdc = yes; then
5143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5144 if test "$cross_compiling" = yes; then
5147 cat >conftest.$ac_ext <<_ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5155 #if ((' ' & 0x0FF) == 0x020)
5156 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5157 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5159 # define ISLOWER(c) \
5160 (('a' <= (c) && (c) <= 'i') \
5161 || ('j' <= (c) && (c) <= 'r') \
5162 || ('s' <= (c) && (c) <= 'z'))
5163 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5171 for (i = 0; i < 256; i++)
5172 if (XOR (islower (i), ISLOWER (i))
5173 || toupper (i) != TOUPPER (i))
5178 rm -f conftest$ac_exeext
5179 if { (ac_try="$ac_link"
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_link") 2>&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5189 { (case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_try") 2>&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; }; then
5200 echo "$as_me: program exited with status $ac_status" >&5
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5205 ac_cv_header_stdc=no
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5213 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5214 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5217 cat >>confdefs.h <<\_ACEOF
5218 #define STDC_HEADERS 1
5223 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5233 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5234 inttypes.h stdint.h unistd.h
5236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 cat >conftest.$ac_ext <<_ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 $ac_includes_default
5250 #include <$ac_header>
5252 rm -f conftest.$ac_objext
5253 if { (ac_try="$ac_compile"
5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259 (eval "$ac_compile") 2>conftest.er1
5261 grep -v '^ *+' conftest.er1 >conftest.err
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } && {
5266 test -z "$ac_c_werror_flag" ||
5267 test ! -s conftest.err
5268 } && test -s conftest.$ac_objext; then
5269 eval "$as_ac_Header=yes"
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5274 eval "$as_ac_Header=no"
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 ac_res=`eval echo '${'$as_ac_Header'}'`
5280 { echo "$as_me:$LINENO: result: $ac_res" >&5
5281 echo "${ECHO_T}$ac_res" >&6; }
5282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5283 cat >>confdefs.h <<_ACEOF
5284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5307 for ac_header in zlib.h gif_lib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
5309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 ac_res=`eval echo '${'$as_ac_Header'}'`
5317 { echo "$as_me:$LINENO: result: $ac_res" >&5
5318 echo "${ECHO_T}$ac_res" >&6; }
5320 # Is the header compilable?
5321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 #include <$ac_header>
5332 rm -f conftest.$ac_objext
5333 if { (ac_try="$ac_compile"
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5341 grep -v '^ *+' conftest.er1 >conftest.err
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
5349 ac_header_compiler=yes
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_header_compiler=no
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359 echo "${ECHO_T}$ac_header_compiler" >&6; }
5361 # Is the header present?
5362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <$ac_header>
5372 if { (ac_try="$ac_cpp conftest.$ac_ext"
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null && {
5385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5388 ac_header_preproc=yes
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ac_header_preproc=no
5396 rm -f conftest.err conftest.$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6; }
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5407 ac_header_preproc=yes
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 eval "$as_ac_Header=\$ac_header_preproc"
5432 ac_res=`eval echo '${'$as_ac_Header'}'`
5433 { echo "$as_me:$LINENO: result: $ac_res" >&5
5434 echo "${ECHO_T}$ac_res" >&6; }
5437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5438 cat >>confdefs.h <<_ACEOF
5439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5447 cat >>confdefs.h <<_ACEOF
5448 #define PACKAGE "$PACKAGE"
5451 cat >>confdefs.h <<_ACEOF
5452 #define VERSION "$VERSION"
5461 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5462 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5463 if test "${ac_cv_c_const+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 cat >conftest.$ac_ext <<_ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5476 /* FIXME: Include the comments suggested by Paul. */
5478 /* Ultrix mips cc rejects this. */
5479 typedef int charset[2];
5481 /* SunOS 4.1.1 cc rejects this. */
5482 char const *const *pcpcc;
5484 /* NEC SVR4.0.2 mips cc rejects this. */
5485 struct point {int x, y;};
5486 static struct point const zero = {0,0};
5487 /* AIX XL C 1.02.0.0 rejects this.
5488 It does not let you subtract one const X* pointer from another in
5489 an arm of an if-expression whose if-part is not a constant
5491 const char *g = "string";
5492 pcpcc = &g + (g ? g-g : 0);
5493 /* HPUX 7.0 cc rejects these. */
5495 ppc = (char**) pcpcc;
5496 pcpcc = (char const *const *) ppc;
5497 { /* SCO 3.2v4 cc rejects this. */
5499 char const *s = 0 ? (char *) 0 : (char const *) 0;
5504 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5506 const int *foo = &x[0];
5509 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5510 typedef const int *iptr;
5514 { /* AIX XL C 1.02.0.0 rejects this saying
5515 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5516 struct s { int j; const int *ap[3]; };
5517 struct s *b; b->j = 5;
5519 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5523 return !cs[0] && !zero.x;
5530 rm -f conftest.$ac_objext
5531 if { (ac_try="$ac_compile"
5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537 (eval "$ac_compile") 2>conftest.er1
5539 grep -v '^ *+' conftest.er1 >conftest.err
5541 cat conftest.err >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && {
5544 test -z "$ac_c_werror_flag" ||
5545 test ! -s conftest.err
5546 } && test -s conftest.$ac_objext; then
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5558 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5559 if test $ac_cv_c_const = no; then
5561 cat >>confdefs.h <<\_ACEOF
5567 { echo "$as_me:$LINENO: checking for inline" >&5
5568 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5569 if test "${ac_cv_c_inline+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 for ac_kw in inline __inline__ __inline; do
5574 cat >conftest.$ac_ext <<_ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5582 static $ac_kw foo_t static_foo () {return 0; }
5583 $ac_kw foo_t foo () {return 0; }
5587 rm -f conftest.$ac_objext
5588 if { (ac_try="$ac_compile"
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_compile") 2>conftest.er1
5596 grep -v '^ *+' conftest.er1 >conftest.err
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && {
5601 test -z "$ac_c_werror_flag" ||
5602 test ! -s conftest.err
5603 } && test -s conftest.$ac_objext; then
5604 ac_cv_c_inline=$ac_kw
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 test "$ac_cv_c_inline" != no && break
5617 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5618 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5621 case $ac_cv_c_inline in
5624 case $ac_cv_c_inline in
5626 *) ac_val=$ac_cv_c_inline;;
5628 cat >>confdefs.h <<_ACEOF
5630 #define inline $ac_val
5636 { echo "$as_me:$LINENO: checking for off_t" >&5
5637 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5638 if test "${ac_cv_type_off_t+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 $ac_includes_default
5648 typedef off_t ac__type_new_;
5652 if ((ac__type_new_ *) 0)
5654 if (sizeof (ac__type_new_))
5660 rm -f conftest.$ac_objext
5661 if { (ac_try="$ac_compile"
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_compile") 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && {
5674 test -z "$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5676 } && test -s conftest.$ac_objext; then
5677 ac_cv_type_off_t=yes
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5688 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5689 if test $ac_cv_type_off_t = yes; then
5693 cat >>confdefs.h <<_ACEOF
5694 #define off_t long int
5699 { echo "$as_me:$LINENO: checking for size_t" >&5
5700 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5701 if test "${ac_cv_type_size_t+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 cat >conftest.$ac_ext <<_ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 $ac_includes_default
5711 typedef size_t ac__type_new_;
5715 if ((ac__type_new_ *) 0)
5717 if (sizeof (ac__type_new_))
5723 rm -f conftest.$ac_objext
5724 if { (ac_try="$ac_compile"
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_compile") 2>conftest.er1
5732 grep -v '^ *+' conftest.er1 >conftest.err
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest.$ac_objext; then
5740 ac_cv_type_size_t=yes
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 ac_cv_type_size_t=no
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5751 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5752 if test $ac_cv_type_size_t = yes; then
5756 cat >>confdefs.h <<_ACEOF
5757 #define size_t unsigned int
5762 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5763 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5764 if test "${ac_cv_struct_tm+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 cat >conftest.$ac_ext <<_ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 #include <sys/types.h>
5780 int *p = &tm.tm_sec;
5786 rm -f conftest.$ac_objext
5787 if { (ac_try="$ac_compile"
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_compile") 2>conftest.er1
5795 grep -v '^ *+' conftest.er1 >conftest.err
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && {
5800 test -z "$ac_c_werror_flag" ||
5801 test ! -s conftest.err
5802 } && test -s conftest.$ac_objext; then
5803 ac_cv_struct_tm=time.h
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 ac_cv_struct_tm=sys/time.h
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5814 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5815 if test $ac_cv_struct_tm = sys/time.h; then
5817 cat >>confdefs.h <<\_ACEOF
5818 #define TM_IN_SYS_TIME 1
5823 { echo "$as_me:$LINENO: checking for boolean" >&5
5824 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5825 if test "${ac_cv_type_boolean+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 cat >conftest.$ac_ext <<_ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 $ac_includes_default
5835 typedef boolean ac__type_new_;
5839 if ((ac__type_new_ *) 0)
5841 if (sizeof (ac__type_new_))
5847 rm -f conftest.$ac_objext
5848 if { (ac_try="$ac_compile"
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_compile") 2>conftest.er1
5856 grep -v '^ *+' conftest.er1 >conftest.err
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } && {
5861 test -z "$ac_c_werror_flag" ||
5862 test ! -s conftest.err
5863 } && test -s conftest.$ac_objext; then
5864 ac_cv_type_boolean=yes
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 ac_cv_type_boolean=no
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5875 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5876 if test $ac_cv_type_boolean = yes; then
5880 cat >>confdefs.h <<_ACEOF
5896 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
5898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 cat >conftest.$ac_ext <<_ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5912 #define $ac_func innocuous_$ac_func
5914 /* System header to define __stub macros and hopefully few prototypes,
5915 which can conflict with char $ac_func (); below.
5916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5917 <limits.h> exists even on freestanding compilers. */
5920 # include <limits.h>
5922 # include <assert.h>
5927 /* Override any GCC internal prototype to avoid an error.
5928 Use char because int might match the return type of a GCC
5929 builtin and then its argument prototype would still apply. */
5934 /* The GNU C library defines this for functions which it implements
5935 to always fail with ENOSYS. Some functions are actually named
5936 something starting with __ and the normal name is an alias. */
5937 #if defined __stub_$ac_func || defined __stub___$ac_func
5949 rm -f conftest.$ac_objext conftest$ac_exeext
5950 if { (ac_try="$ac_link"
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_link") 2>conftest.er1
5958 grep -v '^ *+' conftest.er1 >conftest.err
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } && {
5963 test -z "$ac_c_werror_flag" ||
5964 test ! -s conftest.err
5965 } && test -s conftest$ac_exeext &&
5966 $as_test_x conftest$ac_exeext; then
5967 eval "$as_ac_var=yes"
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 eval "$as_ac_var=no"
5975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5976 conftest$ac_exeext conftest.$ac_ext
5978 ac_res=`eval echo '${'$as_ac_var'}'`
5979 { echo "$as_me:$LINENO: result: $ac_res" >&5
5980 echo "${ECHO_T}$ac_res" >&6; }
5981 if test `eval echo '${'$as_ac_var'}'` = yes; then
5982 cat >>confdefs.h <<_ACEOF
5983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5990 { echo "$as_me:$LINENO: checking for signed" >&5
5991 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5992 if test "${ac_cv_type_signed+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 cat >conftest.$ac_ext <<_ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 $ac_includes_default
6002 typedef signed ac__type_new_;
6006 if ((ac__type_new_ *) 0)
6008 if (sizeof (ac__type_new_))
6014 rm -f conftest.$ac_objext
6015 if { (ac_try="$ac_compile"
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_compile") 2>conftest.er1
6023 grep -v '^ *+' conftest.er1 >conftest.err
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && {
6028 test -z "$ac_c_werror_flag" ||
6029 test ! -s conftest.err
6030 } && test -s conftest.$ac_objext; then
6031 ac_cv_type_signed=yes
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_cv_type_signed=no
6039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
6042 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
6044 # The cast to long int works around a bug in the HP C Compiler
6045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6047 # This bug is HP SR number 8606223364.
6048 { echo "$as_me:$LINENO: checking size of signed" >&5
6049 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
6050 if test "${ac_cv_sizeof_signed+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 if test "$cross_compiling" = yes; then
6054 # Depending upon the size, compute the lo and hi bounds.
6055 cat >conftest.$ac_ext <<_ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 $ac_includes_default
6062 typedef signed ac__type_sizeof_;
6066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6073 rm -f conftest.$ac_objext
6074 if { (ac_try="$ac_compile"
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_compile") 2>conftest.er1
6082 grep -v '^ *+' conftest.er1 >conftest.err
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } && {
6087 test -z "$ac_c_werror_flag" ||
6088 test ! -s conftest.err
6089 } && test -s conftest.$ac_objext; then
6092 cat >conftest.$ac_ext <<_ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6098 $ac_includes_default
6099 typedef signed ac__type_sizeof_;
6103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6110 rm -f conftest.$ac_objext
6111 if { (ac_try="$ac_compile"
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_compile") 2>conftest.er1
6119 grep -v '^ *+' conftest.er1 >conftest.err
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } && {
6124 test -z "$ac_c_werror_flag" ||
6125 test ! -s conftest.err
6126 } && test -s conftest.$ac_objext; then
6127 ac_hi=$ac_mid; break
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 ac_lo=`expr $ac_mid + 1`
6133 if test $ac_lo -le $ac_mid; then
6137 ac_mid=`expr 2 '*' $ac_mid + 1`
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6146 cat >conftest.$ac_ext <<_ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 $ac_includes_default
6153 typedef signed ac__type_sizeof_;
6157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6164 rm -f conftest.$ac_objext
6165 if { (ac_try="$ac_compile"
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_compile") 2>conftest.er1
6173 grep -v '^ *+' conftest.er1 >conftest.err
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && {
6178 test -z "$ac_c_werror_flag" ||
6179 test ! -s conftest.err
6180 } && test -s conftest.$ac_objext; then
6183 cat >conftest.$ac_ext <<_ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 $ac_includes_default
6190 typedef signed ac__type_sizeof_;
6194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6201 rm -f conftest.$ac_objext
6202 if { (ac_try="$ac_compile"
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_compile") 2>conftest.er1
6210 grep -v '^ *+' conftest.er1 >conftest.err
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
6218 ac_lo=$ac_mid; break
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 ac_hi=`expr '(' $ac_mid ')' - 1`
6224 if test $ac_mid -le $ac_hi; then
6228 ac_mid=`expr 2 '*' $ac_mid`
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 # Binary search between lo and hi bounds.
6245 while test "x$ac_lo" != "x$ac_hi"; do
6246 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6247 cat >conftest.$ac_ext <<_ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 $ac_includes_default
6254 typedef signed ac__type_sizeof_;
6258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6265 rm -f conftest.$ac_objext
6266 if { (ac_try="$ac_compile"
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_compile") 2>conftest.er1
6274 grep -v '^ *+' conftest.er1 >conftest.err
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } && {
6279 test -z "$ac_c_werror_flag" ||
6280 test ! -s conftest.err
6281 } && test -s conftest.$ac_objext; then
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6287 ac_lo=`expr '(' $ac_mid ')' + 1`
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293 ?*) ac_cv_sizeof_signed=$ac_lo;;
6294 '') if test "$ac_cv_type_signed" = yes; then
6295 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6296 See \`config.log' for more details." >&5
6297 echo "$as_me: error: cannot compute sizeof (signed)
6298 See \`config.log' for more details." >&2;}
6299 { (exit 77); exit 77; }; }
6301 ac_cv_sizeof_signed=0
6305 cat >conftest.$ac_ext <<_ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 $ac_includes_default
6312 typedef signed ac__type_sizeof_;
6313 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6314 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6321 FILE *f = fopen ("conftest.val", "w");
6324 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6326 long int i = longval ();
6327 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6329 fprintf (f, "%ld\n", i);
6333 unsigned long int i = ulongval ();
6334 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6336 fprintf (f, "%lu\n", i);
6338 return ferror (f) || fclose (f) != 0;
6344 rm -f conftest$ac_exeext
6345 if { (ac_try="$ac_link"
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_link") 2>&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6355 { (case "(($ac_try" in
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_try") 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_cv_sizeof_signed=`cat conftest.val`
6366 echo "$as_me: program exited with status $ac_status" >&5
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6371 if test "$ac_cv_type_signed" = yes; then
6372 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6373 See \`config.log' for more details." >&5
6374 echo "$as_me: error: cannot compute sizeof (signed)
6375 See \`config.log' for more details." >&2;}
6376 { (exit 77); exit 77; }; }
6378 ac_cv_sizeof_signed=0
6381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6385 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
6386 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
6390 cat >>confdefs.h <<_ACEOF
6391 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
6395 { echo "$as_me:$LINENO: checking for unsigned" >&5
6396 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
6397 if test "${ac_cv_type_unsigned+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 cat >conftest.$ac_ext <<_ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 $ac_includes_default
6407 typedef unsigned ac__type_new_;
6411 if ((ac__type_new_ *) 0)
6413 if (sizeof (ac__type_new_))
6419 rm -f conftest.$ac_objext
6420 if { (ac_try="$ac_compile"
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_compile") 2>conftest.er1
6428 grep -v '^ *+' conftest.er1 >conftest.err
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest.$ac_objext; then
6436 ac_cv_type_unsigned=yes
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6441 ac_cv_type_unsigned=no
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
6447 echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
6449 # The cast to long int works around a bug in the HP C Compiler
6450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6452 # This bug is HP SR number 8606223364.
6453 { echo "$as_me:$LINENO: checking size of unsigned" >&5
6454 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
6455 if test "${ac_cv_sizeof_unsigned+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 if test "$cross_compiling" = yes; then
6459 # Depending upon the size, compute the lo and hi bounds.
6460 cat >conftest.$ac_ext <<_ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 $ac_includes_default
6467 typedef unsigned ac__type_sizeof_;
6471 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6478 rm -f conftest.$ac_objext
6479 if { (ac_try="$ac_compile"
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_compile") 2>conftest.er1
6487 grep -v '^ *+' conftest.er1 >conftest.err
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && {
6492 test -z "$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 } && test -s conftest.$ac_objext; then
6497 cat >conftest.$ac_ext <<_ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6503 $ac_includes_default
6504 typedef unsigned ac__type_sizeof_;
6508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6515 rm -f conftest.$ac_objext
6516 if { (ac_try="$ac_compile"
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6522 (eval "$ac_compile") 2>conftest.er1
6524 grep -v '^ *+' conftest.er1 >conftest.err
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } && {
6529 test -z "$ac_c_werror_flag" ||
6530 test ! -s conftest.err
6531 } && test -s conftest.$ac_objext; then
6532 ac_hi=$ac_mid; break
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6537 ac_lo=`expr $ac_mid + 1`
6538 if test $ac_lo -le $ac_mid; then
6542 ac_mid=`expr 2 '*' $ac_mid + 1`
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 cat >conftest.$ac_ext <<_ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 $ac_includes_default
6558 typedef unsigned ac__type_sizeof_;
6562 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6569 rm -f conftest.$ac_objext
6570 if { (ac_try="$ac_compile"
6572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573 *) ac_try_echo=$ac_try;;
6575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576 (eval "$ac_compile") 2>conftest.er1
6578 grep -v '^ *+' conftest.er1 >conftest.err
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && {
6583 test -z "$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 } && test -s conftest.$ac_objext; then
6588 cat >conftest.$ac_ext <<_ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 $ac_includes_default
6595 typedef unsigned ac__type_sizeof_;
6599 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6606 rm -f conftest.$ac_objext
6607 if { (ac_try="$ac_compile"
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_compile") 2>conftest.er1
6615 grep -v '^ *+' conftest.er1 >conftest.err
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } && {
6620 test -z "$ac_c_werror_flag" ||
6621 test ! -s conftest.err
6622 } && test -s conftest.$ac_objext; then
6623 ac_lo=$ac_mid; break
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6628 ac_hi=`expr '(' $ac_mid ')' - 1`
6629 if test $ac_mid -le $ac_hi; then
6633 ac_mid=`expr 2 '*' $ac_mid`
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649 # Binary search between lo and hi bounds.
6650 while test "x$ac_lo" != "x$ac_hi"; do
6651 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6652 cat >conftest.$ac_ext <<_ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 $ac_includes_default
6659 typedef unsigned ac__type_sizeof_;
6663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6670 rm -f conftest.$ac_objext
6671 if { (ac_try="$ac_compile"
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6677 (eval "$ac_compile") 2>conftest.er1
6679 grep -v '^ *+' conftest.er1 >conftest.err
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } && {
6684 test -z "$ac_c_werror_flag" ||
6685 test ! -s conftest.err
6686 } && test -s conftest.$ac_objext; then
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6692 ac_lo=`expr '(' $ac_mid ')' + 1`
6695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
6699 '') if test "$ac_cv_type_unsigned" = yes; then
6700 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6701 See \`config.log' for more details." >&5
6702 echo "$as_me: error: cannot compute sizeof (unsigned)
6703 See \`config.log' for more details." >&2;}
6704 { (exit 77); exit 77; }; }
6706 ac_cv_sizeof_unsigned=0
6710 cat >conftest.$ac_ext <<_ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716 $ac_includes_default
6717 typedef unsigned ac__type_sizeof_;
6718 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6719 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6726 FILE *f = fopen ("conftest.val", "w");
6729 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6731 long int i = longval ();
6732 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6734 fprintf (f, "%ld\n", i);
6738 unsigned long int i = ulongval ();
6739 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6741 fprintf (f, "%lu\n", i);
6743 return ferror (f) || fclose (f) != 0;
6749 rm -f conftest$ac_exeext
6750 if { (ac_try="$ac_link"
6752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753 *) ac_try_echo=$ac_try;;
6755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6756 (eval "$ac_link") 2>&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6760 { (case "(($ac_try" in
6761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6762 *) ac_try_echo=$ac_try;;
6764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6765 (eval "$ac_try") 2>&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 ac_cv_sizeof_unsigned=`cat conftest.val`
6771 echo "$as_me: program exited with status $ac_status" >&5
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6776 if test "$ac_cv_type_unsigned" = yes; then
6777 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6778 See \`config.log' for more details." >&5
6779 echo "$as_me: error: cannot compute sizeof (unsigned)
6780 See \`config.log' for more details." >&2;}
6781 { (exit 77); exit 77; }; }
6783 ac_cv_sizeof_unsigned=0
6786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6790 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
6791 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
6795 cat >>confdefs.h <<_ACEOF
6796 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
6800 { echo "$as_me:$LINENO: checking for signed long" >&5
6801 echo $ECHO_N "checking for signed long... $ECHO_C" >&6; }
6802 if test "${ac_cv_type_signed_long+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 cat >conftest.$ac_ext <<_ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 $ac_includes_default
6812 typedef signed long ac__type_new_;
6816 if ((ac__type_new_ *) 0)
6818 if (sizeof (ac__type_new_))
6824 rm -f conftest.$ac_objext
6825 if { (ac_try="$ac_compile"
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_compile") 2>conftest.er1
6833 grep -v '^ *+' conftest.er1 >conftest.err
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest.$ac_objext; then
6841 ac_cv_type_signed_long=yes
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 ac_cv_type_signed_long=no
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long" >&5
6852 echo "${ECHO_T}$ac_cv_type_signed_long" >&6; }
6854 # The cast to long int works around a bug in the HP C Compiler
6855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6857 # This bug is HP SR number 8606223364.
6858 { echo "$as_me:$LINENO: checking size of signed long" >&5
6859 echo $ECHO_N "checking size of signed long... $ECHO_C" >&6; }
6860 if test "${ac_cv_sizeof_signed_long+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 if test "$cross_compiling" = yes; then
6864 # Depending upon the size, compute the lo and hi bounds.
6865 cat >conftest.$ac_ext <<_ACEOF
6868 cat confdefs.h >>conftest.$ac_ext
6869 cat >>conftest.$ac_ext <<_ACEOF
6870 /* end confdefs.h. */
6871 $ac_includes_default
6872 typedef signed long ac__type_sizeof_;
6876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6892 grep -v '^ *+' conftest.er1 >conftest.err
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
6902 cat >conftest.$ac_ext <<_ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 $ac_includes_default
6909 typedef signed long ac__type_sizeof_;
6913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6920 rm -f conftest.$ac_objext
6921 if { (ac_try="$ac_compile"
6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924 *) ac_try_echo=$ac_try;;
6926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6927 (eval "$ac_compile") 2>conftest.er1
6929 grep -v '^ *+' conftest.er1 >conftest.err
6931 cat conftest.err >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } && {
6934 test -z "$ac_c_werror_flag" ||
6935 test ! -s conftest.err
6936 } && test -s conftest.$ac_objext; then
6937 ac_hi=$ac_mid; break
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 ac_lo=`expr $ac_mid + 1`
6943 if test $ac_lo -le $ac_mid; then
6947 ac_mid=`expr 2 '*' $ac_mid + 1`
6950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 cat >conftest.$ac_ext <<_ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 $ac_includes_default
6963 typedef signed long ac__type_sizeof_;
6967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6974 rm -f conftest.$ac_objext
6975 if { (ac_try="$ac_compile"
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981 (eval "$ac_compile") 2>conftest.er1
6983 grep -v '^ *+' conftest.er1 >conftest.err
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && {
6988 test -z "$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6990 } && test -s conftest.$ac_objext; then
6993 cat >conftest.$ac_ext <<_ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 $ac_includes_default
7000 typedef signed long ac__type_sizeof_;
7004 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7011 rm -f conftest.$ac_objext
7012 if { (ac_try="$ac_compile"
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_compile") 2>conftest.er1
7020 grep -v '^ *+' conftest.er1 >conftest.err
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } && {
7025 test -z "$ac_c_werror_flag" ||
7026 test ! -s conftest.err
7027 } && test -s conftest.$ac_objext; then
7028 ac_lo=$ac_mid; break
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 ac_hi=`expr '(' $ac_mid ')' - 1`
7034 if test $ac_mid -le $ac_hi; then
7038 ac_mid=`expr 2 '*' $ac_mid`
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054 # Binary search between lo and hi bounds.
7055 while test "x$ac_lo" != "x$ac_hi"; do
7056 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7057 cat >conftest.$ac_ext <<_ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7064 typedef signed long ac__type_sizeof_;
7068 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7075 rm -f conftest.$ac_objext
7076 if { (ac_try="$ac_compile"
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_compile") 2>conftest.er1
7084 grep -v '^ *+' conftest.er1 >conftest.err
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest.$ac_objext; then
7094 echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7097 ac_lo=`expr '(' $ac_mid ')' + 1`
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103 ?*) ac_cv_sizeof_signed_long=$ac_lo;;
7104 '') if test "$ac_cv_type_signed_long" = yes; then
7105 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7106 See \`config.log' for more details." >&5
7107 echo "$as_me: error: cannot compute sizeof (signed long)
7108 See \`config.log' for more details." >&2;}
7109 { (exit 77); exit 77; }; }
7111 ac_cv_sizeof_signed_long=0
7115 cat >conftest.$ac_ext <<_ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 $ac_includes_default
7122 typedef signed long ac__type_sizeof_;
7123 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7124 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7131 FILE *f = fopen ("conftest.val", "w");
7134 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7136 long int i = longval ();
7137 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7139 fprintf (f, "%ld\n", i);
7143 unsigned long int i = ulongval ();
7144 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7146 fprintf (f, "%lu\n", i);
7148 return ferror (f) || fclose (f) != 0;
7154 rm -f conftest$ac_exeext
7155 if { (ac_try="$ac_link"
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161 (eval "$ac_link") 2>&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7165 { (case "(($ac_try" in
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170 (eval "$ac_try") 2>&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_cv_sizeof_signed_long=`cat conftest.val`
7176 echo "$as_me: program exited with status $ac_status" >&5
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7181 if test "$ac_cv_type_signed_long" = yes; then
7182 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7183 See \`config.log' for more details." >&5
7184 echo "$as_me: error: cannot compute sizeof (signed long)
7185 See \`config.log' for more details." >&2;}
7186 { (exit 77); exit 77; }; }
7188 ac_cv_sizeof_signed_long=0
7191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7195 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
7196 echo "${ECHO_T}$ac_cv_sizeof_signed_long" >&6; }
7200 cat >>confdefs.h <<_ACEOF
7201 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
7205 { echo "$as_me:$LINENO: checking for unsigned long" >&5
7206 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7207 if test "${ac_cv_type_unsigned_long+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 cat >conftest.$ac_ext <<_ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7216 $ac_includes_default
7217 typedef unsigned long ac__type_new_;
7221 if ((ac__type_new_ *) 0)
7223 if (sizeof (ac__type_new_))
7229 rm -f conftest.$ac_objext
7230 if { (ac_try="$ac_compile"
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_compile") 2>conftest.er1
7238 grep -v '^ *+' conftest.er1 >conftest.err
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } && {
7243 test -z "$ac_c_werror_flag" ||
7244 test ! -s conftest.err
7245 } && test -s conftest.$ac_objext; then
7246 ac_cv_type_unsigned_long=yes
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 ac_cv_type_unsigned_long=no
7254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7257 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7259 # The cast to long int works around a bug in the HP C Compiler
7260 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7261 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7262 # This bug is HP SR number 8606223364.
7263 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
7264 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7265 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 if test "$cross_compiling" = yes; then
7269 # Depending upon the size, compute the lo and hi bounds.
7270 cat >conftest.$ac_ext <<_ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7276 $ac_includes_default
7277 typedef unsigned long ac__type_sizeof_;
7281 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7288 rm -f conftest.$ac_objext
7289 if { (ac_try="$ac_compile"
7291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_compile") 2>conftest.er1
7297 grep -v '^ *+' conftest.er1 >conftest.err
7299 cat conftest.err >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
7307 cat >conftest.$ac_ext <<_ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7313 $ac_includes_default
7314 typedef unsigned long ac__type_sizeof_;
7318 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7325 rm -f conftest.$ac_objext
7326 if { (ac_try="$ac_compile"
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332 (eval "$ac_compile") 2>conftest.er1
7334 grep -v '^ *+' conftest.er1 >conftest.err
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && {
7339 test -z "$ac_c_werror_flag" ||
7340 test ! -s conftest.err
7341 } && test -s conftest.$ac_objext; then
7342 ac_hi=$ac_mid; break
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 ac_lo=`expr $ac_mid + 1`
7348 if test $ac_lo -le $ac_mid; then
7352 ac_mid=`expr 2 '*' $ac_mid + 1`
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7361 cat >conftest.$ac_ext <<_ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 $ac_includes_default
7368 typedef unsigned long ac__type_sizeof_;
7372 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7379 rm -f conftest.$ac_objext
7380 if { (ac_try="$ac_compile"
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386 (eval "$ac_compile") 2>conftest.er1
7388 grep -v '^ *+' conftest.er1 >conftest.err
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && {
7393 test -z "$ac_c_werror_flag" ||
7394 test ! -s conftest.err
7395 } && test -s conftest.$ac_objext; then
7398 cat >conftest.$ac_ext <<_ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 $ac_includes_default
7405 typedef unsigned long ac__type_sizeof_;
7409 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7416 rm -f conftest.$ac_objext
7417 if { (ac_try="$ac_compile"
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423 (eval "$ac_compile") 2>conftest.er1
7425 grep -v '^ *+' conftest.er1 >conftest.err
7427 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && {
7430 test -z "$ac_c_werror_flag" ||
7431 test ! -s conftest.err
7432 } && test -s conftest.$ac_objext; then
7433 ac_lo=$ac_mid; break
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7438 ac_hi=`expr '(' $ac_mid ')' - 1`
7439 if test $ac_mid -le $ac_hi; then
7443 ac_mid=`expr 2 '*' $ac_mid`
7446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 # Binary search between lo and hi bounds.
7460 while test "x$ac_lo" != "x$ac_hi"; do
7461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7462 cat >conftest.$ac_ext <<_ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 $ac_includes_default
7469 typedef unsigned long ac__type_sizeof_;
7473 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7480 rm -f conftest.$ac_objext
7481 if { (ac_try="$ac_compile"
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487 (eval "$ac_compile") 2>conftest.er1
7489 grep -v '^ *+' conftest.er1 >conftest.err
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest.$ac_objext; then
7499 echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7502 ac_lo=`expr '(' $ac_mid ')' + 1`
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7509 '') if test "$ac_cv_type_unsigned_long" = yes; then
7510 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7511 See \`config.log' for more details." >&5
7512 echo "$as_me: error: cannot compute sizeof (unsigned long)
7513 See \`config.log' for more details." >&2;}
7514 { (exit 77); exit 77; }; }
7516 ac_cv_sizeof_unsigned_long=0
7520 cat >conftest.$ac_ext <<_ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7526 $ac_includes_default
7527 typedef unsigned long ac__type_sizeof_;
7528 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7529 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7536 FILE *f = fopen ("conftest.val", "w");
7539 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7541 long int i = longval ();
7542 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7544 fprintf (f, "%ld\n", i);
7548 unsigned long int i = ulongval ();
7549 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7551 fprintf (f, "%lu\n", i);
7553 return ferror (f) || fclose (f) != 0;
7559 rm -f conftest$ac_exeext
7560 if { (ac_try="$ac_link"
7562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7563 *) ac_try_echo=$ac_try;;
7565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7566 (eval "$ac_link") 2>&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7570 { (case "(($ac_try" in
7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7575 (eval "$ac_try") 2>&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; }; then
7579 ac_cv_sizeof_unsigned_long=`cat conftest.val`
7581 echo "$as_me: program exited with status $ac_status" >&5
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7586 if test "$ac_cv_type_unsigned_long" = yes; then
7587 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7588 See \`config.log' for more details." >&5
7589 echo "$as_me: error: cannot compute sizeof (unsigned long)
7590 See \`config.log' for more details." >&2;}
7591 { (exit 77); exit 77; }; }
7593 ac_cv_sizeof_unsigned_long=0
7596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7600 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
7601 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
7605 cat >>confdefs.h <<_ACEOF
7606 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7610 { echo "$as_me:$LINENO: checking for signed long long" >&5
7611 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7612 if test "${ac_cv_type_signed_long_long+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 cat >conftest.$ac_ext <<_ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 $ac_includes_default
7622 typedef signed long long ac__type_new_;
7626 if ((ac__type_new_ *) 0)
7628 if (sizeof (ac__type_new_))
7634 rm -f conftest.$ac_objext
7635 if { (ac_try="$ac_compile"
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641 (eval "$ac_compile") 2>conftest.er1
7643 grep -v '^ *+' conftest.er1 >conftest.err
7645 cat conftest.err >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } && {
7648 test -z "$ac_c_werror_flag" ||
7649 test ! -s conftest.err
7650 } && test -s conftest.$ac_objext; then
7651 ac_cv_type_signed_long_long=yes
7653 echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7656 ac_cv_type_signed_long_long=no
7659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7662 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7664 # The cast to long int works around a bug in the HP C Compiler
7665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7667 # This bug is HP SR number 8606223364.
7668 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7669 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7670 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 if test "$cross_compiling" = yes; then
7674 # Depending upon the size, compute the lo and hi bounds.
7675 cat >conftest.$ac_ext <<_ACEOF
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h. */
7681 $ac_includes_default
7682 typedef signed long long ac__type_sizeof_;
7686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7693 rm -f conftest.$ac_objext
7694 if { (ac_try="$ac_compile"
7696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697 *) ac_try_echo=$ac_try;;
7699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7700 (eval "$ac_compile") 2>conftest.er1
7702 grep -v '^ *+' conftest.er1 >conftest.err
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } && {
7707 test -z "$ac_c_werror_flag" ||
7708 test ! -s conftest.err
7709 } && test -s conftest.$ac_objext; then
7712 cat >conftest.$ac_ext <<_ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7718 $ac_includes_default
7719 typedef signed long long ac__type_sizeof_;
7723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7730 rm -f conftest.$ac_objext
7731 if { (ac_try="$ac_compile"
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_compile") 2>conftest.er1
7739 grep -v '^ *+' conftest.er1 >conftest.err
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest.$ac_objext; then
7747 ac_hi=$ac_mid; break
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7752 ac_lo=`expr $ac_mid + 1`
7753 if test $ac_lo -le $ac_mid; then
7757 ac_mid=`expr 2 '*' $ac_mid + 1`
7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7766 cat >conftest.$ac_ext <<_ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7772 $ac_includes_default
7773 typedef signed long long ac__type_sizeof_;
7777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7784 rm -f conftest.$ac_objext
7785 if { (ac_try="$ac_compile"
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_compile") 2>conftest.er1
7793 grep -v '^ *+' conftest.er1 >conftest.err
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && {
7798 test -z "$ac_c_werror_flag" ||
7799 test ! -s conftest.err
7800 } && test -s conftest.$ac_objext; then
7803 cat >conftest.$ac_ext <<_ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7809 $ac_includes_default
7810 typedef signed long long ac__type_sizeof_;
7814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7821 rm -f conftest.$ac_objext
7822 if { (ac_try="$ac_compile"
7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_compile") 2>conftest.er1
7830 grep -v '^ *+' conftest.er1 >conftest.err
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } && {
7835 test -z "$ac_c_werror_flag" ||
7836 test ! -s conftest.err
7837 } && test -s conftest.$ac_objext; then
7838 ac_lo=$ac_mid; break
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 ac_hi=`expr '(' $ac_mid ')' - 1`
7844 if test $ac_mid -le $ac_hi; then
7848 ac_mid=`expr 2 '*' $ac_mid`
7851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864 # Binary search between lo and hi bounds.
7865 while test "x$ac_lo" != "x$ac_hi"; do
7866 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7867 cat >conftest.$ac_ext <<_ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7873 $ac_includes_default
7874 typedef signed long long ac__type_sizeof_;
7878 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7885 rm -f conftest.$ac_objext
7886 if { (ac_try="$ac_compile"
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_compile") 2>conftest.er1
7894 grep -v '^ *+' conftest.er1 >conftest.err
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } && {
7899 test -z "$ac_c_werror_flag" ||
7900 test ! -s conftest.err
7901 } && test -s conftest.$ac_objext; then
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 ac_lo=`expr '(' $ac_mid ')' + 1`
7910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7914 '') if test "$ac_cv_type_signed_long_long" = yes; then
7915 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7916 See \`config.log' for more details." >&5
7917 echo "$as_me: error: cannot compute sizeof (signed long long)
7918 See \`config.log' for more details." >&2;}
7919 { (exit 77); exit 77; }; }
7921 ac_cv_sizeof_signed_long_long=0
7925 cat >conftest.$ac_ext <<_ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 $ac_includes_default
7932 typedef signed long long ac__type_sizeof_;
7933 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7934 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7941 FILE *f = fopen ("conftest.val", "w");
7944 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7946 long int i = longval ();
7947 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7949 fprintf (f, "%ld\n", i);
7953 unsigned long int i = ulongval ();
7954 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7956 fprintf (f, "%lu\n", i);
7958 return ferror (f) || fclose (f) != 0;
7964 rm -f conftest$ac_exeext
7965 if { (ac_try="$ac_link"
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971 (eval "$ac_link") 2>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7975 { (case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_try") 2>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7986 echo "$as_me: program exited with status $ac_status" >&5
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7991 if test "$ac_cv_type_signed_long_long" = yes; then
7992 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7993 See \`config.log' for more details." >&5
7994 echo "$as_me: error: cannot compute sizeof (signed long long)
7995 See \`config.log' for more details." >&2;}
7996 { (exit 77); exit 77; }; }
7998 ac_cv_sizeof_signed_long_long=0
8001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8005 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
8006 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
8010 cat >>confdefs.h <<_ACEOF
8011 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
8015 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
8016 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
8017 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 $ac_includes_default
8027 typedef unsigned long long ac__type_new_;
8031 if ((ac__type_new_ *) 0)
8033 if (sizeof (ac__type_new_))
8039 rm -f conftest.$ac_objext
8040 if { (ac_try="$ac_compile"
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_compile") 2>conftest.er1
8048 grep -v '^ *+' conftest.er1 >conftest.err
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
8055 } && test -s conftest.$ac_objext; then
8056 ac_cv_type_unsigned_long_long=yes
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8061 ac_cv_type_unsigned_long_long=no
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8067 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
8069 # The cast to long int works around a bug in the HP C Compiler
8070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8072 # This bug is HP SR number 8606223364.
8073 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
8074 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
8075 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 if test "$cross_compiling" = yes; then
8079 # Depending upon the size, compute the lo and hi bounds.
8080 cat >conftest.$ac_ext <<_ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086 $ac_includes_default
8087 typedef unsigned long long ac__type_sizeof_;
8091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8098 rm -f conftest.$ac_objext
8099 if { (ac_try="$ac_compile"
8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
8107 grep -v '^ *+' conftest.er1 >conftest.err
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } && {
8112 test -z "$ac_c_werror_flag" ||
8113 test ! -s conftest.err
8114 } && test -s conftest.$ac_objext; then
8117 cat >conftest.$ac_ext <<_ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 $ac_includes_default
8124 typedef unsigned long long ac__type_sizeof_;
8128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8135 rm -f conftest.$ac_objext
8136 if { (ac_try="$ac_compile"
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_compile") 2>conftest.er1
8144 grep -v '^ *+' conftest.er1 >conftest.err
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest.$ac_objext; then
8152 ac_hi=$ac_mid; break
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_lo=`expr $ac_mid + 1`
8158 if test $ac_lo -le $ac_mid; then
8162 ac_mid=`expr 2 '*' $ac_mid + 1`
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8178 typedef unsigned long long ac__type_sizeof_;
8182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8189 rm -f conftest.$ac_objext
8190 if { (ac_try="$ac_compile"
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_compile") 2>conftest.er1
8198 grep -v '^ *+' conftest.er1 >conftest.err
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } && {
8203 test -z "$ac_c_werror_flag" ||
8204 test ! -s conftest.err
8205 } && test -s conftest.$ac_objext; then
8208 cat >conftest.$ac_ext <<_ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8214 $ac_includes_default
8215 typedef unsigned long long ac__type_sizeof_;
8219 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8226 rm -f conftest.$ac_objext
8227 if { (ac_try="$ac_compile"
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_compile") 2>conftest.er1
8235 grep -v '^ *+' conftest.er1 >conftest.err
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && {
8240 test -z "$ac_c_werror_flag" ||
8241 test ! -s conftest.err
8242 } && test -s conftest.$ac_objext; then
8243 ac_lo=$ac_mid; break
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 ac_hi=`expr '(' $ac_mid ')' - 1`
8249 if test $ac_mid -le $ac_hi; then
8253 ac_mid=`expr 2 '*' $ac_mid`
8256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 # Binary search between lo and hi bounds.
8270 while test "x$ac_lo" != "x$ac_hi"; do
8271 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8272 cat >conftest.$ac_ext <<_ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 $ac_includes_default
8279 typedef unsigned long long ac__type_sizeof_;
8283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8299 grep -v '^ *+' conftest.er1 >conftest.err
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest.$ac_objext; then
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8312 ac_lo=`expr '(' $ac_mid ')' + 1`
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
8319 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
8320 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8321 See \`config.log' for more details." >&5
8322 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8323 See \`config.log' for more details." >&2;}
8324 { (exit 77); exit 77; }; }
8326 ac_cv_sizeof_unsigned_long_long=0
8330 cat >conftest.$ac_ext <<_ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 $ac_includes_default
8337 typedef unsigned long long ac__type_sizeof_;
8338 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8339 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8346 FILE *f = fopen ("conftest.val", "w");
8349 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8351 long int i = longval ();
8352 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8354 fprintf (f, "%ld\n", i);
8358 unsigned long int i = ulongval ();
8359 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8361 fprintf (f, "%lu\n", i);
8363 return ferror (f) || fclose (f) != 0;
8369 rm -f conftest$ac_exeext
8370 if { (ac_try="$ac_link"
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_link") 2>&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8380 { (case "(($ac_try" in
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_try") 2>&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
8391 echo "$as_me: program exited with status $ac_status" >&5
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8396 if test "$ac_cv_type_unsigned_long_long" = yes; then
8397 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8398 See \`config.log' for more details." >&5
8399 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8400 See \`config.log' for more details." >&2;}
8401 { (exit 77); exit 77; }; }
8403 ac_cv_sizeof_unsigned_long_long=0
8406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8410 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
8411 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
8415 cat >>confdefs.h <<_ACEOF
8416 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8423 # Extract the first word of "freetype-config", so it can be a program name with args.
8424 set dummy freetype-config; ac_word=$2
8425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8427 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 case $FREETYPE_CONFIG in
8432 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8437 for as_dir in $as_dummy
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8455 if test -n "$FREETYPE_CONFIG"; then
8456 { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8457 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8459 { echo "$as_me:$LINENO: result: no" >&5
8460 echo "${ECHO_T}no" >&6; }
8465 OLDCPPFLAGS="${CPPFLAGS}"
8467 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8468 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8469 else if test -d /usr/include/freetype2; then
8470 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8471 else if test -d /usr/local/include/freetype2; then
8472 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8477 if test "x${FREETYPE_CONFIG}" '=' "x";then
8478 # if we didn't find the freetype-config program, we won't
8479 # know where the libs are expected to be. So just blindly
8480 # try to link against them.
8481 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8482 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8483 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 ac_check_lib_save_LIBS=$LIBS
8487 LIBS="-lfreetype $LIBS"
8488 cat >conftest.$ac_ext <<_ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8495 /* Override any GCC internal prototype to avoid an error.
8496 Use char because int might match the return type of a GCC
8497 builtin and then its argument prototype would still apply. */
8501 char FT_Init_FreeType ();
8505 return FT_Init_FreeType ();
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (ac_try="$ac_link"
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_link") 2>conftest.er1
8519 grep -v '^ *+' conftest.er1 >conftest.err
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest$ac_exeext &&
8527 $as_test_x conftest$ac_exeext; then
8528 ac_cv_lib_freetype_FT_Init_FreeType=yes
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 ac_cv_lib_freetype_FT_Init_FreeType=no
8536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8537 conftest$ac_exeext conftest.$ac_ext
8538 LIBS=$ac_check_lib_save_LIBS
8540 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8541 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8542 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8549 for ac_header in ft2build.h
8551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 ac_res=`eval echo '${'$as_ac_Header'}'`
8559 { echo "$as_me:$LINENO: result: $ac_res" >&5
8560 echo "${ECHO_T}$ac_res" >&6; }
8562 # Is the header compilable?
8563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8565 cat >conftest.$ac_ext <<_ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 $ac_includes_default
8572 #include <$ac_header>
8574 rm -f conftest.$ac_objext
8575 if { (ac_try="$ac_compile"
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581 (eval "$ac_compile") 2>conftest.er1
8583 grep -v '^ *+' conftest.er1 >conftest.err
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } && {
8588 test -z "$ac_c_werror_flag" ||
8589 test ! -s conftest.err
8590 } && test -s conftest.$ac_objext; then
8591 ac_header_compiler=yes
8593 echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8596 ac_header_compiler=no
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8601 echo "${ECHO_T}$ac_header_compiler" >&6; }
8603 # Is the header present?
8604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8606 cat >conftest.$ac_ext <<_ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8612 #include <$ac_header>
8614 if { (ac_try="$ac_cpp conftest.$ac_ext"
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8622 grep -v '^ *+' conftest.er1 >conftest.err
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } >/dev/null && {
8627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8628 test ! -s conftest.err
8630 ac_header_preproc=yes
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_header_preproc=no
8638 rm -f conftest.err conftest.$ac_ext
8639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8640 echo "${ECHO_T}$ac_header_preproc" >&6; }
8642 # So? What about this header?
8643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8649 ac_header_preproc=yes
8652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 eval "$as_ac_Header=\$ac_header_preproc"
8674 ac_res=`eval echo '${'$as_ac_Header'}'`
8675 { echo "$as_me:$LINENO: result: $ac_res" >&5
8676 echo "${ECHO_T}$ac_res" >&6; }
8679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8680 cat >>confdefs.h <<_ACEOF
8681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8688 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8690 for ac_header in freetype/freetype.h
8692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 ac_res=`eval echo '${'$as_ac_Header'}'`
8700 { echo "$as_me:$LINENO: result: $ac_res" >&5
8701 echo "${ECHO_T}$ac_res" >&6; }
8703 # Is the header compilable?
8704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8706 cat >conftest.$ac_ext <<_ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 $ac_includes_default
8713 #include <$ac_header>
8715 rm -f conftest.$ac_objext
8716 if { (ac_try="$ac_compile"
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_compile") 2>conftest.er1
8724 grep -v '^ *+' conftest.er1 >conftest.err
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } && {
8729 test -z "$ac_c_werror_flag" ||
8730 test ! -s conftest.err
8731 } && test -s conftest.$ac_objext; then
8732 ac_header_compiler=yes
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 ac_header_compiler=no
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8742 echo "${ECHO_T}$ac_header_compiler" >&6; }
8744 # Is the header present?
8745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8747 cat >conftest.$ac_ext <<_ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 #include <$ac_header>
8755 if { (ac_try="$ac_cpp conftest.$ac_ext"
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8763 grep -v '^ *+' conftest.er1 >conftest.err
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } >/dev/null && {
8768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8771 ac_header_preproc=yes
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 ac_header_preproc=no
8779 rm -f conftest.err conftest.$ac_ext
8780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8781 echo "${ECHO_T}$ac_header_preproc" >&6; }
8783 # So? What about this header?
8784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8790 ac_header_preproc=yes
8793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 eval "$as_ac_Header=\$ac_header_preproc"
8815 ac_res=`eval echo '${'$as_ac_Header'}'`
8816 { echo "$as_me:$LINENO: result: $ac_res" >&5
8817 echo "${ECHO_T}$ac_res" >&6; }
8820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8821 cat >>confdefs.h <<_ACEOF
8822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8824 HAVE_FREETYPE_FREETYPE_H=1
8831 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8832 "x${FREETYPE_CONFIG}" '!=' "x";then
8833 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8836 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8841 if test "x${HAVE_FREETYPE}" = "x1"; then
8842 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8843 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8845 LIBS="$LIBS -lfreetype"
8848 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8849 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8852 { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8853 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8855 cat > conftest.c << EOF
8856 $HAVE_FT2BUILD_H_DEFINE
8858 #ifdef HAVE_FT2BUILD_H
8859 #include <ft2build.h>
8860 #include FT_FREETYPE_H
8863 #include FT_SFNT_NAMES_H
8864 #include FT_TRUETYPE_IDS_H
8865 #include FT_OUTLINE_H
8867 #include <freetype/freetype.h>
8868 #include <freetype/ftglyph.h>
8869 #include <freetype/ftsizes.h>
8870 #include <freetype/ftsnames.h>
8871 #include <freetype/ttnameid.h>
8872 #include <freetype/ftoutln.h>
8877 FT_Library ftlibrary;
8889 FT_Init_FreeType(&ftlibrary);
8890 FT_New_Face(ftlibrary, "filename", 0, &face);
8891 i = face->num_glyphs - 1;
8892 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8893 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8894 FT_Get_Postscript_Name(face);
8895 FT_Get_Char_Index(face, 33);
8896 FT_Get_First_Char(face, &i);
8897 FT_Get_Next_Char(face, 33, &i);
8898 if(FT_HAS_GLYPH_NAMES(face)) {
8899 FT_Get_Glyph_Name(face, 33, name, 127);
8901 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8902 FT_Get_Glyph(face->glyph, &glyph);
8903 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8904 FT_Done_Glyph(glyph);
8906 FT_Done_FreeType(ftlibrary);
8911 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8912 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8913 { echo "$as_me:$LINENO: result: yes" >&5
8914 echo "${ECHO_T}yes" >&6; }
8915 cat >>confdefs.h <<_ACEOF
8916 #define HAVE_FREETYPE 1
8919 cat >>confdefs.h <<_ACEOF
8920 #define HAVE_FREETYPE_FREETYPE_H 1
8923 cat >>confdefs.h <<_ACEOF
8924 #define USE_FREETYPE 1
8928 echo "configure: failed program was:" >&5
8931 { echo "$as_me:$LINENO: result: no" >&5
8932 echo "${ECHO_T}no" >&6; }
8937 # if the above didn't work out, reset all changes to the compiler variables.
8938 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8939 CPPFLAGS=$OLDCPPFLAGS
8944 #RFX_CHECK_FONTCONFIG
8948 if test "x${DISABLE_LAME}" = "xtrue"; then
8949 echo "*" Disabling lame support...
8951 # old lame code at lib/lame
8952 if test -f lib/lame/Makefile.in; then
8953 lame_objects="lame/psymodel.\$(O) lame/fft.\$(O) lame/newmdct.\$(O) lame/quantize.\$(O) lame/takehiro.\$(O) lame/reservoir.\$(O) lame/quantize_pvt.\$(O) lame/vbrquantize.\$(O) lame/encoder.\$(O) lame/id3tag.\$(O) lame/version.\$(O) lame/tables.\$(O) lame/util.\$(O) lame/bitstream.\$(O) lame/set_get.\$(O) lame/VbrTag.\$(O) lame/lame.\$(O)"
8954 lame_makefile="lib/lame/Makefile"
8955 CPPFLAGS="$CPPFLAGS -Ilame"
8956 cat >>confdefs.h <<_ACEOF
8961 if test -d /usr/include/lame; then
8962 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
8964 if test -d /usr/local/include/lame; then
8965 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
8969 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
8970 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
8971 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 ac_check_lib_save_LIBS=$LIBS
8975 LIBS="-lmp3lame $LIBS"
8976 cat >conftest.$ac_ext <<_ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8983 /* Override any GCC internal prototype to avoid an error.
8984 Use char because int might match the return type of a GCC
8985 builtin and then its argument prototype would still apply. */
8993 return lame_init ();
8998 rm -f conftest.$ac_objext conftest$ac_exeext
8999 if { (ac_try="$ac_link"
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_link") 2>conftest.er1
9007 grep -v '^ *+' conftest.er1 >conftest.err
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } && {
9012 test -z "$ac_c_werror_flag" ||
9013 test ! -s conftest.err
9014 } && test -s conftest$ac_exeext &&
9015 $as_test_x conftest$ac_exeext; then
9016 ac_cv_lib_mp3lame_lame_init=yes
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 ac_cv_lib_mp3lame_lame_init=no
9024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9025 conftest$ac_exeext conftest.$ac_ext
9026 LIBS=$ac_check_lib_save_LIBS
9028 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9029 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
9030 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9031 cat >>confdefs.h <<_ACEOF
9032 #define HAVE_LIBMP3LAME 1
9035 LIBS="-lmp3lame $LIBS"
9042 for ac_header in lame.h
9044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 ac_res=`eval echo '${'$as_ac_Header'}'`
9052 { echo "$as_me:$LINENO: result: $ac_res" >&5
9053 echo "${ECHO_T}$ac_res" >&6; }
9055 # Is the header compilable?
9056 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9058 cat >conftest.$ac_ext <<_ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064 $ac_includes_default
9065 #include <$ac_header>
9067 rm -f conftest.$ac_objext
9068 if { (ac_try="$ac_compile"
9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071 *) ac_try_echo=$ac_try;;
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074 (eval "$ac_compile") 2>conftest.er1
9076 grep -v '^ *+' conftest.er1 >conftest.err
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } && {
9081 test -z "$ac_c_werror_flag" ||
9082 test ! -s conftest.err
9083 } && test -s conftest.$ac_objext; then
9084 ac_header_compiler=yes
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 ac_header_compiler=no
9092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9094 echo "${ECHO_T}$ac_header_compiler" >&6; }
9096 # Is the header present?
9097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9099 cat >conftest.$ac_ext <<_ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 #include <$ac_header>
9107 if { (ac_try="$ac_cpp conftest.$ac_ext"
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9115 grep -v '^ *+' conftest.er1 >conftest.err
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } >/dev/null && {
9120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9123 ac_header_preproc=yes
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 ac_header_preproc=no
9131 rm -f conftest.err conftest.$ac_ext
9132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6; }
9135 # So? What about this header?
9136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9142 ac_header_preproc=yes
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 eval "$as_ac_Header=\$ac_header_preproc"
9167 ac_res=`eval echo '${'$as_ac_Header'}'`
9168 { echo "$as_me:$LINENO: result: $ac_res" >&5
9169 echo "${ECHO_T}$ac_res" >&6; }
9172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9173 cat >>confdefs.h <<_ACEOF
9174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9181 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
9182 cat >>confdefs.h <<_ACEOF
9191 # ------------------------------------------------------------------
9195 for ac_prog in avifile-config
9197 # Extract the first word of "$ac_prog", so it can be a program name with args.
9198 set dummy $ac_prog; ac_word=$2
9199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9201 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 if test -n "$AVIFILE_CONFIG"; then
9205 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211 test -z "$as_dir" && as_dir=.
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9214 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9224 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9225 if test -n "$AVIFILE_CONFIG"; then
9226 { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9227 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
9229 { echo "$as_me:$LINENO: result: no" >&5
9230 echo "${ECHO_T}no" >&6; }
9234 test -n "$AVIFILE_CONFIG" && break
9238 if test "x$AVIFILE_CONFIG" '!=' "x";then
9239 OLDCPPFLAGS="$CPPFLAGS"
9240 # temporarily add avifile paths to CPPFLAGS...
9241 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9244 for ac_header in avifile/version.h version.h
9246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 ac_res=`eval echo '${'$as_ac_Header'}'`
9254 { echo "$as_me:$LINENO: result: $ac_res" >&5
9255 echo "${ECHO_T}$ac_res" >&6; }
9257 # Is the header compilable?
9258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9260 cat >conftest.$ac_ext <<_ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9266 $ac_includes_default
9267 #include <$ac_header>
9269 rm -f conftest.$ac_objext
9270 if { (ac_try="$ac_compile"
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_compile") 2>conftest.er1
9278 grep -v '^ *+' conftest.er1 >conftest.err
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } && {
9283 test -z "$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9285 } && test -s conftest.$ac_objext; then
9286 ac_header_compiler=yes
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_header_compiler=no
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9296 echo "${ECHO_T}$ac_header_compiler" >&6; }
9298 # Is the header present?
9299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9301 cat >conftest.$ac_ext <<_ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 #include <$ac_header>
9309 if { (ac_try="$ac_cpp conftest.$ac_ext"
9311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9312 *) ac_try_echo=$ac_try;;
9314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9317 grep -v '^ *+' conftest.er1 >conftest.err
9319 cat conftest.err >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); } >/dev/null && {
9322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9323 test ! -s conftest.err
9325 ac_header_preproc=yes
9327 echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9330 ac_header_preproc=no
9333 rm -f conftest.err conftest.$ac_ext
9334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9335 echo "${ECHO_T}$ac_header_preproc" >&6; }
9337 # So? What about this header?
9338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9344 ac_header_preproc=yes
9347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 eval "$as_ac_Header=\$ac_header_preproc"
9369 ac_res=`eval echo '${'$as_ac_Header'}'`
9370 { echo "$as_me:$LINENO: result: $ac_res" >&5
9371 echo "${ECHO_T}$ac_res" >&6; }
9374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9375 cat >>confdefs.h <<_ACEOF
9376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9384 CPPFLAGS="$OLDCPPFLAGS"
9387 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9388 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
9390 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9391 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9393 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9394 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9397 cat > conftest.cpp << EOF
9399 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9400 // so we have to introduce them this way
9401 $HAVE_VERSION_H_DEFINE
9402 $HAVE_AVIFILE_VERSION_H_DEFINE
9404 #ifdef HAVE_VERSION_H
9405 #include <version.h>
9407 #ifdef HAVE_AVIFILE_VERSION_H
9408 #include <avifile/version.h>
9411 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9412 #include <avifile.h>
9413 #include <aviplay.h>
9414 #include <avm_fourcc.h>
9415 #include <avm_creators.h>
9416 #include <StreamInfo.h>
9419 #include <avifile.h>
9420 #include <aviplay.h>
9421 #include <aviutil.h>
9423 #define Height height
9430 IAviReadFile* player;
9431 IAviReadStream* astream;
9432 IAviReadStream* vstream;
9433 player = CreateIAviReadFile(0);
9434 astream = player->GetStream(0, AviStream::Audio);
9435 vstream = player->GetStream(0, AviStream::Video);
9436 vstream -> StartStreaming();
9437 astream -> StartStreaming();
9440 player->GetFileHeader(&head);
9441 head.dwMicroSecPerFrame;
9446 head.dwMicroSecPerFrame;
9447 astream->GetEndPos(),
9448 astream->GetEndTime());
9449 player->StreamCount();
9451 StreamInfo*audioinfo;
9452 StreamInfo*videoinfo;
9453 audioinfo = astream->GetStreamInfo();
9454 videoinfo = vstream->GetStreamInfo();
9455 videoinfo->GetVideoWidth();
9456 videoinfo->GetVideoHeight();
9457 audioinfo->GetAudioSamplesPerSec();
9458 videoinfo->GetFps();
9460 CImage*img = vstream->GetFrame();
9467 astream->GetAudioFormatInfo(&wave,0);
9469 astream->ReadFrames(0,0,0,a,b);
9471 int main (int argc, char*argv)
9477 if test "x$AVIFILE_CONFIG" '!=' "x";then
9478 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9479 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9480 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9481 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9482 { echo "$as_me:$LINENO: result: yes" >&5
9483 echo "${ECHO_T}yes" >&6; }
9486 cat >>confdefs.h <<_ACEOF
9487 #define AVIFILE true
9491 echo "configure: failed program was:" >&5
9492 cat conftest.cpp >&5
9493 { echo "$as_me:$LINENO: result: no" >&5
9494 echo "${ECHO_T}no" >&6; }
9497 { echo "$as_me:$LINENO: result: no" >&5
9498 echo "${ECHO_T}no" >&6; }
9502 if test "x${AVIFILE}" = "xtrue"; then
9503 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9504 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9505 cat >>confdefs.h <<_ACEOF
9506 #define HAVE_AVIFILE 1
9511 if test "x${WIN32}" != "x"; then
9512 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9513 #if test "x${AVIFIL32}" != "x"; then
9514 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9516 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9522 # ------------------------------------------------------------------
9524 if test "x${UNCOMPRESS}" = "xgzip"; then
9525 cat >>confdefs.h <<_ACEOF
9532 # ------------------------------------------------------------------
9535 { echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
9536 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6; }
9538 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9541 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9542 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9544 # iterate through version 2.2 to 2.4
9547 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
9549 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
9550 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9552 elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9553 #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
9555 PYTHON_LIB="-framework Python"
9556 if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
9557 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9559 PYTHON_LIB2="$PYTHON_LIB"
9561 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9563 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9564 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9565 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9567 -a -f "/sw/include/python2.$v/Python.h" \
9568 -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9570 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9571 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9576 if test "x$PY_VERSION" "!=" "x"; then
9577 { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9578 echo "${ECHO_T}$PY_VERSION" >&6; }
9579 export PYTHON_INCLUDES PYTHON_LIB
9582 { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9583 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
9585 cat > conftest.c << EOF
9587 #include <Imaging.h>
9592 ret = Py_Main(0, 0);
9593 int x; // check also for gcc 2.95.x incompatibilities
9597 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9598 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9599 { echo "$as_me:$LINENO: result: yes" >&5
9600 echo "${ECHO_T}yes" >&6; }
9603 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9604 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9605 { echo "$as_me:$LINENO: result: yes" >&5
9606 echo "${ECHO_T}yes" >&6; }
9607 PYTHON_LIB="${PYTHON_LIB2}"
9610 echo "configure: failed program was:" >&5
9612 { echo "$as_me:$LINENO: result: no" >&5
9613 echo "${ECHO_T}no" >&6; }
9618 { echo "$as_me:$LINENO: result: nope" >&5
9619 echo "${ECHO_T}nope" >&6; }
9623 if test "x$PYTHON_OK" '!=' "xyes";then
9624 echo all install uninstall clean: > lib/python/Makefile
9625 # fail silently- the most users won't have any need for the
9626 # python interface anyway
9628 pythonrfxswf="lib/python/Makefile"
9631 # ------------------------------------------------------------------
9633 { echo "$as_me:$LINENO: checking for missing libraries" >&5
9634 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
9636 if test "x$ZLIBMISSING" = "xtrue";then
9637 MISSINGLIBS="${MISSINGLIBS} zlib"
9641 if test "x$JPEGLIBMISSING" = "xtrue";then
9642 MISSINGLIBS="${MISSINGLIBS} jpeglib"
9644 DISABLEJPEG2SWF=true
9647 if test "x$T1LIBMISSING" = "xtrue";then
9648 MISSINGLIBS="${MISSINGLIBS} t1lib"
9650 if test "x$UNGIFMISSING" = "xtrue";then
9652 MISSINGLIBS="${MISSINGLIBS} ungif"
9656 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
9657 DISABLEPDF2SWF=true;
9658 DISABLEJPEG2SWF=true;
9659 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9662 if test "x$HAVE_FREETYPE" '!=' "x1"; then
9663 DISABLEPDF2SWF=true;
9664 MISSINGLIBS="${MISSINGLIBS} freetype"
9667 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
9668 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9670 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
9672 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
9675 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
9676 DISABLEPNG2SWF=true;
9677 MISSINGLIBS="${MISSINGLIBS} zlib.h"
9680 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9681 # MISSINGLIBS="${MISSINGLIBS} avifile"
9684 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
9685 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
9687 # ------------------------------------------------------------------
9689 if test "x${MISSINGLIBS}" '!=' "x"; then
9690 echo "***************************************************"
9691 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
9694 avi2swf="avi2swf/Makefile"
9695 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9696 #don't whine, avi2swf is outdated anyway
9697 #echo "* Disabling avi2swf tool..."
9698 echo all install uninstall clean: > avi2swf/Makefile
9702 pdf2swf_makefile="lib/pdf/Makefile"
9703 PDF2SWF='pdf2swf$(E)'
9706 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
9707 echo "* Disabling pdf2swf tool..."
9708 rm -f lib/pdf/Makefile
9709 echo all install uninstall clean: > lib/pdf/Makefile
9717 if test "x${ZLIBMISSING}" = "xtrue"; then
9719 echo "* Warning! Without zlib, you will not be able to read"
9720 echo "* or write compressed Flash MX files!"
9723 JPEG2SWF='jpeg2swf$(E)'
9724 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
9725 echo "* Disabling jpeg2swf tool..."
9731 GIF2SWF='gif2swf$(E)'
9732 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
9733 echo "* Disabling gif2swf tool..."
9739 PNG2SWF='png2swf$(E)'
9740 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
9741 echo "* Disabling png2swf tool..."
9747 if test "x${MISSINGLIBS}" '!=' "x"; then
9748 if test "x${PARTIAL}" '=' "x"; then
9749 echo "* (never mind)"
9751 echo "***************************************************"
9754 # ------------------------------------------------------------------
9756 if test -f "release.in"; then release_in="./release"; fi
9757 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile"
9759 ac_config_files="$ac_config_files ${FILES}"
9761 cat >confcache <<\_ACEOF
9762 # This file is a shell script that caches the results of configure
9763 # tests run on this system so they can be shared between configure
9764 # scripts and configure runs, see configure's option --config-cache.
9765 # It is not useful on other systems. If it contains results you don't
9766 # want to keep, you may remove or edit it.
9768 # config.status only pays attention to the cache file if you give it
9769 # the --recheck option to rerun configure.
9771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9777 # The following way of writing the cache mishandles newlines in values,
9778 # but we know of no workaround that is simple, portable, and efficient.
9779 # So, we kill variables containing newlines.
9780 # Ultrix sh set writes to stderr and can't be redirected directly,
9781 # and sets the high bit in the cache file unless we assign to the vars.
9783 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9784 eval ac_val=\$$ac_var
9788 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9789 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9792 _ | IFS | as_nl) ;; #(
9793 *) $as_unset $ac_var ;;
9799 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9800 *${as_nl}ac_space=\ *)
9801 # `set' does not quote correctly, so add quotes (double-quote
9802 # substitution turns \\\\ into \\, and sed turns \\ into \).
9805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9808 # `set' quotes correctly as required by POSIX, so do not add quotes.
9809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9818 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9820 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9822 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9823 if test -w "$cache_file"; then
9824 test "x$cache_file" != "x/dev/null" &&
9825 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9826 echo "$as_me: updating cache $cache_file" >&6;}
9827 cat confcache >$cache_file
9829 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9830 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9836 # Let make expand exec_prefix.
9837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9839 DEFS=-DHAVE_CONFIG_H
9843 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9844 # 1. Remove the extension, and $U if already installed.
9845 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9846 ac_i=`echo "$ac_i" | sed "$ac_script"`
9847 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9848 # will be set to the directory where LIBOBJS objects are built.
9849 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9850 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9854 LTLIBOBJS=$ac_ltlibobjs
9858 : ${CONFIG_STATUS=./config.status}
9859 ac_clean_files_save=$ac_clean_files
9860 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9861 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9862 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9863 cat >$CONFIG_STATUS <<_ACEOF
9865 # Generated by $as_me.
9866 # Run this file to recreate the current configuration.
9867 # Compiler output produced by configure, useful for debugging
9868 # configure, is in config.log if it exists.
9873 SHELL=\${CONFIG_SHELL-$SHELL}
9876 cat >>$CONFIG_STATUS <<\_ACEOF
9877 ## --------------------- ##
9878 ## M4sh Initialization. ##
9879 ## --------------------- ##
9881 # Be more Bourne compatible
9882 DUALCASE=1; export DUALCASE # for MKS sh
9883 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9886 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9887 # is contrary to our usage. Disable this feature.
9888 alias -g '${1+"$@"}'='"$@"'
9889 setopt NO_GLOB_SUBST
9891 case `(set -o) 2>/dev/null` in
9892 *posix*) set -o posix ;;
9901 # Avoid depending upon Character Ranges.
9902 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9903 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9904 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9905 as_cr_digits='0123456789'
9906 as_cr_alnum=$as_cr_Letters$as_cr_digits
9908 # The user is always right.
9909 if test "${PATH_SEPARATOR+set}" != set; then
9910 echo "#! /bin/sh" >conf$$.sh
9911 echo "exit 0" >>conf$$.sh
9913 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9921 # Support unset when possible.
9922 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9930 # We need space, tab and new line, in precisely that order. Quoting is
9931 # there to prevent editors from complaining about space-tab.
9932 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9933 # splitting by setting IFS to empty value.)
9938 # Find who we are. Look in the path if we contain no directory separator.
9940 *[\\/]* ) as_myself=$0 ;;
9941 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9945 test -z "$as_dir" && as_dir=.
9946 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9952 # We did not find ourselves, most probably we were run as `sh COMMAND'
9953 # in which case we are not to be found in the path.
9954 if test "x$as_myself" = x; then
9957 if test ! -f "$as_myself"; then
9958 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9959 { (exit 1); exit 1; }
9962 # Work around bugs in pre-3.0 UWIN ksh.
9963 for as_var in ENV MAIL MAILPATH
9964 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9972 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9973 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9974 LC_TELEPHONE LC_TIME
9976 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9977 eval $as_var=C; export $as_var
9979 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9983 # Required to use basename.
9984 if expr a : '\(a\)' >/dev/null 2>&1 &&
9985 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9991 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9992 as_basename=basename
9998 # Name of the executable.
9999 as_me=`$as_basename -- "$0" ||
10000 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10001 X"$0" : 'X\(//\)$' \| \
10002 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10004 sed '/^.*\/\([^/][^/]*\)\/*$/{
10023 as_lineno_1=$LINENO
10024 as_lineno_2=$LINENO
10025 test "x$as_lineno_1" != "x$as_lineno_2" &&
10026 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10028 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10029 # uniformly replaced by the line number. The first 'sed' inserts a
10030 # line-number line after each line using $LINENO; the second 'sed'
10031 # does the real work. The second script uses 'N' to pair each
10032 # line-number line with the line containing $LINENO, and appends
10033 # trailing '-' during substitution so that $LINENO is not a special
10034 # case at line end.
10035 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10036 # scripts with optimization help from Paolo Bonzini. Blame Lee
10037 # E. McMahon (1931-1989) for sed's syntax. :-)
10049 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10052 ' >$as_me.lineno &&
10053 chmod +x "$as_me.lineno" ||
10054 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10055 { (exit 1); exit 1; }; }
10057 # Don't try to exec as it changes $[0], causing all sort of problems
10058 # (the dirname of $[0] is not the place where we might find the
10059 # original and so on. Autoconf is especially sensitive to this).
10060 . "./$as_me.lineno"
10061 # Exit status is that of the last command.
10066 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10072 ECHO_C= ECHO_N= ECHO_T=
10073 case `echo -n x` in
10075 case `echo 'x\c'` in
10076 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10083 if expr a : '\(a\)' >/dev/null 2>&1 &&
10084 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10090 rm -f conf$$ conf$$.exe conf$$.file
10091 if test -d conf$$.dir; then
10092 rm -f conf$$.dir/conf$$.file
10098 if ln -s conf$$.file conf$$ 2>/dev/null; then
10100 # ... but there are two gotchas:
10101 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10102 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10103 # In both cases, we have to default to `cp -p'.
10104 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10106 elif ln conf$$.file conf$$ 2>/dev/null; then
10111 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10112 rmdir conf$$.dir 2>/dev/null
10114 if mkdir -p . 2>/dev/null; then
10117 test -d ./-p && rmdir ./-p
10121 if test -x / >/dev/null 2>&1; then
10122 as_test_x='test -x'
10124 if ls -dL / >/dev/null 2>&1; then
10131 if test -d "$1"; then
10137 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10138 ???[sx]*):;;*)false;;esac;fi
10142 as_executable_p=$as_test_x
10144 # Sed expression to map a string onto a valid CPP name.
10145 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10147 # Sed expression to map a string onto a valid variable name.
10148 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10153 # Save the log message, to keep $[0] and so on meaningful, and to
10154 # report actual input values of CONFIG_FILES etc. instead of their
10155 # values after options handling.
10157 This file was extended by $as_me, which was
10158 generated by GNU Autoconf 2.61. Invocation command line was
10160 CONFIG_FILES = $CONFIG_FILES
10161 CONFIG_HEADERS = $CONFIG_HEADERS
10162 CONFIG_LINKS = $CONFIG_LINKS
10163 CONFIG_COMMANDS = $CONFIG_COMMANDS
10166 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10171 cat >>$CONFIG_STATUS <<_ACEOF
10172 # Files that config.status was made for.
10173 config_files="$ac_config_files"
10174 config_headers="$ac_config_headers"
10178 cat >>$CONFIG_STATUS <<\_ACEOF
10180 \`$as_me' instantiates files from templates according to the
10181 current configuration.
10183 Usage: $0 [OPTIONS] [FILE]...
10185 -h, --help print this help, then exit
10186 -V, --version print version number and configuration settings, then exit
10187 -q, --quiet do not print progress messages
10188 -d, --debug don't remove temporary files
10189 --recheck update $as_me by reconfiguring in the same conditions
10190 --file=FILE[:TEMPLATE]
10191 instantiate the configuration file FILE
10192 --header=FILE[:TEMPLATE]
10193 instantiate the configuration header FILE
10195 Configuration files:
10198 Configuration headers:
10201 Report bugs to <bug-autoconf@gnu.org>."
10204 cat >>$CONFIG_STATUS <<_ACEOF
10207 configured by $0, generated by GNU Autoconf 2.61,
10208 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10210 Copyright (C) 2006 Free Software Foundation, Inc.
10211 This config.status script is free software; the Free Software Foundation
10212 gives unlimited permission to copy, distribute and modify it."
10219 cat >>$CONFIG_STATUS <<\_ACEOF
10220 # If no file are specified by the user, then we need to provide default
10221 # value. By we need to know if files were specified by the user.
10227 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10228 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10239 # Handling of the options.
10240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10242 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10243 echo "$ac_cs_version"; exit ;;
10244 --debug | --debu | --deb | --de | --d | -d )
10246 --file | --fil | --fi | --f )
10248 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10249 ac_need_defaults=false;;
10250 --header | --heade | --head | --hea )
10252 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10253 ac_need_defaults=false;;
10255 # Conflict between --help and --header
10256 { echo "$as_me: error: ambiguous option: $1
10257 Try \`$0 --help' for more information." >&2
10258 { (exit 1); exit 1; }; };;
10259 --help | --hel | -h )
10260 echo "$ac_cs_usage"; exit ;;
10261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10262 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10265 # This is an error.
10266 -*) { echo "$as_me: error: unrecognized option: $1
10267 Try \`$0 --help' for more information." >&2
10268 { (exit 1); exit 1; }; } ;;
10270 *) ac_config_targets="$ac_config_targets $1"
10271 ac_need_defaults=false ;;
10277 ac_configure_extra_args=
10279 if $ac_cs_silent; then
10281 ac_configure_extra_args="$ac_configure_extra_args --silent"
10285 cat >>$CONFIG_STATUS <<_ACEOF
10286 if \$ac_cs_recheck; then
10287 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10288 CONFIG_SHELL=$SHELL
10289 export CONFIG_SHELL
10290 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10294 cat >>$CONFIG_STATUS <<\_ACEOF
10298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10299 ## Running $as_me. ##
10305 cat >>$CONFIG_STATUS <<_ACEOF
10308 cat >>$CONFIG_STATUS <<\_ACEOF
10310 # Handling of arguments.
10311 for ac_config_target in $ac_config_targets
10313 case $ac_config_target in
10314 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10315 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10317 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10318 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10319 { (exit 1); exit 1; }; };;
10324 # If the user did not use the arguments to specify the items to instantiate,
10325 # then the envvar interface is used. Set only those that are not.
10326 # We use the long form for the default assignment because of an extremely
10327 # bizarre bug on SunOS 4.1.3.
10328 if $ac_need_defaults; then
10329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10333 # Have a temporary directory for convenience. Make it in the build tree
10334 # simply because there is no reason against having it here, and in addition,
10335 # creating and moving files from /tmp can sometimes cause problems.
10336 # Hook for its removal unless debugging.
10337 # Note that there is a small window in which the directory will not be cleaned:
10338 # after its creation but before its name has been assigned to `$tmp'.
10342 trap 'exit_status=$?
10343 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10345 trap '{ (exit 1); exit 1; }' 1 2 13 15
10347 # Create a (secure) tmp directory for tmp files.
10350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10351 test -n "$tmp" && test -d "$tmp"
10354 tmp=./conf$$-$RANDOM
10355 (umask 077 && mkdir "$tmp")
10358 echo "$me: cannot create a temporary directory in ." >&2
10359 { (exit 1); exit 1; }
10363 # Set up the sed scripts for CONFIG_FILES section.
10366 # No need to generate the scripts if there are no CONFIG_FILES.
10367 # This happens for instance when ./config.status config.h
10368 if test -n "$CONFIG_FILES"; then
10375 for ac_last_try in false false false false false :; do
10376 cat >conf$$subs.sed <<_ACEOF
10377 SHELL!$SHELL$ac_delim
10378 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10379 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10380 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10381 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10382 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10383 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10384 exec_prefix!$exec_prefix$ac_delim
10385 prefix!$prefix$ac_delim
10386 program_transform_name!$program_transform_name$ac_delim
10387 bindir!$bindir$ac_delim
10388 sbindir!$sbindir$ac_delim
10389 libexecdir!$libexecdir$ac_delim
10390 datarootdir!$datarootdir$ac_delim
10391 datadir!$datadir$ac_delim
10392 sysconfdir!$sysconfdir$ac_delim
10393 sharedstatedir!$sharedstatedir$ac_delim
10394 localstatedir!$localstatedir$ac_delim
10395 includedir!$includedir$ac_delim
10396 oldincludedir!$oldincludedir$ac_delim
10397 docdir!$docdir$ac_delim
10398 infodir!$infodir$ac_delim
10399 htmldir!$htmldir$ac_delim
10400 dvidir!$dvidir$ac_delim
10401 pdfdir!$pdfdir$ac_delim
10402 psdir!$psdir$ac_delim
10403 libdir!$libdir$ac_delim
10404 localedir!$localedir$ac_delim
10405 mandir!$mandir$ac_delim
10406 DEFS!$DEFS$ac_delim
10407 ECHO_C!$ECHO_C$ac_delim
10408 ECHO_N!$ECHO_N$ac_delim
10409 ECHO_T!$ECHO_T$ac_delim
10410 LIBS!$LIBS$ac_delim
10411 build_alias!$build_alias$ac_delim
10412 host_alias!$host_alias$ac_delim
10413 target_alias!$target_alias$ac_delim
10414 build!$build$ac_delim
10415 build_cpu!$build_cpu$ac_delim
10416 build_vendor!$build_vendor$ac_delim
10417 build_os!$build_os$ac_delim
10418 host!$host$ac_delim
10419 host_cpu!$host_cpu$ac_delim
10420 host_vendor!$host_vendor$ac_delim
10421 host_os!$host_os$ac_delim
10422 SHARED!$SHARED$ac_delim
10424 CFLAGS!$CFLAGS$ac_delim
10425 LDFLAGS!$LDFLAGS$ac_delim
10426 CPPFLAGS!$CPPFLAGS$ac_delim
10427 ac_ct_CC!$ac_ct_CC$ac_delim
10428 EXEEXT!$EXEEXT$ac_delim
10429 OBJEXT!$OBJEXT$ac_delim
10431 CXXFLAGS!$CXXFLAGS$ac_delim
10432 ac_ct_CXX!$ac_ct_CXX$ac_delim
10434 RANLIB!$RANLIB$ac_delim
10435 SET_MAKE!$SET_MAKE$ac_delim
10436 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10437 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10438 INSTALL_DATA!$INSTALL_DATA$ac_delim
10439 LN_S!$LN_S$ac_delim
10440 UNCOMPRESS!$UNCOMPRESS$ac_delim
10441 AREXT!$AREXT$ac_delim
10443 SLEXT!$SLEXT$ac_delim
10444 CXXLIBS!$CXXLIBS$ac_delim
10445 STRIP!$STRIP$ac_delim
10446 target!$target$ac_delim
10447 target_cpu!$target_cpu$ac_delim
10448 target_vendor!$target_vendor$ac_delim
10449 target_os!$target_os$ac_delim
10450 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
10451 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
10452 GREP!$GREP$ac_delim
10453 EGREP!$EGREP$ac_delim
10454 PACKAGE!$PACKAGE$ac_delim
10455 VERSION!$VERSION$ac_delim
10456 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
10457 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
10458 lame_objects!$lame_objects$ac_delim
10459 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
10460 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
10461 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
10462 USE_GZIP!$USE_GZIP$ac_delim
10463 PYTHON_LIB!$PYTHON_LIB$ac_delim
10464 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
10465 PDF2SWF!$PDF2SWF$ac_delim
10466 LIBPDF!$LIBPDF$ac_delim
10467 JPEG2SWF!$JPEG2SWF$ac_delim
10468 GIF2SWF!$GIF2SWF$ac_delim
10469 PNG2SWF!$PNG2SWF$ac_delim
10470 LIBOBJS!$LIBOBJS$ac_delim
10471 LTLIBOBJS!$LTLIBOBJS$ac_delim
10474 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
10476 elif $ac_last_try; then
10477 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10478 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10479 { (exit 1); exit 1; }; }
10481 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10485 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10486 if test -n "$ac_eof"; then
10487 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10488 ac_eof=`expr $ac_eof + 1`
10491 cat >>$CONFIG_STATUS <<_ACEOF
10492 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10496 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10497 s/^/s,@/; s/!/@,|#_!!_#|/
10500 s/'"$ac_delim"'$/,g/; t
10502 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10503 ' >>$CONFIG_STATUS <conf$$subs.sed
10504 rm -f conf$$subs.sed
10505 cat >>$CONFIG_STATUS <<_ACEOF
10512 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10513 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10514 # trailing colons and then remove the whole line if VPATH becomes empty
10515 # (actually we leave an empty line to preserve line numbers).
10516 if test "x$srcdir" = x.; then
10517 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10518 s/:*\$(srcdir):*/:/
10519 s/:*\${srcdir}:*/:/
10521 s/^\([^=]*=[ ]*\):*/\1/
10527 cat >>$CONFIG_STATUS <<\_ACEOF
10528 fi # test -n "$CONFIG_FILES"
10531 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
10534 :[FHLC]) ac_mode=$ac_tag; continue;;
10536 case $ac_mode$ac_tag in
10538 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10539 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10540 { (exit 1); exit 1; }; };;
10541 :[FH]-) ac_tag=-:-;;
10542 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10559 -) ac_f="$tmp/stdin";;
10560 *) # Look for the file first in the build tree, then in the source tree
10561 # (if the path is not absolute). The absolute path cannot be DOS-style,
10562 # because $ac_f cannot contain `:'.
10566 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10568 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10569 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10570 { (exit 1); exit 1; }; };;
10572 ac_file_inputs="$ac_file_inputs $ac_f"
10575 # Let's still pretend it is `configure' which instantiates (i.e., don't
10576 # use $as_me), people would be surprised to read:
10577 # /* config.h. Generated by config.status. */
10578 configure_input="Generated from "`IFS=:
10579 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10580 if test x"$ac_file" != x-; then
10581 configure_input="$ac_file. $configure_input"
10582 { echo "$as_me:$LINENO: creating $ac_file" >&5
10583 echo "$as_me: creating $ac_file" >&6;}
10587 *:-:* | *:-) cat >"$tmp/stdin";;
10592 ac_dir=`$as_dirname -- "$ac_file" ||
10593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10594 X"$ac_file" : 'X\(//\)[^/]' \| \
10595 X"$ac_file" : 'X\(//\)$' \| \
10596 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10602 /^X\(\/\/\)[^/].*/{
10617 -*) as_dir=./$as_dir;;
10619 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10623 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10624 *) as_qdir=$as_dir;;
10626 as_dirs="'$as_qdir' $as_dirs"
10627 as_dir=`$as_dirname -- "$as_dir" ||
10628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10629 X"$as_dir" : 'X\(//\)[^/]' \| \
10630 X"$as_dir" : 'X\(//\)$' \| \
10631 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10637 /^X\(\/\/\)[^/].*/{
10650 test -d "$as_dir" && break
10652 test -z "$as_dirs" || eval "mkdir $as_dirs"
10653 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10654 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10655 { (exit 1); exit 1; }; }; }
10659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10661 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10662 # A ".." for each directory in $ac_dir_suffix.
10663 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10664 case $ac_top_builddir_sub in
10665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10669 ac_abs_top_builddir=$ac_pwd
10670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10671 # for backward compatibility:
10672 ac_top_builddir=$ac_top_build_prefix
10675 .) # We are building in place.
10677 ac_top_srcdir=$ac_top_builddir_sub
10678 ac_abs_top_srcdir=$ac_pwd ;;
10679 [\\/]* | ?:[\\/]* ) # Absolute name.
10680 ac_srcdir=$srcdir$ac_dir_suffix;
10681 ac_top_srcdir=$srcdir
10682 ac_abs_top_srcdir=$srcdir ;;
10683 *) # Relative name.
10684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10685 ac_top_srcdir=$ac_top_build_prefix$srcdir
10686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10699 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10703 cat >>$CONFIG_STATUS <<\_ACEOF
10704 # If the template does not know about datarootdir, expand it.
10705 # FIXME: This hack should be removed a few years after 2.60.
10706 ac_datarootdir_hack=; ac_datarootdir_seen=
10708 case `sed -n '/datarootdir/ {
10717 ' $ac_file_inputs` in
10718 *datarootdir*) ac_datarootdir_seen=yes;;
10719 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10720 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10721 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10723 cat >>$CONFIG_STATUS <<_ACEOF
10724 ac_datarootdir_hack='
10725 s&@datadir@&$datadir&g
10726 s&@docdir@&$docdir&g
10727 s&@infodir@&$infodir&g
10728 s&@localedir@&$localedir&g
10729 s&@mandir@&$mandir&g
10730 s&\\\${datarootdir}&$datarootdir&g' ;;
10734 # Neutralize VPATH when `$srcdir' = `.'.
10735 # Shell code in configure.ac might set extrasub.
10736 # FIXME: do we really want to maintain this feature?
10737 cat >>$CONFIG_STATUS <<_ACEOF
10741 cat >>$CONFIG_STATUS <<\_ACEOF
10743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10744 s&@configure_input@&$configure_input&;t t
10745 s&@top_builddir@&$ac_top_builddir_sub&;t t
10746 s&@srcdir@&$ac_srcdir&;t t
10747 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10748 s&@top_srcdir@&$ac_top_srcdir&;t t
10749 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10750 s&@builddir@&$ac_builddir&;t t
10751 s&@abs_builddir@&$ac_abs_builddir&;t t
10752 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10753 s&@INSTALL@&$ac_INSTALL&;t t
10754 $ac_datarootdir_hack
10755 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
10757 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10758 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10759 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10760 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10761 which seems to be undefined. Please make sure it is defined." >&5
10762 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10763 which seems to be undefined. Please make sure it is defined." >&2;}
10767 -) cat "$tmp/out"; rm -f "$tmp/out";;
10768 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10777 # Transform confdefs.h into a sed script `conftest.defines', that
10778 # substitutes the proper values into config.h.in to produce config.h.
10779 rm -f conftest.defines conftest.tail
10780 # First, append a space to every undef/define line, to ease matching.
10781 echo 's/$/ /' >conftest.defines
10782 # Then, protect against being on the right side of a sed subst, or in
10783 # an unquoted here document, in config.status. If some macros were
10784 # called several times there might be several #defines for the same
10785 # symbol, which is useless. But do not sort them, since the last
10786 # AC_DEFINE must be honored.
10787 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10788 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10789 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10790 # PARAMS is the parameter list in the macro definition--in most cases, it's
10791 # just an empty string.
10792 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
10793 ac_dB='\\)[ (].*,\\1define\\2'
10801 s/^[ ]*#[ ]*define[ ][ ]*//
10806 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10807 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10808 ' >>conftest.defines
10810 # Remove the space that was appended to ease matching.
10811 # Then replace #undef with comments. This is necessary, for
10812 # example, in the case of _POSIX_SOURCE, which is predefined and required
10813 # on some systems where configure will not decide to define it.
10814 # (The regexp can be short, since the line contains either #define or #undef.)
10816 s,^[ #]*u.*,/* & */,' >>conftest.defines
10818 # Break up conftest.defines:
10819 ac_max_sed_lines=50
10821 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10822 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10823 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10825 ac_in='$ac_file_inputs'
10826 ac_out='"$tmp/out1"'
10827 ac_nxt='"$tmp/out2"'
10831 # Write a here document:
10832 cat >>$CONFIG_STATUS <<_ACEOF
10833 # First, check the format of the line:
10834 cat >"\$tmp/defines.sed" <<\\CEOF
10835 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10836 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10840 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10842 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10843 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10844 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10845 grep . conftest.tail >/dev/null || break
10846 rm -f conftest.defines
10847 mv conftest.tail conftest.defines
10849 rm -f conftest.defines conftest.tail
10851 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10852 cat >>$CONFIG_STATUS <<\_ACEOF
10853 if test x"$ac_file" != x-; then
10854 echo "/* $configure_input */" >"$tmp/config.h"
10855 cat "$ac_result" >>"$tmp/config.h"
10856 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10857 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10858 echo "$as_me: $ac_file is unchanged" >&6;}
10861 mv "$tmp/config.h" $ac_file
10864 echo "/* $configure_input */"
10876 { (exit 0); exit 0; }
10878 chmod +x $CONFIG_STATUS
10879 ac_clean_files=$ac_clean_files_save
10882 # configure is writing to config.log, and then calls config.status.
10883 # config.status does its own redirection, appending to config.log.
10884 # Unfortunately, on DOS this fails, as config.log is still kept open
10885 # by configure, so config.status won't be able to write to it; its
10886 # output is simply discarded. So we exec the FD to /dev/null,
10887 # effectively closing config.log, so it can be properly (re)opened and
10888 # appended to by config.status. When coming back to configure, we
10889 # need to make the FD available again.
10890 if test "$no_create" != yes; then
10892 ac_config_status_args=
10893 test "$silent" = yes &&
10894 ac_config_status_args="$ac_config_status_args --quiet"
10896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10899 # would make configure fail if this is the last instruction.
10900 $ac_cs_success || { (exit 1); exit 1; }
10906 # On development trees, create snapshots of config.status
10908 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
10909 if test "x${MINGW}" = "xyes"; then
10910 echo cp config.status config.status.win32
10911 cp config.status config.status.win32
10913 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
10914 echo cp config.status config.status.linux
10915 cp config.status config.status.linux
10917 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
10918 echo cp config.status config.status.debug
10919 cp config.status config.status.debug
10921 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
10922 echo cp config.status config.status.optimize
10923 cp config.status config.status.optimize