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
1777 VERSION=2007-04-28-2027
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 CFLAGS="-fPIC $CFLAGS"
1818 CXXFLAGS="-fPIC $CFLAGS"
1821 #if test "x$OLDGCC" '!=' "x";then
1822 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1823 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1824 # CFLAGS="$CFLAGS -ansi -pendantic"
1825 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1828 export PACKAGE VERSION CFLAGS CXXFLAGS
1832 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1833 if test -f "$ac_dir/install-sh"; then
1835 ac_install_sh="$ac_aux_dir/install-sh -c"
1837 elif test -f "$ac_dir/install.sh"; then
1839 ac_install_sh="$ac_aux_dir/install.sh -c"
1841 elif test -f "$ac_dir/shtool"; then
1843 ac_install_sh="$ac_aux_dir/shtool install -c"
1847 if test -z "$ac_aux_dir"; then
1848 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1849 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1850 { (exit 1); exit 1; }; }
1853 # These three variables are undocumented and unsupported,
1854 # and are intended to be withdrawn in a future Autoconf release.
1855 # They can cause serious problems if a builder's source tree is in a directory
1856 # whose full name contains unusual characters.
1857 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1858 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1859 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1862 # Make sure we can run config.sub.
1863 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1864 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1865 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1866 { (exit 1); exit 1; }; }
1868 { echo "$as_me:$LINENO: checking build system type" >&5
1869 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1870 if test "${ac_cv_build+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 ac_build_alias=$build_alias
1874 test "x$ac_build_alias" = x &&
1875 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1876 test "x$ac_build_alias" = x &&
1877 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1878 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1879 { (exit 1); exit 1; }; }
1880 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1881 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1882 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1883 { (exit 1); exit 1; }; }
1886 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1887 echo "${ECHO_T}$ac_cv_build" >&6; }
1888 case $ac_cv_build in
1890 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1891 echo "$as_me: error: invalid value of canonical build" >&2;}
1892 { (exit 1); exit 1; }; };;
1895 ac_save_IFS=$IFS; IFS='-'
1901 # Remember, the first character of IFS is used to create $*,
1902 # except with old shells:
1905 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1908 { echo "$as_me:$LINENO: checking host system type" >&5
1909 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1910 if test "${ac_cv_host+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test "x$host_alias" = x; then
1914 ac_cv_host=$ac_cv_build
1916 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1917 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1918 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1919 { (exit 1); exit 1; }; }
1923 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1924 echo "${ECHO_T}$ac_cv_host" >&6; }
1927 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1928 echo "$as_me: error: invalid value of canonical host" >&2;}
1929 { (exit 1); exit 1; }; };;
1932 ac_save_IFS=$IFS; IFS='-'
1938 # Remember, the first character of IFS is used to create $*,
1939 # except with old shells:
1942 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1952 CXXFLAGS="$CXXFLAGS -fno-rtti"
1954 # Use fink packages if available.
1955 #if test -d /sw/include && test -d /sw/lib; then
1956 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
1957 # LDFLAGS="${LDFLAGS} -L/sw/lib"
1965 ac_cpp='$CPP $CPPFLAGS'
1966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1969 if test -n "$ac_tool_prefix"; then
1970 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1971 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1987 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 if test -n "$CC"; then
1999 { echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6; }
2002 { echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6; }
2008 if test -z "$ac_cv_prog_CC"; then
2010 # Extract the first word of "gcc", so it can be a program name with args.
2011 set dummy gcc; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$ac_ct_CC"; then
2018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027 ac_cv_prog_ac_ct_CC="gcc"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2038 if test -n "$ac_ct_CC"; then
2039 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2040 echo "${ECHO_T}$ac_ct_CC" >&6; }
2042 { echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6; }
2046 if test "x$ac_ct_CC" = x; then
2049 case $cross_compiling:$ac_tool_warned in
2051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet. If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&5
2054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055 whose name does not start with the host triplet. If you think this
2056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2057 ac_tool_warned=yes ;;
2065 if test -z "$CC"; then
2066 if test -n "$ac_tool_prefix"; then
2067 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2068 set dummy ${ac_tool_prefix}cc; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2084 ac_cv_prog_CC="${ac_tool_prefix}cc"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2106 if test -z "$CC"; then
2107 # Extract the first word of "cc", so it can be a program name with args.
2108 set dummy cc; ac_word=$2
2109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 if test -n "$CC"; then
2115 ac_cv_prog_CC="$CC" # Let the user override the test.
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2126 ac_prog_rejected=yes
2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 if test $ac_prog_rejected = yes; then
2138 # We found a bogon in the path, so make sure we never use it.
2139 set dummy $ac_cv_prog_CC
2141 if test $# != 0; then
2142 # We chose a different compiler from the bogus one.
2143 # However, it has the same basename, so the bogon will be chosen
2144 # first if we set CC to just the basename; use the full file name.
2146 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2152 if test -n "$CC"; then
2153 { echo "$as_me:$LINENO: result: $CC" >&5
2154 echo "${ECHO_T}$CC" >&6; }
2156 { echo "$as_me:$LINENO: result: no" >&5
2157 echo "${ECHO_T}no" >&6; }
2162 if test -z "$CC"; then
2163 if test -n "$ac_tool_prefix"; then
2164 for ac_prog in cl.exe
2166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2183 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 if test -n "$CC"; then
2195 { echo "$as_me:$LINENO: result: $CC" >&5
2196 echo "${ECHO_T}$CC" >&6; }
2198 { echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6; }
2203 test -n "$CC" && break
2206 if test -z "$CC"; then
2208 for ac_prog in cl.exe
2210 # Extract the first word of "$ac_prog", so it can be a program name with args.
2211 set dummy $ac_prog; ac_word=$2
2212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 if test -n "$ac_ct_CC"; then
2218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 test -z "$as_dir" && as_dir=.
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2227 ac_cv_prog_ac_ct_CC="$ac_prog"
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2238 if test -n "$ac_ct_CC"; then
2239 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2240 echo "${ECHO_T}$ac_ct_CC" >&6; }
2242 { echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6; }
2247 test -n "$ac_ct_CC" && break
2250 if test "x$ac_ct_CC" = x; then
2253 case $cross_compiling:$ac_tool_warned in
2255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2256 whose name does not start with the host triplet. If you think this
2257 configuration is useful to you, please write to autoconf@gnu.org." >&5
2258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2259 whose name does not start with the host triplet. If you think this
2260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2261 ac_tool_warned=yes ;;
2270 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: no acceptable C compiler found in \$PATH
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2276 # Provide some information about the compiler.
2277 echo "$as_me:$LINENO: checking for C compiler version" >&5
2278 ac_compiler=`set X $ac_compile; echo $2`
2279 { (ac_try="$ac_compiler --version >&5"
2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282 *) ac_try_echo=$ac_try;;
2284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2285 (eval "$ac_compiler --version >&5") 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }
2289 { (ac_try="$ac_compiler -v >&5"
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2295 (eval "$ac_compiler -v >&5") 2>&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }
2299 { (ac_try="$ac_compiler -V >&5"
2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302 *) ac_try_echo=$ac_try;;
2304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2305 (eval "$ac_compiler -V >&5") 2>&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }
2310 cat >conftest.$ac_ext <<_ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h. */
2325 ac_clean_files_save=$ac_clean_files
2326 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2327 # Try to create an executable without -o first, disregard a.out.
2328 # It will help us diagnose broken compilers, and finding out an intuition
2330 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2331 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2332 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2334 # List of possible output files, starting from the most likely.
2335 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2336 # only as a last resort. b.out is created by i960 compilers.
2337 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2339 # The IRIX 6 linker writes into existing files which may not be
2340 # executable, retaining their permissions. Remove them first so a
2341 # subsequent execution test works.
2343 for ac_file in $ac_files
2346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2347 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2352 if { (ac_try="$ac_link_default"
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358 (eval "$ac_link_default") 2>&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; then
2362 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2363 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2364 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2365 # so that the user can short-circuit this test for compilers unknown to
2367 for ac_file in $ac_files ''
2369 test -f "$ac_file" || continue
2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2374 # We found the default executable, but exeext='' is most
2378 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2380 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382 # We set ac_cv_exeext here because the later test for it is not
2383 # safe: cross compilers may not add the suffix if given an `-o'
2384 # argument, so we may need to know it at that point already.
2385 # Even if this section looks crufty: it has the advantage of
2392 test "$ac_cv_exeext" = no && ac_cv_exeext=
2398 { echo "$as_me:$LINENO: result: $ac_file" >&5
2399 echo "${ECHO_T}$ac_file" >&6; }
2400 if test -z "$ac_file"; then
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2404 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&5
2406 echo "$as_me: error: C compiler cannot create executables
2407 See \`config.log' for more details." >&2;}
2408 { (exit 77); exit 77; }; }
2411 ac_exeext=$ac_cv_exeext
2413 # Check that the compiler produces executables we can run. If not, either
2414 # the compiler is broken, or we cross compile.
2415 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2418 # If not cross compiling, check that we can run a simple program.
2419 if test "$cross_compiling" != yes; then
2420 if { ac_try='./$ac_file'
2421 { (case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_try") 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2432 if test "$cross_compiling" = maybe; then
2435 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2436 If you meant to cross compile, use \`--host'.
2437 See \`config.log' for more details." >&5
2438 echo "$as_me: error: cannot run C compiled programs.
2439 If you meant to cross compile, use \`--host'.
2440 See \`config.log' for more details." >&2;}
2441 { (exit 1); exit 1; }; }
2445 { echo "$as_me:$LINENO: result: yes" >&5
2446 echo "${ECHO_T}yes" >&6; }
2448 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2449 ac_clean_files=$ac_clean_files_save
2450 # Check that the compiler produces executables we can run. If not, either
2451 # the compiler is broken, or we cross compile.
2452 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2453 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2454 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2455 echo "${ECHO_T}$cross_compiling" >&6; }
2457 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2458 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2459 if { (ac_try="$ac_link"
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_link") 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2470 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2471 # work properly (i.e., refer to `conftest.exe'), while it won't with
2473 for ac_file in conftest.exe conftest conftest.*; do
2474 test -f "$ac_file" || continue
2476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2477 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2483 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2486 See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2490 rm -f conftest$ac_cv_exeext
2491 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2492 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2494 rm -f conftest.$ac_ext
2495 EXEEXT=$ac_cv_exeext
2497 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2498 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2499 if test "${ac_cv_objext+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 cat >conftest.$ac_ext <<_ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2517 rm -f conftest.o conftest.obj
2518 if { (ac_try="$ac_compile"
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_compile") 2>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; then
2528 for ac_file in conftest.o conftest.obj conftest.*; do
2529 test -f "$ac_file" || continue;
2531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2532 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2540 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2541 See \`config.log' for more details." >&5
2542 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2543 See \`config.log' for more details." >&2;}
2544 { (exit 1); exit 1; }; }
2547 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2549 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2550 echo "${ECHO_T}$ac_cv_objext" >&6; }
2551 OBJEXT=$ac_cv_objext
2553 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2554 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2555 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 cat >conftest.$ac_ext <<_ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2576 rm -f conftest.$ac_objext
2577 if { (ac_try="$ac_compile"
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583 (eval "$ac_compile") 2>conftest.er1
2585 grep -v '^ *+' conftest.er1 >conftest.err
2587 cat conftest.err >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } && {
2590 test -z "$ac_c_werror_flag" ||
2591 test ! -s conftest.err
2592 } && test -s conftest.$ac_objext; then
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2605 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2606 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2607 GCC=`test $ac_compiler_gnu = yes && echo yes`
2608 ac_test_CFLAGS=${CFLAGS+set}
2609 ac_save_CFLAGS=$CFLAGS
2610 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2611 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2612 if test "${ac_cv_prog_cc_g+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 ac_save_c_werror_flag=$ac_c_werror_flag
2616 ac_c_werror_flag=yes
2619 cat >conftest.$ac_ext <<_ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h. */
2634 rm -f conftest.$ac_objext
2635 if { (ac_try="$ac_compile"
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_compile") 2>conftest.er1
2643 grep -v '^ *+' conftest.er1 >conftest.err
2645 cat conftest.err >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } && {
2648 test -z "$ac_c_werror_flag" ||
2649 test ! -s conftest.err
2650 } && test -s conftest.$ac_objext; then
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2657 cat >conftest.$ac_ext <<_ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2672 rm -f conftest.$ac_objext
2673 if { (ac_try="$ac_compile"
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679 (eval "$ac_compile") 2>conftest.er1
2681 grep -v '^ *+' conftest.er1 >conftest.err
2683 cat conftest.err >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } && {
2686 test -z "$ac_c_werror_flag" ||
2687 test ! -s conftest.err
2688 } && test -s conftest.$ac_objext; then
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2694 ac_c_werror_flag=$ac_save_c_werror_flag
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2711 rm -f conftest.$ac_objext
2712 if { (ac_try="$ac_compile"
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compile") 2>conftest.er1
2720 grep -v '^ *+' conftest.er1 >conftest.err
2722 cat conftest.err >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } && {
2725 test -z "$ac_c_werror_flag" ||
2726 test ! -s conftest.err
2727 } && test -s conftest.$ac_objext; then
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 ac_c_werror_flag=$ac_save_c_werror_flag
2745 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2746 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2747 if test "$ac_test_CFLAGS" = set; then
2748 CFLAGS=$ac_save_CFLAGS
2749 elif test $ac_cv_prog_cc_g = yes; then
2750 if test "$GCC" = yes; then
2756 if test "$GCC" = yes; then
2762 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2763 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_cc_c89+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 ac_cv_prog_cc_c89=no
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2777 #include <sys/types.h>
2778 #include <sys/stat.h>
2779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2780 struct buf { int x; };
2781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2782 static char *e (p, i)
2788 static char *f (char * (*g) (char **, int), char **p, ...)
2793 s = g (p, va_arg (v,int));
2798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2799 function prototypes and stuff, but not '\xHH' hex character constants.
2800 These don't provoke an error unfortunately, instead are silently treated
2801 as 'x'. The following induces an error, until -std is added to get
2802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2803 array size at least. It's necessary to write '\x00'==0 to get something
2804 that's true only with -std. */
2805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2807 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2808 inside strings and character constants. */
2810 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2812 int test (int i, double x);
2813 struct s1 {int (*f) (int a);};
2814 struct s2 {int (*f) (double a);};
2815 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2821 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2826 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2827 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2829 CC="$ac_save_CC $ac_arg"
2830 rm -f conftest.$ac_objext
2831 if { (ac_try="$ac_compile"
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_compile") 2>conftest.er1
2839 grep -v '^ *+' conftest.er1 >conftest.err
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } && {
2844 test -z "$ac_c_werror_flag" ||
2845 test ! -s conftest.err
2846 } && test -s conftest.$ac_objext; then
2847 ac_cv_prog_cc_c89=$ac_arg
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2855 rm -f core conftest.err conftest.$ac_objext
2856 test "x$ac_cv_prog_cc_c89" != "xno" && break
2858 rm -f conftest.$ac_ext
2863 case "x$ac_cv_prog_cc_c89" in
2865 { echo "$as_me:$LINENO: result: none needed" >&5
2866 echo "${ECHO_T}none needed" >&6; } ;;
2868 { echo "$as_me:$LINENO: result: unsupported" >&5
2869 echo "${ECHO_T}unsupported" >&6; } ;;
2871 CC="$CC $ac_cv_prog_cc_c89"
2872 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884 ac_cpp='$CXXCPP $CPPFLAGS'
2885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2888 if test -z "$CXX"; then
2889 if test -n "$CCC"; then
2892 if test -n "$ac_tool_prefix"; then
2893 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2899 if test "${ac_cv_prog_CXX+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 if test -n "$CXX"; then
2903 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 if test -n "$CXX"; then
2924 { echo "$as_me:$LINENO: result: $CXX" >&5
2925 echo "${ECHO_T}$CXX" >&6; }
2927 { echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6; }
2932 test -n "$CXX" && break
2935 if test -z "$CXX"; then
2937 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2939 # Extract the first word of "$ac_prog", so it can be a program name with args.
2940 set dummy $ac_prog; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 if test -n "$ac_ct_CXX"; then
2947 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_ac_ct_CXX="$ac_prog"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2967 if test -n "$ac_ct_CXX"; then
2968 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2969 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2971 { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2976 test -n "$ac_ct_CXX" && break
2979 if test "x$ac_ct_CXX" = x; then
2982 case $cross_compiling:$ac_tool_warned in
2984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2985 whose name does not start with the host triplet. If you think this
2986 configuration is useful to you, please write to autoconf@gnu.org." >&5
2987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2988 whose name does not start with the host triplet. If you think this
2989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2990 ac_tool_warned=yes ;;
2998 # Provide some information about the compiler.
2999 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3000 ac_compiler=`set X $ac_compile; echo $2`
3001 { (ac_try="$ac_compiler --version >&5"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compiler --version >&5") 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }
3011 { (ac_try="$ac_compiler -v >&5"
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compiler -v >&5") 2>&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }
3021 { (ac_try="$ac_compiler -V >&5"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compiler -V >&5") 2>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }
3032 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 cat >conftest.$ac_ext <<_ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_compile") 2>conftest.er1
3064 grep -v '^ *+' conftest.er1 >conftest.err
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } && {
3069 test -z "$ac_cxx_werror_flag" ||
3070 test ! -s conftest.err
3071 } && test -s conftest.$ac_objext; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3084 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3085 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3086 GXX=`test $ac_compiler_gnu = yes && echo yes`
3087 ac_test_CXXFLAGS=${CXXFLAGS+set}
3088 ac_save_CXXFLAGS=$CXXFLAGS
3089 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3090 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_cxx_g+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3095 ac_cxx_werror_flag=yes
3098 cat >conftest.$ac_ext <<_ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3122 grep -v '^ *+' conftest.er1 >conftest.err
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } && {
3127 test -z "$ac_cxx_werror_flag" ||
3128 test ! -s conftest.err
3129 } && test -s conftest.$ac_objext; then
3130 ac_cv_prog_cxx_g=yes
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3136 cat >conftest.$ac_ext <<_ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_compile") 2>conftest.er1
3160 grep -v '^ *+' conftest.er1 >conftest.err
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } && {
3165 test -z "$ac_cxx_werror_flag" ||
3166 test ! -s conftest.err
3167 } && test -s conftest.$ac_objext; then
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3173 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3175 cat >conftest.$ac_ext <<_ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compile") 2>conftest.er1
3199 grep -v '^ *+' conftest.er1 >conftest.err
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } && {
3204 test -z "$ac_cxx_werror_flag" ||
3205 test ! -s conftest.err
3206 } && test -s conftest.$ac_objext; then
3207 ac_cv_prog_cxx_g=yes
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3226 if test "$ac_test_CXXFLAGS" = set; then
3227 CXXFLAGS=$ac_save_CXXFLAGS
3228 elif test $ac_cv_prog_cxx_g = yes; then
3229 if test "$GXX" = yes; then
3235 if test "$GXX" = yes; then
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3251 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3253 cat > conftest.c << EOF
3257 int main (int argc, char*argv)
3267 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3268 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3269 { echo "$as_me:$LINENO: result: yes" >&5
3270 echo "${ECHO_T}yes" >&6; }
3274 echo "configure: failed program was:" >&5
3276 { echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6; }
3282 if test "x$GCC_IS_OK" '=' "x";then
3283 echo "***************************************************"
3284 echo "* Your gcc is too old to compile this!"
3286 echo "* The last version compilable by this compiler is "
3287 echo "* swftools 0.7.0, which you can download from "
3288 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3290 echo "* Newer versions require at least gcc 3.0.0 "
3291 echo "***************************************************"
3295 if test "x$CHECKMEM" '!=' "x";then
3299 #unset ac_cv_prog_CC
3300 #unset ac_cv_prog_CXX
3305 ac_cpp='$CPP $CPPFLAGS'
3306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3309 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3310 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3311 # On Suns, sometimes $CPP names a directory.
3312 if test -n "$CPP" && test -d "$CPP"; then
3315 if test -z "$CPP"; then
3316 if test "${ac_cv_prog_CPP+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 # Double quotes because CPP needs to be expanded
3320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3323 for ac_c_preproc_warn_flag in '' yes
3325 # Use a header file that comes with gcc, so configuring glibc
3326 # with a fresh cross-compiler works.
3327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3328 # <limits.h> exists even on freestanding compilers.
3329 # On the NeXT, cc -E runs the code through the compiler's parser,
3330 # not just through cpp. "Syntax error" is here to catch this case.
3331 cat >conftest.$ac_ext <<_ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3338 # include <limits.h>
3340 # include <assert.h>
3344 if { (ac_try="$ac_cpp conftest.$ac_ext"
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3352 grep -v '^ *+' conftest.er1 >conftest.err
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } >/dev/null && {
3357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3358 test ! -s conftest.err
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 # Broken: fails on valid input.
3369 rm -f conftest.err conftest.$ac_ext
3371 # OK, works on sane cases. Now check whether nonexistent headers
3372 # can be detected and how.
3373 cat >conftest.$ac_ext <<_ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379 #include <ac_nonexistent.h>
3381 if { (ac_try="$ac_cpp conftest.$ac_ext"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3389 grep -v '^ *+' conftest.er1 >conftest.err
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } >/dev/null && {
3394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3395 test ! -s conftest.err
3397 # Broken: success on invalid input.
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3403 # Passes both tests.
3408 rm -f conftest.err conftest.$ac_ext
3411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3412 rm -f conftest.err conftest.$ac_ext
3413 if $ac_preproc_ok; then
3425 { echo "$as_me:$LINENO: result: $CPP" >&5
3426 echo "${ECHO_T}$CPP" >&6; }
3428 for ac_c_preproc_warn_flag in '' yes
3430 # Use a header file that comes with gcc, so configuring glibc
3431 # with a fresh cross-compiler works.
3432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3433 # <limits.h> exists even on freestanding compilers.
3434 # On the NeXT, cc -E runs the code through the compiler's parser,
3435 # not just through cpp. "Syntax error" is here to catch this case.
3436 cat >conftest.$ac_ext <<_ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3443 # include <limits.h>
3445 # include <assert.h>
3449 if { (ac_try="$ac_cpp conftest.$ac_ext"
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3457 grep -v '^ *+' conftest.er1 >conftest.err
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } >/dev/null && {
3462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3463 test ! -s conftest.err
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 # Broken: fails on valid input.
3474 rm -f conftest.err conftest.$ac_ext
3476 # OK, works on sane cases. Now check whether nonexistent headers
3477 # can be detected and how.
3478 cat >conftest.$ac_ext <<_ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484 #include <ac_nonexistent.h>
3486 if { (ac_try="$ac_cpp conftest.$ac_ext"
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3494 grep -v '^ *+' conftest.er1 >conftest.err
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } >/dev/null && {
3499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3500 test ! -s conftest.err
3502 # Broken: success on invalid input.
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3508 # Passes both tests.
3513 rm -f conftest.err conftest.$ac_ext
3516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3517 rm -f conftest.err conftest.$ac_ext
3518 if $ac_preproc_ok; then
3521 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3522 See \`config.log' for more details." >&5
3523 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3524 See \`config.log' for more details." >&2;}
3525 { (exit 1); exit 1; }; }
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 if test -n "$ac_tool_prefix"; then
3536 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3540 if test "${ac_cv_prog_RANLIB+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 if test -n "$RANLIB"; then
3544 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 RANLIB=$ac_cv_prog_RANLIB
3564 if test -n "$RANLIB"; then
3565 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3566 echo "${ECHO_T}$RANLIB" >&6; }
3568 { echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6; }
3574 if test -z "$ac_cv_prog_RANLIB"; then
3575 ac_ct_RANLIB=$RANLIB
3576 # Extract the first word of "ranlib", so it can be a program name with args.
3577 set dummy ranlib; ac_word=$2
3578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3580 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 if test -n "$ac_ct_RANLIB"; then
3584 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593 ac_cv_prog_ac_ct_RANLIB="ranlib"
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3604 if test -n "$ac_ct_RANLIB"; then
3605 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3606 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3608 { echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6; }
3612 if test "x$ac_ct_RANLIB" = x; then
3615 case $cross_compiling:$ac_tool_warned in
3617 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3618 whose name does not start with the host triplet. If you think this
3619 configuration is useful to you, please write to autoconf@gnu.org." >&5
3620 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3621 whose name does not start with the host triplet. If you think this
3622 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3623 ac_tool_warned=yes ;;
3625 RANLIB=$ac_ct_RANLIB
3628 RANLIB="$ac_cv_prog_RANLIB"
3631 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3632 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3633 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3634 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 cat >conftest.make <<\_ACEOF
3640 @echo '@@@%%%=$(MAKE)=@@@%%%'
3642 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3643 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3645 eval ac_cv_prog_make_${ac_make}_set=yes;;
3647 eval ac_cv_prog_make_${ac_make}_set=no;;
3651 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3652 { echo "$as_me:$LINENO: result: yes" >&5
3653 echo "${ECHO_T}yes" >&6; }
3656 { echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6; }
3658 SET_MAKE="MAKE=${MAKE-make}"
3661 # Find a good install program. We prefer a C program (faster),
3662 # so one script is as good as another. But avoid the broken or
3663 # incompatible versions:
3664 # SysV /etc/install, /usr/sbin/install
3665 # SunOS /usr/etc/install
3666 # IRIX /sbin/install
3668 # AmigaOS /C/install, which installs bootblocks on floppy discs
3669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3672 # OS/2's system install, which has a completely different semantic
3673 # ./install, which can be erroneously created by make from ./install.sh.
3674 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3676 if test -z "$INSTALL"; then
3677 if test "${ac_cv_path_install+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir=.
3685 # Account for people who put trailing slashes in PATH elements.
3687 ./ | .// | /cC/* | \
3688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3689 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3692 # OSF1 and SCO ODT 3.0 have their own names for install.
3693 # Don't use installbsd from OSF since it installs stuff as root
3695 for ac_prog in ginstall scoinst install; do
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3698 if test $ac_prog = install &&
3699 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700 # AIX install. It has an incompatible calling convention.
3702 elif test $ac_prog = install &&
3703 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3704 # program-specific install script used by HP pwplus--don't use.
3707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3720 if test "${ac_cv_path_install+set}" = set; then
3721 INSTALL=$ac_cv_path_install
3723 # As a last resort, use the slow shell script. Don't cache a
3724 # value for INSTALL within a source directory, because that will
3725 # break other packages using the cache if that directory is
3726 # removed, or if the value is a relative name.
3727 INSTALL=$ac_install_sh
3730 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3731 echo "${ECHO_T}$INSTALL" >&6; }
3733 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3734 # It thinks the first close brace ends the variable substitution.
3735 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3737 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3739 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3741 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3742 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3744 if test "$LN_S" = "ln -s"; then
3745 { echo "$as_me:$LINENO: result: yes" >&5
3746 echo "${ECHO_T}yes" >&6; }
3748 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3749 echo "${ECHO_T}no, using $LN_S" >&6; }
3752 for ac_prog in gzip uncompress compress
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy $ac_prog; ac_word=$2
3756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3758 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 if test -n "$UNCOMPRESS"; then
3762 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_UNCOMPRESS="$ac_prog"
3772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3782 if test -n "$UNCOMPRESS"; then
3783 { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3784 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3786 { echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6; }
3791 test -n "$UNCOMPRESS" && break
3801 if test "x$EXEEXT" = "x.exe";then
3810 { echo "$as_me:$LINENO: checking host system type" >&5
3811 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3812 if test "${ac_cv_host+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 if test "x$host_alias" = x; then
3816 ac_cv_host=$ac_cv_build
3818 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3819 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3820 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3821 { (exit 1); exit 1; }; }
3825 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3826 echo "${ECHO_T}$ac_cv_host" >&6; }
3829 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3830 echo "$as_me: error: invalid value of canonical host" >&2;}
3831 { (exit 1); exit 1; }; };;
3834 ac_save_IFS=$IFS; IFS='-'
3840 # Remember, the first character of IFS is used to create $*,
3841 # except with old shells:
3844 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3849 { echo "$as_me:$LINENO: checking for target system" >&5
3850 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
3854 *cygwin* ) CYGWIN=yes;;
3855 *mingw* ) MINGW=yes;;
3859 if test "x$MINGW" = "xyes"; then
3860 #fix for the debian distribution of mingw
3861 if test -x "/usr/i586-mingw32msvc/bin/ar";then
3862 AR="/usr/i586-mingw32msvc/bin/ar"
3864 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
3865 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
3867 #fix for the gentoo distribution of mingw
3868 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
3869 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
3871 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
3872 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
3874 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
3875 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
3881 if test "x${CYGWIN}" = "xyes"; then
3882 cat >>confdefs.h <<_ACEOF
3886 { echo "$as_me:$LINENO: result: cygwin" >&5
3887 echo "${ECHO_T}cygwin" >&6; }
3889 if test "x${MINGW}" = "xyes"; then
3890 cat >>confdefs.h <<_ACEOF
3895 cat >>confdefs.h <<_ACEOF
3899 LIBS="$LIBS -lws2_32 -lgdi32"
3900 { echo "$as_me:$LINENO: result: mingw" >&5
3901 echo "${ECHO_T}mingw" >&6; }
3905 cat >>confdefs.h <<_ACEOF
3909 { echo "$as_me:$LINENO: result: " >&5
3910 echo "${ECHO_T}" >&6; }
3916 if test "x${MINGW}" != "xyes"; then
3918 cat >>confdefs.h <<_ACEOF
3931 # The following tries to make use of includes and libraries in
3932 # /usr/local, too. Notice: A -I/usr/local/include might break
3933 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
3934 # especially on systems which link /usr/local to /usr, so it has yet
3935 # to be seen how useful this is.
3936 if test -d /usr/local/lib; then
3937 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3939 if test -d /usr/local/include; then
3940 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
3941 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3944 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
3945 # if the user has a special prefix (like /opt), there might also be $prefix/lib
3946 # and $prefix/include, which should be included in our search paths for libraries
3948 LDFLAGS="$LDFLAGS -L${libdir}"
3949 CPPFLAGS="$CPPFLAGS -I${includedir}"
3950 # TODO- test whether gcc still works after this
3954 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
3957 # this must be done after (I believe) AC_PROG_MAKE_SET
3958 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
3959 STRIP="@echo debug enabled, not stripping "
3966 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
3967 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
3968 if test "${ac_cv_lib_m_sin+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 ac_check_lib_save_LIBS=$LIBS
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3980 /* Override any GCC internal prototype to avoid an error.
3981 Use char because int might match the return type of a GCC
3982 builtin and then its argument prototype would still apply. */
3995 rm -f conftest.$ac_objext conftest$ac_exeext
3996 if { (ac_try="$ac_link"
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002 (eval "$ac_link") 2>conftest.er1
4004 grep -v '^ *+' conftest.er1 >conftest.err
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest$ac_exeext &&
4012 $as_test_x conftest$ac_exeext; then
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4022 conftest$ac_exeext conftest.$ac_ext
4023 LIBS=$ac_check_lib_save_LIBS
4025 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4026 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4027 if test $ac_cv_lib_m_sin = yes; then
4028 cat >>confdefs.h <<_ACEOF
4035 echo "Error: Math library not found.";
4041 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4042 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4043 if test "${ac_cv_lib_z_deflate+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 ac_check_lib_save_LIBS=$LIBS
4048 cat >conftest.$ac_ext <<_ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4055 /* Override any GCC internal prototype to avoid an error.
4056 Use char because int might match the return type of a GCC
4057 builtin and then its argument prototype would still apply. */
4070 rm -f conftest.$ac_objext conftest$ac_exeext
4071 if { (ac_try="$ac_link"
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_link") 2>conftest.er1
4079 grep -v '^ *+' conftest.er1 >conftest.err
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } && {
4084 test -z "$ac_c_werror_flag" ||
4085 test ! -s conftest.err
4086 } && test -s conftest$ac_exeext &&
4087 $as_test_x conftest$ac_exeext; then
4088 ac_cv_lib_z_deflate=yes
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4093 ac_cv_lib_z_deflate=no
4096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4097 conftest$ac_exeext conftest.$ac_ext
4098 LIBS=$ac_check_lib_save_LIBS
4100 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4101 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4102 if test $ac_cv_lib_z_deflate = yes; then
4103 cat >>confdefs.h <<_ACEOF
4114 if test "x$ZLIBMISSING" = "xtrue";then
4117 echo "You need zlib to compile swftools"
4123 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4124 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4125 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 ac_check_lib_save_LIBS=$LIBS
4130 cat >conftest.$ac_ext <<_ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4137 /* Override any GCC internal prototype to avoid an error.
4138 Use char because int might match the return type of a GCC
4139 builtin and then its argument prototype would still apply. */
4143 char jpeg_write_raw_data ();
4147 return jpeg_write_raw_data ();
4152 rm -f conftest.$ac_objext conftest$ac_exeext
4153 if { (ac_try="$ac_link"
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_link") 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } && {
4166 test -z "$ac_c_werror_flag" ||
4167 test ! -s conftest.err
4168 } && test -s conftest$ac_exeext &&
4169 $as_test_x conftest$ac_exeext; then
4170 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4175 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4179 conftest$ac_exeext conftest.$ac_ext
4180 LIBS=$ac_check_lib_save_LIBS
4182 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4183 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4184 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4185 cat >>confdefs.h <<_ACEOF
4186 #define HAVE_LIBJPEG 1
4196 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4197 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4198 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 ac_check_lib_save_LIBS=$LIBS
4202 LIBS="-lungif $LIBS"
4203 cat >conftest.$ac_ext <<_ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4210 /* Override any GCC internal prototype to avoid an error.
4211 Use char because int might match the return type of a GCC
4212 builtin and then its argument prototype would still apply. */
4225 rm -f conftest.$ac_objext conftest$ac_exeext
4226 if { (ac_try="$ac_link"
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_link") 2>conftest.er1
4234 grep -v '^ *+' conftest.er1 >conftest.err
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } && {
4239 test -z "$ac_c_werror_flag" ||
4240 test ! -s conftest.err
4241 } && test -s conftest$ac_exeext &&
4242 $as_test_x conftest$ac_exeext; then
4243 ac_cv_lib_ungif_DGifOpen=yes
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 ac_cv_lib_ungif_DGifOpen=no
4251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4252 conftest$ac_exeext conftest.$ac_ext
4253 LIBS=$ac_check_lib_save_LIBS
4255 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4256 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4257 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4258 cat >>confdefs.h <<_ACEOF
4259 #define HAVE_LIBUNGIF 1
4262 LIBS="-lungif $LIBS"
4268 if test "$UNGIFMISSING";then
4271 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4272 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4273 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 ac_check_lib_save_LIBS=$LIBS
4278 cat >conftest.$ac_ext <<_ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4285 /* Override any GCC internal prototype to avoid an error.
4286 Use char because int might match the return type of a GCC
4287 builtin and then its argument prototype would still apply. */
4300 rm -f conftest.$ac_objext conftest$ac_exeext
4301 if { (ac_try="$ac_link"
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_link") 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && {
4314 test -z "$ac_c_werror_flag" ||
4315 test ! -s conftest.err
4316 } && test -s conftest$ac_exeext &&
4317 $as_test_x conftest$ac_exeext; then
4318 ac_cv_lib_gif_DGifOpen=yes
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4323 ac_cv_lib_gif_DGifOpen=no
4326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4327 conftest$ac_exeext conftest.$ac_ext
4328 LIBS=$ac_check_lib_save_LIBS
4330 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4331 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4332 if test $ac_cv_lib_gif_DGifOpen = yes; then
4333 cat >>confdefs.h <<_ACEOF
4334 #define HAVE_LIBGIF 1
4346 { echo "$as_me:$LINENO: checking for byte order" >&5
4347 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4348 if test "$cross_compiling" = yes; then
4351 cat >conftest.$ac_ext <<_ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4358 int main (int argc, char *argv[])
4365 rm -f conftest$ac_exeext
4366 if { (ac_try="$ac_link"
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_link") 2>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4376 { (case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_try") 2>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4387 echo "$as_me: program exited with status $ac_status" >&5
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4400 if test "x${CROSSCOMPILE}" = "x1"; then
4401 { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4402 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4403 { echo "$as_me:$LINENO: checking target system type" >&5
4404 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4405 if test "${ac_cv_target+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 if test "x$target_alias" = x; then
4409 ac_cv_target=$ac_cv_host
4411 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4412 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4413 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4414 { (exit 1); exit 1; }; }
4418 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4419 echo "${ECHO_T}$ac_cv_target" >&6; }
4420 case $ac_cv_target in
4422 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4423 echo "$as_me: error: invalid value of canonical target" >&2;}
4424 { (exit 1); exit 1; }; };;
4426 target=$ac_cv_target
4427 ac_save_IFS=$IFS; IFS='-'
4433 # Remember, the first character of IFS is used to create $*,
4434 # except with old shells:
4437 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4440 # The aliases save the names the user supplied, while $host etc.
4441 # will get canonicalized.
4442 test -n "$target_alias" &&
4443 test "$program_prefix$program_suffix$program_transform_name" = \
4445 program_prefix=${target_alias}-
4446 { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4447 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4452 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4459 if test "x${LITTLEENDIAN}" = "x1"; then
4460 { echo "$as_me:$LINENO: result: little endian" >&5
4461 echo "${ECHO_T}little endian" >&6; }
4465 if test "x${BIGENDIAN}" = "x1"; then
4466 { echo "$as_me:$LINENO: result: big endian" >&5
4467 echo "${ECHO_T}big endian" >&6; }
4470 export WORDS_BIGENDIAN
4471 cat >>confdefs.h <<_ACEOF
4472 #define WORDS_BIGENDIAN 1
4476 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4477 { echo "$as_me:$LINENO: result: unknown" >&5
4478 echo "${ECHO_T}unknown" >&6; }
4479 echo Byte order could not determined.
4485 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4486 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4487 if test "$cross_compiling" = yes; then
4490 cat >conftest.$ac_ext <<_ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4498 int main (int argc, char*argv[])
4500 return system("test `touch config.tmp2`");
4504 rm -f conftest$ac_exeext
4505 if { (ac_try="$ac_link"
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_link") 2>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4515 { (case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520 (eval "$ac_try") 2>&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4526 echo "$as_me: program exited with status $ac_status" >&5
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4536 if test "x${OK}" = "xOK";then
4537 test -f config.tmp2 || OK=
4540 if test "x${CROSSCOMPILE}" = "x1";then
4543 if test "x${OK}" = "xOK";then
4545 { echo "$as_me:$LINENO: result: yes" >&5
4546 echo "${ECHO_T}yes" >&6; }
4548 export SYSTEM_BACKTICKS
4549 cat >>confdefs.h <<_ACEOF
4550 #define SYSTEM_BACKTICKS 1
4554 { echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6; }
4560 test "$program_prefix" != NONE &&
4561 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4562 # Use a double $ so make ignores it.
4563 test "$program_suffix" != NONE &&
4564 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4565 # Double any \ or $. echo might interpret backslashes.
4566 # By default was `s,x,x', remove it if useless.
4567 cat <<\_ACEOF >conftest.sed
4568 s/[\\$]/&&/g;s/;s,x,x,$//
4570 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4574 ac_config_headers="$ac_config_headers config.h"
4582 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4583 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4584 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4585 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 cat >conftest.$ac_ext <<_ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h. */
4595 #include <sys/types.h>
4607 rm -f conftest.$ac_objext
4608 if { (ac_try="$ac_compile"
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_compile") 2>conftest.er1
4616 grep -v '^ *+' conftest.er1 >conftest.err
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } && {
4621 test -z "$ac_c_werror_flag" ||
4622 test ! -s conftest.err
4623 } && test -s conftest.$ac_objext; then
4624 eval "$as_ac_Header=yes"
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 eval "$as_ac_Header=no"
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 ac_res=`eval echo '${'$as_ac_Header'}'`
4635 { echo "$as_me:$LINENO: result: $ac_res" >&5
4636 echo "${ECHO_T}$ac_res" >&6; }
4637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4638 cat >>confdefs.h <<_ACEOF
4639 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4642 ac_header_dirent=$ac_hdr; break
4646 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4647 if test $ac_header_dirent = dirent.h; then
4648 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4649 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4650 if test "${ac_cv_search_opendir+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 ac_func_search_save_LIBS=$LIBS
4654 cat >conftest.$ac_ext <<_ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4661 /* Override any GCC internal prototype to avoid an error.
4662 Use char because int might match the return type of a GCC
4663 builtin and then its argument prototype would still apply. */
4676 for ac_lib in '' dir; do
4677 if test -z "$ac_lib"; then
4678 ac_res="none required"
4681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4683 rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (ac_try="$ac_link"
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690 (eval "$ac_link") 2>conftest.er1
4692 grep -v '^ *+' conftest.er1 >conftest.err
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } && {
4697 test -z "$ac_c_werror_flag" ||
4698 test ! -s conftest.err
4699 } && test -s conftest$ac_exeext &&
4700 $as_test_x conftest$ac_exeext; then
4701 ac_cv_search_opendir=$ac_res
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4711 if test "${ac_cv_search_opendir+set}" = set; then
4715 if test "${ac_cv_search_opendir+set}" = set; then
4718 ac_cv_search_opendir=no
4721 LIBS=$ac_func_search_save_LIBS
4723 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4724 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4725 ac_res=$ac_cv_search_opendir
4726 if test "$ac_res" != no; then
4727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4732 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4733 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4734 if test "${ac_cv_search_opendir+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 ac_func_search_save_LIBS=$LIBS
4738 cat >conftest.$ac_ext <<_ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4745 /* Override any GCC internal prototype to avoid an error.
4746 Use char because int might match the return type of a GCC
4747 builtin and then its argument prototype would still apply. */
4760 for ac_lib in '' x; do
4761 if test -z "$ac_lib"; then
4762 ac_res="none required"
4765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4767 rm -f conftest.$ac_objext conftest$ac_exeext
4768 if { (ac_try="$ac_link"
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4774 (eval "$ac_link") 2>conftest.er1
4776 grep -v '^ *+' conftest.er1 >conftest.err
4778 cat conftest.err >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } && {
4781 test -z "$ac_c_werror_flag" ||
4782 test ! -s conftest.err
4783 } && test -s conftest$ac_exeext &&
4784 $as_test_x conftest$ac_exeext; then
4785 ac_cv_search_opendir=$ac_res
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4795 if test "${ac_cv_search_opendir+set}" = set; then
4799 if test "${ac_cv_search_opendir+set}" = set; then
4802 ac_cv_search_opendir=no
4805 LIBS=$ac_func_search_save_LIBS
4807 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4808 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4809 ac_res=$ac_cv_search_opendir
4810 if test "$ac_res" != no; then
4811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4818 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4819 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4820 if test "${ac_cv_path_GREP+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 # Extract the first word of "grep ggrep" to use in msg output
4824 if test -z "$GREP"; then
4825 set dummy grep ggrep; ac_prog_name=$2
4826 if test "${ac_cv_path_GREP+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 ac_path_GREP_found=false
4830 # Loop through the user's path and test for each of PROGNAME-LIST
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4835 test -z "$as_dir" && as_dir=.
4836 for ac_prog in grep ggrep; do
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4839 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4840 # Check for GNU ac_path_GREP and select it if it is found.
4841 # Check for GNU $ac_path_GREP
4842 case `"$ac_path_GREP" --version 2>&1` in
4844 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4847 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4850 cat "conftest.in" "conftest.in" >"conftest.tmp"
4851 mv "conftest.tmp" "conftest.in"
4852 cp "conftest.in" "conftest.nl"
4853 echo 'GREP' >> "conftest.nl"
4854 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4855 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4856 ac_count=`expr $ac_count + 1`
4857 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4858 # Best one so far, save it but keep looking for a better one
4859 ac_cv_path_GREP="$ac_path_GREP"
4860 ac_path_GREP_max=$ac_count
4862 # 10*(2^10) chars as input seems more than enough
4863 test $ac_count -gt 10 && break
4865 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4869 $ac_path_GREP_found && break 3
4879 GREP="$ac_cv_path_GREP"
4880 if test -z "$GREP"; then
4881 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4882 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4883 { (exit 1); exit 1; }; }
4887 ac_cv_path_GREP=$GREP
4892 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4893 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4894 GREP="$ac_cv_path_GREP"
4897 { echo "$as_me:$LINENO: checking for egrep" >&5
4898 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4899 if test "${ac_cv_path_EGREP+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4903 then ac_cv_path_EGREP="$GREP -E"
4905 # Extract the first word of "egrep" to use in msg output
4906 if test -z "$EGREP"; then
4907 set dummy egrep; ac_prog_name=$2
4908 if test "${ac_cv_path_EGREP+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 ac_path_EGREP_found=false
4912 # Loop through the user's path and test for each of PROGNAME-LIST
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4917 test -z "$as_dir" && as_dir=.
4918 for ac_prog in egrep; do
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4921 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4922 # Check for GNU ac_path_EGREP and select it if it is found.
4923 # Check for GNU $ac_path_EGREP
4924 case `"$ac_path_EGREP" --version 2>&1` in
4926 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4929 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4932 cat "conftest.in" "conftest.in" >"conftest.tmp"
4933 mv "conftest.tmp" "conftest.in"
4934 cp "conftest.in" "conftest.nl"
4935 echo 'EGREP' >> "conftest.nl"
4936 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4937 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4938 ac_count=`expr $ac_count + 1`
4939 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4940 # Best one so far, save it but keep looking for a better one
4941 ac_cv_path_EGREP="$ac_path_EGREP"
4942 ac_path_EGREP_max=$ac_count
4944 # 10*(2^10) chars as input seems more than enough
4945 test $ac_count -gt 10 && break
4947 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4951 $ac_path_EGREP_found && break 3
4961 EGREP="$ac_cv_path_EGREP"
4962 if test -z "$EGREP"; then
4963 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4964 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4965 { (exit 1); exit 1; }; }
4969 ac_cv_path_EGREP=$EGREP
4975 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4976 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4977 EGREP="$ac_cv_path_EGREP"
4980 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4982 if test "${ac_cv_header_stdc+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 cat >conftest.$ac_ext <<_ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
5004 rm -f conftest.$ac_objext
5005 if { (ac_try="$ac_compile"
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011 (eval "$ac_compile") 2>conftest.er1
5013 grep -v '^ *+' conftest.er1 >conftest.err
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } && {
5018 test -z "$ac_c_werror_flag" ||
5019 test ! -s conftest.err
5020 } && test -s conftest.$ac_objext; then
5021 ac_cv_header_stdc=yes
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5026 ac_cv_header_stdc=no
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031 if test $ac_cv_header_stdc = yes; then
5032 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5033 cat >conftest.$ac_ext <<_ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043 $EGREP "memchr" >/dev/null 2>&1; then
5046 ac_cv_header_stdc=no
5052 if test $ac_cv_header_stdc = yes; then
5053 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5064 $EGREP "free" >/dev/null 2>&1; then
5067 ac_cv_header_stdc=no
5073 if test $ac_cv_header_stdc = yes; then
5074 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5075 if test "$cross_compiling" = yes; then
5078 cat >conftest.$ac_ext <<_ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5086 #if ((' ' & 0x0FF) == 0x020)
5087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5090 # define ISLOWER(c) \
5091 (('a' <= (c) && (c) <= 'i') \
5092 || ('j' <= (c) && (c) <= 'r') \
5093 || ('s' <= (c) && (c) <= 'z'))
5094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5102 for (i = 0; i < 256; i++)
5103 if (XOR (islower (i), ISLOWER (i))
5104 || toupper (i) != TOUPPER (i))
5109 rm -f conftest$ac_exeext
5110 if { (ac_try="$ac_link"
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_link") 2>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5120 { (case "(($ac_try" in
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125 (eval "$ac_try") 2>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5131 echo "$as_me: program exited with status $ac_status" >&5
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5136 ac_cv_header_stdc=no
5138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5144 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5145 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5146 if test $ac_cv_header_stdc = yes; then
5148 cat >>confdefs.h <<\_ACEOF
5149 #define STDC_HEADERS 1
5154 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5164 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5165 inttypes.h stdint.h unistd.h
5167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5179 $ac_includes_default
5181 #include <$ac_header>
5183 rm -f conftest.$ac_objext
5184 if { (ac_try="$ac_compile"
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_compile") 2>conftest.er1
5192 grep -v '^ *+' conftest.er1 >conftest.err
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } && {
5197 test -z "$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5199 } && test -s conftest.$ac_objext; then
5200 eval "$as_ac_Header=yes"
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5205 eval "$as_ac_Header=no"
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 ac_res=`eval echo '${'$as_ac_Header'}'`
5211 { echo "$as_me:$LINENO: result: $ac_res" >&5
5212 echo "${ECHO_T}$ac_res" >&6; }
5213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5214 cat >>confdefs.h <<_ACEOF
5215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5238 for ac_header in zlib.h gif_lib.h io.h jpeglib.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
5240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 ac_res=`eval echo '${'$as_ac_Header'}'`
5248 { echo "$as_me:$LINENO: result: $ac_res" >&5
5249 echo "${ECHO_T}$ac_res" >&6; }
5251 # Is the header compilable?
5252 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5254 cat >conftest.$ac_ext <<_ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h. */
5260 $ac_includes_default
5261 #include <$ac_header>
5263 rm -f conftest.$ac_objext
5264 if { (ac_try="$ac_compile"
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_compile") 2>conftest.er1
5272 grep -v '^ *+' conftest.er1 >conftest.err
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } && {
5277 test -z "$ac_c_werror_flag" ||
5278 test ! -s conftest.err
5279 } && test -s conftest.$ac_objext; then
5280 ac_header_compiler=yes
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 ac_header_compiler=no
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5290 echo "${ECHO_T}$ac_header_compiler" >&6; }
5292 # Is the header present?
5293 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5295 cat >conftest.$ac_ext <<_ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 #include <$ac_header>
5303 if { (ac_try="$ac_cpp conftest.$ac_ext"
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5311 grep -v '^ *+' conftest.er1 >conftest.err
5313 cat conftest.err >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } >/dev/null && {
5316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5317 test ! -s conftest.err
5319 ac_header_preproc=yes
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5324 ac_header_preproc=no
5327 rm -f conftest.err conftest.$ac_ext
5328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5329 echo "${ECHO_T}$ac_header_preproc" >&6; }
5331 # So? What about this header?
5332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5338 ac_header_preproc=yes
5341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 eval "$as_ac_Header=\$ac_header_preproc"
5363 ac_res=`eval echo '${'$as_ac_Header'}'`
5364 { echo "$as_me:$LINENO: result: $ac_res" >&5
5365 echo "${ECHO_T}$ac_res" >&6; }
5368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5369 cat >>confdefs.h <<_ACEOF
5370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5378 cat >>confdefs.h <<_ACEOF
5379 #define PACKAGE "$PACKAGE"
5382 cat >>confdefs.h <<_ACEOF
5383 #define VERSION "$VERSION"
5392 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5393 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5394 if test "${ac_cv_c_const+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 cat >conftest.$ac_ext <<_ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5407 /* FIXME: Include the comments suggested by Paul. */
5409 /* Ultrix mips cc rejects this. */
5410 typedef int charset[2];
5412 /* SunOS 4.1.1 cc rejects this. */
5413 char const *const *pcpcc;
5415 /* NEC SVR4.0.2 mips cc rejects this. */
5416 struct point {int x, y;};
5417 static struct point const zero = {0,0};
5418 /* AIX XL C 1.02.0.0 rejects this.
5419 It does not let you subtract one const X* pointer from another in
5420 an arm of an if-expression whose if-part is not a constant
5422 const char *g = "string";
5423 pcpcc = &g + (g ? g-g : 0);
5424 /* HPUX 7.0 cc rejects these. */
5426 ppc = (char**) pcpcc;
5427 pcpcc = (char const *const *) ppc;
5428 { /* SCO 3.2v4 cc rejects this. */
5430 char const *s = 0 ? (char *) 0 : (char const *) 0;
5435 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5437 const int *foo = &x[0];
5440 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5441 typedef const int *iptr;
5445 { /* AIX XL C 1.02.0.0 rejects this saying
5446 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5447 struct s { int j; const int *ap[3]; };
5448 struct s *b; b->j = 5;
5450 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5454 return !cs[0] && !zero.x;
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5470 grep -v '^ *+' conftest.er1 >conftest.err
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_c_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.$ac_objext; then
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5489 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5490 if test $ac_cv_c_const = no; then
5492 cat >>confdefs.h <<\_ACEOF
5498 { echo "$as_me:$LINENO: checking for inline" >&5
5499 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5500 if test "${ac_cv_c_inline+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 for ac_kw in inline __inline__ __inline; do
5505 cat >conftest.$ac_ext <<_ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5513 static $ac_kw foo_t static_foo () {return 0; }
5514 $ac_kw foo_t foo () {return 0; }
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_compile") 2>conftest.er1
5527 grep -v '^ *+' conftest.er1 >conftest.err
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && {
5532 test -z "$ac_c_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.$ac_objext; then
5535 ac_cv_c_inline=$ac_kw
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544 test "$ac_cv_c_inline" != no && break
5548 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5549 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5552 case $ac_cv_c_inline in
5555 case $ac_cv_c_inline in
5557 *) ac_val=$ac_cv_c_inline;;
5559 cat >>confdefs.h <<_ACEOF
5561 #define inline $ac_val
5567 { echo "$as_me:$LINENO: checking for off_t" >&5
5568 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5569 if test "${ac_cv_type_off_t+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 cat >conftest.$ac_ext <<_ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 $ac_includes_default
5579 typedef off_t ac__type_new_;
5583 if ((ac__type_new_ *) 0)
5585 if (sizeof (ac__type_new_))
5591 rm -f conftest.$ac_objext
5592 if { (ac_try="$ac_compile"
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_compile") 2>conftest.er1
5600 grep -v '^ *+' conftest.er1 >conftest.err
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && {
5605 test -z "$ac_c_werror_flag" ||
5606 test ! -s conftest.err
5607 } && test -s conftest.$ac_objext; then
5608 ac_cv_type_off_t=yes
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5619 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5620 if test $ac_cv_type_off_t = yes; then
5624 cat >>confdefs.h <<_ACEOF
5625 #define off_t long int
5630 { echo "$as_me:$LINENO: checking for size_t" >&5
5631 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5632 if test "${ac_cv_type_size_t+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 cat >conftest.$ac_ext <<_ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5641 $ac_includes_default
5642 typedef size_t ac__type_new_;
5646 if ((ac__type_new_ *) 0)
5648 if (sizeof (ac__type_new_))
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5663 grep -v '^ *+' conftest.er1 >conftest.err
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.$ac_objext; then
5671 ac_cv_type_size_t=yes
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 ac_cv_type_size_t=no
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5682 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5683 if test $ac_cv_type_size_t = yes; then
5687 cat >>confdefs.h <<_ACEOF
5688 #define size_t unsigned int
5693 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5694 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5695 if test "${ac_cv_struct_tm+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 cat >conftest.$ac_ext <<_ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #include <sys/types.h>
5711 int *p = &tm.tm_sec;
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest.$ac_objext; then
5734 ac_cv_struct_tm=time.h
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 ac_cv_struct_tm=sys/time.h
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5745 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5746 if test $ac_cv_struct_tm = sys/time.h; then
5748 cat >>confdefs.h <<\_ACEOF
5749 #define TM_IN_SYS_TIME 1
5754 { echo "$as_me:$LINENO: checking for boolean" >&5
5755 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5756 if test "${ac_cv_type_boolean+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 cat >conftest.$ac_ext <<_ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 $ac_includes_default
5766 typedef boolean ac__type_new_;
5770 if ((ac__type_new_ *) 0)
5772 if (sizeof (ac__type_new_))
5778 rm -f conftest.$ac_objext
5779 if { (ac_try="$ac_compile"
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compile") 2>conftest.er1
5787 grep -v '^ *+' conftest.er1 >conftest.err
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } && {
5792 test -z "$ac_c_werror_flag" ||
5793 test ! -s conftest.err
5794 } && test -s conftest.$ac_objext; then
5795 ac_cv_type_boolean=yes
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 ac_cv_type_boolean=no
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5806 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5807 if test $ac_cv_type_boolean = yes; then
5811 cat >>confdefs.h <<_ACEOF
5827 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
5829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 cat >conftest.$ac_ext <<_ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5843 #define $ac_func innocuous_$ac_func
5845 /* System header to define __stub macros and hopefully few prototypes,
5846 which can conflict with char $ac_func (); below.
5847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5848 <limits.h> exists even on freestanding compilers. */
5851 # include <limits.h>
5853 # include <assert.h>
5858 /* Override any GCC internal prototype to avoid an error.
5859 Use char because int might match the return type of a GCC
5860 builtin and then its argument prototype would still apply. */
5865 /* The GNU C library defines this for functions which it implements
5866 to always fail with ENOSYS. Some functions are actually named
5867 something starting with __ and the normal name is an alias. */
5868 #if defined __stub_$ac_func || defined __stub___$ac_func
5880 rm -f conftest.$ac_objext conftest$ac_exeext
5881 if { (ac_try="$ac_link"
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_link") 2>conftest.er1
5889 grep -v '^ *+' conftest.er1 >conftest.err
5891 cat conftest.err >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && {
5894 test -z "$ac_c_werror_flag" ||
5895 test ! -s conftest.err
5896 } && test -s conftest$ac_exeext &&
5897 $as_test_x conftest$ac_exeext; then
5898 eval "$as_ac_var=yes"
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5903 eval "$as_ac_var=no"
5906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5907 conftest$ac_exeext conftest.$ac_ext
5909 ac_res=`eval echo '${'$as_ac_var'}'`
5910 { echo "$as_me:$LINENO: result: $ac_res" >&5
5911 echo "${ECHO_T}$ac_res" >&6; }
5912 if test `eval echo '${'$as_ac_var'}'` = yes; then
5913 cat >>confdefs.h <<_ACEOF
5914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5921 { echo "$as_me:$LINENO: checking for signed" >&5
5922 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5923 if test "${ac_cv_type_signed+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 cat >conftest.$ac_ext <<_ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 $ac_includes_default
5933 typedef signed ac__type_new_;
5937 if ((ac__type_new_ *) 0)
5939 if (sizeof (ac__type_new_))
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_compile") 2>conftest.er1
5954 grep -v '^ *+' conftest.er1 >conftest.err
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } && {
5959 test -z "$ac_c_werror_flag" ||
5960 test ! -s conftest.err
5961 } && test -s conftest.$ac_objext; then
5962 ac_cv_type_signed=yes
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 ac_cv_type_signed=no
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
5973 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
5975 # The cast to long int works around a bug in the HP C Compiler
5976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5978 # This bug is HP SR number 8606223364.
5979 { echo "$as_me:$LINENO: checking size of signed" >&5
5980 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
5981 if test "${ac_cv_sizeof_signed+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 if test "$cross_compiling" = yes; then
5985 # Depending upon the size, compute the lo and hi bounds.
5986 cat >conftest.$ac_ext <<_ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 $ac_includes_default
5993 typedef signed ac__type_sizeof_;
5997 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6004 rm -f conftest.$ac_objext
6005 if { (ac_try="$ac_compile"
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_compile") 2>conftest.er1
6013 grep -v '^ *+' conftest.er1 >conftest.err
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } && {
6018 test -z "$ac_c_werror_flag" ||
6019 test ! -s conftest.err
6020 } && test -s conftest.$ac_objext; then
6023 cat >conftest.$ac_ext <<_ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 $ac_includes_default
6030 typedef signed ac__type_sizeof_;
6034 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6041 rm -f conftest.$ac_objext
6042 if { (ac_try="$ac_compile"
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_compile") 2>conftest.er1
6050 grep -v '^ *+' conftest.er1 >conftest.err
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } && {
6055 test -z "$ac_c_werror_flag" ||
6056 test ! -s conftest.err
6057 } && test -s conftest.$ac_objext; then
6058 ac_hi=$ac_mid; break
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6063 ac_lo=`expr $ac_mid + 1`
6064 if test $ac_lo -le $ac_mid; then
6068 ac_mid=`expr 2 '*' $ac_mid + 1`
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6077 cat >conftest.$ac_ext <<_ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 $ac_includes_default
6084 typedef signed ac__type_sizeof_;
6088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6095 rm -f conftest.$ac_objext
6096 if { (ac_try="$ac_compile"
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_compile") 2>conftest.er1
6104 grep -v '^ *+' conftest.er1 >conftest.err
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } && {
6109 test -z "$ac_c_werror_flag" ||
6110 test ! -s conftest.err
6111 } && test -s conftest.$ac_objext; then
6114 cat >conftest.$ac_ext <<_ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6120 $ac_includes_default
6121 typedef signed ac__type_sizeof_;
6125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6132 rm -f conftest.$ac_objext
6133 if { (ac_try="$ac_compile"
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_compile") 2>conftest.er1
6141 grep -v '^ *+' conftest.er1 >conftest.err
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } && {
6146 test -z "$ac_c_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest.$ac_objext; then
6149 ac_lo=$ac_mid; break
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6154 ac_hi=`expr '(' $ac_mid ')' - 1`
6155 if test $ac_mid -le $ac_hi; then
6159 ac_mid=`expr 2 '*' $ac_mid`
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 # Binary search between lo and hi bounds.
6176 while test "x$ac_lo" != "x$ac_hi"; do
6177 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6178 cat >conftest.$ac_ext <<_ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 $ac_includes_default
6185 typedef signed ac__type_sizeof_;
6189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6196 rm -f conftest.$ac_objext
6197 if { (ac_try="$ac_compile"
6199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200 *) ac_try_echo=$ac_try;;
6202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203 (eval "$ac_compile") 2>conftest.er1
6205 grep -v '^ *+' conftest.er1 >conftest.err
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } && {
6210 test -z "$ac_c_werror_flag" ||
6211 test ! -s conftest.err
6212 } && test -s conftest.$ac_objext; then
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6218 ac_lo=`expr '(' $ac_mid ')' + 1`
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224 ?*) ac_cv_sizeof_signed=$ac_lo;;
6225 '') if test "$ac_cv_type_signed" = yes; then
6226 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6227 See \`config.log' for more details." >&5
6228 echo "$as_me: error: cannot compute sizeof (signed)
6229 See \`config.log' for more details." >&2;}
6230 { (exit 77); exit 77; }; }
6232 ac_cv_sizeof_signed=0
6236 cat >conftest.$ac_ext <<_ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 $ac_includes_default
6243 typedef signed ac__type_sizeof_;
6244 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6245 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6252 FILE *f = fopen ("conftest.val", "w");
6255 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6257 long int i = longval ();
6258 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6260 fprintf (f, "%ld\n", i);
6264 unsigned long int i = ulongval ();
6265 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6267 fprintf (f, "%lu\n", i);
6269 return ferror (f) || fclose (f) != 0;
6275 rm -f conftest$ac_exeext
6276 if { (ac_try="$ac_link"
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_link") 2>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6286 { (case "(($ac_try" in
6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6291 (eval "$ac_try") 2>&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_sizeof_signed=`cat conftest.val`
6297 echo "$as_me: program exited with status $ac_status" >&5
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6302 if test "$ac_cv_type_signed" = yes; then
6303 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6304 See \`config.log' for more details." >&5
6305 echo "$as_me: error: cannot compute sizeof (signed)
6306 See \`config.log' for more details." >&2;}
6307 { (exit 77); exit 77; }; }
6309 ac_cv_sizeof_signed=0
6312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6316 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
6317 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
6321 cat >>confdefs.h <<_ACEOF
6322 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
6326 { echo "$as_me:$LINENO: checking for unsigned" >&5
6327 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
6328 if test "${ac_cv_type_unsigned+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 cat >conftest.$ac_ext <<_ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 $ac_includes_default
6338 typedef unsigned ac__type_new_;
6342 if ((ac__type_new_ *) 0)
6344 if (sizeof (ac__type_new_))
6350 rm -f conftest.$ac_objext
6351 if { (ac_try="$ac_compile"
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357 (eval "$ac_compile") 2>conftest.er1
6359 grep -v '^ *+' conftest.er1 >conftest.err
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } && {
6364 test -z "$ac_c_werror_flag" ||
6365 test ! -s conftest.err
6366 } && test -s conftest.$ac_objext; then
6367 ac_cv_type_unsigned=yes
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 ac_cv_type_unsigned=no
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
6378 echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
6380 # The cast to long int works around a bug in the HP C Compiler
6381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6383 # This bug is HP SR number 8606223364.
6384 { echo "$as_me:$LINENO: checking size of unsigned" >&5
6385 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
6386 if test "${ac_cv_sizeof_unsigned+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 if test "$cross_compiling" = yes; then
6390 # Depending upon the size, compute the lo and hi bounds.
6391 cat >conftest.$ac_ext <<_ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 $ac_includes_default
6398 typedef unsigned ac__type_sizeof_;
6402 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6409 rm -f conftest.$ac_objext
6410 if { (ac_try="$ac_compile"
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_compile") 2>conftest.er1
6418 grep -v '^ *+' conftest.er1 >conftest.err
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } && {
6423 test -z "$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6425 } && test -s conftest.$ac_objext; then
6428 cat >conftest.$ac_ext <<_ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 $ac_includes_default
6435 typedef unsigned ac__type_sizeof_;
6439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6446 rm -f conftest.$ac_objext
6447 if { (ac_try="$ac_compile"
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_compile") 2>conftest.er1
6455 grep -v '^ *+' conftest.er1 >conftest.err
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } && {
6460 test -z "$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6462 } && test -s conftest.$ac_objext; then
6463 ac_hi=$ac_mid; break
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6468 ac_lo=`expr $ac_mid + 1`
6469 if test $ac_lo -le $ac_mid; then
6473 ac_mid=`expr 2 '*' $ac_mid + 1`
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 cat >conftest.$ac_ext <<_ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488 $ac_includes_default
6489 typedef unsigned ac__type_sizeof_;
6493 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6500 rm -f conftest.$ac_objext
6501 if { (ac_try="$ac_compile"
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compile") 2>conftest.er1
6509 grep -v '^ *+' conftest.er1 >conftest.err
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } && {
6514 test -z "$ac_c_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest.$ac_objext; then
6519 cat >conftest.$ac_ext <<_ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6525 $ac_includes_default
6526 typedef unsigned ac__type_sizeof_;
6530 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6546 grep -v '^ *+' conftest.er1 >conftest.err
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && {
6551 test -z "$ac_c_werror_flag" ||
6552 test ! -s conftest.err
6553 } && test -s conftest.$ac_objext; then
6554 ac_lo=$ac_mid; break
6556 echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6559 ac_hi=`expr '(' $ac_mid ')' - 1`
6560 if test $ac_mid -le $ac_hi; then
6564 ac_mid=`expr 2 '*' $ac_mid`
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 # Binary search between lo and hi bounds.
6581 while test "x$ac_lo" != "x$ac_hi"; do
6582 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6583 cat >conftest.$ac_ext <<_ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589 $ac_includes_default
6590 typedef unsigned ac__type_sizeof_;
6594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6601 rm -f conftest.$ac_objext
6602 if { (ac_try="$ac_compile"
6604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6605 *) ac_try_echo=$ac_try;;
6607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6608 (eval "$ac_compile") 2>conftest.er1
6610 grep -v '^ *+' conftest.er1 >conftest.err
6612 cat conftest.err >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } && {
6615 test -z "$ac_c_werror_flag" ||
6616 test ! -s conftest.err
6617 } && test -s conftest.$ac_objext; then
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6623 ac_lo=`expr '(' $ac_mid ')' + 1`
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
6630 '') if test "$ac_cv_type_unsigned" = yes; then
6631 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6632 See \`config.log' for more details." >&5
6633 echo "$as_me: error: cannot compute sizeof (unsigned)
6634 See \`config.log' for more details." >&2;}
6635 { (exit 77); exit 77; }; }
6637 ac_cv_sizeof_unsigned=0
6641 cat >conftest.$ac_ext <<_ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 $ac_includes_default
6648 typedef unsigned ac__type_sizeof_;
6649 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6650 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6657 FILE *f = fopen ("conftest.val", "w");
6660 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6662 long int i = longval ();
6663 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6665 fprintf (f, "%ld\n", i);
6669 unsigned long int i = ulongval ();
6670 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6672 fprintf (f, "%lu\n", i);
6674 return ferror (f) || fclose (f) != 0;
6680 rm -f conftest$ac_exeext
6681 if { (ac_try="$ac_link"
6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687 (eval "$ac_link") 2>&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6691 { (case "(($ac_try" in
6692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6693 *) ac_try_echo=$ac_try;;
6695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6696 (eval "$ac_try") 2>&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 ac_cv_sizeof_unsigned=`cat conftest.val`
6702 echo "$as_me: program exited with status $ac_status" >&5
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6707 if test "$ac_cv_type_unsigned" = yes; then
6708 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6709 See \`config.log' for more details." >&5
6710 echo "$as_me: error: cannot compute sizeof (unsigned)
6711 See \`config.log' for more details." >&2;}
6712 { (exit 77); exit 77; }; }
6714 ac_cv_sizeof_unsigned=0
6717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6721 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
6722 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
6726 cat >>confdefs.h <<_ACEOF
6727 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
6731 { echo "$as_me:$LINENO: checking for signed long" >&5
6732 echo $ECHO_N "checking for signed long... $ECHO_C" >&6; }
6733 if test "${ac_cv_type_signed_long+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 cat >conftest.$ac_ext <<_ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 $ac_includes_default
6743 typedef signed long ac__type_new_;
6747 if ((ac__type_new_ *) 0)
6749 if (sizeof (ac__type_new_))
6755 rm -f conftest.$ac_objext
6756 if { (ac_try="$ac_compile"
6758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6759 *) ac_try_echo=$ac_try;;
6761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6762 (eval "$ac_compile") 2>conftest.er1
6764 grep -v '^ *+' conftest.er1 >conftest.err
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } && {
6769 test -z "$ac_c_werror_flag" ||
6770 test ! -s conftest.err
6771 } && test -s conftest.$ac_objext; then
6772 ac_cv_type_signed_long=yes
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 ac_cv_type_signed_long=no
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long" >&5
6783 echo "${ECHO_T}$ac_cv_type_signed_long" >&6; }
6785 # The cast to long int works around a bug in the HP C Compiler
6786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6788 # This bug is HP SR number 8606223364.
6789 { echo "$as_me:$LINENO: checking size of signed long" >&5
6790 echo $ECHO_N "checking size of signed long... $ECHO_C" >&6; }
6791 if test "${ac_cv_sizeof_signed_long+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 if test "$cross_compiling" = yes; then
6795 # Depending upon the size, compute the lo and hi bounds.
6796 cat >conftest.$ac_ext <<_ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 $ac_includes_default
6803 typedef signed long ac__type_sizeof_;
6807 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_compile") 2>conftest.er1
6823 grep -v '^ *+' conftest.er1 >conftest.err
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } && {
6828 test -z "$ac_c_werror_flag" ||
6829 test ! -s conftest.err
6830 } && test -s conftest.$ac_objext; then
6833 cat >conftest.$ac_ext <<_ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 $ac_includes_default
6840 typedef signed long ac__type_sizeof_;
6844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6851 rm -f conftest.$ac_objext
6852 if { (ac_try="$ac_compile"
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_compile") 2>conftest.er1
6860 grep -v '^ *+' conftest.er1 >conftest.err
6862 cat conftest.err >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } && {
6865 test -z "$ac_c_werror_flag" ||
6866 test ! -s conftest.err
6867 } && test -s conftest.$ac_objext; then
6868 ac_hi=$ac_mid; break
6870 echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6873 ac_lo=`expr $ac_mid + 1`
6874 if test $ac_lo -le $ac_mid; then
6878 ac_mid=`expr 2 '*' $ac_mid + 1`
6881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6887 cat >conftest.$ac_ext <<_ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6893 $ac_includes_default
6894 typedef signed long ac__type_sizeof_;
6898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6905 rm -f conftest.$ac_objext
6906 if { (ac_try="$ac_compile"
6908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_compile") 2>conftest.er1
6914 grep -v '^ *+' conftest.er1 >conftest.err
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } && {
6919 test -z "$ac_c_werror_flag" ||
6920 test ! -s conftest.err
6921 } && test -s conftest.$ac_objext; then
6924 cat >conftest.$ac_ext <<_ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 $ac_includes_default
6931 typedef signed long ac__type_sizeof_;
6935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6942 rm -f conftest.$ac_objext
6943 if { (ac_try="$ac_compile"
6945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946 *) ac_try_echo=$ac_try;;
6948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949 (eval "$ac_compile") 2>conftest.er1
6951 grep -v '^ *+' conftest.er1 >conftest.err
6953 cat conftest.err >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } && {
6956 test -z "$ac_c_werror_flag" ||
6957 test ! -s conftest.err
6958 } && test -s conftest.$ac_objext; then
6959 ac_lo=$ac_mid; break
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6964 ac_hi=`expr '(' $ac_mid ')' - 1`
6965 if test $ac_mid -le $ac_hi; then
6969 ac_mid=`expr 2 '*' $ac_mid`
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985 # Binary search between lo and hi bounds.
6986 while test "x$ac_lo" != "x$ac_hi"; do
6987 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 $ac_includes_default
6995 typedef signed long ac__type_sizeof_;
6999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7015 grep -v '^ *+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.$ac_objext; then
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 ac_lo=`expr '(' $ac_mid ')' + 1`
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 ?*) ac_cv_sizeof_signed_long=$ac_lo;;
7035 '') if test "$ac_cv_type_signed_long" = yes; then
7036 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7037 See \`config.log' for more details." >&5
7038 echo "$as_me: error: cannot compute sizeof (signed long)
7039 See \`config.log' for more details." >&2;}
7040 { (exit 77); exit 77; }; }
7042 ac_cv_sizeof_signed_long=0
7046 cat >conftest.$ac_ext <<_ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 $ac_includes_default
7053 typedef signed long ac__type_sizeof_;
7054 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7055 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7062 FILE *f = fopen ("conftest.val", "w");
7065 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7067 long int i = longval ();
7068 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7070 fprintf (f, "%ld\n", i);
7074 unsigned long int i = ulongval ();
7075 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7077 fprintf (f, "%lu\n", i);
7079 return ferror (f) || fclose (f) != 0;
7085 rm -f conftest$ac_exeext
7086 if { (ac_try="$ac_link"
7088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089 *) ac_try_echo=$ac_try;;
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092 (eval "$ac_link") 2>&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7096 { (case "(($ac_try" in
7097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7098 *) ac_try_echo=$ac_try;;
7100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7101 (eval "$ac_try") 2>&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7105 ac_cv_sizeof_signed_long=`cat conftest.val`
7107 echo "$as_me: program exited with status $ac_status" >&5
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7112 if test "$ac_cv_type_signed_long" = yes; then
7113 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7114 See \`config.log' for more details." >&5
7115 echo "$as_me: error: cannot compute sizeof (signed long)
7116 See \`config.log' for more details." >&2;}
7117 { (exit 77); exit 77; }; }
7119 ac_cv_sizeof_signed_long=0
7122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7126 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
7127 echo "${ECHO_T}$ac_cv_sizeof_signed_long" >&6; }
7131 cat >>confdefs.h <<_ACEOF
7132 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
7136 { echo "$as_me:$LINENO: checking for unsigned long" >&5
7137 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7138 if test "${ac_cv_type_unsigned_long+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 cat >conftest.$ac_ext <<_ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 $ac_includes_default
7148 typedef unsigned long ac__type_new_;
7152 if ((ac__type_new_ *) 0)
7154 if (sizeof (ac__type_new_))
7160 rm -f conftest.$ac_objext
7161 if { (ac_try="$ac_compile"
7163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7164 *) ac_try_echo=$ac_try;;
7166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7167 (eval "$ac_compile") 2>conftest.er1
7169 grep -v '^ *+' conftest.er1 >conftest.err
7171 cat conftest.err >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); } && {
7174 test -z "$ac_c_werror_flag" ||
7175 test ! -s conftest.err
7176 } && test -s conftest.$ac_objext; then
7177 ac_cv_type_unsigned_long=yes
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7182 ac_cv_type_unsigned_long=no
7185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7187 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7188 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7190 # The cast to long int works around a bug in the HP C Compiler
7191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7193 # This bug is HP SR number 8606223364.
7194 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
7195 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7196 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 if test "$cross_compiling" = yes; then
7200 # Depending upon the size, compute the lo and hi bounds.
7201 cat >conftest.$ac_ext <<_ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 $ac_includes_default
7208 typedef unsigned long ac__type_sizeof_;
7212 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7219 rm -f conftest.$ac_objext
7220 if { (ac_try="$ac_compile"
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226 (eval "$ac_compile") 2>conftest.er1
7228 grep -v '^ *+' conftest.er1 >conftest.err
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && {
7233 test -z "$ac_c_werror_flag" ||
7234 test ! -s conftest.err
7235 } && test -s conftest.$ac_objext; then
7238 cat >conftest.$ac_ext <<_ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 $ac_includes_default
7245 typedef unsigned long ac__type_sizeof_;
7249 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7256 rm -f conftest.$ac_objext
7257 if { (ac_try="$ac_compile"
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260 *) ac_try_echo=$ac_try;;
7262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7263 (eval "$ac_compile") 2>conftest.er1
7265 grep -v '^ *+' conftest.er1 >conftest.err
7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } && {
7270 test -z "$ac_c_werror_flag" ||
7271 test ! -s conftest.err
7272 } && test -s conftest.$ac_objext; then
7273 ac_hi=$ac_mid; break
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7278 ac_lo=`expr $ac_mid + 1`
7279 if test $ac_lo -le $ac_mid; then
7283 ac_mid=`expr 2 '*' $ac_mid + 1`
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7292 cat >conftest.$ac_ext <<_ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 $ac_includes_default
7299 typedef unsigned long ac__type_sizeof_;
7303 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7310 rm -f conftest.$ac_objext
7311 if { (ac_try="$ac_compile"
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_compile") 2>conftest.er1
7319 grep -v '^ *+' conftest.er1 >conftest.err
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } && {
7324 test -z "$ac_c_werror_flag" ||
7325 test ! -s conftest.err
7326 } && test -s conftest.$ac_objext; then
7329 cat >conftest.$ac_ext <<_ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 $ac_includes_default
7336 typedef unsigned long ac__type_sizeof_;
7340 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7347 rm -f conftest.$ac_objext
7348 if { (ac_try="$ac_compile"
7350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354 (eval "$ac_compile") 2>conftest.er1
7356 grep -v '^ *+' conftest.er1 >conftest.err
7358 cat conftest.err >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest.$ac_objext; then
7364 ac_lo=$ac_mid; break
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7369 ac_hi=`expr '(' $ac_mid ')' - 1`
7370 if test $ac_mid -le $ac_hi; then
7374 ac_mid=`expr 2 '*' $ac_mid`
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7390 # Binary search between lo and hi bounds.
7391 while test "x$ac_lo" != "x$ac_hi"; do
7392 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7393 cat >conftest.$ac_ext <<_ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7400 typedef unsigned long ac__type_sizeof_;
7404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7420 grep -v '^ *+' conftest.er1 >conftest.err
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7430 echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7433 ac_lo=`expr '(' $ac_mid ')' + 1`
7436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7440 '') if test "$ac_cv_type_unsigned_long" = yes; then
7441 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7442 See \`config.log' for more details." >&5
7443 echo "$as_me: error: cannot compute sizeof (unsigned long)
7444 See \`config.log' for more details." >&2;}
7445 { (exit 77); exit 77; }; }
7447 ac_cv_sizeof_unsigned_long=0
7451 cat >conftest.$ac_ext <<_ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 $ac_includes_default
7458 typedef unsigned long ac__type_sizeof_;
7459 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7460 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7467 FILE *f = fopen ("conftest.val", "w");
7470 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7472 long int i = longval ();
7473 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7475 fprintf (f, "%ld\n", i);
7479 unsigned long int i = ulongval ();
7480 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7482 fprintf (f, "%lu\n", i);
7484 return ferror (f) || fclose (f) != 0;
7490 rm -f conftest$ac_exeext
7491 if { (ac_try="$ac_link"
7493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494 *) ac_try_echo=$ac_try;;
7496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_link") 2>&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7501 { (case "(($ac_try" in
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506 (eval "$ac_try") 2>&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7510 ac_cv_sizeof_unsigned_long=`cat conftest.val`
7512 echo "$as_me: program exited with status $ac_status" >&5
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7517 if test "$ac_cv_type_unsigned_long" = yes; then
7518 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7519 See \`config.log' for more details." >&5
7520 echo "$as_me: error: cannot compute sizeof (unsigned long)
7521 See \`config.log' for more details." >&2;}
7522 { (exit 77); exit 77; }; }
7524 ac_cv_sizeof_unsigned_long=0
7527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7531 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
7532 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
7536 cat >>confdefs.h <<_ACEOF
7537 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7541 { echo "$as_me:$LINENO: checking for signed long long" >&5
7542 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7543 if test "${ac_cv_type_signed_long_long+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 cat >conftest.$ac_ext <<_ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7552 $ac_includes_default
7553 typedef signed long long ac__type_new_;
7557 if ((ac__type_new_ *) 0)
7559 if (sizeof (ac__type_new_))
7565 rm -f conftest.$ac_objext
7566 if { (ac_try="$ac_compile"
7568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569 *) ac_try_echo=$ac_try;;
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572 (eval "$ac_compile") 2>conftest.er1
7574 grep -v '^ *+' conftest.er1 >conftest.err
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } && {
7579 test -z "$ac_c_werror_flag" ||
7580 test ! -s conftest.err
7581 } && test -s conftest.$ac_objext; then
7582 ac_cv_type_signed_long_long=yes
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7587 ac_cv_type_signed_long_long=no
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7593 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7595 # The cast to long int works around a bug in the HP C Compiler
7596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7598 # This bug is HP SR number 8606223364.
7599 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7600 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7601 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 if test "$cross_compiling" = yes; then
7605 # Depending upon the size, compute the lo and hi bounds.
7606 cat >conftest.$ac_ext <<_ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 $ac_includes_default
7613 typedef signed long long ac__type_sizeof_;
7617 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7624 rm -f conftest.$ac_objext
7625 if { (ac_try="$ac_compile"
7627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7628 *) ac_try_echo=$ac_try;;
7630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7631 (eval "$ac_compile") 2>conftest.er1
7633 grep -v '^ *+' conftest.er1 >conftest.err
7635 cat conftest.err >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } && {
7638 test -z "$ac_c_werror_flag" ||
7639 test ! -s conftest.err
7640 } && test -s conftest.$ac_objext; then
7643 cat >conftest.$ac_ext <<_ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 $ac_includes_default
7650 typedef signed long long ac__type_sizeof_;
7654 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7661 rm -f conftest.$ac_objext
7662 if { (ac_try="$ac_compile"
7664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7668 (eval "$ac_compile") 2>conftest.er1
7670 grep -v '^ *+' conftest.er1 >conftest.err
7672 cat conftest.err >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } && {
7675 test -z "$ac_c_werror_flag" ||
7676 test ! -s conftest.err
7677 } && test -s conftest.$ac_objext; then
7678 ac_hi=$ac_mid; break
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 ac_lo=`expr $ac_mid + 1`
7684 if test $ac_lo -le $ac_mid; then
7688 ac_mid=`expr 2 '*' $ac_mid + 1`
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 cat >conftest.$ac_ext <<_ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 $ac_includes_default
7704 typedef signed long long ac__type_sizeof_;
7708 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7715 rm -f conftest.$ac_objext
7716 if { (ac_try="$ac_compile"
7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719 *) ac_try_echo=$ac_try;;
7721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7722 (eval "$ac_compile") 2>conftest.er1
7724 grep -v '^ *+' conftest.er1 >conftest.err
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } && {
7729 test -z "$ac_c_werror_flag" ||
7730 test ! -s conftest.err
7731 } && test -s conftest.$ac_objext; then
7734 cat >conftest.$ac_ext <<_ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7740 $ac_includes_default
7741 typedef signed long long ac__type_sizeof_;
7745 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7752 rm -f conftest.$ac_objext
7753 if { (ac_try="$ac_compile"
7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759 (eval "$ac_compile") 2>conftest.er1
7761 grep -v '^ *+' conftest.er1 >conftest.err
7763 cat conftest.err >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } && {
7766 test -z "$ac_c_werror_flag" ||
7767 test ! -s conftest.err
7768 } && test -s conftest.$ac_objext; then
7769 ac_lo=$ac_mid; break
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7774 ac_hi=`expr '(' $ac_mid ')' - 1`
7775 if test $ac_mid -le $ac_hi; then
7779 ac_mid=`expr 2 '*' $ac_mid`
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795 # Binary search between lo and hi bounds.
7796 while test "x$ac_lo" != "x$ac_hi"; do
7797 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7798 cat >conftest.$ac_ext <<_ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7804 $ac_includes_default
7805 typedef signed long long ac__type_sizeof_;
7809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7816 rm -f conftest.$ac_objext
7817 if { (ac_try="$ac_compile"
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7823 (eval "$ac_compile") 2>conftest.er1
7825 grep -v '^ *+' conftest.er1 >conftest.err
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } && {
7830 test -z "$ac_c_werror_flag" ||
7831 test ! -s conftest.err
7832 } && test -s conftest.$ac_objext; then
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 ac_lo=`expr '(' $ac_mid ')' + 1`
7841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7845 '') if test "$ac_cv_type_signed_long_long" = yes; then
7846 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7847 See \`config.log' for more details." >&5
7848 echo "$as_me: error: cannot compute sizeof (signed long long)
7849 See \`config.log' for more details." >&2;}
7850 { (exit 77); exit 77; }; }
7852 ac_cv_sizeof_signed_long_long=0
7856 cat >conftest.$ac_ext <<_ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 $ac_includes_default
7863 typedef signed long long ac__type_sizeof_;
7864 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7865 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7872 FILE *f = fopen ("conftest.val", "w");
7875 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7877 long int i = longval ();
7878 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7880 fprintf (f, "%ld\n", i);
7884 unsigned long int i = ulongval ();
7885 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7887 fprintf (f, "%lu\n", i);
7889 return ferror (f) || fclose (f) != 0;
7895 rm -f conftest$ac_exeext
7896 if { (ac_try="$ac_link"
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902 (eval "$ac_link") 2>&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7906 { (case "(($ac_try" in
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_try") 2>&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7915 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7917 echo "$as_me: program exited with status $ac_status" >&5
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7922 if test "$ac_cv_type_signed_long_long" = yes; then
7923 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7924 See \`config.log' for more details." >&5
7925 echo "$as_me: error: cannot compute sizeof (signed long long)
7926 See \`config.log' for more details." >&2;}
7927 { (exit 77); exit 77; }; }
7929 ac_cv_sizeof_signed_long_long=0
7932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7936 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7937 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
7941 cat >>confdefs.h <<_ACEOF
7942 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7946 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
7947 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
7948 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 cat >conftest.$ac_ext <<_ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 $ac_includes_default
7958 typedef unsigned long long ac__type_new_;
7962 if ((ac__type_new_ *) 0)
7964 if (sizeof (ac__type_new_))
7970 rm -f conftest.$ac_objext
7971 if { (ac_try="$ac_compile"
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_compile") 2>conftest.er1
7979 grep -v '^ *+' conftest.er1 >conftest.err
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.$ac_objext; then
7987 ac_cv_type_unsigned_long_long=yes
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7992 ac_cv_type_unsigned_long_long=no
7995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7998 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
8000 # The cast to long int works around a bug in the HP C Compiler
8001 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8002 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8003 # This bug is HP SR number 8606223364.
8004 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
8005 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
8006 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 if test "$cross_compiling" = yes; then
8010 # Depending upon the size, compute the lo and hi bounds.
8011 cat >conftest.$ac_ext <<_ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8017 $ac_includes_default
8018 typedef unsigned long long ac__type_sizeof_;
8022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8029 rm -f conftest.$ac_objext
8030 if { (ac_try="$ac_compile"
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_compile") 2>conftest.er1
8038 grep -v '^ *+' conftest.er1 >conftest.err
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest.$ac_objext; then
8048 cat >conftest.$ac_ext <<_ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 $ac_includes_default
8055 typedef unsigned long long ac__type_sizeof_;
8059 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8066 rm -f conftest.$ac_objext
8067 if { (ac_try="$ac_compile"
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_compile") 2>conftest.er1
8075 grep -v '^ *+' conftest.er1 >conftest.err
8077 cat conftest.err >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } && {
8080 test -z "$ac_c_werror_flag" ||
8081 test ! -s conftest.err
8082 } && test -s conftest.$ac_objext; then
8083 ac_hi=$ac_mid; break
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ac_lo=`expr $ac_mid + 1`
8089 if test $ac_lo -le $ac_mid; then
8093 ac_mid=`expr 2 '*' $ac_mid + 1`
8096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8102 cat >conftest.$ac_ext <<_ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8108 $ac_includes_default
8109 typedef unsigned long long ac__type_sizeof_;
8113 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8120 rm -f conftest.$ac_objext
8121 if { (ac_try="$ac_compile"
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_compile") 2>conftest.er1
8129 grep -v '^ *+' conftest.er1 >conftest.err
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } && {
8134 test -z "$ac_c_werror_flag" ||
8135 test ! -s conftest.err
8136 } && test -s conftest.$ac_objext; then
8139 cat >conftest.$ac_ext <<_ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8145 $ac_includes_default
8146 typedef unsigned long long ac__type_sizeof_;
8150 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8157 rm -f conftest.$ac_objext
8158 if { (ac_try="$ac_compile"
8160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161 *) ac_try_echo=$ac_try;;
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164 (eval "$ac_compile") 2>conftest.er1
8166 grep -v '^ *+' conftest.er1 >conftest.err
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } && {
8171 test -z "$ac_c_werror_flag" ||
8172 test ! -s conftest.err
8173 } && test -s conftest.$ac_objext; then
8174 ac_lo=$ac_mid; break
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179 ac_hi=`expr '(' $ac_mid ')' - 1`
8180 if test $ac_mid -le $ac_hi; then
8184 ac_mid=`expr 2 '*' $ac_mid`
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 # Binary search between lo and hi bounds.
8201 while test "x$ac_lo" != "x$ac_hi"; do
8202 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8203 cat >conftest.$ac_ext <<_ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8210 typedef unsigned long long ac__type_sizeof_;
8214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8221 rm -f conftest.$ac_objext
8222 if { (ac_try="$ac_compile"
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_compile") 2>conftest.er1
8230 grep -v '^ *+' conftest.er1 >conftest.err
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } && {
8235 test -z "$ac_c_werror_flag" ||
8236 test ! -s conftest.err
8237 } && test -s conftest.$ac_objext; then
8240 echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8243 ac_lo=`expr '(' $ac_mid ')' + 1`
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
8250 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
8251 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8252 See \`config.log' for more details." >&5
8253 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8254 See \`config.log' for more details." >&2;}
8255 { (exit 77); exit 77; }; }
8257 ac_cv_sizeof_unsigned_long_long=0
8261 cat >conftest.$ac_ext <<_ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8267 $ac_includes_default
8268 typedef unsigned long long ac__type_sizeof_;
8269 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8270 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8277 FILE *f = fopen ("conftest.val", "w");
8280 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8282 long int i = longval ();
8283 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8285 fprintf (f, "%ld\n", i);
8289 unsigned long int i = ulongval ();
8290 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8292 fprintf (f, "%lu\n", i);
8294 return ferror (f) || fclose (f) != 0;
8300 rm -f conftest$ac_exeext
8301 if { (ac_try="$ac_link"
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_link") 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8311 { (case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_try") 2>&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
8322 echo "$as_me: program exited with status $ac_status" >&5
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8327 if test "$ac_cv_type_unsigned_long_long" = yes; then
8328 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8329 See \`config.log' for more details." >&5
8330 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8331 See \`config.log' for more details." >&2;}
8332 { (exit 77); exit 77; }; }
8334 ac_cv_sizeof_unsigned_long_long=0
8337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8341 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
8342 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
8346 cat >>confdefs.h <<_ACEOF
8347 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8354 # Extract the first word of "freetype-config", so it can be a program name with args.
8355 set dummy freetype-config; ac_word=$2
8356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 case $FREETYPE_CONFIG in
8363 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8368 for as_dir in $as_dummy
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8386 if test -n "$FREETYPE_CONFIG"; then
8387 { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8388 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8390 { echo "$as_me:$LINENO: result: no" >&5
8391 echo "${ECHO_T}no" >&6; }
8396 OLDCPPFLAGS="${CPPFLAGS}"
8398 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8399 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8400 else if test -d /usr/include/freetype2; then
8401 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8402 else if test -d /usr/local/include/freetype2; then
8403 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8408 if test "x${FREETYPE_CONFIG}" '=' "x";then
8409 # if we didn't find the freetype-config program, we won't
8410 # know where the libs are expected to be. So just blindly
8411 # try to link against them.
8412 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8413 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8414 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 ac_check_lib_save_LIBS=$LIBS
8418 LIBS="-lfreetype $LIBS"
8419 cat >conftest.$ac_ext <<_ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8426 /* Override any GCC internal prototype to avoid an error.
8427 Use char because int might match the return type of a GCC
8428 builtin and then its argument prototype would still apply. */
8432 char FT_Init_FreeType ();
8436 return FT_Init_FreeType ();
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (ac_try="$ac_link"
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_link") 2>conftest.er1
8450 grep -v '^ *+' conftest.er1 >conftest.err
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } && {
8455 test -z "$ac_c_werror_flag" ||
8456 test ! -s conftest.err
8457 } && test -s conftest$ac_exeext &&
8458 $as_test_x conftest$ac_exeext; then
8459 ac_cv_lib_freetype_FT_Init_FreeType=yes
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8464 ac_cv_lib_freetype_FT_Init_FreeType=no
8467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8468 conftest$ac_exeext conftest.$ac_ext
8469 LIBS=$ac_check_lib_save_LIBS
8471 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8472 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8473 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8480 for ac_header in ft2build.h
8482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 ac_res=`eval echo '${'$as_ac_Header'}'`
8490 { echo "$as_me:$LINENO: result: $ac_res" >&5
8491 echo "${ECHO_T}$ac_res" >&6; }
8493 # Is the header compilable?
8494 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 $ac_includes_default
8503 #include <$ac_header>
8505 rm -f conftest.$ac_objext
8506 if { (ac_try="$ac_compile"
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_compile") 2>conftest.er1
8514 grep -v '^ *+' conftest.er1 >conftest.err
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } && {
8519 test -z "$ac_c_werror_flag" ||
8520 test ! -s conftest.err
8521 } && test -s conftest.$ac_objext; then
8522 ac_header_compiler=yes
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8527 ac_header_compiler=no
8530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8532 echo "${ECHO_T}$ac_header_compiler" >&6; }
8534 # Is the header present?
8535 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8537 cat >conftest.$ac_ext <<_ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 #include <$ac_header>
8545 if { (ac_try="$ac_cpp conftest.$ac_ext"
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8553 grep -v '^ *+' conftest.er1 >conftest.err
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } >/dev/null && {
8558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8559 test ! -s conftest.err
8561 ac_header_preproc=yes
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8566 ac_header_preproc=no
8569 rm -f conftest.err conftest.$ac_ext
8570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8571 echo "${ECHO_T}$ac_header_preproc" >&6; }
8573 # So? What about this header?
8574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8580 ac_header_preproc=yes
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 eval "$as_ac_Header=\$ac_header_preproc"
8605 ac_res=`eval echo '${'$as_ac_Header'}'`
8606 { echo "$as_me:$LINENO: result: $ac_res" >&5
8607 echo "${ECHO_T}$ac_res" >&6; }
8610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8611 cat >>confdefs.h <<_ACEOF
8612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8619 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8621 for ac_header in freetype/freetype.h
8623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 ac_res=`eval echo '${'$as_ac_Header'}'`
8631 { echo "$as_me:$LINENO: result: $ac_res" >&5
8632 echo "${ECHO_T}$ac_res" >&6; }
8634 # Is the header compilable?
8635 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8637 cat >conftest.$ac_ext <<_ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8643 $ac_includes_default
8644 #include <$ac_header>
8646 rm -f conftest.$ac_objext
8647 if { (ac_try="$ac_compile"
8649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650 *) ac_try_echo=$ac_try;;
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653 (eval "$ac_compile") 2>conftest.er1
8655 grep -v '^ *+' conftest.er1 >conftest.err
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } && {
8660 test -z "$ac_c_werror_flag" ||
8661 test ! -s conftest.err
8662 } && test -s conftest.$ac_objext; then
8663 ac_header_compiler=yes
8665 echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8668 ac_header_compiler=no
8671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8673 echo "${ECHO_T}$ac_header_compiler" >&6; }
8675 # Is the header present?
8676 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8678 cat >conftest.$ac_ext <<_ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8684 #include <$ac_header>
8686 if { (ac_try="$ac_cpp conftest.$ac_ext"
8688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8689 *) ac_try_echo=$ac_try;;
8691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8694 grep -v '^ *+' conftest.er1 >conftest.err
8696 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } >/dev/null && {
8699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8700 test ! -s conftest.err
8702 ac_header_preproc=yes
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 ac_header_preproc=no
8710 rm -f conftest.err conftest.$ac_ext
8711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8712 echo "${ECHO_T}$ac_header_preproc" >&6; }
8714 # So? What about this header?
8715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8721 ac_header_preproc=yes
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 eval "$as_ac_Header=\$ac_header_preproc"
8746 ac_res=`eval echo '${'$as_ac_Header'}'`
8747 { echo "$as_me:$LINENO: result: $ac_res" >&5
8748 echo "${ECHO_T}$ac_res" >&6; }
8751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8752 cat >>confdefs.h <<_ACEOF
8753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8755 HAVE_FREETYPE_FREETYPE_H=1
8762 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8763 "x${FREETYPE_CONFIG}" '!=' "x";then
8764 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8767 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8772 if test "x${HAVE_FREETYPE}" = "x1"; then
8773 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8774 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8776 LIBS="$LIBS -lfreetype"
8779 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8780 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8783 { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8784 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8786 cat > conftest.c << EOF
8787 $HAVE_FT2BUILD_H_DEFINE
8789 #ifdef HAVE_FT2BUILD_H
8790 #include <ft2build.h>
8791 #include FT_FREETYPE_H
8794 #include FT_SFNT_NAMES_H
8795 #include FT_TRUETYPE_IDS_H
8796 #include FT_OUTLINE_H
8798 #include <freetype/freetype.h>
8799 #include <freetype/ftglyph.h>
8800 #include <freetype/ftsizes.h>
8801 #include <freetype/ftsnames.h>
8802 #include <freetype/ttnameid.h>
8803 #include <freetype/ftoutln.h>
8808 FT_Library ftlibrary;
8820 FT_Init_FreeType(&ftlibrary);
8821 FT_New_Face(ftlibrary, "filename", 0, &face);
8822 i = face->num_glyphs - 1;
8823 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8824 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8825 FT_Get_Postscript_Name(face);
8826 FT_Get_Char_Index(face, 33);
8827 FT_Get_First_Char(face, &i);
8828 FT_Get_Next_Char(face, 33, &i);
8829 if(FT_HAS_GLYPH_NAMES(face)) {
8830 FT_Get_Glyph_Name(face, 33, name, 127);
8832 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8833 FT_Get_Glyph(face->glyph, &glyph);
8834 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8835 FT_Done_Glyph(glyph);
8837 FT_Done_FreeType(ftlibrary);
8842 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8843 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8844 { echo "$as_me:$LINENO: result: yes" >&5
8845 echo "${ECHO_T}yes" >&6; }
8846 cat >>confdefs.h <<_ACEOF
8847 #define HAVE_FREETYPE 1
8850 cat >>confdefs.h <<_ACEOF
8851 #define HAVE_FREETYPE_FREETYPE_H 1
8854 cat >>confdefs.h <<_ACEOF
8855 #define USE_FREETYPE 1
8859 echo "configure: failed program was:" >&5
8862 { echo "$as_me:$LINENO: result: no" >&5
8863 echo "${ECHO_T}no" >&6; }
8868 # if the above didn't work out, reset all changes to the compiler variables.
8869 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8870 CPPFLAGS=$OLDCPPFLAGS
8875 #RFX_CHECK_FONTCONFIG
8879 if test "x${DISABLE_LAME}" = "xtrue"; then
8880 echo "*" Disabling lame support...
8882 # old lame code at lib/lame
8883 if test -f lib/lame/Makefile.in; then
8884 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)"
8885 lame_makefile="lib/lame/Makefile"
8886 CPPFLAGS="$CPPFLAGS -Ilame"
8887 cat >>confdefs.h <<_ACEOF
8892 if test -d /usr/include/lame; then
8893 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
8895 if test -d /usr/local/include/lame; then
8896 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
8900 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
8901 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
8902 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 ac_check_lib_save_LIBS=$LIBS
8906 LIBS="-lmp3lame $LIBS"
8907 cat >conftest.$ac_ext <<_ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8914 /* Override any GCC internal prototype to avoid an error.
8915 Use char because int might match the return type of a GCC
8916 builtin and then its argument prototype would still apply. */
8924 return lame_init ();
8929 rm -f conftest.$ac_objext conftest$ac_exeext
8930 if { (ac_try="$ac_link"
8932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933 *) ac_try_echo=$ac_try;;
8935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936 (eval "$ac_link") 2>conftest.er1
8938 grep -v '^ *+' conftest.er1 >conftest.err
8940 cat conftest.err >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } && {
8943 test -z "$ac_c_werror_flag" ||
8944 test ! -s conftest.err
8945 } && test -s conftest$ac_exeext &&
8946 $as_test_x conftest$ac_exeext; then
8947 ac_cv_lib_mp3lame_lame_init=yes
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8952 ac_cv_lib_mp3lame_lame_init=no
8955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8956 conftest$ac_exeext conftest.$ac_ext
8957 LIBS=$ac_check_lib_save_LIBS
8959 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
8960 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
8961 if test $ac_cv_lib_mp3lame_lame_init = yes; then
8962 cat >>confdefs.h <<_ACEOF
8963 #define HAVE_LIBMP3LAME 1
8966 LIBS="-lmp3lame $LIBS"
8973 for ac_header in lame.h
8975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 ac_res=`eval echo '${'$as_ac_Header'}'`
8983 { echo "$as_me:$LINENO: result: $ac_res" >&5
8984 echo "${ECHO_T}$ac_res" >&6; }
8986 # Is the header compilable?
8987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8989 cat >conftest.$ac_ext <<_ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
8995 $ac_includes_default
8996 #include <$ac_header>
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
9015 ac_header_compiler=yes
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 ac_header_compiler=no
9023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9025 echo "${ECHO_T}$ac_header_compiler" >&6; }
9027 # Is the header present?
9028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9030 cat >conftest.$ac_ext <<_ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9036 #include <$ac_header>
9038 if { (ac_try="$ac_cpp conftest.$ac_ext"
9040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9041 *) ac_try_echo=$ac_try;;
9043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9046 grep -v '^ *+' conftest.er1 >conftest.err
9048 cat conftest.err >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } >/dev/null && {
9051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9052 test ! -s conftest.err
9054 ac_header_preproc=yes
9056 echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9059 ac_header_preproc=no
9062 rm -f conftest.err conftest.$ac_ext
9063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9064 echo "${ECHO_T}$ac_header_preproc" >&6; }
9066 # So? What about this header?
9067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9073 ac_header_preproc=yes
9076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 eval "$as_ac_Header=\$ac_header_preproc"
9098 ac_res=`eval echo '${'$as_ac_Header'}'`
9099 { echo "$as_me:$LINENO: result: $ac_res" >&5
9100 echo "${ECHO_T}$ac_res" >&6; }
9103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9104 cat >>confdefs.h <<_ACEOF
9105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9112 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
9113 cat >>confdefs.h <<_ACEOF
9122 # ------------------------------------------------------------------
9126 for ac_prog in avifile-config
9128 # Extract the first word of "$ac_prog", so it can be a program name with args.
9129 set dummy $ac_prog; ac_word=$2
9130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9132 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 if test -n "$AVIFILE_CONFIG"; then
9136 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9142 test -z "$as_dir" && as_dir=.
9143 for ac_exec_ext in '' $ac_executable_extensions; do
9144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9145 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9155 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9156 if test -n "$AVIFILE_CONFIG"; then
9157 { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9158 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
9160 { echo "$as_me:$LINENO: result: no" >&5
9161 echo "${ECHO_T}no" >&6; }
9165 test -n "$AVIFILE_CONFIG" && break
9169 if test "x$AVIFILE_CONFIG" '!=' "x";then
9170 OLDCPPFLAGS="$CPPFLAGS"
9171 # temporarily add avifile paths to CPPFLAGS...
9172 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9175 for ac_header in avifile/version.h version.h
9177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 ac_res=`eval echo '${'$as_ac_Header'}'`
9185 { echo "$as_me:$LINENO: result: $ac_res" >&5
9186 echo "${ECHO_T}$ac_res" >&6; }
9188 # Is the header compilable?
9189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9191 cat >conftest.$ac_ext <<_ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 $ac_includes_default
9198 #include <$ac_header>
9200 rm -f conftest.$ac_objext
9201 if { (ac_try="$ac_compile"
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_compile") 2>conftest.er1
9209 grep -v '^ *+' conftest.er1 >conftest.err
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } && {
9214 test -z "$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 } && test -s conftest.$ac_objext; then
9217 ac_header_compiler=yes
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9222 ac_header_compiler=no
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9227 echo "${ECHO_T}$ac_header_compiler" >&6; }
9229 # Is the header present?
9230 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9232 cat >conftest.$ac_ext <<_ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9238 #include <$ac_header>
9240 if { (ac_try="$ac_cpp conftest.$ac_ext"
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9248 grep -v '^ *+' conftest.er1 >conftest.err
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } >/dev/null && {
9253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9256 ac_header_preproc=yes
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9261 ac_header_preproc=no
9264 rm -f conftest.err conftest.$ac_ext
9265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9266 echo "${ECHO_T}$ac_header_preproc" >&6; }
9268 # So? What about this header?
9269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9275 ac_header_preproc=yes
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 eval "$as_ac_Header=\$ac_header_preproc"
9300 ac_res=`eval echo '${'$as_ac_Header'}'`
9301 { echo "$as_me:$LINENO: result: $ac_res" >&5
9302 echo "${ECHO_T}$ac_res" >&6; }
9305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9306 cat >>confdefs.h <<_ACEOF
9307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9315 CPPFLAGS="$OLDCPPFLAGS"
9318 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9319 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
9321 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9322 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9324 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9325 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9328 cat > conftest.cpp << EOF
9330 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9331 // so we have to introduce them this way
9332 $HAVE_VERSION_H_DEFINE
9333 $HAVE_AVIFILE_VERSION_H_DEFINE
9335 #ifdef HAVE_VERSION_H
9336 #include <version.h>
9338 #ifdef HAVE_AVIFILE_VERSION_H
9339 #include <avifile/version.h>
9342 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9343 #include <avifile.h>
9344 #include <aviplay.h>
9345 #include <avm_fourcc.h>
9346 #include <avm_creators.h>
9347 #include <StreamInfo.h>
9350 #include <avifile.h>
9351 #include <aviplay.h>
9352 #include <aviutil.h>
9354 #define Height height
9361 IAviReadFile* player;
9362 IAviReadStream* astream;
9363 IAviReadStream* vstream;
9364 player = CreateIAviReadFile(0);
9365 astream = player->GetStream(0, AviStream::Audio);
9366 vstream = player->GetStream(0, AviStream::Video);
9367 vstream -> StartStreaming();
9368 astream -> StartStreaming();
9371 player->GetFileHeader(&head);
9372 head.dwMicroSecPerFrame;
9377 head.dwMicroSecPerFrame;
9378 astream->GetEndPos(),
9379 astream->GetEndTime());
9380 player->StreamCount();
9382 StreamInfo*audioinfo;
9383 StreamInfo*videoinfo;
9384 audioinfo = astream->GetStreamInfo();
9385 videoinfo = vstream->GetStreamInfo();
9386 videoinfo->GetVideoWidth();
9387 videoinfo->GetVideoHeight();
9388 audioinfo->GetAudioSamplesPerSec();
9389 videoinfo->GetFps();
9391 CImage*img = vstream->GetFrame();
9398 astream->GetAudioFormatInfo(&wave,0);
9400 astream->ReadFrames(0,0,0,a,b);
9402 int main (int argc, char*argv)
9408 if test "x$AVIFILE_CONFIG" '!=' "x";then
9409 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9410 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9411 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9412 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9413 { echo "$as_me:$LINENO: result: yes" >&5
9414 echo "${ECHO_T}yes" >&6; }
9417 cat >>confdefs.h <<_ACEOF
9418 #define AVIFILE true
9422 echo "configure: failed program was:" >&5
9423 cat conftest.cpp >&5
9424 { echo "$as_me:$LINENO: result: no" >&5
9425 echo "${ECHO_T}no" >&6; }
9428 { echo "$as_me:$LINENO: result: no" >&5
9429 echo "${ECHO_T}no" >&6; }
9433 if test "x${AVIFILE}" = "xtrue"; then
9434 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9435 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9436 cat >>confdefs.h <<_ACEOF
9437 #define HAVE_AVIFILE 1
9442 if test "x${WIN32}" != "x"; then
9443 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9444 #if test "x${AVIFIL32}" != "x"; then
9445 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9447 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9453 # ------------------------------------------------------------------
9455 if test "x${UNCOMPRESS}" = "xgzip"; then
9456 cat >>confdefs.h <<_ACEOF
9463 # ------------------------------------------------------------------
9466 { echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
9467 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6; }
9469 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9472 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9473 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9475 # iterate through version 2.2 to 2.5
9476 for v in 2 3 4 5; do
9478 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
9480 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
9481 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9483 elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9484 #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
9486 PYTHON_LIB="-framework Python"
9487 if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
9488 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9490 PYTHON_LIB2="$PYTHON_LIB"
9492 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9494 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9495 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9496 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9498 -a -f "/sw/include/python2.$v/Python.h" \
9499 -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9501 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9502 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9507 if test "x$PY_VERSION" "!=" "x"; then
9508 { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9509 echo "${ECHO_T}$PY_VERSION" >&6; }
9510 export PYTHON_INCLUDES PYTHON_LIB
9513 { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9514 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
9516 cat > conftest.c << EOF
9518 #include <Imaging.h>
9523 ret = Py_Main(0, 0);
9524 int x; // check also for gcc 2.95.x incompatibilities
9528 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9529 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9530 { echo "$as_me:$LINENO: result: yes" >&5
9531 echo "${ECHO_T}yes" >&6; }
9534 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9535 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9536 { echo "$as_me:$LINENO: result: yes" >&5
9537 echo "${ECHO_T}yes" >&6; }
9538 PYTHON_LIB="${PYTHON_LIB2}"
9541 echo "configure: failed program was:" >&5
9543 { echo "$as_me:$LINENO: result: no" >&5
9544 echo "${ECHO_T}no" >&6; }
9549 { echo "$as_me:$LINENO: result: nope" >&5
9550 echo "${ECHO_T}nope" >&6; }
9554 if test "x$PYTHON_OK" '!=' "xyes";then
9555 echo all install uninstall clean: > lib/python/Makefile
9556 # fail silently- the most users won't have any need for the
9557 # python interface anyway
9559 pythonrfxswf="lib/python/Makefile"
9562 # ------------------------------------------------------------------
9564 { echo "$as_me:$LINENO: checking for missing libraries" >&5
9565 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
9567 if test "x$ZLIBMISSING" = "xtrue";then
9568 MISSINGLIBS="${MISSINGLIBS} zlib"
9572 if test "x$JPEGLIBMISSING" = "xtrue";then
9573 MISSINGLIBS="${MISSINGLIBS} jpeglib"
9575 DISABLEJPEG2SWF=true
9578 #if test "x$T1LIBMISSING" = "xtrue";then
9579 # MISSINGLIBS="${MISSINGLIBS} t1lib"
9581 if test "x$UNGIFMISSING" = "xtrue";then
9583 MISSINGLIBS="${MISSINGLIBS} ungif"
9587 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
9588 DISABLEPDF2SWF=true;
9589 DISABLEJPEG2SWF=true;
9590 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9593 if test "x$HAVE_FREETYPE" '!=' "x1"; then
9594 DISABLEPDF2SWF=true;
9595 MISSINGLIBS="${MISSINGLIBS} freetype"
9598 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
9599 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9601 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
9603 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
9606 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
9607 DISABLEPNG2SWF=true;
9608 MISSINGLIBS="${MISSINGLIBS} zlib.h"
9611 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9612 # MISSINGLIBS="${MISSINGLIBS} avifile"
9615 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
9616 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
9618 # ------------------------------------------------------------------
9620 if test "x${MISSINGLIBS}" '!=' "x"; then
9621 echo "***************************************************"
9622 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
9625 avi2swf="avi2swf/Makefile"
9626 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9627 #don't whine, avi2swf is outdated anyway
9628 #echo "* Disabling avi2swf tool..."
9629 echo all install uninstall clean: > avi2swf/Makefile
9633 pdf2swf_makefile="lib/pdf/Makefile"
9634 PDF2SWF='pdf2swf$(E)'
9637 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
9638 echo "* Disabling pdf2swf tool..."
9639 rm -f lib/pdf/Makefile
9640 echo all install uninstall clean: > lib/pdf/Makefile
9648 if test "x${ZLIBMISSING}" = "xtrue"; then
9650 echo "* Warning! Without zlib, you will not be able to read"
9651 echo "* or write compressed Flash MX files!"
9654 JPEG2SWF='jpeg2swf$(E)'
9655 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
9656 echo "* Disabling jpeg2swf tool..."
9662 GIF2SWF='gif2swf$(E)'
9663 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
9664 echo "* Disabling gif2swf tool..."
9670 PNG2SWF='png2swf$(E)'
9671 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
9672 echo "* Disabling png2swf tool..."
9678 if test "x${MISSINGLIBS}" '!=' "x"; then
9679 if test "x${PARTIAL}" '=' "x"; then
9680 echo "* (never mind)"
9682 echo "***************************************************"
9685 # ------------------------------------------------------------------
9687 if test -f "release.in"; then release_in="./release"; fi
9688 if test -f "wx/Makefile.in"; then wx_in="wx/Makefile"; fi
9689 FILES="$release_in $wx_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 lib/swf/Makefile"
9690 ac_config_files="$ac_config_files ${FILES}"
9692 cat >confcache <<\_ACEOF
9693 # This file is a shell script that caches the results of configure
9694 # tests run on this system so they can be shared between configure
9695 # scripts and configure runs, see configure's option --config-cache.
9696 # It is not useful on other systems. If it contains results you don't
9697 # want to keep, you may remove or edit it.
9699 # config.status only pays attention to the cache file if you give it
9700 # the --recheck option to rerun configure.
9702 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9703 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9708 # The following way of writing the cache mishandles newlines in values,
9709 # but we know of no workaround that is simple, portable, and efficient.
9710 # So, we kill variables containing newlines.
9711 # Ultrix sh set writes to stderr and can't be redirected directly,
9712 # and sets the high bit in the cache file unless we assign to the vars.
9714 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9715 eval ac_val=\$$ac_var
9719 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9720 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9723 _ | IFS | as_nl) ;; #(
9724 *) $as_unset $ac_var ;;
9730 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9731 *${as_nl}ac_space=\ *)
9732 # `set' does not quote correctly, so add quotes (double-quote
9733 # substitution turns \\\\ into \\, and sed turns \\ into \).
9736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9739 # `set' quotes correctly as required by POSIX, so do not add quotes.
9740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9749 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9751 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9753 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9754 if test -w "$cache_file"; then
9755 test "x$cache_file" != "x/dev/null" &&
9756 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9757 echo "$as_me: updating cache $cache_file" >&6;}
9758 cat confcache >$cache_file
9760 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9761 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9766 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9767 # Let make expand exec_prefix.
9768 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9770 DEFS=-DHAVE_CONFIG_H
9774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9775 # 1. Remove the extension, and $U if already installed.
9776 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9777 ac_i=`echo "$ac_i" | sed "$ac_script"`
9778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9779 # will be set to the directory where LIBOBJS objects are built.
9780 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9781 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9785 LTLIBOBJS=$ac_ltlibobjs
9789 : ${CONFIG_STATUS=./config.status}
9790 ac_clean_files_save=$ac_clean_files
9791 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9792 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9793 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9794 cat >$CONFIG_STATUS <<_ACEOF
9796 # Generated by $as_me.
9797 # Run this file to recreate the current configuration.
9798 # Compiler output produced by configure, useful for debugging
9799 # configure, is in config.log if it exists.
9804 SHELL=\${CONFIG_SHELL-$SHELL}
9807 cat >>$CONFIG_STATUS <<\_ACEOF
9808 ## --------------------- ##
9809 ## M4sh Initialization. ##
9810 ## --------------------- ##
9812 # Be more Bourne compatible
9813 DUALCASE=1; export DUALCASE # for MKS sh
9814 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9817 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9818 # is contrary to our usage. Disable this feature.
9819 alias -g '${1+"$@"}'='"$@"'
9820 setopt NO_GLOB_SUBST
9822 case `(set -o) 2>/dev/null` in
9823 *posix*) set -o posix ;;
9832 # Avoid depending upon Character Ranges.
9833 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9834 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9835 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9836 as_cr_digits='0123456789'
9837 as_cr_alnum=$as_cr_Letters$as_cr_digits
9839 # The user is always right.
9840 if test "${PATH_SEPARATOR+set}" != set; then
9841 echo "#! /bin/sh" >conf$$.sh
9842 echo "exit 0" >>conf$$.sh
9844 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9852 # Support unset when possible.
9853 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9861 # We need space, tab and new line, in precisely that order. Quoting is
9862 # there to prevent editors from complaining about space-tab.
9863 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9864 # splitting by setting IFS to empty value.)
9869 # Find who we are. Look in the path if we contain no directory separator.
9871 *[\\/]* ) as_myself=$0 ;;
9872 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876 test -z "$as_dir" && as_dir=.
9877 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9883 # We did not find ourselves, most probably we were run as `sh COMMAND'
9884 # in which case we are not to be found in the path.
9885 if test "x$as_myself" = x; then
9888 if test ! -f "$as_myself"; then
9889 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9890 { (exit 1); exit 1; }
9893 # Work around bugs in pre-3.0 UWIN ksh.
9894 for as_var in ENV MAIL MAILPATH
9895 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9903 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9904 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9905 LC_TELEPHONE LC_TIME
9907 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9908 eval $as_var=C; export $as_var
9910 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9914 # Required to use basename.
9915 if expr a : '\(a\)' >/dev/null 2>&1 &&
9916 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9922 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9923 as_basename=basename
9929 # Name of the executable.
9930 as_me=`$as_basename -- "$0" ||
9931 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9932 X"$0" : 'X\(//\)$' \| \
9933 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9935 sed '/^.*\/\([^/][^/]*\)\/*$/{
9956 test "x$as_lineno_1" != "x$as_lineno_2" &&
9957 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9959 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9960 # uniformly replaced by the line number. The first 'sed' inserts a
9961 # line-number line after each line using $LINENO; the second 'sed'
9962 # does the real work. The second script uses 'N' to pair each
9963 # line-number line with the line containing $LINENO, and appends
9964 # trailing '-' during substitution so that $LINENO is not a special
9966 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9967 # scripts with optimization help from Paolo Bonzini. Blame Lee
9968 # E. McMahon (1931-1989) for sed's syntax. :-)
9980 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9984 chmod +x "$as_me.lineno" ||
9985 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9986 { (exit 1); exit 1; }; }
9988 # Don't try to exec as it changes $[0], causing all sort of problems
9989 # (the dirname of $[0] is not the place where we might find the
9990 # original and so on. Autoconf is especially sensitive to this).
9992 # Exit status is that of the last command.
9997 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10003 ECHO_C= ECHO_N= ECHO_T=
10004 case `echo -n x` in
10006 case `echo 'x\c'` in
10007 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10014 if expr a : '\(a\)' >/dev/null 2>&1 &&
10015 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10021 rm -f conf$$ conf$$.exe conf$$.file
10022 if test -d conf$$.dir; then
10023 rm -f conf$$.dir/conf$$.file
10029 if ln -s conf$$.file conf$$ 2>/dev/null; then
10031 # ... but there are two gotchas:
10032 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10033 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10034 # In both cases, we have to default to `cp -p'.
10035 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10037 elif ln conf$$.file conf$$ 2>/dev/null; then
10042 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10043 rmdir conf$$.dir 2>/dev/null
10045 if mkdir -p . 2>/dev/null; then
10048 test -d ./-p && rmdir ./-p
10052 if test -x / >/dev/null 2>&1; then
10053 as_test_x='test -x'
10055 if ls -dL / >/dev/null 2>&1; then
10062 if test -d "$1"; then
10068 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10069 ???[sx]*):;;*)false;;esac;fi
10073 as_executable_p=$as_test_x
10075 # Sed expression to map a string onto a valid CPP name.
10076 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10078 # Sed expression to map a string onto a valid variable name.
10079 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10084 # Save the log message, to keep $[0] and so on meaningful, and to
10085 # report actual input values of CONFIG_FILES etc. instead of their
10086 # values after options handling.
10088 This file was extended by $as_me, which was
10089 generated by GNU Autoconf 2.61. Invocation command line was
10091 CONFIG_FILES = $CONFIG_FILES
10092 CONFIG_HEADERS = $CONFIG_HEADERS
10093 CONFIG_LINKS = $CONFIG_LINKS
10094 CONFIG_COMMANDS = $CONFIG_COMMANDS
10097 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10102 cat >>$CONFIG_STATUS <<_ACEOF
10103 # Files that config.status was made for.
10104 config_files="$ac_config_files"
10105 config_headers="$ac_config_headers"
10109 cat >>$CONFIG_STATUS <<\_ACEOF
10111 \`$as_me' instantiates files from templates according to the
10112 current configuration.
10114 Usage: $0 [OPTIONS] [FILE]...
10116 -h, --help print this help, then exit
10117 -V, --version print version number and configuration settings, then exit
10118 -q, --quiet do not print progress messages
10119 -d, --debug don't remove temporary files
10120 --recheck update $as_me by reconfiguring in the same conditions
10121 --file=FILE[:TEMPLATE]
10122 instantiate the configuration file FILE
10123 --header=FILE[:TEMPLATE]
10124 instantiate the configuration header FILE
10126 Configuration files:
10129 Configuration headers:
10132 Report bugs to <bug-autoconf@gnu.org>."
10135 cat >>$CONFIG_STATUS <<_ACEOF
10138 configured by $0, generated by GNU Autoconf 2.61,
10139 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10141 Copyright (C) 2006 Free Software Foundation, Inc.
10142 This config.status script is free software; the Free Software Foundation
10143 gives unlimited permission to copy, distribute and modify it."
10150 cat >>$CONFIG_STATUS <<\_ACEOF
10151 # If no file are specified by the user, then we need to provide default
10152 # value. By we need to know if files were specified by the user.
10158 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10159 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10170 # Handling of the options.
10171 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10173 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10174 echo "$ac_cs_version"; exit ;;
10175 --debug | --debu | --deb | --de | --d | -d )
10177 --file | --fil | --fi | --f )
10179 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10180 ac_need_defaults=false;;
10181 --header | --heade | --head | --hea )
10183 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10184 ac_need_defaults=false;;
10186 # Conflict between --help and --header
10187 { echo "$as_me: error: ambiguous option: $1
10188 Try \`$0 --help' for more information." >&2
10189 { (exit 1); exit 1; }; };;
10190 --help | --hel | -h )
10191 echo "$ac_cs_usage"; exit ;;
10192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10193 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10196 # This is an error.
10197 -*) { echo "$as_me: error: unrecognized option: $1
10198 Try \`$0 --help' for more information." >&2
10199 { (exit 1); exit 1; }; } ;;
10201 *) ac_config_targets="$ac_config_targets $1"
10202 ac_need_defaults=false ;;
10208 ac_configure_extra_args=
10210 if $ac_cs_silent; then
10212 ac_configure_extra_args="$ac_configure_extra_args --silent"
10216 cat >>$CONFIG_STATUS <<_ACEOF
10217 if \$ac_cs_recheck; then
10218 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10219 CONFIG_SHELL=$SHELL
10220 export CONFIG_SHELL
10221 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10225 cat >>$CONFIG_STATUS <<\_ACEOF
10229 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10230 ## Running $as_me. ##
10236 cat >>$CONFIG_STATUS <<_ACEOF
10239 cat >>$CONFIG_STATUS <<\_ACEOF
10241 # Handling of arguments.
10242 for ac_config_target in $ac_config_targets
10244 case $ac_config_target in
10245 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10246 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10248 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10249 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10250 { (exit 1); exit 1; }; };;
10255 # If the user did not use the arguments to specify the items to instantiate,
10256 # then the envvar interface is used. Set only those that are not.
10257 # We use the long form for the default assignment because of an extremely
10258 # bizarre bug on SunOS 4.1.3.
10259 if $ac_need_defaults; then
10260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10261 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10264 # Have a temporary directory for convenience. Make it in the build tree
10265 # simply because there is no reason against having it here, and in addition,
10266 # creating and moving files from /tmp can sometimes cause problems.
10267 # Hook for its removal unless debugging.
10268 # Note that there is a small window in which the directory will not be cleaned:
10269 # after its creation but before its name has been assigned to `$tmp'.
10273 trap 'exit_status=$?
10274 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10276 trap '{ (exit 1); exit 1; }' 1 2 13 15
10278 # Create a (secure) tmp directory for tmp files.
10281 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10282 test -n "$tmp" && test -d "$tmp"
10285 tmp=./conf$$-$RANDOM
10286 (umask 077 && mkdir "$tmp")
10289 echo "$me: cannot create a temporary directory in ." >&2
10290 { (exit 1); exit 1; }
10294 # Set up the sed scripts for CONFIG_FILES section.
10297 # No need to generate the scripts if there are no CONFIG_FILES.
10298 # This happens for instance when ./config.status config.h
10299 if test -n "$CONFIG_FILES"; then
10306 for ac_last_try in false false false false false :; do
10307 cat >conf$$subs.sed <<_ACEOF
10308 SHELL!$SHELL$ac_delim
10309 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10310 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10311 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10312 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10313 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10314 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10315 exec_prefix!$exec_prefix$ac_delim
10316 prefix!$prefix$ac_delim
10317 program_transform_name!$program_transform_name$ac_delim
10318 bindir!$bindir$ac_delim
10319 sbindir!$sbindir$ac_delim
10320 libexecdir!$libexecdir$ac_delim
10321 datarootdir!$datarootdir$ac_delim
10322 datadir!$datadir$ac_delim
10323 sysconfdir!$sysconfdir$ac_delim
10324 sharedstatedir!$sharedstatedir$ac_delim
10325 localstatedir!$localstatedir$ac_delim
10326 includedir!$includedir$ac_delim
10327 oldincludedir!$oldincludedir$ac_delim
10328 docdir!$docdir$ac_delim
10329 infodir!$infodir$ac_delim
10330 htmldir!$htmldir$ac_delim
10331 dvidir!$dvidir$ac_delim
10332 pdfdir!$pdfdir$ac_delim
10333 psdir!$psdir$ac_delim
10334 libdir!$libdir$ac_delim
10335 localedir!$localedir$ac_delim
10336 mandir!$mandir$ac_delim
10337 DEFS!$DEFS$ac_delim
10338 ECHO_C!$ECHO_C$ac_delim
10339 ECHO_N!$ECHO_N$ac_delim
10340 ECHO_T!$ECHO_T$ac_delim
10341 LIBS!$LIBS$ac_delim
10342 build_alias!$build_alias$ac_delim
10343 host_alias!$host_alias$ac_delim
10344 target_alias!$target_alias$ac_delim
10345 build!$build$ac_delim
10346 build_cpu!$build_cpu$ac_delim
10347 build_vendor!$build_vendor$ac_delim
10348 build_os!$build_os$ac_delim
10349 host!$host$ac_delim
10350 host_cpu!$host_cpu$ac_delim
10351 host_vendor!$host_vendor$ac_delim
10352 host_os!$host_os$ac_delim
10353 SHARED!$SHARED$ac_delim
10355 CFLAGS!$CFLAGS$ac_delim
10356 LDFLAGS!$LDFLAGS$ac_delim
10357 CPPFLAGS!$CPPFLAGS$ac_delim
10358 ac_ct_CC!$ac_ct_CC$ac_delim
10359 EXEEXT!$EXEEXT$ac_delim
10360 OBJEXT!$OBJEXT$ac_delim
10362 CXXFLAGS!$CXXFLAGS$ac_delim
10363 ac_ct_CXX!$ac_ct_CXX$ac_delim
10365 RANLIB!$RANLIB$ac_delim
10366 SET_MAKE!$SET_MAKE$ac_delim
10367 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10368 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10369 INSTALL_DATA!$INSTALL_DATA$ac_delim
10370 LN_S!$LN_S$ac_delim
10371 UNCOMPRESS!$UNCOMPRESS$ac_delim
10372 AREXT!$AREXT$ac_delim
10374 SLEXT!$SLEXT$ac_delim
10375 CXXLIBS!$CXXLIBS$ac_delim
10376 STRIP!$STRIP$ac_delim
10377 target!$target$ac_delim
10378 target_cpu!$target_cpu$ac_delim
10379 target_vendor!$target_vendor$ac_delim
10380 target_os!$target_os$ac_delim
10381 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
10382 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
10383 GREP!$GREP$ac_delim
10384 EGREP!$EGREP$ac_delim
10385 PACKAGE!$PACKAGE$ac_delim
10386 VERSION!$VERSION$ac_delim
10387 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
10388 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
10389 lame_objects!$lame_objects$ac_delim
10390 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
10391 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
10392 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
10393 USE_GZIP!$USE_GZIP$ac_delim
10394 PYTHON_LIB!$PYTHON_LIB$ac_delim
10395 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
10396 PDF2SWF!$PDF2SWF$ac_delim
10397 LIBPDF!$LIBPDF$ac_delim
10398 JPEG2SWF!$JPEG2SWF$ac_delim
10399 GIF2SWF!$GIF2SWF$ac_delim
10400 PNG2SWF!$PNG2SWF$ac_delim
10401 LIBOBJS!$LIBOBJS$ac_delim
10402 LTLIBOBJS!$LTLIBOBJS$ac_delim
10405 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
10407 elif $ac_last_try; then
10408 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10409 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10410 { (exit 1); exit 1; }; }
10412 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10416 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10417 if test -n "$ac_eof"; then
10418 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10419 ac_eof=`expr $ac_eof + 1`
10422 cat >>$CONFIG_STATUS <<_ACEOF
10423 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10427 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10428 s/^/s,@/; s/!/@,|#_!!_#|/
10431 s/'"$ac_delim"'$/,g/; t
10433 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10434 ' >>$CONFIG_STATUS <conf$$subs.sed
10435 rm -f conf$$subs.sed
10436 cat >>$CONFIG_STATUS <<_ACEOF
10443 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10444 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10445 # trailing colons and then remove the whole line if VPATH becomes empty
10446 # (actually we leave an empty line to preserve line numbers).
10447 if test "x$srcdir" = x.; then
10448 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10449 s/:*\$(srcdir):*/:/
10450 s/:*\${srcdir}:*/:/
10452 s/^\([^=]*=[ ]*\):*/\1/
10458 cat >>$CONFIG_STATUS <<\_ACEOF
10459 fi # test -n "$CONFIG_FILES"
10462 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
10465 :[FHLC]) ac_mode=$ac_tag; continue;;
10467 case $ac_mode$ac_tag in
10469 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10470 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10471 { (exit 1); exit 1; }; };;
10472 :[FH]-) ac_tag=-:-;;
10473 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10490 -) ac_f="$tmp/stdin";;
10491 *) # Look for the file first in the build tree, then in the source tree
10492 # (if the path is not absolute). The absolute path cannot be DOS-style,
10493 # because $ac_f cannot contain `:'.
10497 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10499 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10500 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10501 { (exit 1); exit 1; }; };;
10503 ac_file_inputs="$ac_file_inputs $ac_f"
10506 # Let's still pretend it is `configure' which instantiates (i.e., don't
10507 # use $as_me), people would be surprised to read:
10508 # /* config.h. Generated by config.status. */
10509 configure_input="Generated from "`IFS=:
10510 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10511 if test x"$ac_file" != x-; then
10512 configure_input="$ac_file. $configure_input"
10513 { echo "$as_me:$LINENO: creating $ac_file" >&5
10514 echo "$as_me: creating $ac_file" >&6;}
10518 *:-:* | *:-) cat >"$tmp/stdin";;
10523 ac_dir=`$as_dirname -- "$ac_file" ||
10524 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10525 X"$ac_file" : 'X\(//\)[^/]' \| \
10526 X"$ac_file" : 'X\(//\)$' \| \
10527 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10533 /^X\(\/\/\)[^/].*/{
10548 -*) as_dir=./$as_dir;;
10550 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10554 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10555 *) as_qdir=$as_dir;;
10557 as_dirs="'$as_qdir' $as_dirs"
10558 as_dir=`$as_dirname -- "$as_dir" ||
10559 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10560 X"$as_dir" : 'X\(//\)[^/]' \| \
10561 X"$as_dir" : 'X\(//\)$' \| \
10562 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10568 /^X\(\/\/\)[^/].*/{
10581 test -d "$as_dir" && break
10583 test -z "$as_dirs" || eval "mkdir $as_dirs"
10584 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10585 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10586 { (exit 1); exit 1; }; }; }
10590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10592 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10593 # A ".." for each directory in $ac_dir_suffix.
10594 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10595 case $ac_top_builddir_sub in
10596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10600 ac_abs_top_builddir=$ac_pwd
10601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10602 # for backward compatibility:
10603 ac_top_builddir=$ac_top_build_prefix
10606 .) # We are building in place.
10608 ac_top_srcdir=$ac_top_builddir_sub
10609 ac_abs_top_srcdir=$ac_pwd ;;
10610 [\\/]* | ?:[\\/]* ) # Absolute name.
10611 ac_srcdir=$srcdir$ac_dir_suffix;
10612 ac_top_srcdir=$srcdir
10613 ac_abs_top_srcdir=$srcdir ;;
10614 *) # Relative name.
10615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10616 ac_top_srcdir=$ac_top_build_prefix$srcdir
10617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10629 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10630 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10634 cat >>$CONFIG_STATUS <<\_ACEOF
10635 # If the template does not know about datarootdir, expand it.
10636 # FIXME: This hack should be removed a few years after 2.60.
10637 ac_datarootdir_hack=; ac_datarootdir_seen=
10639 case `sed -n '/datarootdir/ {
10648 ' $ac_file_inputs` in
10649 *datarootdir*) ac_datarootdir_seen=yes;;
10650 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10651 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10652 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10654 cat >>$CONFIG_STATUS <<_ACEOF
10655 ac_datarootdir_hack='
10656 s&@datadir@&$datadir&g
10657 s&@docdir@&$docdir&g
10658 s&@infodir@&$infodir&g
10659 s&@localedir@&$localedir&g
10660 s&@mandir@&$mandir&g
10661 s&\\\${datarootdir}&$datarootdir&g' ;;
10665 # Neutralize VPATH when `$srcdir' = `.'.
10666 # Shell code in configure.ac might set extrasub.
10667 # FIXME: do we really want to maintain this feature?
10668 cat >>$CONFIG_STATUS <<_ACEOF
10672 cat >>$CONFIG_STATUS <<\_ACEOF
10674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10675 s&@configure_input@&$configure_input&;t t
10676 s&@top_builddir@&$ac_top_builddir_sub&;t t
10677 s&@srcdir@&$ac_srcdir&;t t
10678 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10679 s&@top_srcdir@&$ac_top_srcdir&;t t
10680 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10681 s&@builddir@&$ac_builddir&;t t
10682 s&@abs_builddir@&$ac_abs_builddir&;t t
10683 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10684 s&@INSTALL@&$ac_INSTALL&;t t
10685 $ac_datarootdir_hack
10686 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
10688 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10689 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10690 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10691 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10692 which seems to be undefined. Please make sure it is defined." >&5
10693 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10694 which seems to be undefined. Please make sure it is defined." >&2;}
10698 -) cat "$tmp/out"; rm -f "$tmp/out";;
10699 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10708 # Transform confdefs.h into a sed script `conftest.defines', that
10709 # substitutes the proper values into config.h.in to produce config.h.
10710 rm -f conftest.defines conftest.tail
10711 # First, append a space to every undef/define line, to ease matching.
10712 echo 's/$/ /' >conftest.defines
10713 # Then, protect against being on the right side of a sed subst, or in
10714 # an unquoted here document, in config.status. If some macros were
10715 # called several times there might be several #defines for the same
10716 # symbol, which is useless. But do not sort them, since the last
10717 # AC_DEFINE must be honored.
10718 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10719 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10720 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10721 # PARAMS is the parameter list in the macro definition--in most cases, it's
10722 # just an empty string.
10723 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
10724 ac_dB='\\)[ (].*,\\1define\\2'
10732 s/^[ ]*#[ ]*define[ ][ ]*//
10737 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10738 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10739 ' >>conftest.defines
10741 # Remove the space that was appended to ease matching.
10742 # Then replace #undef with comments. This is necessary, for
10743 # example, in the case of _POSIX_SOURCE, which is predefined and required
10744 # on some systems where configure will not decide to define it.
10745 # (The regexp can be short, since the line contains either #define or #undef.)
10747 s,^[ #]*u.*,/* & */,' >>conftest.defines
10749 # Break up conftest.defines:
10750 ac_max_sed_lines=50
10752 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10753 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10754 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10756 ac_in='$ac_file_inputs'
10757 ac_out='"$tmp/out1"'
10758 ac_nxt='"$tmp/out2"'
10762 # Write a here document:
10763 cat >>$CONFIG_STATUS <<_ACEOF
10764 # First, check the format of the line:
10765 cat >"\$tmp/defines.sed" <<\\CEOF
10766 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10767 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10771 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10773 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10774 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10775 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10776 grep . conftest.tail >/dev/null || break
10777 rm -f conftest.defines
10778 mv conftest.tail conftest.defines
10780 rm -f conftest.defines conftest.tail
10782 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10783 cat >>$CONFIG_STATUS <<\_ACEOF
10784 if test x"$ac_file" != x-; then
10785 echo "/* $configure_input */" >"$tmp/config.h"
10786 cat "$ac_result" >>"$tmp/config.h"
10787 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10788 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10789 echo "$as_me: $ac_file is unchanged" >&6;}
10792 mv "$tmp/config.h" $ac_file
10795 echo "/* $configure_input */"
10807 { (exit 0); exit 0; }
10809 chmod +x $CONFIG_STATUS
10810 ac_clean_files=$ac_clean_files_save
10813 # configure is writing to config.log, and then calls config.status.
10814 # config.status does its own redirection, appending to config.log.
10815 # Unfortunately, on DOS this fails, as config.log is still kept open
10816 # by configure, so config.status won't be able to write to it; its
10817 # output is simply discarded. So we exec the FD to /dev/null,
10818 # effectively closing config.log, so it can be properly (re)opened and
10819 # appended to by config.status. When coming back to configure, we
10820 # need to make the FD available again.
10821 if test "$no_create" != yes; then
10823 ac_config_status_args=
10824 test "$silent" = yes &&
10825 ac_config_status_args="$ac_config_status_args --quiet"
10827 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10829 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10830 # would make configure fail if this is the last instruction.
10831 $ac_cs_success || { (exit 1); exit 1; }
10837 # On development trees, create snapshots of config.status
10839 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
10840 if test "x${MINGW}" = "xyes"; then
10841 echo cp config.status config.status.win32
10842 cp config.status config.status.win32
10844 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
10845 echo cp config.status config.status.linux
10846 cp config.status config.status.linux
10848 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
10849 echo cp config.status config.status.debug
10850 cp config.status config.status.debug
10852 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
10853 echo cp config.status config.status.optimize
10854 cp config.status config.status.optimize