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-12-09-2003
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
5237 for ac_header in zlib.h gif_lib.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
5239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 ac_res=`eval echo '${'$as_ac_Header'}'`
5247 { echo "$as_me:$LINENO: result: $ac_res" >&5
5248 echo "${ECHO_T}$ac_res" >&6; }
5250 # Is the header compilable?
5251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5253 cat >conftest.$ac_ext <<_ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 $ac_includes_default
5260 #include <$ac_header>
5262 rm -f conftest.$ac_objext
5263 if { (ac_try="$ac_compile"
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_compile") 2>conftest.er1
5271 grep -v '^ *+' conftest.er1 >conftest.err
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } && {
5276 test -z "$ac_c_werror_flag" ||
5277 test ! -s conftest.err
5278 } && test -s conftest.$ac_objext; then
5279 ac_header_compiler=yes
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5284 ac_header_compiler=no
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5289 echo "${ECHO_T}$ac_header_compiler" >&6; }
5291 # Is the header present?
5292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5294 cat >conftest.$ac_ext <<_ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <$ac_header>
5302 if { (ac_try="$ac_cpp conftest.$ac_ext"
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5310 grep -v '^ *+' conftest.er1 >conftest.err
5312 cat conftest.err >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } >/dev/null && {
5315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5316 test ! -s conftest.err
5318 ac_header_preproc=yes
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5323 ac_header_preproc=no
5326 rm -f conftest.err conftest.$ac_ext
5327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5328 echo "${ECHO_T}$ac_header_preproc" >&6; }
5330 # So? What about this header?
5331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5337 ac_header_preproc=yes
5340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 eval "$as_ac_Header=\$ac_header_preproc"
5362 ac_res=`eval echo '${'$as_ac_Header'}'`
5363 { echo "$as_me:$LINENO: result: $ac_res" >&5
5364 echo "${ECHO_T}$ac_res" >&6; }
5367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5368 cat >>confdefs.h <<_ACEOF
5369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5377 cat >>confdefs.h <<_ACEOF
5378 #define PACKAGE "$PACKAGE"
5381 cat >>confdefs.h <<_ACEOF
5382 #define VERSION "$VERSION"
5391 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5392 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5393 if test "${ac_cv_c_const+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 cat >conftest.$ac_ext <<_ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5406 /* FIXME: Include the comments suggested by Paul. */
5408 /* Ultrix mips cc rejects this. */
5409 typedef int charset[2];
5411 /* SunOS 4.1.1 cc rejects this. */
5412 char const *const *pcpcc;
5414 /* NEC SVR4.0.2 mips cc rejects this. */
5415 struct point {int x, y;};
5416 static struct point const zero = {0,0};
5417 /* AIX XL C 1.02.0.0 rejects this.
5418 It does not let you subtract one const X* pointer from another in
5419 an arm of an if-expression whose if-part is not a constant
5421 const char *g = "string";
5422 pcpcc = &g + (g ? g-g : 0);
5423 /* HPUX 7.0 cc rejects these. */
5425 ppc = (char**) pcpcc;
5426 pcpcc = (char const *const *) ppc;
5427 { /* SCO 3.2v4 cc rejects this. */
5429 char const *s = 0 ? (char *) 0 : (char const *) 0;
5434 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5436 const int *foo = &x[0];
5439 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5440 typedef const int *iptr;
5444 { /* AIX XL C 1.02.0.0 rejects this saying
5445 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5446 struct s { int j; const int *ap[3]; };
5447 struct s *b; b->j = 5;
5449 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5453 return !cs[0] && !zero.x;
5460 rm -f conftest.$ac_objext
5461 if { (ac_try="$ac_compile"
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compile") 2>conftest.er1
5469 grep -v '^ *+' conftest.er1 >conftest.err
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && {
5474 test -z "$ac_c_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest.$ac_objext; then
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5488 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5489 if test $ac_cv_c_const = no; then
5491 cat >>confdefs.h <<\_ACEOF
5497 { echo "$as_me:$LINENO: checking for inline" >&5
5498 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5499 if test "${ac_cv_c_inline+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 for ac_kw in inline __inline__ __inline; do
5504 cat >conftest.$ac_ext <<_ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5512 static $ac_kw foo_t static_foo () {return 0; }
5513 $ac_kw foo_t foo () {return 0; }
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5526 grep -v '^ *+' conftest.er1 >conftest.err
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_c_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.$ac_objext; then
5534 ac_cv_c_inline=$ac_kw
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543 test "$ac_cv_c_inline" != no && break
5547 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5548 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5551 case $ac_cv_c_inline in
5554 case $ac_cv_c_inline in
5556 *) ac_val=$ac_cv_c_inline;;
5558 cat >>confdefs.h <<_ACEOF
5560 #define inline $ac_val
5566 { echo "$as_me:$LINENO: checking for off_t" >&5
5567 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5568 if test "${ac_cv_type_off_t+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 $ac_includes_default
5578 typedef off_t ac__type_new_;
5582 if ((ac__type_new_ *) 0)
5584 if (sizeof (ac__type_new_))
5590 rm -f conftest.$ac_objext
5591 if { (ac_try="$ac_compile"
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_compile") 2>conftest.er1
5599 grep -v '^ *+' conftest.er1 >conftest.err
5601 cat conftest.err >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && {
5604 test -z "$ac_c_werror_flag" ||
5605 test ! -s conftest.err
5606 } && test -s conftest.$ac_objext; then
5607 ac_cv_type_off_t=yes
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5618 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5619 if test $ac_cv_type_off_t = yes; then
5623 cat >>confdefs.h <<_ACEOF
5624 #define off_t long int
5629 { echo "$as_me:$LINENO: checking for size_t" >&5
5630 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5631 if test "${ac_cv_type_size_t+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 cat >conftest.$ac_ext <<_ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 $ac_includes_default
5641 typedef size_t ac__type_new_;
5645 if ((ac__type_new_ *) 0)
5647 if (sizeof (ac__type_new_))
5653 rm -f conftest.$ac_objext
5654 if { (ac_try="$ac_compile"
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660 (eval "$ac_compile") 2>conftest.er1
5662 grep -v '^ *+' conftest.er1 >conftest.err
5664 cat conftest.err >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } && {
5667 test -z "$ac_c_werror_flag" ||
5668 test ! -s conftest.err
5669 } && test -s conftest.$ac_objext; then
5670 ac_cv_type_size_t=yes
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5675 ac_cv_type_size_t=no
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5681 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5682 if test $ac_cv_type_size_t = yes; then
5686 cat >>confdefs.h <<_ACEOF
5687 #define size_t unsigned int
5692 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5693 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5694 if test "${ac_cv_struct_tm+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 cat >conftest.$ac_ext <<_ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 #include <sys/types.h>
5710 int *p = &tm.tm_sec;
5716 rm -f conftest.$ac_objext
5717 if { (ac_try="$ac_compile"
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_compile") 2>conftest.er1
5725 grep -v '^ *+' conftest.er1 >conftest.err
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && {
5730 test -z "$ac_c_werror_flag" ||
5731 test ! -s conftest.err
5732 } && test -s conftest.$ac_objext; then
5733 ac_cv_struct_tm=time.h
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5738 ac_cv_struct_tm=sys/time.h
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5744 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5745 if test $ac_cv_struct_tm = sys/time.h; then
5747 cat >>confdefs.h <<\_ACEOF
5748 #define TM_IN_SYS_TIME 1
5753 { echo "$as_me:$LINENO: checking for boolean" >&5
5754 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5755 if test "${ac_cv_type_boolean+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 cat >conftest.$ac_ext <<_ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 $ac_includes_default
5765 typedef boolean ac__type_new_;
5769 if ((ac__type_new_ *) 0)
5771 if (sizeof (ac__type_new_))
5777 rm -f conftest.$ac_objext
5778 if { (ac_try="$ac_compile"
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_compile") 2>conftest.er1
5786 grep -v '^ *+' conftest.er1 >conftest.err
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } && {
5791 test -z "$ac_c_werror_flag" ||
5792 test ! -s conftest.err
5793 } && test -s conftest.$ac_objext; then
5794 ac_cv_type_boolean=yes
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5799 ac_cv_type_boolean=no
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5805 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5806 if test $ac_cv_type_boolean = yes; then
5810 cat >>confdefs.h <<_ACEOF
5826 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
5828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 cat >conftest.$ac_ext <<_ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5842 #define $ac_func innocuous_$ac_func
5844 /* System header to define __stub macros and hopefully few prototypes,
5845 which can conflict with char $ac_func (); below.
5846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5847 <limits.h> exists even on freestanding compilers. */
5850 # include <limits.h>
5852 # include <assert.h>
5857 /* Override any GCC internal prototype to avoid an error.
5858 Use char because int might match the return type of a GCC
5859 builtin and then its argument prototype would still apply. */
5864 /* The GNU C library defines this for functions which it implements
5865 to always fail with ENOSYS. Some functions are actually named
5866 something starting with __ and the normal name is an alias. */
5867 #if defined __stub_$ac_func || defined __stub___$ac_func
5879 rm -f conftest.$ac_objext conftest$ac_exeext
5880 if { (ac_try="$ac_link"
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_link") 2>conftest.er1
5888 grep -v '^ *+' conftest.er1 >conftest.err
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_c_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest$ac_exeext &&
5896 $as_test_x conftest$ac_exeext; then
5897 eval "$as_ac_var=yes"
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 eval "$as_ac_var=no"
5905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5906 conftest$ac_exeext conftest.$ac_ext
5908 ac_res=`eval echo '${'$as_ac_var'}'`
5909 { echo "$as_me:$LINENO: result: $ac_res" >&5
5910 echo "${ECHO_T}$ac_res" >&6; }
5911 if test `eval echo '${'$as_ac_var'}'` = yes; then
5912 cat >>confdefs.h <<_ACEOF
5913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5920 { echo "$as_me:$LINENO: checking for signed" >&5
5921 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5922 if test "${ac_cv_type_signed+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 cat >conftest.$ac_ext <<_ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 $ac_includes_default
5932 typedef signed ac__type_new_;
5936 if ((ac__type_new_ *) 0)
5938 if (sizeof (ac__type_new_))
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5953 grep -v '^ *+' conftest.er1 >conftest.err
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && {
5958 test -z "$ac_c_werror_flag" ||
5959 test ! -s conftest.err
5960 } && test -s conftest.$ac_objext; then
5961 ac_cv_type_signed=yes
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5966 ac_cv_type_signed=no
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
5972 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
5974 # The cast to long int works around a bug in the HP C Compiler
5975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5977 # This bug is HP SR number 8606223364.
5978 { echo "$as_me:$LINENO: checking size of signed" >&5
5979 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
5980 if test "${ac_cv_sizeof_signed+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 if test "$cross_compiling" = yes; then
5984 # Depending upon the size, compute the lo and hi bounds.
5985 cat >conftest.$ac_ext <<_ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 $ac_includes_default
5992 typedef signed ac__type_sizeof_;
5996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6003 rm -f conftest.$ac_objext
6004 if { (ac_try="$ac_compile"
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_compile") 2>conftest.er1
6012 grep -v '^ *+' conftest.er1 >conftest.err
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && {
6017 test -z "$ac_c_werror_flag" ||
6018 test ! -s conftest.err
6019 } && test -s conftest.$ac_objext; then
6022 cat >conftest.$ac_ext <<_ACEOF
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h. */
6028 $ac_includes_default
6029 typedef signed ac__type_sizeof_;
6033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6040 rm -f conftest.$ac_objext
6041 if { (ac_try="$ac_compile"
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6049 grep -v '^ *+' conftest.er1 >conftest.err
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_c_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest.$ac_objext; then
6057 ac_hi=$ac_mid; break
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 ac_lo=`expr $ac_mid + 1`
6063 if test $ac_lo -le $ac_mid; then
6067 ac_mid=`expr 2 '*' $ac_mid + 1`
6070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 cat >conftest.$ac_ext <<_ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 $ac_includes_default
6083 typedef signed ac__type_sizeof_;
6087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6094 rm -f conftest.$ac_objext
6095 if { (ac_try="$ac_compile"
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_compile") 2>conftest.er1
6103 grep -v '^ *+' conftest.er1 >conftest.err
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } && {
6108 test -z "$ac_c_werror_flag" ||
6109 test ! -s conftest.err
6110 } && test -s conftest.$ac_objext; then
6113 cat >conftest.$ac_ext <<_ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6119 $ac_includes_default
6120 typedef signed ac__type_sizeof_;
6124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6131 rm -f conftest.$ac_objext
6132 if { (ac_try="$ac_compile"
6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135 *) ac_try_echo=$ac_try;;
6137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
6148 ac_lo=$ac_mid; break
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6153 ac_hi=`expr '(' $ac_mid ')' - 1`
6154 if test $ac_mid -le $ac_hi; then
6158 ac_mid=`expr 2 '*' $ac_mid`
6161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 # Binary search between lo and hi bounds.
6175 while test "x$ac_lo" != "x$ac_hi"; do
6176 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6177 cat >conftest.$ac_ext <<_ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183 $ac_includes_default
6184 typedef signed ac__type_sizeof_;
6188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6195 rm -f conftest.$ac_objext
6196 if { (ac_try="$ac_compile"
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_compile") 2>conftest.er1
6204 grep -v '^ *+' conftest.er1 >conftest.err
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } && {
6209 test -z "$ac_c_werror_flag" ||
6210 test ! -s conftest.err
6211 } && test -s conftest.$ac_objext; then
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6217 ac_lo=`expr '(' $ac_mid ')' + 1`
6220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223 ?*) ac_cv_sizeof_signed=$ac_lo;;
6224 '') if test "$ac_cv_type_signed" = yes; then
6225 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6226 See \`config.log' for more details." >&5
6227 echo "$as_me: error: cannot compute sizeof (signed)
6228 See \`config.log' for more details." >&2;}
6229 { (exit 77); exit 77; }; }
6231 ac_cv_sizeof_signed=0
6235 cat >conftest.$ac_ext <<_ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 $ac_includes_default
6242 typedef signed ac__type_sizeof_;
6243 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6244 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6251 FILE *f = fopen ("conftest.val", "w");
6254 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6256 long int i = longval ();
6257 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6259 fprintf (f, "%ld\n", i);
6263 unsigned long int i = ulongval ();
6264 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6266 fprintf (f, "%lu\n", i);
6268 return ferror (f) || fclose (f) != 0;
6274 rm -f conftest$ac_exeext
6275 if { (ac_try="$ac_link"
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_link") 2>&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6285 { (case "(($ac_try" in
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_try") 2>&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_cv_sizeof_signed=`cat conftest.val`
6296 echo "$as_me: program exited with status $ac_status" >&5
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6301 if test "$ac_cv_type_signed" = yes; then
6302 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6303 See \`config.log' for more details." >&5
6304 echo "$as_me: error: cannot compute sizeof (signed)
6305 See \`config.log' for more details." >&2;}
6306 { (exit 77); exit 77; }; }
6308 ac_cv_sizeof_signed=0
6311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6315 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
6316 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
6320 cat >>confdefs.h <<_ACEOF
6321 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
6325 { echo "$as_me:$LINENO: checking for unsigned" >&5
6326 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
6327 if test "${ac_cv_type_unsigned+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 cat >conftest.$ac_ext <<_ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6336 $ac_includes_default
6337 typedef unsigned ac__type_new_;
6341 if ((ac__type_new_ *) 0)
6343 if (sizeof (ac__type_new_))
6349 rm -f conftest.$ac_objext
6350 if { (ac_try="$ac_compile"
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_compile") 2>conftest.er1
6358 grep -v '^ *+' conftest.er1 >conftest.err
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } && {
6363 test -z "$ac_c_werror_flag" ||
6364 test ! -s conftest.err
6365 } && test -s conftest.$ac_objext; then
6366 ac_cv_type_unsigned=yes
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6371 ac_cv_type_unsigned=no
6374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
6377 echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
6379 # The cast to long int works around a bug in the HP C Compiler
6380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6382 # This bug is HP SR number 8606223364.
6383 { echo "$as_me:$LINENO: checking size of unsigned" >&5
6384 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
6385 if test "${ac_cv_sizeof_unsigned+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 if test "$cross_compiling" = yes; then
6389 # Depending upon the size, compute the lo and hi bounds.
6390 cat >conftest.$ac_ext <<_ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6397 typedef unsigned ac__type_sizeof_;
6401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6408 rm -f conftest.$ac_objext
6409 if { (ac_try="$ac_compile"
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_compile") 2>conftest.er1
6417 grep -v '^ *+' conftest.er1 >conftest.err
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } && {
6422 test -z "$ac_c_werror_flag" ||
6423 test ! -s conftest.err
6424 } && test -s conftest.$ac_objext; then
6427 cat >conftest.$ac_ext <<_ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6433 $ac_includes_default
6434 typedef unsigned ac__type_sizeof_;
6438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6445 rm -f conftest.$ac_objext
6446 if { (ac_try="$ac_compile"
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
6454 grep -v '^ *+' conftest.er1 >conftest.err
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest.$ac_objext; then
6462 ac_hi=$ac_mid; break
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 ac_lo=`expr $ac_mid + 1`
6468 if test $ac_lo -le $ac_mid; then
6472 ac_mid=`expr 2 '*' $ac_mid + 1`
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6481 cat >conftest.$ac_ext <<_ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 $ac_includes_default
6488 typedef unsigned ac__type_sizeof_;
6492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6499 rm -f conftest.$ac_objext
6500 if { (ac_try="$ac_compile"
6502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503 *) ac_try_echo=$ac_try;;
6505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6506 (eval "$ac_compile") 2>conftest.er1
6508 grep -v '^ *+' conftest.er1 >conftest.err
6510 cat conftest.err >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } && {
6513 test -z "$ac_c_werror_flag" ||
6514 test ! -s conftest.err
6515 } && test -s conftest.$ac_objext; then
6518 cat >conftest.$ac_ext <<_ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6524 $ac_includes_default
6525 typedef unsigned ac__type_sizeof_;
6529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6536 rm -f conftest.$ac_objext
6537 if { (ac_try="$ac_compile"
6539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540 *) ac_try_echo=$ac_try;;
6542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543 (eval "$ac_compile") 2>conftest.er1
6545 grep -v '^ *+' conftest.er1 >conftest.err
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } && {
6550 test -z "$ac_c_werror_flag" ||
6551 test ! -s conftest.err
6552 } && test -s conftest.$ac_objext; then
6553 ac_lo=$ac_mid; break
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6558 ac_hi=`expr '(' $ac_mid ')' - 1`
6559 if test $ac_mid -le $ac_hi; then
6563 ac_mid=`expr 2 '*' $ac_mid`
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 # Binary search between lo and hi bounds.
6580 while test "x$ac_lo" != "x$ac_hi"; do
6581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6582 cat >conftest.$ac_ext <<_ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 $ac_includes_default
6589 typedef unsigned ac__type_sizeof_;
6593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6600 rm -f conftest.$ac_objext
6601 if { (ac_try="$ac_compile"
6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607 (eval "$ac_compile") 2>conftest.er1
6609 grep -v '^ *+' conftest.er1 >conftest.err
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && {
6614 test -z "$ac_c_werror_flag" ||
6615 test ! -s conftest.err
6616 } && test -s conftest.$ac_objext; then
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_lo=`expr '(' $ac_mid ')' + 1`
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
6629 '') if test "$ac_cv_type_unsigned" = yes; then
6630 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6631 See \`config.log' for more details." >&5
6632 echo "$as_me: error: cannot compute sizeof (unsigned)
6633 See \`config.log' for more details." >&2;}
6634 { (exit 77); exit 77; }; }
6636 ac_cv_sizeof_unsigned=0
6640 cat >conftest.$ac_ext <<_ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 $ac_includes_default
6647 typedef unsigned ac__type_sizeof_;
6648 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6649 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6656 FILE *f = fopen ("conftest.val", "w");
6659 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6661 long int i = longval ();
6662 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6664 fprintf (f, "%ld\n", i);
6668 unsigned long int i = ulongval ();
6669 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6671 fprintf (f, "%lu\n", i);
6673 return ferror (f) || fclose (f) != 0;
6679 rm -f conftest$ac_exeext
6680 if { (ac_try="$ac_link"
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686 (eval "$ac_link") 2>&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6690 { (case "(($ac_try" in
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_try") 2>&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 ac_cv_sizeof_unsigned=`cat conftest.val`
6701 echo "$as_me: program exited with status $ac_status" >&5
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6706 if test "$ac_cv_type_unsigned" = yes; then
6707 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6708 See \`config.log' for more details." >&5
6709 echo "$as_me: error: cannot compute sizeof (unsigned)
6710 See \`config.log' for more details." >&2;}
6711 { (exit 77); exit 77; }; }
6713 ac_cv_sizeof_unsigned=0
6716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6720 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
6721 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
6725 cat >>confdefs.h <<_ACEOF
6726 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
6730 { echo "$as_me:$LINENO: checking for signed long" >&5
6731 echo $ECHO_N "checking for signed long... $ECHO_C" >&6; }
6732 if test "${ac_cv_type_signed_long+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 cat >conftest.$ac_ext <<_ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 $ac_includes_default
6742 typedef signed long ac__type_new_;
6746 if ((ac__type_new_ *) 0)
6748 if (sizeof (ac__type_new_))
6754 rm -f conftest.$ac_objext
6755 if { (ac_try="$ac_compile"
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_compile") 2>conftest.er1
6763 grep -v '^ *+' conftest.er1 >conftest.err
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } && {
6768 test -z "$ac_c_werror_flag" ||
6769 test ! -s conftest.err
6770 } && test -s conftest.$ac_objext; then
6771 ac_cv_type_signed_long=yes
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 ac_cv_type_signed_long=no
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long" >&5
6782 echo "${ECHO_T}$ac_cv_type_signed_long" >&6; }
6784 # The cast to long int works around a bug in the HP C Compiler
6785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6787 # This bug is HP SR number 8606223364.
6788 { echo "$as_me:$LINENO: checking size of signed long" >&5
6789 echo $ECHO_N "checking size of signed long... $ECHO_C" >&6; }
6790 if test "${ac_cv_sizeof_signed_long+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 if test "$cross_compiling" = yes; then
6794 # Depending upon the size, compute the lo and hi bounds.
6795 cat >conftest.$ac_ext <<_ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 $ac_includes_default
6802 typedef signed long ac__type_sizeof_;
6806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6813 rm -f conftest.$ac_objext
6814 if { (ac_try="$ac_compile"
6816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817 *) ac_try_echo=$ac_try;;
6819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820 (eval "$ac_compile") 2>conftest.er1
6822 grep -v '^ *+' conftest.er1 >conftest.err
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } && {
6827 test -z "$ac_c_werror_flag" ||
6828 test ! -s conftest.err
6829 } && test -s conftest.$ac_objext; then
6832 cat >conftest.$ac_ext <<_ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6838 $ac_includes_default
6839 typedef signed long ac__type_sizeof_;
6843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6850 rm -f conftest.$ac_objext
6851 if { (ac_try="$ac_compile"
6853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854 *) ac_try_echo=$ac_try;;
6856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6857 (eval "$ac_compile") 2>conftest.er1
6859 grep -v '^ *+' conftest.er1 >conftest.err
6861 cat conftest.err >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } && {
6864 test -z "$ac_c_werror_flag" ||
6865 test ! -s conftest.err
6866 } && test -s conftest.$ac_objext; then
6867 ac_hi=$ac_mid; break
6869 echo "$as_me: failed program was:" >&5
6870 sed 's/^/| /' conftest.$ac_ext >&5
6872 ac_lo=`expr $ac_mid + 1`
6873 if test $ac_lo -le $ac_mid; then
6877 ac_mid=`expr 2 '*' $ac_mid + 1`
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6886 cat >conftest.$ac_ext <<_ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 $ac_includes_default
6893 typedef signed long ac__type_sizeof_;
6897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6904 rm -f conftest.$ac_objext
6905 if { (ac_try="$ac_compile"
6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911 (eval "$ac_compile") 2>conftest.er1
6913 grep -v '^ *+' conftest.er1 >conftest.err
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && {
6918 test -z "$ac_c_werror_flag" ||
6919 test ! -s conftest.err
6920 } && test -s conftest.$ac_objext; then
6923 cat >conftest.$ac_ext <<_ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 $ac_includes_default
6930 typedef signed long ac__type_sizeof_;
6934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6941 rm -f conftest.$ac_objext
6942 if { (ac_try="$ac_compile"
6944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945 *) ac_try_echo=$ac_try;;
6947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6948 (eval "$ac_compile") 2>conftest.er1
6950 grep -v '^ *+' conftest.er1 >conftest.err
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } && {
6955 test -z "$ac_c_werror_flag" ||
6956 test ! -s conftest.err
6957 } && test -s conftest.$ac_objext; then
6958 ac_lo=$ac_mid; break
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6963 ac_hi=`expr '(' $ac_mid ')' - 1`
6964 if test $ac_mid -le $ac_hi; then
6968 ac_mid=`expr 2 '*' $ac_mid`
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 # Binary search between lo and hi bounds.
6985 while test "x$ac_lo" != "x$ac_hi"; do
6986 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6987 cat >conftest.$ac_ext <<_ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
6994 typedef signed long ac__type_sizeof_;
6998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7005 rm -f conftest.$ac_objext
7006 if { (ac_try="$ac_compile"
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7012 (eval "$ac_compile") 2>conftest.er1
7014 grep -v '^ *+' conftest.er1 >conftest.err
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } && {
7019 test -z "$ac_c_werror_flag" ||
7020 test ! -s conftest.err
7021 } && test -s conftest.$ac_objext; then
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 ac_lo=`expr '(' $ac_mid ')' + 1`
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 ?*) ac_cv_sizeof_signed_long=$ac_lo;;
7034 '') if test "$ac_cv_type_signed_long" = yes; then
7035 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7036 See \`config.log' for more details." >&5
7037 echo "$as_me: error: cannot compute sizeof (signed long)
7038 See \`config.log' for more details." >&2;}
7039 { (exit 77); exit 77; }; }
7041 ac_cv_sizeof_signed_long=0
7045 cat >conftest.$ac_ext <<_ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 $ac_includes_default
7052 typedef signed long ac__type_sizeof_;
7053 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7054 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7061 FILE *f = fopen ("conftest.val", "w");
7064 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7066 long int i = longval ();
7067 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7069 fprintf (f, "%ld\n", i);
7073 unsigned long int i = ulongval ();
7074 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7076 fprintf (f, "%lu\n", i);
7078 return ferror (f) || fclose (f) != 0;
7084 rm -f conftest$ac_exeext
7085 if { (ac_try="$ac_link"
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_link") 2>&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7095 { (case "(($ac_try" in
7096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7097 *) ac_try_echo=$ac_try;;
7099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7100 (eval "$ac_try") 2>&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; }; then
7104 ac_cv_sizeof_signed_long=`cat conftest.val`
7106 echo "$as_me: program exited with status $ac_status" >&5
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7111 if test "$ac_cv_type_signed_long" = yes; then
7112 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7113 See \`config.log' for more details." >&5
7114 echo "$as_me: error: cannot compute sizeof (signed long)
7115 See \`config.log' for more details." >&2;}
7116 { (exit 77); exit 77; }; }
7118 ac_cv_sizeof_signed_long=0
7121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7125 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
7126 echo "${ECHO_T}$ac_cv_sizeof_signed_long" >&6; }
7130 cat >>confdefs.h <<_ACEOF
7131 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
7135 { echo "$as_me:$LINENO: checking for unsigned long" >&5
7136 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7137 if test "${ac_cv_type_unsigned_long+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 cat >conftest.$ac_ext <<_ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 $ac_includes_default
7147 typedef unsigned long ac__type_new_;
7151 if ((ac__type_new_ *) 0)
7153 if (sizeof (ac__type_new_))
7159 rm -f conftest.$ac_objext
7160 if { (ac_try="$ac_compile"
7162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163 *) ac_try_echo=$ac_try;;
7165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166 (eval "$ac_compile") 2>conftest.er1
7168 grep -v '^ *+' conftest.er1 >conftest.err
7170 cat conftest.err >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } && {
7173 test -z "$ac_c_werror_flag" ||
7174 test ! -s conftest.err
7175 } && test -s conftest.$ac_objext; then
7176 ac_cv_type_unsigned_long=yes
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7181 ac_cv_type_unsigned_long=no
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7186 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7187 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7189 # The cast to long int works around a bug in the HP C Compiler
7190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7192 # This bug is HP SR number 8606223364.
7193 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
7194 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7195 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 if test "$cross_compiling" = yes; then
7199 # Depending upon the size, compute the lo and hi bounds.
7200 cat >conftest.$ac_ext <<_ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7206 $ac_includes_default
7207 typedef unsigned long ac__type_sizeof_;
7211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7218 rm -f conftest.$ac_objext
7219 if { (ac_try="$ac_compile"
7221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7222 *) ac_try_echo=$ac_try;;
7224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7225 (eval "$ac_compile") 2>conftest.er1
7227 grep -v '^ *+' conftest.er1 >conftest.err
7229 cat conftest.err >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } && {
7232 test -z "$ac_c_werror_flag" ||
7233 test ! -s conftest.err
7234 } && test -s conftest.$ac_objext; then
7237 cat >conftest.$ac_ext <<_ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 $ac_includes_default
7244 typedef unsigned long ac__type_sizeof_;
7248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7255 rm -f conftest.$ac_objext
7256 if { (ac_try="$ac_compile"
7258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259 *) ac_try_echo=$ac_try;;
7261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7262 (eval "$ac_compile") 2>conftest.er1
7264 grep -v '^ *+' conftest.er1 >conftest.err
7266 cat conftest.err >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } && {
7269 test -z "$ac_c_werror_flag" ||
7270 test ! -s conftest.err
7271 } && test -s conftest.$ac_objext; then
7272 ac_hi=$ac_mid; break
7274 echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7277 ac_lo=`expr $ac_mid + 1`
7278 if test $ac_lo -le $ac_mid; then
7282 ac_mid=`expr 2 '*' $ac_mid + 1`
7285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7291 cat >conftest.$ac_ext <<_ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 $ac_includes_default
7298 typedef unsigned long ac__type_sizeof_;
7302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7309 rm -f conftest.$ac_objext
7310 if { (ac_try="$ac_compile"
7312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7313 *) ac_try_echo=$ac_try;;
7315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7316 (eval "$ac_compile") 2>conftest.er1
7318 grep -v '^ *+' conftest.er1 >conftest.err
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } && {
7323 test -z "$ac_c_werror_flag" ||
7324 test ! -s conftest.err
7325 } && test -s conftest.$ac_objext; then
7328 cat >conftest.$ac_ext <<_ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7334 $ac_includes_default
7335 typedef unsigned long ac__type_sizeof_;
7339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7346 rm -f conftest.$ac_objext
7347 if { (ac_try="$ac_compile"
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7353 (eval "$ac_compile") 2>conftest.er1
7355 grep -v '^ *+' conftest.er1 >conftest.err
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } && {
7360 test -z "$ac_c_werror_flag" ||
7361 test ! -s conftest.err
7362 } && test -s conftest.$ac_objext; then
7363 ac_lo=$ac_mid; break
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7368 ac_hi=`expr '(' $ac_mid ')' - 1`
7369 if test $ac_mid -le $ac_hi; then
7373 ac_mid=`expr 2 '*' $ac_mid`
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 echo "$as_me: failed program was:" >&5
7380 sed 's/^/| /' conftest.$ac_ext >&5
7385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7389 # Binary search between lo and hi bounds.
7390 while test "x$ac_lo" != "x$ac_hi"; do
7391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7392 cat >conftest.$ac_ext <<_ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 $ac_includes_default
7399 typedef unsigned long ac__type_sizeof_;
7403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7410 rm -f conftest.$ac_objext
7411 if { (ac_try="$ac_compile"
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417 (eval "$ac_compile") 2>conftest.er1
7419 grep -v '^ *+' conftest.er1 >conftest.err
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } && {
7424 test -z "$ac_c_werror_flag" ||
7425 test ! -s conftest.err
7426 } && test -s conftest.$ac_objext; then
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7432 ac_lo=`expr '(' $ac_mid ')' + 1`
7435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7439 '') if test "$ac_cv_type_unsigned_long" = yes; then
7440 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7441 See \`config.log' for more details." >&5
7442 echo "$as_me: error: cannot compute sizeof (unsigned long)
7443 See \`config.log' for more details." >&2;}
7444 { (exit 77); exit 77; }; }
7446 ac_cv_sizeof_unsigned_long=0
7450 cat >conftest.$ac_ext <<_ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7457 typedef unsigned long ac__type_sizeof_;
7458 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7459 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7466 FILE *f = fopen ("conftest.val", "w");
7469 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7471 long int i = longval ();
7472 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7474 fprintf (f, "%ld\n", i);
7478 unsigned long int i = ulongval ();
7479 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7481 fprintf (f, "%lu\n", i);
7483 return ferror (f) || fclose (f) != 0;
7489 rm -f conftest$ac_exeext
7490 if { (ac_try="$ac_link"
7492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493 *) ac_try_echo=$ac_try;;
7495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496 (eval "$ac_link") 2>&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7500 { (case "(($ac_try" in
7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502 *) ac_try_echo=$ac_try;;
7504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505 (eval "$ac_try") 2>&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; }; then
7509 ac_cv_sizeof_unsigned_long=`cat conftest.val`
7511 echo "$as_me: program exited with status $ac_status" >&5
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7516 if test "$ac_cv_type_unsigned_long" = yes; then
7517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7518 See \`config.log' for more details." >&5
7519 echo "$as_me: error: cannot compute sizeof (unsigned long)
7520 See \`config.log' for more details." >&2;}
7521 { (exit 77); exit 77; }; }
7523 ac_cv_sizeof_unsigned_long=0
7526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7530 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
7531 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
7535 cat >>confdefs.h <<_ACEOF
7536 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7540 { echo "$as_me:$LINENO: checking for signed long long" >&5
7541 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7542 if test "${ac_cv_type_signed_long_long+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 cat >conftest.$ac_ext <<_ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 $ac_includes_default
7552 typedef signed long long ac__type_new_;
7556 if ((ac__type_new_ *) 0)
7558 if (sizeof (ac__type_new_))
7564 rm -f conftest.$ac_objext
7565 if { (ac_try="$ac_compile"
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571 (eval "$ac_compile") 2>conftest.er1
7573 grep -v '^ *+' conftest.er1 >conftest.err
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && {
7578 test -z "$ac_c_werror_flag" ||
7579 test ! -s conftest.err
7580 } && test -s conftest.$ac_objext; then
7581 ac_cv_type_signed_long_long=yes
7583 echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7586 ac_cv_type_signed_long_long=no
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7592 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7594 # The cast to long int works around a bug in the HP C Compiler
7595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7597 # This bug is HP SR number 8606223364.
7598 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7599 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7600 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 if test "$cross_compiling" = yes; then
7604 # Depending upon the size, compute the lo and hi bounds.
7605 cat >conftest.$ac_ext <<_ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 $ac_includes_default
7612 typedef signed long long ac__type_sizeof_;
7616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7623 rm -f conftest.$ac_objext
7624 if { (ac_try="$ac_compile"
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630 (eval "$ac_compile") 2>conftest.er1
7632 grep -v '^ *+' conftest.er1 >conftest.err
7634 cat conftest.err >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } && {
7637 test -z "$ac_c_werror_flag" ||
7638 test ! -s conftest.err
7639 } && test -s conftest.$ac_objext; then
7642 cat >conftest.$ac_ext <<_ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 $ac_includes_default
7649 typedef signed long long ac__type_sizeof_;
7653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7660 rm -f conftest.$ac_objext
7661 if { (ac_try="$ac_compile"
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667 (eval "$ac_compile") 2>conftest.er1
7669 grep -v '^ *+' conftest.er1 >conftest.err
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } && {
7674 test -z "$ac_c_werror_flag" ||
7675 test ! -s conftest.err
7676 } && test -s conftest.$ac_objext; then
7677 ac_hi=$ac_mid; break
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 ac_lo=`expr $ac_mid + 1`
7683 if test $ac_lo -le $ac_mid; then
7687 ac_mid=`expr 2 '*' $ac_mid + 1`
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7696 cat >conftest.$ac_ext <<_ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7702 $ac_includes_default
7703 typedef signed long long ac__type_sizeof_;
7707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7714 rm -f conftest.$ac_objext
7715 if { (ac_try="$ac_compile"
7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718 *) ac_try_echo=$ac_try;;
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721 (eval "$ac_compile") 2>conftest.er1
7723 grep -v '^ *+' conftest.er1 >conftest.err
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } && {
7728 test -z "$ac_c_werror_flag" ||
7729 test ! -s conftest.err
7730 } && test -s conftest.$ac_objext; then
7733 cat >conftest.$ac_ext <<_ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739 $ac_includes_default
7740 typedef signed long long ac__type_sizeof_;
7744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7751 rm -f conftest.$ac_objext
7752 if { (ac_try="$ac_compile"
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_compile") 2>conftest.er1
7760 grep -v '^ *+' conftest.er1 >conftest.err
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } && {
7765 test -z "$ac_c_werror_flag" ||
7766 test ! -s conftest.err
7767 } && test -s conftest.$ac_objext; then
7768 ac_lo=$ac_mid; break
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7773 ac_hi=`expr '(' $ac_mid ')' - 1`
7774 if test $ac_mid -le $ac_hi; then
7778 ac_mid=`expr 2 '*' $ac_mid`
7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 # Binary search between lo and hi bounds.
7795 while test "x$ac_lo" != "x$ac_hi"; do
7796 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7797 cat >conftest.$ac_ext <<_ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7803 $ac_includes_default
7804 typedef signed long long ac__type_sizeof_;
7808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7815 rm -f conftest.$ac_objext
7816 if { (ac_try="$ac_compile"
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822 (eval "$ac_compile") 2>conftest.er1
7824 grep -v '^ *+' conftest.er1 >conftest.err
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } && {
7829 test -z "$ac_c_werror_flag" ||
7830 test ! -s conftest.err
7831 } && test -s conftest.$ac_objext; then
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ac_lo=`expr '(' $ac_mid ')' + 1`
7840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7844 '') if test "$ac_cv_type_signed_long_long" = yes; then
7845 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7846 See \`config.log' for more details." >&5
7847 echo "$as_me: error: cannot compute sizeof (signed long long)
7848 See \`config.log' for more details." >&2;}
7849 { (exit 77); exit 77; }; }
7851 ac_cv_sizeof_signed_long_long=0
7855 cat >conftest.$ac_ext <<_ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 $ac_includes_default
7862 typedef signed long long ac__type_sizeof_;
7863 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7864 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7871 FILE *f = fopen ("conftest.val", "w");
7874 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7876 long int i = longval ();
7877 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7879 fprintf (f, "%ld\n", i);
7883 unsigned long int i = ulongval ();
7884 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7886 fprintf (f, "%lu\n", i);
7888 return ferror (f) || fclose (f) != 0;
7894 rm -f conftest$ac_exeext
7895 if { (ac_try="$ac_link"
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901 (eval "$ac_link") 2>&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7905 { (case "(($ac_try" in
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_try") 2>&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7916 echo "$as_me: program exited with status $ac_status" >&5
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7921 if test "$ac_cv_type_signed_long_long" = yes; then
7922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7923 See \`config.log' for more details." >&5
7924 echo "$as_me: error: cannot compute sizeof (signed long long)
7925 See \`config.log' for more details." >&2;}
7926 { (exit 77); exit 77; }; }
7928 ac_cv_sizeof_signed_long_long=0
7931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7935 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7936 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
7940 cat >>confdefs.h <<_ACEOF
7941 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7945 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
7946 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
7947 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 cat >conftest.$ac_ext <<_ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 $ac_includes_default
7957 typedef unsigned long long ac__type_new_;
7961 if ((ac__type_new_ *) 0)
7963 if (sizeof (ac__type_new_))
7969 rm -f conftest.$ac_objext
7970 if { (ac_try="$ac_compile"
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_compile") 2>conftest.er1
7978 grep -v '^ *+' conftest.er1 >conftest.err
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } && {
7983 test -z "$ac_c_werror_flag" ||
7984 test ! -s conftest.err
7985 } && test -s conftest.$ac_objext; then
7986 ac_cv_type_unsigned_long_long=yes
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 ac_cv_type_unsigned_long_long=no
7994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7997 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
7999 # The cast to long int works around a bug in the HP C Compiler
8000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8002 # This bug is HP SR number 8606223364.
8003 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
8004 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
8005 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 if test "$cross_compiling" = yes; then
8009 # Depending upon the size, compute the lo and hi bounds.
8010 cat >conftest.$ac_ext <<_ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 $ac_includes_default
8017 typedef unsigned long long ac__type_sizeof_;
8021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8028 rm -f conftest.$ac_objext
8029 if { (ac_try="$ac_compile"
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_compile") 2>conftest.er1
8037 grep -v '^ *+' conftest.er1 >conftest.err
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest.$ac_objext; then
8047 cat >conftest.$ac_ext <<_ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8053 $ac_includes_default
8054 typedef unsigned long long ac__type_sizeof_;
8058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8065 rm -f conftest.$ac_objext
8066 if { (ac_try="$ac_compile"
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_compile") 2>conftest.er1
8074 grep -v '^ *+' conftest.er1 >conftest.err
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } && {
8079 test -z "$ac_c_werror_flag" ||
8080 test ! -s conftest.err
8081 } && test -s conftest.$ac_objext; then
8082 ac_hi=$ac_mid; break
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 ac_lo=`expr $ac_mid + 1`
8088 if test $ac_lo -le $ac_mid; then
8092 ac_mid=`expr 2 '*' $ac_mid + 1`
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107 $ac_includes_default
8108 typedef unsigned long long ac__type_sizeof_;
8112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8119 rm -f conftest.$ac_objext
8120 if { (ac_try="$ac_compile"
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_compile") 2>conftest.er1
8128 grep -v '^ *+' conftest.er1 >conftest.err
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } && {
8133 test -z "$ac_c_werror_flag" ||
8134 test ! -s conftest.err
8135 } && test -s conftest.$ac_objext; then
8138 cat >conftest.$ac_ext <<_ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8144 $ac_includes_default
8145 typedef unsigned long long ac__type_sizeof_;
8149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8156 rm -f conftest.$ac_objext
8157 if { (ac_try="$ac_compile"
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_compile") 2>conftest.er1
8165 grep -v '^ *+' conftest.er1 >conftest.err
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } && {
8170 test -z "$ac_c_werror_flag" ||
8171 test ! -s conftest.err
8172 } && test -s conftest.$ac_objext; then
8173 ac_lo=$ac_mid; break
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 ac_hi=`expr '(' $ac_mid ')' - 1`
8179 if test $ac_mid -le $ac_hi; then
8183 ac_mid=`expr 2 '*' $ac_mid`
8186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 # Binary search between lo and hi bounds.
8200 while test "x$ac_lo" != "x$ac_hi"; do
8201 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8202 cat >conftest.$ac_ext <<_ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208 $ac_includes_default
8209 typedef unsigned long long ac__type_sizeof_;
8213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8220 rm -f conftest.$ac_objext
8221 if { (ac_try="$ac_compile"
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227 (eval "$ac_compile") 2>conftest.er1
8229 grep -v '^ *+' conftest.er1 >conftest.err
8231 cat conftest.err >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && {
8234 test -z "$ac_c_werror_flag" ||
8235 test ! -s conftest.err
8236 } && test -s conftest.$ac_objext; then
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8242 ac_lo=`expr '(' $ac_mid ')' + 1`
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
8249 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
8250 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8251 See \`config.log' for more details." >&5
8252 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8253 See \`config.log' for more details." >&2;}
8254 { (exit 77); exit 77; }; }
8256 ac_cv_sizeof_unsigned_long_long=0
8260 cat >conftest.$ac_ext <<_ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 $ac_includes_default
8267 typedef unsigned long long ac__type_sizeof_;
8268 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8269 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8276 FILE *f = fopen ("conftest.val", "w");
8279 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8281 long int i = longval ();
8282 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8284 fprintf (f, "%ld\n", i);
8288 unsigned long int i = ulongval ();
8289 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8291 fprintf (f, "%lu\n", i);
8293 return ferror (f) || fclose (f) != 0;
8299 rm -f conftest$ac_exeext
8300 if { (ac_try="$ac_link"
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_link") 2>&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8310 { (case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_try") 2>&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
8321 echo "$as_me: program exited with status $ac_status" >&5
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8326 if test "$ac_cv_type_unsigned_long_long" = yes; then
8327 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8328 See \`config.log' for more details." >&5
8329 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8330 See \`config.log' for more details." >&2;}
8331 { (exit 77); exit 77; }; }
8333 ac_cv_sizeof_unsigned_long_long=0
8336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8340 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
8341 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
8345 cat >>confdefs.h <<_ACEOF
8346 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8353 # Extract the first word of "freetype-config", so it can be a program name with args.
8354 set dummy freetype-config; ac_word=$2
8355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8357 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 case $FREETYPE_CONFIG in
8362 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8367 for as_dir in $as_dummy
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8385 if test -n "$FREETYPE_CONFIG"; then
8386 { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8387 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8389 { echo "$as_me:$LINENO: result: no" >&5
8390 echo "${ECHO_T}no" >&6; }
8395 OLDCPPFLAGS="${CPPFLAGS}"
8397 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8398 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8399 else if test -d /usr/include/freetype2; then
8400 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8401 else if test -d /usr/local/include/freetype2; then
8402 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8407 if test "x${FREETYPE_CONFIG}" '=' "x";then
8408 # if we didn't find the freetype-config program, we won't
8409 # know where the libs are expected to be. So just blindly
8410 # try to link against them.
8411 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8412 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8413 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 ac_check_lib_save_LIBS=$LIBS
8417 LIBS="-lfreetype $LIBS"
8418 cat >conftest.$ac_ext <<_ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8425 /* Override any GCC internal prototype to avoid an error.
8426 Use char because int might match the return type of a GCC
8427 builtin and then its argument prototype would still apply. */
8431 char FT_Init_FreeType ();
8435 return FT_Init_FreeType ();
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (ac_try="$ac_link"
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_link") 2>conftest.er1
8449 grep -v '^ *+' conftest.er1 >conftest.err
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } && {
8454 test -z "$ac_c_werror_flag" ||
8455 test ! -s conftest.err
8456 } && test -s conftest$ac_exeext &&
8457 $as_test_x conftest$ac_exeext; then
8458 ac_cv_lib_freetype_FT_Init_FreeType=yes
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 ac_cv_lib_freetype_FT_Init_FreeType=no
8466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8467 conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_lib_save_LIBS
8470 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8471 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8472 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8479 for ac_header in ft2build.h
8481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 ac_res=`eval echo '${'$as_ac_Header'}'`
8489 { echo "$as_me:$LINENO: result: $ac_res" >&5
8490 echo "${ECHO_T}$ac_res" >&6; }
8492 # Is the header compilable?
8493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8495 cat >conftest.$ac_ext <<_ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8501 $ac_includes_default
8502 #include <$ac_header>
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_compile") 2>conftest.er1
8513 grep -v '^ *+' conftest.er1 >conftest.err
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest.$ac_objext; then
8521 ac_header_compiler=yes
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8526 ac_header_compiler=no
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8531 echo "${ECHO_T}$ac_header_compiler" >&6; }
8533 # Is the header present?
8534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8536 cat >conftest.$ac_ext <<_ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542 #include <$ac_header>
8544 if { (ac_try="$ac_cpp conftest.$ac_ext"
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8552 grep -v '^ *+' conftest.er1 >conftest.err
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } >/dev/null && {
8557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8558 test ! -s conftest.err
8560 ac_header_preproc=yes
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8565 ac_header_preproc=no
8568 rm -f conftest.err conftest.$ac_ext
8569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8570 echo "${ECHO_T}$ac_header_preproc" >&6; }
8572 # So? What about this header?
8573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8579 ac_header_preproc=yes
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 eval "$as_ac_Header=\$ac_header_preproc"
8604 ac_res=`eval echo '${'$as_ac_Header'}'`
8605 { echo "$as_me:$LINENO: result: $ac_res" >&5
8606 echo "${ECHO_T}$ac_res" >&6; }
8609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8610 cat >>confdefs.h <<_ACEOF
8611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8618 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8620 for ac_header in freetype/freetype.h
8622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 ac_res=`eval echo '${'$as_ac_Header'}'`
8630 { echo "$as_me:$LINENO: result: $ac_res" >&5
8631 echo "${ECHO_T}$ac_res" >&6; }
8633 # Is the header compilable?
8634 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8636 cat >conftest.$ac_ext <<_ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8643 #include <$ac_header>
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_compile") 2>conftest.er1
8654 grep -v '^ *+' conftest.er1 >conftest.err
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } && {
8659 test -z "$ac_c_werror_flag" ||
8660 test ! -s conftest.err
8661 } && test -s conftest.$ac_objext; then
8662 ac_header_compiler=yes
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8667 ac_header_compiler=no
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8672 echo "${ECHO_T}$ac_header_compiler" >&6; }
8674 # Is the header present?
8675 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8677 cat >conftest.$ac_ext <<_ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683 #include <$ac_header>
8685 if { (ac_try="$ac_cpp conftest.$ac_ext"
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } >/dev/null && {
8698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8699 test ! -s conftest.err
8701 ac_header_preproc=yes
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 ac_header_preproc=no
8709 rm -f conftest.err conftest.$ac_ext
8710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8711 echo "${ECHO_T}$ac_header_preproc" >&6; }
8713 # So? What about this header?
8714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8717 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8719 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8720 ac_header_preproc=yes
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8726 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8728 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8730 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8733 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8734 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 eval "$as_ac_Header=\$ac_header_preproc"
8745 ac_res=`eval echo '${'$as_ac_Header'}'`
8746 { echo "$as_me:$LINENO: result: $ac_res" >&5
8747 echo "${ECHO_T}$ac_res" >&6; }
8750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8751 cat >>confdefs.h <<_ACEOF
8752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8754 HAVE_FREETYPE_FREETYPE_H=1
8761 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8762 "x${FREETYPE_CONFIG}" '!=' "x";then
8763 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8766 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8771 if test "x${HAVE_FREETYPE}" = "x1"; then
8772 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8773 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8775 LIBS="$LIBS -lfreetype"
8778 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8779 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8782 { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8783 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8785 cat > conftest.c << EOF
8786 $HAVE_FT2BUILD_H_DEFINE
8788 #ifdef HAVE_FT2BUILD_H
8789 #include <ft2build.h>
8790 #include FT_FREETYPE_H
8793 #include FT_SFNT_NAMES_H
8794 #include FT_TRUETYPE_IDS_H
8795 #include FT_OUTLINE_H
8797 #include <freetype/freetype.h>
8798 #include <freetype/ftglyph.h>
8799 #include <freetype/ftsizes.h>
8800 #include <freetype/ftsnames.h>
8801 #include <freetype/ttnameid.h>
8802 #include <freetype/ftoutln.h>
8807 FT_Library ftlibrary;
8819 FT_Init_FreeType(&ftlibrary);
8820 FT_New_Face(ftlibrary, "filename", 0, &face);
8821 i = face->num_glyphs - 1;
8822 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8823 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8824 FT_Get_Postscript_Name(face);
8825 FT_Get_Char_Index(face, 33);
8826 FT_Get_First_Char(face, &i);
8827 FT_Get_Next_Char(face, 33, &i);
8828 if(FT_HAS_GLYPH_NAMES(face)) {
8829 FT_Get_Glyph_Name(face, 33, name, 127);
8831 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8832 FT_Get_Glyph(face->glyph, &glyph);
8833 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8834 FT_Done_Glyph(glyph);
8836 FT_Done_FreeType(ftlibrary);
8841 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8842 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8843 { echo "$as_me:$LINENO: result: yes" >&5
8844 echo "${ECHO_T}yes" >&6; }
8845 cat >>confdefs.h <<_ACEOF
8846 #define HAVE_FREETYPE 1
8849 cat >>confdefs.h <<_ACEOF
8850 #define HAVE_FREETYPE_FREETYPE_H 1
8853 cat >>confdefs.h <<_ACEOF
8854 #define USE_FREETYPE 1
8858 echo "configure: failed program was:" >&5
8861 { echo "$as_me:$LINENO: result: no" >&5
8862 echo "${ECHO_T}no" >&6; }
8867 # if the above didn't work out, reset all changes to the compiler variables.
8868 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8869 CPPFLAGS=$OLDCPPFLAGS
8874 #RFX_CHECK_FONTCONFIG
8878 if test "x${DISABLE_LAME}" = "xtrue"; then
8879 echo "*" Disabling lame support...
8881 # old lame code at lib/lame
8882 if test -f lib/lame/Makefile.in; then
8883 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)"
8884 lame_makefile="lib/lame/Makefile"
8885 CPPFLAGS="$CPPFLAGS -Ilame"
8886 cat >>confdefs.h <<_ACEOF
8891 if test -d /usr/include/lame; then
8892 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
8894 if test -d /usr/local/include/lame; then
8895 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
8899 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
8900 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
8901 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 ac_check_lib_save_LIBS=$LIBS
8905 LIBS="-lmp3lame $LIBS"
8906 cat >conftest.$ac_ext <<_ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8913 /* Override any GCC internal prototype to avoid an error.
8914 Use char because int might match the return type of a GCC
8915 builtin and then its argument prototype would still apply. */
8923 return lame_init ();
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935 (eval "$ac_link") 2>conftest.er1
8937 grep -v '^ *+' conftest.er1 >conftest.err
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } && {
8942 test -z "$ac_c_werror_flag" ||
8943 test ! -s conftest.err
8944 } && test -s conftest$ac_exeext &&
8945 $as_test_x conftest$ac_exeext; then
8946 ac_cv_lib_mp3lame_lame_init=yes
8948 echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8951 ac_cv_lib_mp3lame_lame_init=no
8954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8955 conftest$ac_exeext conftest.$ac_ext
8956 LIBS=$ac_check_lib_save_LIBS
8958 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
8959 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
8960 if test $ac_cv_lib_mp3lame_lame_init = yes; then
8961 cat >>confdefs.h <<_ACEOF
8962 #define HAVE_LIBMP3LAME 1
8965 LIBS="-lmp3lame $LIBS"
8972 for ac_header in lame.h
8974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 ac_res=`eval echo '${'$as_ac_Header'}'`
8982 { echo "$as_me:$LINENO: result: $ac_res" >&5
8983 echo "${ECHO_T}$ac_res" >&6; }
8985 # Is the header compilable?
8986 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8988 cat >conftest.$ac_ext <<_ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994 $ac_includes_default
8995 #include <$ac_header>
8997 rm -f conftest.$ac_objext
8998 if { (ac_try="$ac_compile"
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_compile") 2>conftest.er1
9006 grep -v '^ *+' conftest.er1 >conftest.err
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } && {
9011 test -z "$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 } && test -s conftest.$ac_objext; then
9014 ac_header_compiler=yes
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019 ac_header_compiler=no
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9024 echo "${ECHO_T}$ac_header_compiler" >&6; }
9026 # Is the header present?
9027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9029 cat >conftest.$ac_ext <<_ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 #include <$ac_header>
9037 if { (ac_try="$ac_cpp conftest.$ac_ext"
9039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9040 *) ac_try_echo=$ac_try;;
9042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9045 grep -v '^ *+' conftest.er1 >conftest.err
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } >/dev/null && {
9050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9051 test ! -s conftest.err
9053 ac_header_preproc=yes
9055 echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9058 ac_header_preproc=no
9061 rm -f conftest.err conftest.$ac_ext
9062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9063 echo "${ECHO_T}$ac_header_preproc" >&6; }
9065 # So? What about this header?
9066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9072 ac_header_preproc=yes
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 eval "$as_ac_Header=\$ac_header_preproc"
9097 ac_res=`eval echo '${'$as_ac_Header'}'`
9098 { echo "$as_me:$LINENO: result: $ac_res" >&5
9099 echo "${ECHO_T}$ac_res" >&6; }
9102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9103 cat >>confdefs.h <<_ACEOF
9104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9111 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
9112 cat >>confdefs.h <<_ACEOF
9121 # ------------------------------------------------------------------
9125 for ac_prog in avifile-config
9127 # Extract the first word of "$ac_prog", so it can be a program name with args.
9128 set dummy $ac_prog; ac_word=$2
9129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9131 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 if test -n "$AVIFILE_CONFIG"; then
9135 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141 test -z "$as_dir" && as_dir=.
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9144 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9154 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9155 if test -n "$AVIFILE_CONFIG"; then
9156 { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9157 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
9159 { echo "$as_me:$LINENO: result: no" >&5
9160 echo "${ECHO_T}no" >&6; }
9164 test -n "$AVIFILE_CONFIG" && break
9168 if test "x$AVIFILE_CONFIG" '!=' "x";then
9169 OLDCPPFLAGS="$CPPFLAGS"
9170 # temporarily add avifile paths to CPPFLAGS...
9171 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9174 for ac_header in avifile/version.h version.h
9176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 ac_res=`eval echo '${'$as_ac_Header'}'`
9184 { echo "$as_me:$LINENO: result: $ac_res" >&5
9185 echo "${ECHO_T}$ac_res" >&6; }
9187 # Is the header compilable?
9188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9190 cat >conftest.$ac_ext <<_ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9196 $ac_includes_default
9197 #include <$ac_header>
9199 rm -f conftest.$ac_objext
9200 if { (ac_try="$ac_compile"
9202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203 *) ac_try_echo=$ac_try;;
9205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9206 (eval "$ac_compile") 2>conftest.er1
9208 grep -v '^ *+' conftest.er1 >conftest.err
9210 cat conftest.err >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } && {
9213 test -z "$ac_c_werror_flag" ||
9214 test ! -s conftest.err
9215 } && test -s conftest.$ac_objext; then
9216 ac_header_compiler=yes
9218 echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9221 ac_header_compiler=no
9224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9226 echo "${ECHO_T}$ac_header_compiler" >&6; }
9228 # Is the header present?
9229 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9231 cat >conftest.$ac_ext <<_ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237 #include <$ac_header>
9239 if { (ac_try="$ac_cpp conftest.$ac_ext"
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9247 grep -v '^ *+' conftest.er1 >conftest.err
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } >/dev/null && {
9252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9253 test ! -s conftest.err
9255 ac_header_preproc=yes
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9260 ac_header_preproc=no
9263 rm -f conftest.err conftest.$ac_ext
9264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9265 echo "${ECHO_T}$ac_header_preproc" >&6; }
9267 # So? What about this header?
9268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9274 ac_header_preproc=yes
9277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 eval "$as_ac_Header=\$ac_header_preproc"
9299 ac_res=`eval echo '${'$as_ac_Header'}'`
9300 { echo "$as_me:$LINENO: result: $ac_res" >&5
9301 echo "${ECHO_T}$ac_res" >&6; }
9304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9305 cat >>confdefs.h <<_ACEOF
9306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9314 CPPFLAGS="$OLDCPPFLAGS"
9317 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9318 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
9320 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9321 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9323 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9324 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9327 cat > conftest.cpp << EOF
9329 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9330 // so we have to introduce them this way
9331 $HAVE_VERSION_H_DEFINE
9332 $HAVE_AVIFILE_VERSION_H_DEFINE
9334 #ifdef HAVE_VERSION_H
9335 #include <version.h>
9337 #ifdef HAVE_AVIFILE_VERSION_H
9338 #include <avifile/version.h>
9341 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9342 #include <avifile.h>
9343 #include <aviplay.h>
9344 #include <avm_fourcc.h>
9345 #include <avm_creators.h>
9346 #include <StreamInfo.h>
9349 #include <avifile.h>
9350 #include <aviplay.h>
9351 #include <aviutil.h>
9353 #define Height height
9360 IAviReadFile* player;
9361 IAviReadStream* astream;
9362 IAviReadStream* vstream;
9363 player = CreateIAviReadFile(0);
9364 astream = player->GetStream(0, AviStream::Audio);
9365 vstream = player->GetStream(0, AviStream::Video);
9366 vstream -> StartStreaming();
9367 astream -> StartStreaming();
9370 player->GetFileHeader(&head);
9371 head.dwMicroSecPerFrame;
9376 head.dwMicroSecPerFrame;
9377 astream->GetEndPos(),
9378 astream->GetEndTime());
9379 player->StreamCount();
9381 StreamInfo*audioinfo;
9382 StreamInfo*videoinfo;
9383 audioinfo = astream->GetStreamInfo();
9384 videoinfo = vstream->GetStreamInfo();
9385 videoinfo->GetVideoWidth();
9386 videoinfo->GetVideoHeight();
9387 audioinfo->GetAudioSamplesPerSec();
9388 videoinfo->GetFps();
9390 CImage*img = vstream->GetFrame();
9397 astream->GetAudioFormatInfo(&wave,0);
9399 astream->ReadFrames(0,0,0,a,b);
9401 int main (int argc, char*argv)
9407 if test "x$AVIFILE_CONFIG" '!=' "x";then
9408 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9409 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9410 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9411 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9412 { echo "$as_me:$LINENO: result: yes" >&5
9413 echo "${ECHO_T}yes" >&6; }
9416 cat >>confdefs.h <<_ACEOF
9417 #define AVIFILE true
9421 echo "configure: failed program was:" >&5
9422 cat conftest.cpp >&5
9423 { echo "$as_me:$LINENO: result: no" >&5
9424 echo "${ECHO_T}no" >&6; }
9427 { echo "$as_me:$LINENO: result: no" >&5
9428 echo "${ECHO_T}no" >&6; }
9432 if test "x${AVIFILE}" = "xtrue"; then
9433 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9434 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9435 cat >>confdefs.h <<_ACEOF
9436 #define HAVE_AVIFILE 1
9441 if test "x${WIN32}" != "x"; then
9442 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9443 #if test "x${AVIFIL32}" != "x"; then
9444 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9446 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9452 # ------------------------------------------------------------------
9454 if test "x${UNCOMPRESS}" = "xgzip"; then
9455 cat >>confdefs.h <<_ACEOF
9462 # ------------------------------------------------------------------
9465 { echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
9466 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6; }
9468 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9471 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9472 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9474 # iterate through version 2.2 to 2.5
9475 for v in 2 3 4 5; do
9477 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
9479 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
9480 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9482 elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9483 #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
9485 PYTHON_LIB="-framework Python"
9486 if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
9487 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9489 PYTHON_LIB2="$PYTHON_LIB"
9491 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9493 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9494 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9495 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9497 -a -f "/sw/include/python2.$v/Python.h" \
9498 -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9500 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9501 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9506 if test "x$PY_VERSION" "!=" "x"; then
9507 { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9508 echo "${ECHO_T}$PY_VERSION" >&6; }
9509 export PYTHON_INCLUDES PYTHON_LIB
9512 { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9513 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
9515 cat > conftest.c << EOF
9517 #include <Imaging.h>
9522 ret = Py_Main(0, 0);
9523 int x; // check also for gcc 2.95.x incompatibilities
9527 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9528 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9529 { echo "$as_me:$LINENO: result: yes" >&5
9530 echo "${ECHO_T}yes" >&6; }
9533 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9534 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9535 { echo "$as_me:$LINENO: result: yes" >&5
9536 echo "${ECHO_T}yes" >&6; }
9537 PYTHON_LIB="${PYTHON_LIB2}"
9540 echo "configure: failed program was:" >&5
9542 { echo "$as_me:$LINENO: result: no" >&5
9543 echo "${ECHO_T}no" >&6; }
9548 { echo "$as_me:$LINENO: result: nope" >&5
9549 echo "${ECHO_T}nope" >&6; }
9553 if test "x$PYTHON_OK" '!=' "xyes";then
9554 echo all install uninstall clean: > lib/python/Makefile
9555 # fail silently- the most users won't have any need for the
9556 # python interface anyway
9558 pythonrfxswf="lib/python/Makefile"
9561 # ------------------------------------------------------------------
9563 { echo "$as_me:$LINENO: checking for missing libraries" >&5
9564 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
9566 if test "x$ZLIBMISSING" = "xtrue";then
9567 MISSINGLIBS="${MISSINGLIBS} zlib"
9571 if test "x$JPEGLIBMISSING" = "xtrue";then
9572 MISSINGLIBS="${MISSINGLIBS} jpeglib"
9574 DISABLEJPEG2SWF=true
9577 #if test "x$T1LIBMISSING" = "xtrue";then
9578 # MISSINGLIBS="${MISSINGLIBS} t1lib"
9580 if test "x$UNGIFMISSING" = "xtrue";then
9582 MISSINGLIBS="${MISSINGLIBS} ungif"
9586 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
9587 DISABLEPDF2SWF=true;
9588 DISABLEJPEG2SWF=true;
9589 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9592 if test "x$HAVE_FREETYPE" '!=' "x1"; then
9593 DISABLEPDF2SWF=true;
9594 MISSINGLIBS="${MISSINGLIBS} freetype"
9597 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
9598 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9600 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
9602 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
9605 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
9606 DISABLEPNG2SWF=true;
9607 MISSINGLIBS="${MISSINGLIBS} zlib.h"
9610 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9611 # MISSINGLIBS="${MISSINGLIBS} avifile"
9614 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
9615 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
9617 # ------------------------------------------------------------------
9619 if test "x${MISSINGLIBS}" '!=' "x"; then
9620 echo "***************************************************"
9621 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
9624 avi2swf="avi2swf/Makefile"
9625 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9626 #don't whine, avi2swf is outdated anyway
9627 #echo "* Disabling avi2swf tool..."
9628 echo all install uninstall clean: > avi2swf/Makefile
9632 pdf2swf_makefile="lib/pdf/Makefile"
9633 PDF2SWF='pdf2swf$(E)'
9636 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
9637 echo "* Disabling pdf2swf tool..."
9638 rm -f lib/pdf/Makefile
9639 echo all install uninstall clean: > lib/pdf/Makefile
9647 if test "x${ZLIBMISSING}" = "xtrue"; then
9649 echo "* Warning! Without zlib, you will not be able to read"
9650 echo "* or write compressed Flash MX files!"
9653 JPEG2SWF='jpeg2swf$(E)'
9654 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
9655 echo "* Disabling jpeg2swf tool..."
9661 GIF2SWF='gif2swf$(E)'
9662 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
9663 echo "* Disabling gif2swf tool..."
9669 PNG2SWF='png2swf$(E)'
9670 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
9671 echo "* Disabling png2swf tool..."
9677 if test "x${MISSINGLIBS}" '!=' "x"; then
9678 if test "x${PARTIAL}" '=' "x"; then
9679 echo "* (never mind)"
9681 echo "***************************************************"
9684 # ------------------------------------------------------------------
9686 if test -f "release.in"; then release_in="./release"; fi
9687 if test -f "wx/Makefile.in"; then wx_in="wx/Makefile"; fi
9688 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"
9689 ac_config_files="$ac_config_files ${FILES}"
9691 cat >confcache <<\_ACEOF
9692 # This file is a shell script that caches the results of configure
9693 # tests run on this system so they can be shared between configure
9694 # scripts and configure runs, see configure's option --config-cache.
9695 # It is not useful on other systems. If it contains results you don't
9696 # want to keep, you may remove or edit it.
9698 # config.status only pays attention to the cache file if you give it
9699 # the --recheck option to rerun configure.
9701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9707 # The following way of writing the cache mishandles newlines in values,
9708 # but we know of no workaround that is simple, portable, and efficient.
9709 # So, we kill variables containing newlines.
9710 # Ultrix sh set writes to stderr and can't be redirected directly,
9711 # and sets the high bit in the cache file unless we assign to the vars.
9713 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9714 eval ac_val=\$$ac_var
9718 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9722 _ | IFS | as_nl) ;; #(
9723 *) $as_unset $ac_var ;;
9729 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9730 *${as_nl}ac_space=\ *)
9731 # `set' does not quote correctly, so add quotes (double-quote
9732 # substitution turns \\\\ into \\, and sed turns \\ into \).
9735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9738 # `set' quotes correctly as required by POSIX, so do not add quotes.
9739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9748 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9750 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9752 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9753 if test -w "$cache_file"; then
9754 test "x$cache_file" != "x/dev/null" &&
9755 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9756 echo "$as_me: updating cache $cache_file" >&6;}
9757 cat confcache >$cache_file
9759 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9760 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9766 # Let make expand exec_prefix.
9767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9769 DEFS=-DHAVE_CONFIG_H
9773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9774 # 1. Remove the extension, and $U if already installed.
9775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9776 ac_i=`echo "$ac_i" | sed "$ac_script"`
9777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9778 # will be set to the directory where LIBOBJS objects are built.
9779 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9780 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9784 LTLIBOBJS=$ac_ltlibobjs
9788 : ${CONFIG_STATUS=./config.status}
9789 ac_clean_files_save=$ac_clean_files
9790 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9791 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9792 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9793 cat >$CONFIG_STATUS <<_ACEOF
9795 # Generated by $as_me.
9796 # Run this file to recreate the current configuration.
9797 # Compiler output produced by configure, useful for debugging
9798 # configure, is in config.log if it exists.
9803 SHELL=\${CONFIG_SHELL-$SHELL}
9806 cat >>$CONFIG_STATUS <<\_ACEOF
9807 ## --------------------- ##
9808 ## M4sh Initialization. ##
9809 ## --------------------- ##
9811 # Be more Bourne compatible
9812 DUALCASE=1; export DUALCASE # for MKS sh
9813 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9816 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9817 # is contrary to our usage. Disable this feature.
9818 alias -g '${1+"$@"}'='"$@"'
9819 setopt NO_GLOB_SUBST
9821 case `(set -o) 2>/dev/null` in
9822 *posix*) set -o posix ;;
9831 # Avoid depending upon Character Ranges.
9832 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9833 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9834 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9835 as_cr_digits='0123456789'
9836 as_cr_alnum=$as_cr_Letters$as_cr_digits
9838 # The user is always right.
9839 if test "${PATH_SEPARATOR+set}" != set; then
9840 echo "#! /bin/sh" >conf$$.sh
9841 echo "exit 0" >>conf$$.sh
9843 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9851 # Support unset when possible.
9852 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9860 # We need space, tab and new line, in precisely that order. Quoting is
9861 # there to prevent editors from complaining about space-tab.
9862 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9863 # splitting by setting IFS to empty value.)
9868 # Find who we are. Look in the path if we contain no directory separator.
9870 *[\\/]* ) as_myself=$0 ;;
9871 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875 test -z "$as_dir" && as_dir=.
9876 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9882 # We did not find ourselves, most probably we were run as `sh COMMAND'
9883 # in which case we are not to be found in the path.
9884 if test "x$as_myself" = x; then
9887 if test ! -f "$as_myself"; then
9888 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9889 { (exit 1); exit 1; }
9892 # Work around bugs in pre-3.0 UWIN ksh.
9893 for as_var in ENV MAIL MAILPATH
9894 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9902 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9903 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9904 LC_TELEPHONE LC_TIME
9906 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9907 eval $as_var=C; export $as_var
9909 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9913 # Required to use basename.
9914 if expr a : '\(a\)' >/dev/null 2>&1 &&
9915 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9921 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9922 as_basename=basename
9928 # Name of the executable.
9929 as_me=`$as_basename -- "$0" ||
9930 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9931 X"$0" : 'X\(//\)$' \| \
9932 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9934 sed '/^.*\/\([^/][^/]*\)\/*$/{
9955 test "x$as_lineno_1" != "x$as_lineno_2" &&
9956 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9958 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9959 # uniformly replaced by the line number. The first 'sed' inserts a
9960 # line-number line after each line using $LINENO; the second 'sed'
9961 # does the real work. The second script uses 'N' to pair each
9962 # line-number line with the line containing $LINENO, and appends
9963 # trailing '-' during substitution so that $LINENO is not a special
9965 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9966 # scripts with optimization help from Paolo Bonzini. Blame Lee
9967 # E. McMahon (1931-1989) for sed's syntax. :-)
9979 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9983 chmod +x "$as_me.lineno" ||
9984 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9985 { (exit 1); exit 1; }; }
9987 # Don't try to exec as it changes $[0], causing all sort of problems
9988 # (the dirname of $[0] is not the place where we might find the
9989 # original and so on. Autoconf is especially sensitive to this).
9991 # Exit status is that of the last command.
9996 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10002 ECHO_C= ECHO_N= ECHO_T=
10003 case `echo -n x` in
10005 case `echo 'x\c'` in
10006 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10013 if expr a : '\(a\)' >/dev/null 2>&1 &&
10014 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10020 rm -f conf$$ conf$$.exe conf$$.file
10021 if test -d conf$$.dir; then
10022 rm -f conf$$.dir/conf$$.file
10028 if ln -s conf$$.file conf$$ 2>/dev/null; then
10030 # ... but there are two gotchas:
10031 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10032 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10033 # In both cases, we have to default to `cp -p'.
10034 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10036 elif ln conf$$.file conf$$ 2>/dev/null; then
10041 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10042 rmdir conf$$.dir 2>/dev/null
10044 if mkdir -p . 2>/dev/null; then
10047 test -d ./-p && rmdir ./-p
10051 if test -x / >/dev/null 2>&1; then
10052 as_test_x='test -x'
10054 if ls -dL / >/dev/null 2>&1; then
10061 if test -d "$1"; then
10067 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10068 ???[sx]*):;;*)false;;esac;fi
10072 as_executable_p=$as_test_x
10074 # Sed expression to map a string onto a valid CPP name.
10075 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10077 # Sed expression to map a string onto a valid variable name.
10078 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10083 # Save the log message, to keep $[0] and so on meaningful, and to
10084 # report actual input values of CONFIG_FILES etc. instead of their
10085 # values after options handling.
10087 This file was extended by $as_me, which was
10088 generated by GNU Autoconf 2.61. Invocation command line was
10090 CONFIG_FILES = $CONFIG_FILES
10091 CONFIG_HEADERS = $CONFIG_HEADERS
10092 CONFIG_LINKS = $CONFIG_LINKS
10093 CONFIG_COMMANDS = $CONFIG_COMMANDS
10096 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10101 cat >>$CONFIG_STATUS <<_ACEOF
10102 # Files that config.status was made for.
10103 config_files="$ac_config_files"
10104 config_headers="$ac_config_headers"
10108 cat >>$CONFIG_STATUS <<\_ACEOF
10110 \`$as_me' instantiates files from templates according to the
10111 current configuration.
10113 Usage: $0 [OPTIONS] [FILE]...
10115 -h, --help print this help, then exit
10116 -V, --version print version number and configuration settings, then exit
10117 -q, --quiet do not print progress messages
10118 -d, --debug don't remove temporary files
10119 --recheck update $as_me by reconfiguring in the same conditions
10120 --file=FILE[:TEMPLATE]
10121 instantiate the configuration file FILE
10122 --header=FILE[:TEMPLATE]
10123 instantiate the configuration header FILE
10125 Configuration files:
10128 Configuration headers:
10131 Report bugs to <bug-autoconf@gnu.org>."
10134 cat >>$CONFIG_STATUS <<_ACEOF
10137 configured by $0, generated by GNU Autoconf 2.61,
10138 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10140 Copyright (C) 2006 Free Software Foundation, Inc.
10141 This config.status script is free software; the Free Software Foundation
10142 gives unlimited permission to copy, distribute and modify it."
10149 cat >>$CONFIG_STATUS <<\_ACEOF
10150 # If no file are specified by the user, then we need to provide default
10151 # value. By we need to know if files were specified by the user.
10157 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10158 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10169 # Handling of the options.
10170 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10172 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10173 echo "$ac_cs_version"; exit ;;
10174 --debug | --debu | --deb | --de | --d | -d )
10176 --file | --fil | --fi | --f )
10178 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10179 ac_need_defaults=false;;
10180 --header | --heade | --head | --hea )
10182 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10183 ac_need_defaults=false;;
10185 # Conflict between --help and --header
10186 { echo "$as_me: error: ambiguous option: $1
10187 Try \`$0 --help' for more information." >&2
10188 { (exit 1); exit 1; }; };;
10189 --help | --hel | -h )
10190 echo "$ac_cs_usage"; exit ;;
10191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10192 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10195 # This is an error.
10196 -*) { echo "$as_me: error: unrecognized option: $1
10197 Try \`$0 --help' for more information." >&2
10198 { (exit 1); exit 1; }; } ;;
10200 *) ac_config_targets="$ac_config_targets $1"
10201 ac_need_defaults=false ;;
10207 ac_configure_extra_args=
10209 if $ac_cs_silent; then
10211 ac_configure_extra_args="$ac_configure_extra_args --silent"
10215 cat >>$CONFIG_STATUS <<_ACEOF
10216 if \$ac_cs_recheck; then
10217 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10218 CONFIG_SHELL=$SHELL
10219 export CONFIG_SHELL
10220 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10224 cat >>$CONFIG_STATUS <<\_ACEOF
10228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10229 ## Running $as_me. ##
10235 cat >>$CONFIG_STATUS <<_ACEOF
10238 cat >>$CONFIG_STATUS <<\_ACEOF
10240 # Handling of arguments.
10241 for ac_config_target in $ac_config_targets
10243 case $ac_config_target in
10244 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10245 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10247 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10248 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10249 { (exit 1); exit 1; }; };;
10254 # If the user did not use the arguments to specify the items to instantiate,
10255 # then the envvar interface is used. Set only those that are not.
10256 # We use the long form for the default assignment because of an extremely
10257 # bizarre bug on SunOS 4.1.3.
10258 if $ac_need_defaults; then
10259 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10260 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10263 # Have a temporary directory for convenience. Make it in the build tree
10264 # simply because there is no reason against having it here, and in addition,
10265 # creating and moving files from /tmp can sometimes cause problems.
10266 # Hook for its removal unless debugging.
10267 # Note that there is a small window in which the directory will not be cleaned:
10268 # after its creation but before its name has been assigned to `$tmp'.
10272 trap 'exit_status=$?
10273 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10275 trap '{ (exit 1); exit 1; }' 1 2 13 15
10277 # Create a (secure) tmp directory for tmp files.
10280 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10281 test -n "$tmp" && test -d "$tmp"
10284 tmp=./conf$$-$RANDOM
10285 (umask 077 && mkdir "$tmp")
10288 echo "$me: cannot create a temporary directory in ." >&2
10289 { (exit 1); exit 1; }
10293 # Set up the sed scripts for CONFIG_FILES section.
10296 # No need to generate the scripts if there are no CONFIG_FILES.
10297 # This happens for instance when ./config.status config.h
10298 if test -n "$CONFIG_FILES"; then
10305 for ac_last_try in false false false false false :; do
10306 cat >conf$$subs.sed <<_ACEOF
10307 SHELL!$SHELL$ac_delim
10308 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10309 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10310 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10311 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10312 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10313 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10314 exec_prefix!$exec_prefix$ac_delim
10315 prefix!$prefix$ac_delim
10316 program_transform_name!$program_transform_name$ac_delim
10317 bindir!$bindir$ac_delim
10318 sbindir!$sbindir$ac_delim
10319 libexecdir!$libexecdir$ac_delim
10320 datarootdir!$datarootdir$ac_delim
10321 datadir!$datadir$ac_delim
10322 sysconfdir!$sysconfdir$ac_delim
10323 sharedstatedir!$sharedstatedir$ac_delim
10324 localstatedir!$localstatedir$ac_delim
10325 includedir!$includedir$ac_delim
10326 oldincludedir!$oldincludedir$ac_delim
10327 docdir!$docdir$ac_delim
10328 infodir!$infodir$ac_delim
10329 htmldir!$htmldir$ac_delim
10330 dvidir!$dvidir$ac_delim
10331 pdfdir!$pdfdir$ac_delim
10332 psdir!$psdir$ac_delim
10333 libdir!$libdir$ac_delim
10334 localedir!$localedir$ac_delim
10335 mandir!$mandir$ac_delim
10336 DEFS!$DEFS$ac_delim
10337 ECHO_C!$ECHO_C$ac_delim
10338 ECHO_N!$ECHO_N$ac_delim
10339 ECHO_T!$ECHO_T$ac_delim
10340 LIBS!$LIBS$ac_delim
10341 build_alias!$build_alias$ac_delim
10342 host_alias!$host_alias$ac_delim
10343 target_alias!$target_alias$ac_delim
10344 build!$build$ac_delim
10345 build_cpu!$build_cpu$ac_delim
10346 build_vendor!$build_vendor$ac_delim
10347 build_os!$build_os$ac_delim
10348 host!$host$ac_delim
10349 host_cpu!$host_cpu$ac_delim
10350 host_vendor!$host_vendor$ac_delim
10351 host_os!$host_os$ac_delim
10352 SHARED!$SHARED$ac_delim
10354 CFLAGS!$CFLAGS$ac_delim
10355 LDFLAGS!$LDFLAGS$ac_delim
10356 CPPFLAGS!$CPPFLAGS$ac_delim
10357 ac_ct_CC!$ac_ct_CC$ac_delim
10358 EXEEXT!$EXEEXT$ac_delim
10359 OBJEXT!$OBJEXT$ac_delim
10361 CXXFLAGS!$CXXFLAGS$ac_delim
10362 ac_ct_CXX!$ac_ct_CXX$ac_delim
10364 RANLIB!$RANLIB$ac_delim
10365 SET_MAKE!$SET_MAKE$ac_delim
10366 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10367 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10368 INSTALL_DATA!$INSTALL_DATA$ac_delim
10369 LN_S!$LN_S$ac_delim
10370 UNCOMPRESS!$UNCOMPRESS$ac_delim
10371 AREXT!$AREXT$ac_delim
10373 SLEXT!$SLEXT$ac_delim
10374 CXXLIBS!$CXXLIBS$ac_delim
10375 STRIP!$STRIP$ac_delim
10376 target!$target$ac_delim
10377 target_cpu!$target_cpu$ac_delim
10378 target_vendor!$target_vendor$ac_delim
10379 target_os!$target_os$ac_delim
10380 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
10381 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
10382 GREP!$GREP$ac_delim
10383 EGREP!$EGREP$ac_delim
10384 PACKAGE!$PACKAGE$ac_delim
10385 VERSION!$VERSION$ac_delim
10386 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
10387 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
10388 lame_objects!$lame_objects$ac_delim
10389 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
10390 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
10391 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
10392 USE_GZIP!$USE_GZIP$ac_delim
10393 PYTHON_LIB!$PYTHON_LIB$ac_delim
10394 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
10395 PDF2SWF!$PDF2SWF$ac_delim
10396 LIBPDF!$LIBPDF$ac_delim
10397 JPEG2SWF!$JPEG2SWF$ac_delim
10398 GIF2SWF!$GIF2SWF$ac_delim
10399 PNG2SWF!$PNG2SWF$ac_delim
10400 LIBOBJS!$LIBOBJS$ac_delim
10401 LTLIBOBJS!$LTLIBOBJS$ac_delim
10404 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
10406 elif $ac_last_try; then
10407 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10408 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10409 { (exit 1); exit 1; }; }
10411 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10415 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10416 if test -n "$ac_eof"; then
10417 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10418 ac_eof=`expr $ac_eof + 1`
10421 cat >>$CONFIG_STATUS <<_ACEOF
10422 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10423 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10426 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10427 s/^/s,@/; s/!/@,|#_!!_#|/
10430 s/'"$ac_delim"'$/,g/; t
10432 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10433 ' >>$CONFIG_STATUS <conf$$subs.sed
10434 rm -f conf$$subs.sed
10435 cat >>$CONFIG_STATUS <<_ACEOF
10442 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10443 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10444 # trailing colons and then remove the whole line if VPATH becomes empty
10445 # (actually we leave an empty line to preserve line numbers).
10446 if test "x$srcdir" = x.; then
10447 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10448 s/:*\$(srcdir):*/:/
10449 s/:*\${srcdir}:*/:/
10451 s/^\([^=]*=[ ]*\):*/\1/
10457 cat >>$CONFIG_STATUS <<\_ACEOF
10458 fi # test -n "$CONFIG_FILES"
10461 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
10464 :[FHLC]) ac_mode=$ac_tag; continue;;
10466 case $ac_mode$ac_tag in
10468 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10469 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10470 { (exit 1); exit 1; }; };;
10471 :[FH]-) ac_tag=-:-;;
10472 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10489 -) ac_f="$tmp/stdin";;
10490 *) # Look for the file first in the build tree, then in the source tree
10491 # (if the path is not absolute). The absolute path cannot be DOS-style,
10492 # because $ac_f cannot contain `:'.
10496 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10498 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10499 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10500 { (exit 1); exit 1; }; };;
10502 ac_file_inputs="$ac_file_inputs $ac_f"
10505 # Let's still pretend it is `configure' which instantiates (i.e., don't
10506 # use $as_me), people would be surprised to read:
10507 # /* config.h. Generated by config.status. */
10508 configure_input="Generated from "`IFS=:
10509 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10510 if test x"$ac_file" != x-; then
10511 configure_input="$ac_file. $configure_input"
10512 { echo "$as_me:$LINENO: creating $ac_file" >&5
10513 echo "$as_me: creating $ac_file" >&6;}
10517 *:-:* | *:-) cat >"$tmp/stdin";;
10522 ac_dir=`$as_dirname -- "$ac_file" ||
10523 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10524 X"$ac_file" : 'X\(//\)[^/]' \| \
10525 X"$ac_file" : 'X\(//\)$' \| \
10526 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10532 /^X\(\/\/\)[^/].*/{
10547 -*) as_dir=./$as_dir;;
10549 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10553 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10554 *) as_qdir=$as_dir;;
10556 as_dirs="'$as_qdir' $as_dirs"
10557 as_dir=`$as_dirname -- "$as_dir" ||
10558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10559 X"$as_dir" : 'X\(//\)[^/]' \| \
10560 X"$as_dir" : 'X\(//\)$' \| \
10561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10567 /^X\(\/\/\)[^/].*/{
10580 test -d "$as_dir" && break
10582 test -z "$as_dirs" || eval "mkdir $as_dirs"
10583 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10584 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10585 { (exit 1); exit 1; }; }; }
10589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10592 # A ".." for each directory in $ac_dir_suffix.
10593 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10594 case $ac_top_builddir_sub in
10595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10599 ac_abs_top_builddir=$ac_pwd
10600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10601 # for backward compatibility:
10602 ac_top_builddir=$ac_top_build_prefix
10605 .) # We are building in place.
10607 ac_top_srcdir=$ac_top_builddir_sub
10608 ac_abs_top_srcdir=$ac_pwd ;;
10609 [\\/]* | ?:[\\/]* ) # Absolute name.
10610 ac_srcdir=$srcdir$ac_dir_suffix;
10611 ac_top_srcdir=$srcdir
10612 ac_abs_top_srcdir=$srcdir ;;
10613 *) # Relative name.
10614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10615 ac_top_srcdir=$ac_top_build_prefix$srcdir
10616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10628 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10629 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10633 cat >>$CONFIG_STATUS <<\_ACEOF
10634 # If the template does not know about datarootdir, expand it.
10635 # FIXME: This hack should be removed a few years after 2.60.
10636 ac_datarootdir_hack=; ac_datarootdir_seen=
10638 case `sed -n '/datarootdir/ {
10647 ' $ac_file_inputs` in
10648 *datarootdir*) ac_datarootdir_seen=yes;;
10649 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10650 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10651 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10653 cat >>$CONFIG_STATUS <<_ACEOF
10654 ac_datarootdir_hack='
10655 s&@datadir@&$datadir&g
10656 s&@docdir@&$docdir&g
10657 s&@infodir@&$infodir&g
10658 s&@localedir@&$localedir&g
10659 s&@mandir@&$mandir&g
10660 s&\\\${datarootdir}&$datarootdir&g' ;;
10664 # Neutralize VPATH when `$srcdir' = `.'.
10665 # Shell code in configure.ac might set extrasub.
10666 # FIXME: do we really want to maintain this feature?
10667 cat >>$CONFIG_STATUS <<_ACEOF
10671 cat >>$CONFIG_STATUS <<\_ACEOF
10673 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10674 s&@configure_input@&$configure_input&;t t
10675 s&@top_builddir@&$ac_top_builddir_sub&;t t
10676 s&@srcdir@&$ac_srcdir&;t t
10677 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10678 s&@top_srcdir@&$ac_top_srcdir&;t t
10679 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10680 s&@builddir@&$ac_builddir&;t t
10681 s&@abs_builddir@&$ac_abs_builddir&;t t
10682 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10683 s&@INSTALL@&$ac_INSTALL&;t t
10684 $ac_datarootdir_hack
10685 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
10687 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10688 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10689 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10690 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10691 which seems to be undefined. Please make sure it is defined." >&5
10692 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10693 which seems to be undefined. Please make sure it is defined." >&2;}
10697 -) cat "$tmp/out"; rm -f "$tmp/out";;
10698 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10707 # Transform confdefs.h into a sed script `conftest.defines', that
10708 # substitutes the proper values into config.h.in to produce config.h.
10709 rm -f conftest.defines conftest.tail
10710 # First, append a space to every undef/define line, to ease matching.
10711 echo 's/$/ /' >conftest.defines
10712 # Then, protect against being on the right side of a sed subst, or in
10713 # an unquoted here document, in config.status. If some macros were
10714 # called several times there might be several #defines for the same
10715 # symbol, which is useless. But do not sort them, since the last
10716 # AC_DEFINE must be honored.
10717 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10718 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10719 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10720 # PARAMS is the parameter list in the macro definition--in most cases, it's
10721 # just an empty string.
10722 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
10723 ac_dB='\\)[ (].*,\\1define\\2'
10731 s/^[ ]*#[ ]*define[ ][ ]*//
10736 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10737 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10738 ' >>conftest.defines
10740 # Remove the space that was appended to ease matching.
10741 # Then replace #undef with comments. This is necessary, for
10742 # example, in the case of _POSIX_SOURCE, which is predefined and required
10743 # on some systems where configure will not decide to define it.
10744 # (The regexp can be short, since the line contains either #define or #undef.)
10746 s,^[ #]*u.*,/* & */,' >>conftest.defines
10748 # Break up conftest.defines:
10749 ac_max_sed_lines=50
10751 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10752 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10753 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10755 ac_in='$ac_file_inputs'
10756 ac_out='"$tmp/out1"'
10757 ac_nxt='"$tmp/out2"'
10761 # Write a here document:
10762 cat >>$CONFIG_STATUS <<_ACEOF
10763 # First, check the format of the line:
10764 cat >"\$tmp/defines.sed" <<\\CEOF
10765 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10766 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10770 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10772 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10773 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10774 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10775 grep . conftest.tail >/dev/null || break
10776 rm -f conftest.defines
10777 mv conftest.tail conftest.defines
10779 rm -f conftest.defines conftest.tail
10781 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10782 cat >>$CONFIG_STATUS <<\_ACEOF
10783 if test x"$ac_file" != x-; then
10784 echo "/* $configure_input */" >"$tmp/config.h"
10785 cat "$ac_result" >>"$tmp/config.h"
10786 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10787 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10788 echo "$as_me: $ac_file is unchanged" >&6;}
10791 mv "$tmp/config.h" $ac_file
10794 echo "/* $configure_input */"
10806 { (exit 0); exit 0; }
10808 chmod +x $CONFIG_STATUS
10809 ac_clean_files=$ac_clean_files_save
10812 # configure is writing to config.log, and then calls config.status.
10813 # config.status does its own redirection, appending to config.log.
10814 # Unfortunately, on DOS this fails, as config.log is still kept open
10815 # by configure, so config.status won't be able to write to it; its
10816 # output is simply discarded. So we exec the FD to /dev/null,
10817 # effectively closing config.log, so it can be properly (re)opened and
10818 # appended to by config.status. When coming back to configure, we
10819 # need to make the FD available again.
10820 if test "$no_create" != yes; then
10822 ac_config_status_args=
10823 test "$silent" = yes &&
10824 ac_config_status_args="$ac_config_status_args --quiet"
10826 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10828 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10829 # would make configure fail if this is the last instruction.
10830 $ac_cs_success || { (exit 1); exit 1; }
10836 # On development trees, create snapshots of config.status
10838 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
10839 if test "x${MINGW}" = "xyes"; then
10840 echo cp config.status config.status.win32
10841 cp config.status config.status.win32
10843 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
10844 echo cp config.status config.status.linux
10845 cp config.status config.status.linux
10847 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
10848 echo cp config.status config.status.debug
10849 cp config.status config.status.debug
10851 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
10852 echo cp config.status config.status.optimize
10853 cp config.status config.status.optimize