2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="src/"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
712 ac_precious_vars='build_alias
726 # Initialize some variables set by options.
728 ac_init_version=false
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
738 program_transform_name=s,x,x,
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir='${exec_prefix}/bin'
753 sbindir='${exec_prefix}/sbin'
754 libexecdir='${exec_prefix}/libexec'
755 datarootdir='${prefix}/share'
756 datadir='${datarootdir}'
757 sysconfdir='${prefix}/etc'
758 sharedstatedir='${prefix}/com'
759 localstatedir='${prefix}/var'
760 includedir='${prefix}/include'
761 oldincludedir='/usr/include'
762 docdir='${datarootdir}/doc/${PACKAGE}'
763 infodir='${datarootdir}/info'
768 libdir='${exec_prefix}/lib'
769 localedir='${datarootdir}/locale'
770 mandir='${datarootdir}/man'
776 # If the previous option needs an argument, assign it.
777 if test -n "$ac_prev"; then
778 eval $ac_prev=\$ac_option
784 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
788 # Accept the important Cygnus configure options, so we can diagnose typos.
790 case $ac_dashdash$ac_option in
794 -bindir | --bindir | --bindi | --bind | --bin | --bi)
796 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799 -build | --build | --buil | --bui | --bu)
800 ac_prev=build_alias ;;
801 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802 build_alias=$ac_optarg ;;
804 -cache-file | --cache-file | --cache-fil | --cache-fi \
805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806 ac_prev=cache_file ;;
807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809 cache_file=$ac_optarg ;;
812 cache_file=config.cache ;;
814 -datadir | --datadir | --datadi | --datad)
816 -datadir=* | --datadir=* | --datadi=* | --datad=*)
817 datadir=$ac_optarg ;;
819 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820 | --dataroo | --dataro | --datar)
821 ac_prev=datarootdir ;;
822 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824 datarootdir=$ac_optarg ;;
826 -disable-* | --disable-*)
827 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
830 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
831 { (exit 1); exit 1; }; }
832 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
833 eval enable_$ac_feature=no ;;
835 -docdir | --docdir | --docdi | --doc | --do)
837 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
840 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
842 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
845 -enable-* | --enable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=\$ac_optarg ;;
854 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
855 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
856 | --exec | --exe | --ex)
857 ac_prev=exec_prefix ;;
858 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
859 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
860 | --exec=* | --exe=* | --ex=*)
861 exec_prefix=$ac_optarg ;;
863 -gas | --gas | --ga | --g)
864 # Obsolete; use --with-gas.
867 -help | --help | --hel | --he | -h)
869 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
870 ac_init_help=recursive ;;
871 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
872 ac_init_help=short ;;
874 -host | --host | --hos | --ho)
875 ac_prev=host_alias ;;
876 -host=* | --host=* | --hos=* | --ho=*)
877 host_alias=$ac_optarg ;;
879 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
881 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
883 htmldir=$ac_optarg ;;
885 -includedir | --includedir | --includedi | --included | --include \
886 | --includ | --inclu | --incl | --inc)
887 ac_prev=includedir ;;
888 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
889 | --includ=* | --inclu=* | --incl=* | --inc=*)
890 includedir=$ac_optarg ;;
892 -infodir | --infodir | --infodi | --infod | --info | --inf)
894 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
895 infodir=$ac_optarg ;;
897 -libdir | --libdir | --libdi | --libd)
899 -libdir=* | --libdir=* | --libdi=* | --libd=*)
902 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
903 | --libexe | --libex | --libe)
904 ac_prev=libexecdir ;;
905 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
906 | --libexe=* | --libex=* | --libe=*)
907 libexecdir=$ac_optarg ;;
909 -localedir | --localedir | --localedi | --localed | --locale)
911 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
912 localedir=$ac_optarg ;;
914 -localstatedir | --localstatedir | --localstatedi | --localstated \
915 | --localstate | --localstat | --localsta | --localst | --locals)
916 ac_prev=localstatedir ;;
917 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
918 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
919 localstatedir=$ac_optarg ;;
921 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
923 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
927 # Obsolete; use --without-fp.
930 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
931 | --no-cr | --no-c | -n)
934 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
938 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
939 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
940 | --oldin | --oldi | --old | --ol | --o)
941 ac_prev=oldincludedir ;;
942 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
943 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
944 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
945 oldincludedir=$ac_optarg ;;
947 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
949 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
952 -program-prefix | --program-prefix | --program-prefi | --program-pref \
953 | --program-pre | --program-pr | --program-p)
954 ac_prev=program_prefix ;;
955 -program-prefix=* | --program-prefix=* | --program-prefi=* \
956 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
957 program_prefix=$ac_optarg ;;
959 -program-suffix | --program-suffix | --program-suffi | --program-suff \
960 | --program-suf | --program-su | --program-s)
961 ac_prev=program_suffix ;;
962 -program-suffix=* | --program-suffix=* | --program-suffi=* \
963 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
964 program_suffix=$ac_optarg ;;
966 -program-transform-name | --program-transform-name \
967 | --program-transform-nam | --program-transform-na \
968 | --program-transform-n | --program-transform- \
969 | --program-transform | --program-transfor \
970 | --program-transfo | --program-transf \
971 | --program-trans | --program-tran \
972 | --progr-tra | --program-tr | --program-t)
973 ac_prev=program_transform_name ;;
974 -program-transform-name=* | --program-transform-name=* \
975 | --program-transform-nam=* | --program-transform-na=* \
976 | --program-transform-n=* | --program-transform-=* \
977 | --program-transform=* | --program-transfor=* \
978 | --program-transfo=* | --program-transf=* \
979 | --program-trans=* | --program-tran=* \
980 | --progr-tra=* | --program-tr=* | --program-t=*)
981 program_transform_name=$ac_optarg ;;
983 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
985 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
988 -psdir | --psdir | --psdi | --psd | --ps)
990 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994 | -silent | --silent | --silen | --sile | --sil)
997 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
999 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1001 sbindir=$ac_optarg ;;
1003 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1004 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1005 | --sharedst | --shareds | --shared | --share | --shar \
1007 ac_prev=sharedstatedir ;;
1008 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1009 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1010 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1012 sharedstatedir=$ac_optarg ;;
1014 -site | --site | --sit)
1016 -site=* | --site=* | --sit=*)
1019 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1021 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1022 srcdir=$ac_optarg ;;
1024 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1025 | --syscon | --sysco | --sysc | --sys | --sy)
1026 ac_prev=sysconfdir ;;
1027 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1028 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1029 sysconfdir=$ac_optarg ;;
1031 -target | --target | --targe | --targ | --tar | --ta | --t)
1032 ac_prev=target_alias ;;
1033 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1034 target_alias=$ac_optarg ;;
1036 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1039 -version | --version | --versio | --versi | --vers | -V)
1040 ac_init_version=: ;;
1043 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1049 eval with_$ac_package=\$ac_optarg ;;
1051 -without-* | --without-*)
1052 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid package name: $ac_package" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058 eval with_$ac_package=no ;;
1061 # Obsolete; use --with-x.
1064 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065 | --x-incl | --x-inc | --x-in | --x-i)
1066 ac_prev=x_includes ;;
1067 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069 x_includes=$ac_optarg ;;
1071 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073 ac_prev=x_libraries ;;
1074 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076 x_libraries=$ac_optarg ;;
1078 -*) { echo "$as_me: error: unrecognized option: $ac_option
1079 Try \`$0 --help' for more information." >&2
1080 { (exit 1); exit 1; }; }
1084 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1087 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1088 { (exit 1); exit 1; }; }
1089 eval $ac_envvar=\$ac_optarg
1090 export $ac_envvar ;;
1093 # FIXME: should be removed in autoconf 3.0.
1094 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1103 if test -n "$ac_prev"; then
1104 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105 { echo "$as_me: error: missing argument to $ac_option" >&2
1106 { (exit 1); exit 1; }; }
1109 # Be sure to have absolute directory names.
1110 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1111 datadir sysconfdir sharedstatedir localstatedir includedir \
1112 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1113 libdir localedir mandir
1115 eval ac_val=\$$ac_var
1117 [\\/$]* | ?:[\\/]* ) continue;;
1118 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1120 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1121 { (exit 1); exit 1; }; }
1124 # There might be people who depend on the old broken behavior: `$host'
1125 # used to hold the argument of --host etc.
1126 # FIXME: To remove some day.
1129 target=$target_alias
1131 # FIXME: To remove some day.
1132 if test "x$host_alias" != x; then
1133 if test "x$build_alias" = x; then
1134 cross_compiling=maybe
1135 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1136 If a cross compiler is detected then cross compile mode will be used." >&2
1137 elif test "x$build_alias" != "x$host_alias"; then
1143 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1145 test "$silent" = yes && exec 6>/dev/null
1148 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1149 ac_ls_di=`ls -di .` &&
1150 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1151 { echo "$as_me: error: Working directory cannot be determined" >&2
1152 { (exit 1); exit 1; }; }
1153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1154 { echo "$as_me: error: pwd does not report name of working directory" >&2
1155 { (exit 1); exit 1; }; }
1158 # Find the source files, if location was not specified.
1159 if test -z "$srcdir"; then
1160 ac_srcdir_defaulted=yes
1161 # Try the directory containing this script, then the parent directory.
1162 ac_confdir=`$as_dirname -- "$0" ||
1163 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164 X"$0" : 'X\(//\)[^/]' \| \
1165 X"$0" : 'X\(//\)$' \| \
1166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1190 ac_srcdir_defaulted=no
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1194 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1195 { (exit 1); exit 1; }; }
1197 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1199 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1200 { (exit 1); exit 1; }; }
1202 # When building in place, set srcdir=.
1203 if test "$ac_abs_confdir" = "$ac_pwd"; then
1206 # Remove unnecessary trailing slashes from srcdir.
1207 # Double slashes in file names in object file debugging info
1208 # mess up M-x gdb in Emacs.
1210 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212 for ac_var in $ac_precious_vars; do
1213 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_env_${ac_var}_value=\$${ac_var}
1215 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1216 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1220 # Report the --help message.
1222 if test "$ac_init_help" = "long"; then
1223 # Omit some internal or obsolete options to make the list less imposing.
1224 # This message is too long to be a string in the A/UX 3.1 sh.
1226 \`configure' configures this package to adapt to many kinds of systems.
1228 Usage: $0 [OPTION]... [VAR=VALUE]...
1230 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1231 VAR=VALUE. See below for descriptions of some of the useful variables.
1233 Defaults for the options are specified in brackets.
1236 -h, --help display this help and exit
1237 --help=short display options specific to this package
1238 --help=recursive display the short help of all the included packages
1239 -V, --version display version information and exit
1240 -q, --quiet, --silent do not print \`checking...' messages
1241 --cache-file=FILE cache test results in FILE [disabled]
1242 -C, --config-cache alias for \`--cache-file=config.cache'
1243 -n, --no-create do not create output files
1244 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1246 Installation directories:
1247 --prefix=PREFIX install architecture-independent files in PREFIX
1248 [$ac_default_prefix]
1249 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1252 By default, \`make install' will install all the files in
1253 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1254 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1255 for instance \`--prefix=\$HOME'.
1257 For better control, use the options below.
1259 Fine tuning of the installation directories:
1260 --bindir=DIR user executables [EPREFIX/bin]
1261 --sbindir=DIR system admin executables [EPREFIX/sbin]
1262 --libexecdir=DIR program executables [EPREFIX/libexec]
1263 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1264 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1265 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1266 --libdir=DIR object code libraries [EPREFIX/lib]
1267 --includedir=DIR C header files [PREFIX/include]
1268 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1269 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1270 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1271 --infodir=DIR info documentation [DATAROOTDIR/info]
1272 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1273 --mandir=DIR man documentation [DATAROOTDIR/man]
1274 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1275 --htmldir=DIR html documentation [DOCDIR]
1276 --dvidir=DIR dvi documentation [DOCDIR]
1277 --pdfdir=DIR pdf documentation [DOCDIR]
1278 --psdir=DIR ps documentation [DOCDIR]
1284 --program-prefix=PREFIX prepend PREFIX to installed program names
1285 --program-suffix=SUFFIX append SUFFIX to installed program names
1286 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1289 --build=BUILD configure for building on BUILD [guessed]
1290 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1291 --target=TARGET configure for building compilers for TARGET [HOST]
1295 if test -n "$ac_init_help"; then
1300 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1301 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1302 --enable-checkmem turn on ccmalloc debugging
1303 --enable-debug turn on debugging
1304 --enable-profiling turn on profiling
1305 --enable-warnings turn on compiler warnings
1306 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1307 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1309 Some influential environment variables:
1310 CC C compiler command
1311 CFLAGS C compiler flags
1312 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1313 nonstandard directory <lib dir>
1314 LIBS libraries to pass to the linker, e.g. -l<library>
1315 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1316 you have headers in a nonstandard directory <include dir>
1317 CXX C++ compiler command
1318 CXXFLAGS C++ compiler flags
1321 Use these variables to override the choices made by `configure' or to help
1322 it to find libraries and programs with nonstandard names/locations.
1328 if test "$ac_init_help" = "recursive"; then
1329 # If there are subdirs, report their specific --help.
1330 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1331 test -d "$ac_dir" || continue
1335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1337 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1338 # A ".." for each directory in $ac_dir_suffix.
1339 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1340 case $ac_top_builddir_sub in
1341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1345 ac_abs_top_builddir=$ac_pwd
1346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1347 # for backward compatibility:
1348 ac_top_builddir=$ac_top_build_prefix
1351 .) # We are building in place.
1353 ac_top_srcdir=$ac_top_builddir_sub
1354 ac_abs_top_srcdir=$ac_pwd ;;
1355 [\\/]* | ?:[\\/]* ) # Absolute name.
1356 ac_srcdir=$srcdir$ac_dir_suffix;
1357 ac_top_srcdir=$srcdir
1358 ac_abs_top_srcdir=$srcdir ;;
1360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1361 ac_top_srcdir=$ac_top_build_prefix$srcdir
1362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1366 cd "$ac_dir" || { ac_status=$?; continue; }
1367 # Check for guested configure.
1368 if test -f "$ac_srcdir/configure.gnu"; then
1370 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1371 elif test -f "$ac_srcdir/configure"; then
1373 $SHELL "$ac_srcdir/configure" --help=recursive
1375 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1377 cd "$ac_pwd" || { ac_status=$?; break; }
1381 test -n "$ac_init_help" && exit $ac_status
1382 if $ac_init_version; then
1385 generated by GNU Autoconf 2.61
1387 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1388 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1389 This configure script is free software; the Free Software Foundation
1390 gives unlimited permission to copy, distribute and modify it.
1394 cat >config.log <<_ACEOF
1395 This file contains any messages produced by compilers while
1396 running configure, to aid debugging if configure makes a mistake.
1398 It was created by $as_me, which was
1399 generated by GNU Autoconf 2.61. Invocation command line was
1411 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1412 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1413 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1414 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1415 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1417 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1418 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1420 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1421 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1422 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1423 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1424 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1425 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1426 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434 test -z "$as_dir" && as_dir=.
1435 echo "PATH: $as_dir"
1451 # Keep a trace of the command line.
1452 # Strip out --no-create and --no-recursion so they do not pile up.
1453 # Strip out --silent because we don't want to record it for future runs.
1454 # Also quote any args containing shell meta-characters.
1455 # Make two passes to allow for proper duplicate-argument suppression.
1459 ac_must_keep_next=false
1465 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1466 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1467 | -silent | --silent | --silen | --sile | --sil)
1470 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1473 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1475 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1476 if test $ac_must_keep_next = true; then
1477 ac_must_keep_next=false # Got value, back to normal.
1480 *=* | --config-cache | -C | -disable-* | --disable-* \
1481 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1482 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1483 | -with-* | --with-* | -without-* | --without-* | --x)
1484 case "$ac_configure_args0 " in
1485 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1488 -* ) ac_must_keep_next=true ;;
1491 ac_configure_args="$ac_configure_args '$ac_arg'"
1496 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1497 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1499 # When interrupted or exit'd, cleanup temporary files, and complete
1500 # config.log. We remove comments because anyway the quotes in there
1501 # would cause problems or look ugly.
1502 # WARNING: Use '\'' to represent an apostrophe within the trap.
1503 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1504 trap 'exit_status=$?
1505 # Save into config.log some information that might help in debugging.
1510 ## ---------------- ##
1511 ## Cache variables. ##
1512 ## ---------------- ##
1515 # The following way of writing the cache mishandles newlines in values,
1517 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1518 eval ac_val=\$$ac_var
1522 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1523 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1526 _ | IFS | as_nl) ;; #(
1527 *) $as_unset $ac_var ;;
1532 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1533 *${as_nl}ac_space=\ *)
1535 "s/'\''/'\''\\\\'\'''\''/g;
1536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1547 ## ----------------- ##
1548 ## Output variables. ##
1549 ## ----------------- ##
1552 for ac_var in $ac_subst_vars
1554 eval ac_val=\$$ac_var
1556 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1558 echo "$ac_var='\''$ac_val'\''"
1562 if test -n "$ac_subst_files"; then
1564 ## ------------------- ##
1565 ## File substitutions. ##
1566 ## ------------------- ##
1569 for ac_var in $ac_subst_files
1571 eval ac_val=\$$ac_var
1573 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1575 echo "$ac_var='\''$ac_val'\''"
1580 if test -s confdefs.h; then
1590 test "$ac_signal" != 0 &&
1591 echo "$as_me: caught signal $ac_signal"
1592 echo "$as_me: exit $exit_status"
1594 rm -f core *.core core.conftest.* &&
1595 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1598 for ac_signal in 1 2 13 15; do
1599 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1603 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1604 rm -f -r conftest* confdefs.h
1606 # Predefined preprocessor variables.
1608 cat >>confdefs.h <<_ACEOF
1609 #define PACKAGE_NAME "$PACKAGE_NAME"
1613 cat >>confdefs.h <<_ACEOF
1614 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_STRING "$PACKAGE_STRING"
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1633 # Let the site file select an alternate cache file if it wants to.
1634 # Prefer explicitly selected file to automatically selected ones.
1635 if test -n "$CONFIG_SITE"; then
1636 set x "$CONFIG_SITE"
1637 elif test "x$prefix" != xNONE; then
1638 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1640 set x "$ac_default_prefix/share/config.site" \
1641 "$ac_default_prefix/etc/config.site"
1646 if test -r "$ac_site_file"; then
1647 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1648 echo "$as_me: loading site script $ac_site_file" >&6;}
1649 sed 's/^/| /' "$ac_site_file" >&5
1654 if test -r "$cache_file"; then
1655 # Some versions of bash will fail to source /dev/null (special
1656 # files actually), so we avoid doing that.
1657 if test -f "$cache_file"; then
1658 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1659 echo "$as_me: loading cache $cache_file" >&6;}
1661 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1662 *) . "./$cache_file";;
1666 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1667 echo "$as_me: creating cache $cache_file" >&6;}
1671 # Check that the precious variables saved in the cache have kept the same
1673 ac_cache_corrupted=false
1674 for ac_var in $ac_precious_vars; do
1675 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1676 eval ac_new_set=\$ac_env_${ac_var}_set
1677 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1678 eval ac_new_val=\$ac_env_${ac_var}_value
1679 case $ac_old_set,$ac_new_set in
1681 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1682 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1683 ac_cache_corrupted=: ;;
1685 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1686 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1687 ac_cache_corrupted=: ;;
1690 if test "x$ac_old_val" != "x$ac_new_val"; then
1691 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1692 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1693 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1694 echo "$as_me: former value: $ac_old_val" >&2;}
1695 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1696 echo "$as_me: current value: $ac_new_val" >&2;}
1697 ac_cache_corrupted=:
1700 # Pass precious variables to config.status.
1701 if test "$ac_new_set" = set; then
1703 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1704 *) ac_arg=$ac_var=$ac_new_val ;;
1706 case " $ac_configure_args " in
1707 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1708 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1712 if $ac_cache_corrupted; then
1713 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1714 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1715 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1716 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1717 { (exit 1); exit 1; }; }
1737 ac_cpp='$CPP $CPPFLAGS'
1738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1745 # Check whether --enable-checkmem was given.
1746 if test "${enable_checkmem+set}" = set; then
1747 enableval=$enable_checkmem; CHECKMEM=true
1750 # Check whether --enable-debug was given.
1751 if test "${enable_debug+set}" = set; then
1752 enableval=$enable_debug; DEBUG=true
1755 # Check whether --enable-profiling was given.
1756 if test "${enable_profiling+set}" = set; then
1757 enableval=$enable_profiling; PROFILING=true
1760 # Check whether --enable-warnings was given.
1761 if test "${enable_warnings+set}" = set; then
1762 enableval=$enable_warnings; ENABLE_WARNINGS=true
1765 # Check whether --enable-optimizations was given.
1766 if test "${enable_optimizations+set}" = set; then
1767 enableval=$enable_optimizations; OPTIMIZE=true
1770 # Check whether --enable-lame was given.
1771 if test "${enable_lame+set}" = set; then
1772 enableval=$enable_lame; DISABLE_LAME=true
1780 # ------------------------------------------------------------------
1782 if test "x${srcdir}" != "x."; then
1783 echo "--srcdir is not supported"
1787 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1788 if test "x$ENABLE_WARNINGS" '!=' "x";then
1789 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1792 if test "x$CHECKMEM" '!=' "x";then
1795 if test "x$PROFILING" '!=' "x";then
1798 if test "x$DEBUG" '!=' "x";then
1799 if test "x$PROFILING" = "x";then
1800 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1801 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1804 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1805 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1806 LDFLAGS="-g -pg $LIBS"
1808 else if test "x$OPTIMIZE" '!=' "x"; then
1809 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1810 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1812 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1813 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1817 #if test "x$OLDGCC" '!=' "x";then
1818 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1819 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1820 # CFLAGS="$CFLAGS -ansi -pendantic"
1821 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1824 export PACKAGE VERSION CFLAGS CXXFLAGS
1828 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1829 if test -f "$ac_dir/install-sh"; then
1831 ac_install_sh="$ac_aux_dir/install-sh -c"
1833 elif test -f "$ac_dir/install.sh"; then
1835 ac_install_sh="$ac_aux_dir/install.sh -c"
1837 elif test -f "$ac_dir/shtool"; then
1839 ac_install_sh="$ac_aux_dir/shtool install -c"
1843 if test -z "$ac_aux_dir"; then
1844 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1845 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1846 { (exit 1); exit 1; }; }
1849 # These three variables are undocumented and unsupported,
1850 # and are intended to be withdrawn in a future Autoconf release.
1851 # They can cause serious problems if a builder's source tree is in a directory
1852 # whose full name contains unusual characters.
1853 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1854 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1855 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1858 # Make sure we can run config.sub.
1859 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1860 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1861 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1862 { (exit 1); exit 1; }; }
1864 { echo "$as_me:$LINENO: checking build system type" >&5
1865 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1866 if test "${ac_cv_build+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 ac_build_alias=$build_alias
1870 test "x$ac_build_alias" = x &&
1871 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1872 test "x$ac_build_alias" = x &&
1873 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1874 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1875 { (exit 1); exit 1; }; }
1876 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1877 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1878 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1879 { (exit 1); exit 1; }; }
1882 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1883 echo "${ECHO_T}$ac_cv_build" >&6; }
1884 case $ac_cv_build in
1886 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1887 echo "$as_me: error: invalid value of canonical build" >&2;}
1888 { (exit 1); exit 1; }; };;
1891 ac_save_IFS=$IFS; IFS='-'
1897 # Remember, the first character of IFS is used to create $*,
1898 # except with old shells:
1901 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1904 { echo "$as_me:$LINENO: checking host system type" >&5
1905 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1906 if test "${ac_cv_host+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 if test "x$host_alias" = x; then
1910 ac_cv_host=$ac_cv_build
1912 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1913 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1914 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1915 { (exit 1); exit 1; }; }
1919 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1920 echo "${ECHO_T}$ac_cv_host" >&6; }
1923 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1924 echo "$as_me: error: invalid value of canonical host" >&2;}
1925 { (exit 1); exit 1; }; };;
1928 ac_save_IFS=$IFS; IFS='-'
1934 # Remember, the first character of IFS is used to create $*,
1935 # except with old shells:
1938 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1948 CXXFLAGS="$CXXFLAGS -fno-rtti"
1950 # Use fink packages if available.
1951 #if test -d /sw/include && test -d /sw/lib; then
1952 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
1953 # LDFLAGS="${LDFLAGS} -L/sw/lib"
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965 if test -n "$ac_tool_prefix"; then
1966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1970 if test "${ac_cv_prog_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 if test -n "$CC"; then
1995 { echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6; }
1998 { echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6; }
2004 if test -z "$ac_cv_prog_CC"; then
2006 # Extract the first word of "gcc", so it can be a program name with args.
2007 set dummy gcc; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$ac_ct_CC"; then
2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_ac_ct_CC="gcc"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6; }
2038 { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2042 if test "x$ac_ct_CC" = x; then
2045 case $cross_compiling:$ac_tool_warned in
2047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2048 whose name does not start with the host triplet. If you think this
2049 configuration is useful to you, please write to autoconf@gnu.org." >&5
2050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2051 whose name does not start with the host triplet. If you think this
2052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2053 ac_tool_warned=yes ;;
2061 if test -z "$CC"; then
2062 if test -n "$ac_tool_prefix"; then
2063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2064 set dummy ${ac_tool_prefix}cc; ac_word=$2
2065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2067 if test "${ac_cv_prog_CC+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 if test -n "$CC"; then
2071 ac_cv_prog_CC="$CC" # Let the user override the test.
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2080 ac_cv_prog_CC="${ac_tool_prefix}cc"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 if test -n "$CC"; then
2092 { echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6; }
2095 { echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6; }
2102 if test -z "$CC"; then
2103 # Extract the first word of "cc", so it can be a program name with args.
2104 set dummy cc; ac_word=$2
2105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 if test -n "$CC"; then
2111 ac_cv_prog_CC="$CC" # Let the user override the test.
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2122 ac_prog_rejected=yes
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 if test $ac_prog_rejected = yes; then
2134 # We found a bogon in the path, so make sure we never use it.
2135 set dummy $ac_cv_prog_CC
2137 if test $# != 0; then
2138 # We chose a different compiler from the bogus one.
2139 # However, it has the same basename, so the bogon will be chosen
2140 # first if we set CC to just the basename; use the full file name.
2142 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2148 if test -n "$CC"; then
2149 { echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6; }
2152 { echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6; }
2158 if test -z "$CC"; then
2159 if test -n "$ac_tool_prefix"; then
2160 for ac_prog in cl.exe
2162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_prog_CC+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 if test -n "$CC"; then
2170 ac_cv_prog_CC="$CC" # Let the user override the test.
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 test -z "$as_dir" && as_dir=.
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 if test -n "$CC"; then
2191 { echo "$as_me:$LINENO: result: $CC" >&5
2192 echo "${ECHO_T}$CC" >&6; }
2194 { echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6; }
2199 test -n "$CC" && break
2202 if test -z "$CC"; then
2204 for ac_prog in cl.exe
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy $ac_prog; ac_word=$2
2208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 if test -n "$ac_ct_CC"; then
2214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 ac_cv_prog_ac_ct_CC="$ac_prog"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2234 if test -n "$ac_ct_CC"; then
2235 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2236 echo "${ECHO_T}$ac_ct_CC" >&6; }
2238 { echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6; }
2243 test -n "$ac_ct_CC" && break
2246 if test "x$ac_ct_CC" = x; then
2249 case $cross_compiling:$ac_tool_warned in
2251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2252 whose name does not start with the host triplet. If you think this
2253 configuration is useful to you, please write to autoconf@gnu.org." >&5
2254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2255 whose name does not start with the host triplet. If you think this
2256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2257 ac_tool_warned=yes ;;
2266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2272 # Provide some information about the compiler.
2273 echo "$as_me:$LINENO: checking for C compiler version" >&5
2274 ac_compiler=`set X $ac_compile; echo $2`
2275 { (ac_try="$ac_compiler --version >&5"
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2281 (eval "$ac_compiler --version >&5") 2>&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }
2285 { (ac_try="$ac_compiler -v >&5"
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2291 (eval "$ac_compiler -v >&5") 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }
2295 { (ac_try="$ac_compiler -V >&5"
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301 (eval "$ac_compiler -V >&5") 2>&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }
2306 cat >conftest.$ac_ext <<_ACEOF
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h. */
2321 ac_clean_files_save=$ac_clean_files
2322 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2323 # Try to create an executable without -o first, disregard a.out.
2324 # It will help us diagnose broken compilers, and finding out an intuition
2326 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2327 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2328 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2330 # List of possible output files, starting from the most likely.
2331 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2332 # only as a last resort. b.out is created by i960 compilers.
2333 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2335 # The IRIX 6 linker writes into existing files which may not be
2336 # executable, retaining their permissions. Remove them first so a
2337 # subsequent execution test works.
2339 for ac_file in $ac_files
2342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2343 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2348 if { (ac_try="$ac_link_default"
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_link_default") 2>&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; then
2358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2361 # so that the user can short-circuit this test for compilers unknown to
2363 for ac_file in $ac_files ''
2365 test -f "$ac_file" || continue
2367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2370 # We found the default executable, but exeext='' is most
2374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 # We set ac_cv_exeext here because the later test for it is not
2379 # safe: cross compilers may not add the suffix if given an `-o'
2380 # argument, so we may need to know it at that point already.
2381 # Even if this section looks crufty: it has the advantage of
2388 test "$ac_cv_exeext" = no && ac_cv_exeext=
2394 { echo "$as_me:$LINENO: result: $ac_file" >&5
2395 echo "${ECHO_T}$ac_file" >&6; }
2396 if test -z "$ac_file"; then
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2400 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2401 See \`config.log' for more details." >&5
2402 echo "$as_me: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&2;}
2404 { (exit 77); exit 77; }; }
2407 ac_exeext=$ac_cv_exeext
2409 # Check that the compiler produces executables we can run. If not, either
2410 # the compiler is broken, or we cross compile.
2411 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2412 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2413 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2414 # If not cross compiling, check that we can run a simple program.
2415 if test "$cross_compiling" != yes; then
2416 if { ac_try='./$ac_file'
2417 { (case "(($ac_try" in
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_try") 2>&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2428 if test "$cross_compiling" = maybe; then
2431 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2432 If you meant to cross compile, use \`--host'.
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2441 { echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6; }
2444 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2445 ac_clean_files=$ac_clean_files_save
2446 # Check that the compiler produces executables we can run. If not, either
2447 # the compiler is broken, or we cross compile.
2448 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2449 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2450 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2451 echo "${ECHO_T}$cross_compiling" >&6; }
2453 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2454 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2455 if { (ac_try="$ac_link"
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_link") 2>&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; then
2465 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2466 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2467 # work properly (i.e., refer to `conftest.exe'), while it won't with
2469 for ac_file in conftest.exe conftest conftest.*; do
2470 test -f "$ac_file" || continue
2472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2473 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2480 See \`config.log' for more details." >&5
2481 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2482 See \`config.log' for more details." >&2;}
2483 { (exit 1); exit 1; }; }
2486 rm -f conftest$ac_cv_exeext
2487 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2488 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2490 rm -f conftest.$ac_ext
2491 EXEEXT=$ac_cv_exeext
2493 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2494 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2495 if test "${ac_cv_objext+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 cat >conftest.$ac_ext <<_ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2513 rm -f conftest.o conftest.obj
2514 if { (ac_try="$ac_compile"
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_compile") 2>&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; then
2524 for ac_file in conftest.o conftest.obj conftest.*; do
2525 test -f "$ac_file" || continue;
2527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2528 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2536 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2539 See \`config.log' for more details." >&2;}
2540 { (exit 1); exit 1; }; }
2543 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2545 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2546 echo "${ECHO_T}$ac_cv_objext" >&6; }
2547 OBJEXT=$ac_cv_objext
2549 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2550 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2551 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 cat >conftest.$ac_ext <<_ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h. */
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2581 grep -v '^ *+' conftest.er1 >conftest.err
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } && {
2586 test -z "$ac_c_werror_flag" ||
2587 test ! -s conftest.err
2588 } && test -s conftest.$ac_objext; then
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2601 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2602 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2603 GCC=`test $ac_compiler_gnu = yes && echo yes`
2604 ac_test_CFLAGS=${CFLAGS+set}
2605 ac_save_CFLAGS=$CFLAGS
2606 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2607 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2608 if test "${ac_cv_prog_cc_g+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 ac_save_c_werror_flag=$ac_c_werror_flag
2612 ac_c_werror_flag=yes
2615 cat >conftest.$ac_ext <<_ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2630 rm -f conftest.$ac_objext
2631 if { (ac_try="$ac_compile"
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_compile") 2>conftest.er1
2639 grep -v '^ *+' conftest.er1 >conftest.err
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } && {
2644 test -z "$ac_c_werror_flag" ||
2645 test ! -s conftest.err
2646 } && test -s conftest.$ac_objext; then
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2653 cat >conftest.$ac_ext <<_ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h. */
2668 rm -f conftest.$ac_objext
2669 if { (ac_try="$ac_compile"
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_compile") 2>conftest.er1
2677 grep -v '^ *+' conftest.er1 >conftest.err
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } && {
2682 test -z "$ac_c_werror_flag" ||
2683 test ! -s conftest.err
2684 } && test -s conftest.$ac_objext; then
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2690 ac_c_werror_flag=$ac_save_c_werror_flag
2692 cat >conftest.$ac_ext <<_ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2707 rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compile") 2>conftest.er1
2716 grep -v '^ *+' conftest.er1 >conftest.err
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } && {
2721 test -z "$ac_c_werror_flag" ||
2722 test ! -s conftest.err
2723 } && test -s conftest.$ac_objext; then
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_c_werror_flag=$ac_save_c_werror_flag
2741 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2742 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2743 if test "$ac_test_CFLAGS" = set; then
2744 CFLAGS=$ac_save_CFLAGS
2745 elif test $ac_cv_prog_cc_g = yes; then
2746 if test "$GCC" = yes; then
2752 if test "$GCC" = yes; then
2758 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2759 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_cc_c89+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 ac_cv_prog_cc_c89=no
2765 cat >conftest.$ac_ext <<_ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2773 #include <sys/types.h>
2774 #include <sys/stat.h>
2775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2776 struct buf { int x; };
2777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2778 static char *e (p, i)
2784 static char *f (char * (*g) (char **, int), char **p, ...)
2789 s = g (p, va_arg (v,int));
2794 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2795 function prototypes and stuff, but not '\xHH' hex character constants.
2796 These don't provoke an error unfortunately, instead are silently treated
2797 as 'x'. The following induces an error, until -std is added to get
2798 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2799 array size at least. It's necessary to write '\x00'==0 to get something
2800 that's true only with -std. */
2801 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2803 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2804 inside strings and character constants. */
2806 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2808 int test (int i, double x);
2809 struct s1 {int (*f) (int a);};
2810 struct s2 {int (*f) (double a);};
2811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2817 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2822 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2823 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2825 CC="$ac_save_CC $ac_arg"
2826 rm -f conftest.$ac_objext
2827 if { (ac_try="$ac_compile"
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833 (eval "$ac_compile") 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } && {
2840 test -z "$ac_c_werror_flag" ||
2841 test ! -s conftest.err
2842 } && test -s conftest.$ac_objext; then
2843 ac_cv_prog_cc_c89=$ac_arg
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2851 rm -f core conftest.err conftest.$ac_objext
2852 test "x$ac_cv_prog_cc_c89" != "xno" && break
2854 rm -f conftest.$ac_ext
2859 case "x$ac_cv_prog_cc_c89" in
2861 { echo "$as_me:$LINENO: result: none needed" >&5
2862 echo "${ECHO_T}none needed" >&6; } ;;
2864 { echo "$as_me:$LINENO: result: unsupported" >&5
2865 echo "${ECHO_T}unsupported" >&6; } ;;
2867 CC="$CC $ac_cv_prog_cc_c89"
2868 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2869 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 ac_cpp='$CXXCPP $CPPFLAGS'
2881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2884 if test -z "$CXX"; then
2885 if test -n "$CCC"; then
2888 if test -n "$ac_tool_prefix"; then
2889 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2895 if test "${ac_cv_prog_CXX+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 if test -n "$CXX"; then
2899 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 if test -n "$CXX"; then
2920 { echo "$as_me:$LINENO: result: $CXX" >&5
2921 echo "${ECHO_T}$CXX" >&6; }
2923 { echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6; }
2928 test -n "$CXX" && break
2931 if test -z "$CXX"; then
2933 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2939 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 if test -n "$ac_ct_CXX"; then
2943 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_ac_ct_CXX="$ac_prog"
2953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2963 if test -n "$ac_ct_CXX"; then
2964 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2965 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2967 { echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6; }
2972 test -n "$ac_ct_CXX" && break
2975 if test "x$ac_ct_CXX" = x; then
2978 case $cross_compiling:$ac_tool_warned in
2980 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2981 whose name does not start with the host triplet. If you think this
2982 configuration is useful to you, please write to autoconf@gnu.org." >&5
2983 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2984 whose name does not start with the host triplet. If you think this
2985 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2986 ac_tool_warned=yes ;;
2994 # Provide some information about the compiler.
2995 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2996 ac_compiler=`set X $ac_compile; echo $2`
2997 { (ac_try="$ac_compiler --version >&5"
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_compiler --version >&5") 2>&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }
3007 { (ac_try="$ac_compiler -v >&5"
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compiler -v >&5") 2>&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }
3017 { (ac_try="$ac_compiler -V >&5"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_compiler -V >&5") 2>&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }
3028 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3029 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3030 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 cat >conftest.$ac_ext <<_ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3051 rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compile") 2>conftest.er1
3060 grep -v '^ *+' conftest.er1 >conftest.err
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } && {
3065 test -z "$ac_cxx_werror_flag" ||
3066 test ! -s conftest.err
3067 } && test -s conftest.$ac_objext; then
3070 echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3080 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3081 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3082 GXX=`test $ac_compiler_gnu = yes && echo yes`
3083 ac_test_CXXFLAGS=${CXXFLAGS+set}
3084 ac_save_CXXFLAGS=$CXXFLAGS
3085 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3086 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3087 if test "${ac_cv_prog_cxx_g+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3091 ac_cxx_werror_flag=yes
3094 cat >conftest.$ac_ext <<_ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3118 grep -v '^ *+' conftest.er1 >conftest.err
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } && {
3123 test -z "$ac_cxx_werror_flag" ||
3124 test ! -s conftest.err
3125 } && test -s conftest.$ac_objext; then
3126 ac_cv_prog_cxx_g=yes
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3132 cat >conftest.$ac_ext <<_ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3147 rm -f conftest.$ac_objext
3148 if { (ac_try="$ac_compile"
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_compile") 2>conftest.er1
3156 grep -v '^ *+' conftest.er1 >conftest.err
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } && {
3161 test -z "$ac_cxx_werror_flag" ||
3162 test ! -s conftest.err
3163 } && test -s conftest.$ac_objext; then
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3195 grep -v '^ *+' conftest.er1 >conftest.err
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } && {
3200 test -z "$ac_cxx_werror_flag" ||
3201 test ! -s conftest.err
3202 } && test -s conftest.$ac_objext; then
3203 ac_cv_prog_cxx_g=yes
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3220 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3221 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3222 if test "$ac_test_CXXFLAGS" = set; then
3223 CXXFLAGS=$ac_save_CXXFLAGS
3224 elif test $ac_cv_prog_cxx_g = yes; then
3225 if test "$GXX" = yes; then
3231 if test "$GXX" = yes; then
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3247 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3249 cat > conftest.c << EOF
3253 int main (int argc, char*argv)
3263 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3264 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3265 { echo "$as_me:$LINENO: result: yes" >&5
3266 echo "${ECHO_T}yes" >&6; }
3270 echo "configure: failed program was:" >&5
3272 { echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6; }
3278 if test "x$GCC_IS_OK" '=' "x";then
3279 echo "***************************************************"
3280 echo "* Your gcc is too old to compile this!"
3282 echo "* The last version compilable by this compiler is "
3283 echo "* swftools 0.7.0, which you can download from "
3284 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3286 echo "* Newer versions require at least gcc 3.0.0 "
3287 echo "***************************************************"
3291 if test "x$CHECKMEM" '!=' "x";then
3295 #unset ac_cv_prog_CC
3296 #unset ac_cv_prog_CXX
3301 ac_cpp='$CPP $CPPFLAGS'
3302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3306 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3307 # On Suns, sometimes $CPP names a directory.
3308 if test -n "$CPP" && test -d "$CPP"; then
3311 if test -z "$CPP"; then
3312 if test "${ac_cv_prog_CPP+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 # Double quotes because CPP needs to be expanded
3316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3319 for ac_c_preproc_warn_flag in '' yes
3321 # Use a header file that comes with gcc, so configuring glibc
3322 # with a fresh cross-compiler works.
3323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3324 # <limits.h> exists even on freestanding compilers.
3325 # On the NeXT, cc -E runs the code through the compiler's parser,
3326 # not just through cpp. "Syntax error" is here to catch this case.
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3334 # include <limits.h>
3336 # include <assert.h>
3340 if { (ac_try="$ac_cpp conftest.$ac_ext"
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3348 grep -v '^ *+' conftest.er1 >conftest.err
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } >/dev/null && {
3353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3354 test ! -s conftest.err
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 # Broken: fails on valid input.
3365 rm -f conftest.err conftest.$ac_ext
3367 # OK, works on sane cases. Now check whether nonexistent headers
3368 # can be detected and how.
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 #include <ac_nonexistent.h>
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385 grep -v '^ *+' conftest.er1 >conftest.err
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null && {
3390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3393 # Broken: success on invalid input.
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 # Passes both tests.
3404 rm -f conftest.err conftest.$ac_ext
3407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3408 rm -f conftest.err conftest.$ac_ext
3409 if $ac_preproc_ok; then
3421 { echo "$as_me:$LINENO: result: $CPP" >&5
3422 echo "${ECHO_T}$CPP" >&6; }
3424 for ac_c_preproc_warn_flag in '' yes
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error" is here to catch this case.
3432 cat >conftest.$ac_ext <<_ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3439 # include <limits.h>
3441 # include <assert.h>
3445 if { (ac_try="$ac_cpp conftest.$ac_ext"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null && {
3458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3459 test ! -s conftest.err
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Broken: fails on valid input.
3470 rm -f conftest.err conftest.$ac_ext
3472 # OK, works on sane cases. Now check whether nonexistent headers
3473 # can be detected and how.
3474 cat >conftest.$ac_ext <<_ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #include <ac_nonexistent.h>
3482 if { (ac_try="$ac_cpp conftest.$ac_ext"
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null && {
3495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3498 # Broken: success on invalid input.
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 # Passes both tests.
3509 rm -f conftest.err conftest.$ac_ext
3512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3513 rm -f conftest.err conftest.$ac_ext
3514 if $ac_preproc_ok; then
3517 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3518 See \`config.log' for more details." >&5
3519 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3520 See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531 if test -n "$ac_tool_prefix"; then
3532 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3533 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3536 if test "${ac_cv_prog_RANLIB+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 if test -n "$RANLIB"; then
3540 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 RANLIB=$ac_cv_prog_RANLIB
3560 if test -n "$RANLIB"; then
3561 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3562 echo "${ECHO_T}$RANLIB" >&6; }
3564 { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3570 if test -z "$ac_cv_prog_RANLIB"; then
3571 ac_ct_RANLIB=$RANLIB
3572 # Extract the first word of "ranlib", so it can be a program name with args.
3573 set dummy ranlib; ac_word=$2
3574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3576 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 if test -n "$ac_ct_RANLIB"; then
3580 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3589 ac_cv_prog_ac_ct_RANLIB="ranlib"
3590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3600 if test -n "$ac_ct_RANLIB"; then
3601 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3602 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3604 { echo "$as_me:$LINENO: result: no" >&5
3605 echo "${ECHO_T}no" >&6; }
3608 if test "x$ac_ct_RANLIB" = x; then
3611 case $cross_compiling:$ac_tool_warned in
3613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3614 whose name does not start with the host triplet. If you think this
3615 configuration is useful to you, please write to autoconf@gnu.org." >&5
3616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3617 whose name does not start with the host triplet. If you think this
3618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3619 ac_tool_warned=yes ;;
3621 RANLIB=$ac_ct_RANLIB
3624 RANLIB="$ac_cv_prog_RANLIB"
3627 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3628 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3629 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3630 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 cat >conftest.make <<\_ACEOF
3636 @echo '@@@%%%=$(MAKE)=@@@%%%'
3638 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3639 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3641 eval ac_cv_prog_make_${ac_make}_set=yes;;
3643 eval ac_cv_prog_make_${ac_make}_set=no;;
3647 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3648 { echo "$as_me:$LINENO: result: yes" >&5
3649 echo "${ECHO_T}yes" >&6; }
3652 { echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6; }
3654 SET_MAKE="MAKE=${MAKE-make}"
3657 # Find a good install program. We prefer a C program (faster),
3658 # so one script is as good as another. But avoid the broken or
3659 # incompatible versions:
3660 # SysV /etc/install, /usr/sbin/install
3661 # SunOS /usr/etc/install
3662 # IRIX /sbin/install
3664 # AmigaOS /C/install, which installs bootblocks on floppy discs
3665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3668 # OS/2's system install, which has a completely different semantic
3669 # ./install, which can be erroneously created by make from ./install.sh.
3670 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3671 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3672 if test -z "$INSTALL"; then
3673 if test "${ac_cv_path_install+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir=.
3681 # Account for people who put trailing slashes in PATH elements.
3683 ./ | .// | /cC/* | \
3684 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3685 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3688 # OSF1 and SCO ODT 3.0 have their own names for install.
3689 # Don't use installbsd from OSF since it installs stuff as root
3691 for ac_prog in ginstall scoinst install; do
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3694 if test $ac_prog = install &&
3695 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3696 # AIX install. It has an incompatible calling convention.
3698 elif test $ac_prog = install &&
3699 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700 # program-specific install script used by HP pwplus--don't use.
3703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3716 if test "${ac_cv_path_install+set}" = set; then
3717 INSTALL=$ac_cv_path_install
3719 # As a last resort, use the slow shell script. Don't cache a
3720 # value for INSTALL within a source directory, because that will
3721 # break other packages using the cache if that directory is
3722 # removed, or if the value is a relative name.
3723 INSTALL=$ac_install_sh
3726 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3727 echo "${ECHO_T}$INSTALL" >&6; }
3729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3730 # It thinks the first close brace ends the variable substitution.
3731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3737 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3738 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3740 if test "$LN_S" = "ln -s"; then
3741 { echo "$as_me:$LINENO: result: yes" >&5
3742 echo "${ECHO_T}yes" >&6; }
3744 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3745 echo "${ECHO_T}no, using $LN_S" >&6; }
3748 for ac_prog in gzip uncompress compress
3750 # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy $ac_prog; ac_word=$2
3752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3754 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 if test -n "$UNCOMPRESS"; then
3758 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_UNCOMPRESS="$ac_prog"
3768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3778 if test -n "$UNCOMPRESS"; then
3779 { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3780 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3782 { echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6; }
3787 test -n "$UNCOMPRESS" && break
3797 if test "x$EXEEXT" = "x.exe";then
3806 { echo "$as_me:$LINENO: checking host system type" >&5
3807 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3808 if test "${ac_cv_host+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 if test "x$host_alias" = x; then
3812 ac_cv_host=$ac_cv_build
3814 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3817 { (exit 1); exit 1; }; }
3821 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3822 echo "${ECHO_T}$ac_cv_host" >&6; }
3825 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3826 echo "$as_me: error: invalid value of canonical host" >&2;}
3827 { (exit 1); exit 1; }; };;
3830 ac_save_IFS=$IFS; IFS='-'
3836 # Remember, the first character of IFS is used to create $*,
3837 # except with old shells:
3840 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3845 { echo "$as_me:$LINENO: checking for target system" >&5
3846 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
3850 *cygwin* ) CYGWIN=yes;;
3851 *mingw* ) MINGW=yes;;
3855 if test "x$MINGW" = "xyes"; then
3856 #fix for the debian distribution of mingw
3857 if test -x "/usr/i586-mingw32msvc/bin/ar";then
3858 AR="/usr/i586-mingw32msvc/bin/ar"
3860 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
3861 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
3863 #fix for the gentoo distribution of mingw
3864 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
3865 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
3867 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
3868 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
3870 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
3871 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
3877 if test "x${CYGWIN}" = "xyes"; then
3878 cat >>confdefs.h <<_ACEOF
3882 { echo "$as_me:$LINENO: result: cygwin" >&5
3883 echo "${ECHO_T}cygwin" >&6; }
3885 if test "x${MINGW}" = "xyes"; then
3886 cat >>confdefs.h <<_ACEOF
3891 cat >>confdefs.h <<_ACEOF
3895 LIBS="$LIBS -lws2_32 -lgdi32"
3896 { echo "$as_me:$LINENO: result: mingw" >&5
3897 echo "${ECHO_T}mingw" >&6; }
3901 cat >>confdefs.h <<_ACEOF
3905 { echo "$as_me:$LINENO: result: " >&5
3906 echo "${ECHO_T}" >&6; }
3912 if test "x${MINGW}" != "xyes"; then
3914 cat >>confdefs.h <<_ACEOF
3927 # The following tries to make use of includes and libraries in
3928 # /usr/local, too. Notice: A -I/usr/local/include might break
3929 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
3930 # especially on systems which link /usr/local to /usr, so it has yet
3931 # to be seen how useful this is.
3932 if test -d /usr/local/lib; then
3933 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3935 if test -d /usr/local/include; then
3936 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
3937 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3940 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
3941 # if the user has a special prefix (like /opt), there might also be $prefix/lib
3942 # and $prefix/include, which should be included in our search paths for libraries
3944 LDFLAGS="$LDFLAGS -L${libdir}"
3945 CPPFLAGS="$CPPFLAGS -I${includedir}"
3946 # TODO- test whether gcc still works after this
3950 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
3953 # this must be done after (I believe) AC_PROG_MAKE_SET
3954 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
3955 STRIP="@echo debug enabled, not stripping "
3962 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
3963 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
3964 if test "${ac_cv_lib_m_sin+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 ac_check_lib_save_LIBS=$LIBS
3969 cat >conftest.$ac_ext <<_ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3976 /* Override any GCC internal prototype to avoid an error.
3977 Use char because int might match the return type of a GCC
3978 builtin and then its argument prototype would still apply. */
3991 rm -f conftest.$ac_objext conftest$ac_exeext
3992 if { (ac_try="$ac_link"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_link") 2>conftest.er1
4000 grep -v '^ *+' conftest.er1 >conftest.err
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest$ac_exeext &&
4008 $as_test_x conftest$ac_exeext; then
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4018 conftest$ac_exeext conftest.$ac_ext
4019 LIBS=$ac_check_lib_save_LIBS
4021 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4022 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4023 if test $ac_cv_lib_m_sin = yes; then
4024 cat >>confdefs.h <<_ACEOF
4031 echo "Error: Math library not found.";
4037 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4038 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4039 if test "${ac_cv_lib_z_deflate+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 ac_check_lib_save_LIBS=$LIBS
4044 cat >conftest.$ac_ext <<_ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4051 /* Override any GCC internal prototype to avoid an error.
4052 Use char because int might match the return type of a GCC
4053 builtin and then its argument prototype would still apply. */
4066 rm -f conftest.$ac_objext conftest$ac_exeext
4067 if { (ac_try="$ac_link"
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_link") 2>conftest.er1
4075 grep -v '^ *+' conftest.er1 >conftest.err
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } && {
4080 test -z "$ac_c_werror_flag" ||
4081 test ! -s conftest.err
4082 } && test -s conftest$ac_exeext &&
4083 $as_test_x conftest$ac_exeext; then
4084 ac_cv_lib_z_deflate=yes
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 ac_cv_lib_z_deflate=no
4092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4093 conftest$ac_exeext conftest.$ac_ext
4094 LIBS=$ac_check_lib_save_LIBS
4096 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4097 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4098 if test $ac_cv_lib_z_deflate = yes; then
4099 cat >>confdefs.h <<_ACEOF
4110 if test "x$ZLIBMISSING" = "xtrue";then
4113 echo "You need zlib to compile swftools"
4119 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4120 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4121 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 ac_check_lib_save_LIBS=$LIBS
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4133 /* Override any GCC internal prototype to avoid an error.
4134 Use char because int might match the return type of a GCC
4135 builtin and then its argument prototype would still apply. */
4139 char jpeg_write_raw_data ();
4143 return jpeg_write_raw_data ();
4148 rm -f conftest.$ac_objext conftest$ac_exeext
4149 if { (ac_try="$ac_link"
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_link") 2>conftest.er1
4157 grep -v '^ *+' conftest.er1 >conftest.err
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } && {
4162 test -z "$ac_c_werror_flag" ||
4163 test ! -s conftest.err
4164 } && test -s conftest$ac_exeext &&
4165 $as_test_x conftest$ac_exeext; then
4166 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4175 conftest$ac_exeext conftest.$ac_ext
4176 LIBS=$ac_check_lib_save_LIBS
4178 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4179 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4180 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4181 cat >>confdefs.h <<_ACEOF
4182 #define HAVE_LIBJPEG 1
4192 { echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
4193 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6; }
4194 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 ac_check_lib_save_LIBS=$LIBS
4199 cat >conftest.$ac_ext <<_ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4206 /* Override any GCC internal prototype to avoid an error.
4207 Use char because int might match the return type of a GCC
4208 builtin and then its argument prototype would still apply. */
4212 char T1_LoadFont ();
4216 return T1_LoadFont ();
4221 rm -f conftest.$ac_objext conftest$ac_exeext
4222 if { (ac_try="$ac_link"
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_link") 2>conftest.er1
4230 grep -v '^ *+' conftest.er1 >conftest.err
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && {
4235 test -z "$ac_c_werror_flag" ||
4236 test ! -s conftest.err
4237 } && test -s conftest$ac_exeext &&
4238 $as_test_x conftest$ac_exeext; then
4239 ac_cv_lib_t1_T1_LoadFont=yes
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 ac_cv_lib_t1_T1_LoadFont=no
4247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4248 conftest$ac_exeext conftest.$ac_ext
4249 LIBS=$ac_check_lib_save_LIBS
4251 { echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
4252 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6; }
4253 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
4254 cat >>confdefs.h <<_ACEOF
4255 #define HAVE_LIBT1 1
4265 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4266 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4267 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 ac_check_lib_save_LIBS=$LIBS
4271 LIBS="-lungif $LIBS"
4272 cat >conftest.$ac_ext <<_ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4279 /* Override any GCC internal prototype to avoid an error.
4280 Use char because int might match the return type of a GCC
4281 builtin and then its argument prototype would still apply. */
4294 rm -f conftest.$ac_objext conftest$ac_exeext
4295 if { (ac_try="$ac_link"
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_link") 2>conftest.er1
4303 grep -v '^ *+' conftest.er1 >conftest.err
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } && {
4308 test -z "$ac_c_werror_flag" ||
4309 test ! -s conftest.err
4310 } && test -s conftest$ac_exeext &&
4311 $as_test_x conftest$ac_exeext; then
4312 ac_cv_lib_ungif_DGifOpen=yes
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 ac_cv_lib_ungif_DGifOpen=no
4320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4321 conftest$ac_exeext conftest.$ac_ext
4322 LIBS=$ac_check_lib_save_LIBS
4324 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4325 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4326 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4327 cat >>confdefs.h <<_ACEOF
4328 #define HAVE_LIBUNGIF 1
4331 LIBS="-lungif $LIBS"
4337 if test "$UNGIFMISSING";then
4340 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4341 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4342 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 ac_check_lib_save_LIBS=$LIBS
4347 cat >conftest.$ac_ext <<_ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4354 /* Override any GCC internal prototype to avoid an error.
4355 Use char because int might match the return type of a GCC
4356 builtin and then its argument prototype would still apply. */
4369 rm -f conftest.$ac_objext conftest$ac_exeext
4370 if { (ac_try="$ac_link"
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376 (eval "$ac_link") 2>conftest.er1
4378 grep -v '^ *+' conftest.er1 >conftest.err
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } && {
4383 test -z "$ac_c_werror_flag" ||
4384 test ! -s conftest.err
4385 } && test -s conftest$ac_exeext &&
4386 $as_test_x conftest$ac_exeext; then
4387 ac_cv_lib_gif_DGifOpen=yes
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 ac_cv_lib_gif_DGifOpen=no
4395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4396 conftest$ac_exeext conftest.$ac_ext
4397 LIBS=$ac_check_lib_save_LIBS
4399 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4400 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4401 if test $ac_cv_lib_gif_DGifOpen = yes; then
4402 cat >>confdefs.h <<_ACEOF
4403 #define HAVE_LIBGIF 1
4415 { echo "$as_me:$LINENO: checking for byte order" >&5
4416 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4417 if test "$cross_compiling" = yes; then
4420 cat >conftest.$ac_ext <<_ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4427 int main (int argc, char *argv[])
4434 rm -f conftest$ac_exeext
4435 if { (ac_try="$ac_link"
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441 (eval "$ac_link") 2>&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4445 { (case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_try") 2>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4456 echo "$as_me: program exited with status $ac_status" >&5
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4469 if test "x${CROSSCOMPILE}" = "x1"; then
4470 { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4471 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4472 { echo "$as_me:$LINENO: checking target system type" >&5
4473 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4474 if test "${ac_cv_target+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 if test "x$target_alias" = x; then
4478 ac_cv_target=$ac_cv_host
4480 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4481 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4482 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4483 { (exit 1); exit 1; }; }
4487 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4488 echo "${ECHO_T}$ac_cv_target" >&6; }
4489 case $ac_cv_target in
4491 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4492 echo "$as_me: error: invalid value of canonical target" >&2;}
4493 { (exit 1); exit 1; }; };;
4495 target=$ac_cv_target
4496 ac_save_IFS=$IFS; IFS='-'
4502 # Remember, the first character of IFS is used to create $*,
4503 # except with old shells:
4506 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4509 # The aliases save the names the user supplied, while $host etc.
4510 # will get canonicalized.
4511 test -n "$target_alias" &&
4512 test "$program_prefix$program_suffix$program_transform_name" = \
4514 program_prefix=${target_alias}-
4515 { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4516 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4521 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4528 if test "x${LITTLEENDIAN}" = "x1"; then
4529 { echo "$as_me:$LINENO: result: little endian" >&5
4530 echo "${ECHO_T}little endian" >&6; }
4534 if test "x${BIGENDIAN}" = "x1"; then
4535 { echo "$as_me:$LINENO: result: big endian" >&5
4536 echo "${ECHO_T}big endian" >&6; }
4539 export WORDS_BIGENDIAN
4540 cat >>confdefs.h <<_ACEOF
4541 #define WORDS_BIGENDIAN 1
4545 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4546 { echo "$as_me:$LINENO: result: unknown" >&5
4547 echo "${ECHO_T}unknown" >&6; }
4548 echo Byte order could not determined.
4554 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4555 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4556 if test "$cross_compiling" = yes; then
4559 cat >conftest.$ac_ext <<_ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4567 int main (int argc, char*argv[])
4569 return system("test `touch config.tmp2`");
4573 rm -f conftest$ac_exeext
4574 if { (ac_try="$ac_link"
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_link") 2>&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4584 { (case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_try") 2>&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4595 echo "$as_me: program exited with status $ac_status" >&5
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4605 if test "x${OK}" = "xOK";then
4606 test -f config.tmp2 || OK=
4609 if test "x${CROSSCOMPILE}" = "x1";then
4612 if test "x${OK}" = "xOK";then
4614 { echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6; }
4617 export SYSTEM_BACKTICKS
4618 cat >>confdefs.h <<_ACEOF
4619 #define SYSTEM_BACKTICKS 1
4623 { echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6; }
4629 test "$program_prefix" != NONE &&
4630 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4631 # Use a double $ so make ignores it.
4632 test "$program_suffix" != NONE &&
4633 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4634 # Double any \ or $. echo might interpret backslashes.
4635 # By default was `s,x,x', remove it if useless.
4636 cat <<\_ACEOF >conftest.sed
4637 s/[\\$]/&&/g;s/;s,x,x,$//
4639 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4643 ac_config_headers="$ac_config_headers config.h"
4651 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4652 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4653 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4654 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 cat >conftest.$ac_ext <<_ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 #include <sys/types.h>
4676 rm -f conftest.$ac_objext
4677 if { (ac_try="$ac_compile"
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_compile") 2>conftest.er1
4685 grep -v '^ *+' conftest.er1 >conftest.err
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } && {
4690 test -z "$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 } && test -s conftest.$ac_objext; then
4693 eval "$as_ac_Header=yes"
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4698 eval "$as_ac_Header=no"
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 ac_res=`eval echo '${'$as_ac_Header'}'`
4704 { echo "$as_me:$LINENO: result: $ac_res" >&5
4705 echo "${ECHO_T}$ac_res" >&6; }
4706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4707 cat >>confdefs.h <<_ACEOF
4708 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4711 ac_header_dirent=$ac_hdr; break
4715 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4716 if test $ac_header_dirent = dirent.h; then
4717 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4718 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4719 if test "${ac_cv_search_opendir+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 ac_func_search_save_LIBS=$LIBS
4723 cat >conftest.$ac_ext <<_ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4730 /* Override any GCC internal prototype to avoid an error.
4731 Use char because int might match the return type of a GCC
4732 builtin and then its argument prototype would still apply. */
4745 for ac_lib in '' dir; do
4746 if test -z "$ac_lib"; then
4747 ac_res="none required"
4750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4752 rm -f conftest.$ac_objext conftest$ac_exeext
4753 if { (ac_try="$ac_link"
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_link") 2>conftest.er1
4761 grep -v '^ *+' conftest.er1 >conftest.err
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && {
4766 test -z "$ac_c_werror_flag" ||
4767 test ! -s conftest.err
4768 } && test -s conftest$ac_exeext &&
4769 $as_test_x conftest$ac_exeext; then
4770 ac_cv_search_opendir=$ac_res
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4780 if test "${ac_cv_search_opendir+set}" = set; then
4784 if test "${ac_cv_search_opendir+set}" = set; then
4787 ac_cv_search_opendir=no
4790 LIBS=$ac_func_search_save_LIBS
4792 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4793 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4794 ac_res=$ac_cv_search_opendir
4795 if test "$ac_res" != no; then
4796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4801 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4802 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4803 if test "${ac_cv_search_opendir+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 ac_func_search_save_LIBS=$LIBS
4807 cat >conftest.$ac_ext <<_ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4814 /* Override any GCC internal prototype to avoid an error.
4815 Use char because int might match the return type of a GCC
4816 builtin and then its argument prototype would still apply. */
4829 for ac_lib in '' x; do
4830 if test -z "$ac_lib"; then
4831 ac_res="none required"
4834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4836 rm -f conftest.$ac_objext conftest$ac_exeext
4837 if { (ac_try="$ac_link"
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_link") 2>conftest.er1
4845 grep -v '^ *+' conftest.er1 >conftest.err
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } && {
4850 test -z "$ac_c_werror_flag" ||
4851 test ! -s conftest.err
4852 } && test -s conftest$ac_exeext &&
4853 $as_test_x conftest$ac_exeext; then
4854 ac_cv_search_opendir=$ac_res
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4864 if test "${ac_cv_search_opendir+set}" = set; then
4868 if test "${ac_cv_search_opendir+set}" = set; then
4871 ac_cv_search_opendir=no
4874 LIBS=$ac_func_search_save_LIBS
4876 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4877 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4878 ac_res=$ac_cv_search_opendir
4879 if test "$ac_res" != no; then
4880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4887 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4888 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4889 if test "${ac_cv_path_GREP+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 # Extract the first word of "grep ggrep" to use in msg output
4893 if test -z "$GREP"; then
4894 set dummy grep ggrep; ac_prog_name=$2
4895 if test "${ac_cv_path_GREP+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_path_GREP_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4904 test -z "$as_dir" && as_dir=.
4905 for ac_prog in grep ggrep; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4908 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4909 # Check for GNU ac_path_GREP and select it if it is found.
4910 # Check for GNU $ac_path_GREP
4911 case `"$ac_path_GREP" --version 2>&1` in
4913 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4916 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 echo 'GREP' >> "conftest.nl"
4923 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 ac_count=`expr $ac_count + 1`
4926 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_GREP="$ac_path_GREP"
4929 ac_path_GREP_max=$ac_count
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4938 $ac_path_GREP_found && break 3
4948 GREP="$ac_cv_path_GREP"
4949 if test -z "$GREP"; then
4950 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4951 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4952 { (exit 1); exit 1; }; }
4956 ac_cv_path_GREP=$GREP
4961 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4962 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4963 GREP="$ac_cv_path_GREP"
4966 { echo "$as_me:$LINENO: checking for egrep" >&5
4967 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4968 if test "${ac_cv_path_EGREP+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4972 then ac_cv_path_EGREP="$GREP -E"
4974 # Extract the first word of "egrep" to use in msg output
4975 if test -z "$EGREP"; then
4976 set dummy egrep; ac_prog_name=$2
4977 if test "${ac_cv_path_EGREP+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 ac_path_EGREP_found=false
4981 # Loop through the user's path and test for each of PROGNAME-LIST
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4986 test -z "$as_dir" && as_dir=.
4987 for ac_prog in egrep; do
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4990 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4991 # Check for GNU ac_path_EGREP and select it if it is found.
4992 # Check for GNU $ac_path_EGREP
4993 case `"$ac_path_EGREP" --version 2>&1` in
4995 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4998 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5001 cat "conftest.in" "conftest.in" >"conftest.tmp"
5002 mv "conftest.tmp" "conftest.in"
5003 cp "conftest.in" "conftest.nl"
5004 echo 'EGREP' >> "conftest.nl"
5005 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007 ac_count=`expr $ac_count + 1`
5008 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5009 # Best one so far, save it but keep looking for a better one
5010 ac_cv_path_EGREP="$ac_path_EGREP"
5011 ac_path_EGREP_max=$ac_count
5013 # 10*(2^10) chars as input seems more than enough
5014 test $ac_count -gt 10 && break
5016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5020 $ac_path_EGREP_found && break 3
5030 EGREP="$ac_cv_path_EGREP"
5031 if test -z "$EGREP"; then
5032 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5033 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5034 { (exit 1); exit 1; }; }
5038 ac_cv_path_EGREP=$EGREP
5044 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5045 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5046 EGREP="$ac_cv_path_EGREP"
5049 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5050 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5051 if test "${ac_cv_header_stdc+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5073 rm -f conftest.$ac_objext
5074 if { (ac_try="$ac_compile"
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080 (eval "$ac_compile") 2>conftest.er1
5082 grep -v '^ *+' conftest.er1 >conftest.err
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } && {
5087 test -z "$ac_c_werror_flag" ||
5088 test ! -s conftest.err
5089 } && test -s conftest.$ac_objext; then
5090 ac_cv_header_stdc=yes
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 ac_cv_header_stdc=no
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 if test $ac_cv_header_stdc = yes; then
5101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5102 cat >conftest.$ac_ext <<_ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5112 $EGREP "memchr" >/dev/null 2>&1; then
5115 ac_cv_header_stdc=no
5121 if test $ac_cv_header_stdc = yes; then
5122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5123 cat >conftest.$ac_ext <<_ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5133 $EGREP "free" >/dev/null 2>&1; then
5136 ac_cv_header_stdc=no
5142 if test $ac_cv_header_stdc = yes; then
5143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5144 if test "$cross_compiling" = yes; then
5147 cat >conftest.$ac_ext <<_ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5155 #if ((' ' & 0x0FF) == 0x020)
5156 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5157 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5159 # define ISLOWER(c) \
5160 (('a' <= (c) && (c) <= 'i') \
5161 || ('j' <= (c) && (c) <= 'r') \
5162 || ('s' <= (c) && (c) <= 'z'))
5163 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5171 for (i = 0; i < 256; i++)
5172 if (XOR (islower (i), ISLOWER (i))
5173 || toupper (i) != TOUPPER (i))
5178 rm -f conftest$ac_exeext
5179 if { (ac_try="$ac_link"
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_link") 2>&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5189 { (case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_try") 2>&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; }; then
5200 echo "$as_me: program exited with status $ac_status" >&5
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5205 ac_cv_header_stdc=no
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5213 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5214 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5217 cat >>confdefs.h <<\_ACEOF
5218 #define STDC_HEADERS 1
5223 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5233 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5234 inttypes.h stdint.h unistd.h
5236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 cat >conftest.$ac_ext <<_ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 $ac_includes_default
5250 #include <$ac_header>
5252 rm -f conftest.$ac_objext
5253 if { (ac_try="$ac_compile"
5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259 (eval "$ac_compile") 2>conftest.er1
5261 grep -v '^ *+' conftest.er1 >conftest.err
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } && {
5266 test -z "$ac_c_werror_flag" ||
5267 test ! -s conftest.err
5268 } && test -s conftest.$ac_objext; then
5269 eval "$as_ac_Header=yes"
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5274 eval "$as_ac_Header=no"
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 ac_res=`eval echo '${'$as_ac_Header'}'`
5280 { echo "$as_me:$LINENO: result: $ac_res" >&5
5281 echo "${ECHO_T}$ac_res" >&6; }
5282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5283 cat >>confdefs.h <<_ACEOF
5284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5307 for ac_header in zlib.h gif_lib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
5309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 ac_res=`eval echo '${'$as_ac_Header'}'`
5317 { echo "$as_me:$LINENO: result: $ac_res" >&5
5318 echo "${ECHO_T}$ac_res" >&6; }
5320 # Is the header compilable?
5321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 #include <$ac_header>
5332 rm -f conftest.$ac_objext
5333 if { (ac_try="$ac_compile"
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5341 grep -v '^ *+' conftest.er1 >conftest.err
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
5349 ac_header_compiler=yes
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_header_compiler=no
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359 echo "${ECHO_T}$ac_header_compiler" >&6; }
5361 # Is the header present?
5362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <$ac_header>
5372 if { (ac_try="$ac_cpp conftest.$ac_ext"
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null && {
5385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5388 ac_header_preproc=yes
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ac_header_preproc=no
5396 rm -f conftest.err conftest.$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6; }
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5407 ac_header_preproc=yes
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 eval "$as_ac_Header=\$ac_header_preproc"
5432 ac_res=`eval echo '${'$as_ac_Header'}'`
5433 { echo "$as_me:$LINENO: result: $ac_res" >&5
5434 echo "${ECHO_T}$ac_res" >&6; }
5437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5438 cat >>confdefs.h <<_ACEOF
5439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5447 cat >>confdefs.h <<_ACEOF
5448 #define PACKAGE "$PACKAGE"
5451 cat >>confdefs.h <<_ACEOF
5452 #define VERSION "$VERSION"
5461 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5462 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5463 if test "${ac_cv_c_const+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 cat >conftest.$ac_ext <<_ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5476 /* FIXME: Include the comments suggested by Paul. */
5478 /* Ultrix mips cc rejects this. */
5479 typedef int charset[2];
5481 /* SunOS 4.1.1 cc rejects this. */
5482 char const *const *pcpcc;
5484 /* NEC SVR4.0.2 mips cc rejects this. */
5485 struct point {int x, y;};
5486 static struct point const zero = {0,0};
5487 /* AIX XL C 1.02.0.0 rejects this.
5488 It does not let you subtract one const X* pointer from another in
5489 an arm of an if-expression whose if-part is not a constant
5491 const char *g = "string";
5492 pcpcc = &g + (g ? g-g : 0);
5493 /* HPUX 7.0 cc rejects these. */
5495 ppc = (char**) pcpcc;
5496 pcpcc = (char const *const *) ppc;
5497 { /* SCO 3.2v4 cc rejects this. */
5499 char const *s = 0 ? (char *) 0 : (char const *) 0;
5504 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5506 const int *foo = &x[0];
5509 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5510 typedef const int *iptr;
5514 { /* AIX XL C 1.02.0.0 rejects this saying
5515 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5516 struct s { int j; const int *ap[3]; };
5517 struct s *b; b->j = 5;
5519 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5523 return !cs[0] && !zero.x;
5530 rm -f conftest.$ac_objext
5531 if { (ac_try="$ac_compile"
5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537 (eval "$ac_compile") 2>conftest.er1
5539 grep -v '^ *+' conftest.er1 >conftest.err
5541 cat conftest.err >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && {
5544 test -z "$ac_c_werror_flag" ||
5545 test ! -s conftest.err
5546 } && test -s conftest.$ac_objext; then
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5558 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5559 if test $ac_cv_c_const = no; then
5561 cat >>confdefs.h <<\_ACEOF
5567 { echo "$as_me:$LINENO: checking for inline" >&5
5568 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5569 if test "${ac_cv_c_inline+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 for ac_kw in inline __inline__ __inline; do
5574 cat >conftest.$ac_ext <<_ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5582 static $ac_kw foo_t static_foo () {return 0; }
5583 $ac_kw foo_t foo () {return 0; }
5587 rm -f conftest.$ac_objext
5588 if { (ac_try="$ac_compile"
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_compile") 2>conftest.er1
5596 grep -v '^ *+' conftest.er1 >conftest.err
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && {
5601 test -z "$ac_c_werror_flag" ||
5602 test ! -s conftest.err
5603 } && test -s conftest.$ac_objext; then
5604 ac_cv_c_inline=$ac_kw
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 test "$ac_cv_c_inline" != no && break
5617 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5618 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5621 case $ac_cv_c_inline in
5624 case $ac_cv_c_inline in
5626 *) ac_val=$ac_cv_c_inline;;
5628 cat >>confdefs.h <<_ACEOF
5630 #define inline $ac_val
5636 { echo "$as_me:$LINENO: checking for off_t" >&5
5637 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5638 if test "${ac_cv_type_off_t+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 $ac_includes_default
5648 typedef off_t ac__type_new_;
5652 if ((ac__type_new_ *) 0)
5654 if (sizeof (ac__type_new_))
5660 rm -f conftest.$ac_objext
5661 if { (ac_try="$ac_compile"
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_compile") 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && {
5674 test -z "$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5676 } && test -s conftest.$ac_objext; then
5677 ac_cv_type_off_t=yes
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5688 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5689 if test $ac_cv_type_off_t = yes; then
5693 cat >>confdefs.h <<_ACEOF
5694 #define off_t long int
5699 { echo "$as_me:$LINENO: checking for size_t" >&5
5700 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5701 if test "${ac_cv_type_size_t+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 cat >conftest.$ac_ext <<_ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 $ac_includes_default
5711 typedef size_t ac__type_new_;
5715 if ((ac__type_new_ *) 0)
5717 if (sizeof (ac__type_new_))
5723 rm -f conftest.$ac_objext
5724 if { (ac_try="$ac_compile"
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_compile") 2>conftest.er1
5732 grep -v '^ *+' conftest.er1 >conftest.err
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest.$ac_objext; then
5740 ac_cv_type_size_t=yes
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 ac_cv_type_size_t=no
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5751 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5752 if test $ac_cv_type_size_t = yes; then
5756 cat >>confdefs.h <<_ACEOF
5757 #define size_t unsigned int
5762 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5763 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5764 if test "${ac_cv_struct_tm+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 cat >conftest.$ac_ext <<_ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 #include <sys/types.h>
5780 int *p = &tm.tm_sec;
5786 rm -f conftest.$ac_objext
5787 if { (ac_try="$ac_compile"
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_compile") 2>conftest.er1
5795 grep -v '^ *+' conftest.er1 >conftest.err
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && {
5800 test -z "$ac_c_werror_flag" ||
5801 test ! -s conftest.err
5802 } && test -s conftest.$ac_objext; then
5803 ac_cv_struct_tm=time.h
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 ac_cv_struct_tm=sys/time.h
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5814 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5815 if test $ac_cv_struct_tm = sys/time.h; then
5817 cat >>confdefs.h <<\_ACEOF
5818 #define TM_IN_SYS_TIME 1
5823 { echo "$as_me:$LINENO: checking for boolean" >&5
5824 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5825 if test "${ac_cv_type_boolean+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 cat >conftest.$ac_ext <<_ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 $ac_includes_default
5835 typedef boolean ac__type_new_;
5839 if ((ac__type_new_ *) 0)
5841 if (sizeof (ac__type_new_))
5847 rm -f conftest.$ac_objext
5848 if { (ac_try="$ac_compile"
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_compile") 2>conftest.er1
5856 grep -v '^ *+' conftest.er1 >conftest.err
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } && {
5861 test -z "$ac_c_werror_flag" ||
5862 test ! -s conftest.err
5863 } && test -s conftest.$ac_objext; then
5864 ac_cv_type_boolean=yes
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 ac_cv_type_boolean=no
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5875 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5876 if test $ac_cv_type_boolean = yes; then
5880 cat >>confdefs.h <<_ACEOF
5897 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
5899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 cat >conftest.$ac_ext <<_ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5913 #define $ac_func innocuous_$ac_func
5915 /* System header to define __stub macros and hopefully few prototypes,
5916 which can conflict with char $ac_func (); below.
5917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5918 <limits.h> exists even on freestanding compilers. */
5921 # include <limits.h>
5923 # include <assert.h>
5928 /* Override any GCC internal prototype to avoid an error.
5929 Use char because int might match the return type of a GCC
5930 builtin and then its argument prototype would still apply. */
5935 /* The GNU C library defines this for functions which it implements
5936 to always fail with ENOSYS. Some functions are actually named
5937 something starting with __ and the normal name is an alias. */
5938 #if defined __stub_$ac_func || defined __stub___$ac_func
5950 rm -f conftest.$ac_objext conftest$ac_exeext
5951 if { (ac_try="$ac_link"
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_link") 2>conftest.er1
5959 grep -v '^ *+' conftest.er1 >conftest.err
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && {
5964 test -z "$ac_c_werror_flag" ||
5965 test ! -s conftest.err
5966 } && test -s conftest$ac_exeext &&
5967 $as_test_x conftest$ac_exeext; then
5968 eval "$as_ac_var=yes"
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 eval "$as_ac_var=no"
5976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5977 conftest$ac_exeext conftest.$ac_ext
5979 ac_res=`eval echo '${'$as_ac_var'}'`
5980 { echo "$as_me:$LINENO: result: $ac_res" >&5
5981 echo "${ECHO_T}$ac_res" >&6; }
5982 if test `eval echo '${'$as_ac_var'}'` = yes; then
5983 cat >>confdefs.h <<_ACEOF
5984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5991 # ------------------------------------------------------------------
5995 # Extract the first word of "freetype-config", so it can be a program name with args.
5996 set dummy freetype-config; ac_word=$2
5997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 case $FREETYPE_CONFIG in
6004 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
6009 for as_dir in $as_dummy
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
6027 if test -n "$FREETYPE_CONFIG"; then
6028 { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
6029 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
6031 { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6037 OLDCPPFLAGS="${CPPFLAGS}"
6039 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
6040 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
6041 else if test -d /usr/include/freetype2; then
6042 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
6043 else if test -d /usr/local/include/freetype2; then
6044 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
6049 if test "x${FREETYPE_CONFIG}" '=' "x";then
6050 # if we didn't find the freetype-config program, we won't
6051 # know where the libs are expected to be. So just blindly
6052 # try to link against them.
6053 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
6054 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
6055 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 ac_check_lib_save_LIBS=$LIBS
6059 LIBS="-lfreetype $LIBS"
6060 cat >conftest.$ac_ext <<_ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6067 /* Override any GCC internal prototype to avoid an error.
6068 Use char because int might match the return type of a GCC
6069 builtin and then its argument prototype would still apply. */
6073 char FT_Init_FreeType ();
6077 return FT_Init_FreeType ();
6082 rm -f conftest.$ac_objext conftest$ac_exeext
6083 if { (ac_try="$ac_link"
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_link") 2>conftest.er1
6091 grep -v '^ *+' conftest.er1 >conftest.err
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } && {
6096 test -z "$ac_c_werror_flag" ||
6097 test ! -s conftest.err
6098 } && test -s conftest$ac_exeext &&
6099 $as_test_x conftest$ac_exeext; then
6100 ac_cv_lib_freetype_FT_Init_FreeType=yes
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6105 ac_cv_lib_freetype_FT_Init_FreeType=no
6108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6109 conftest$ac_exeext conftest.$ac_ext
6110 LIBS=$ac_check_lib_save_LIBS
6112 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
6113 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
6114 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
6121 for ac_header in ft2build.h
6123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 ac_res=`eval echo '${'$as_ac_Header'}'`
6131 { echo "$as_me:$LINENO: result: $ac_res" >&5
6132 echo "${ECHO_T}$ac_res" >&6; }
6134 # Is the header compilable?
6135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6137 cat >conftest.$ac_ext <<_ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 $ac_includes_default
6144 #include <$ac_header>
6146 rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_compile") 2>conftest.er1
6155 grep -v '^ *+' conftest.er1 >conftest.err
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && {
6160 test -z "$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6162 } && test -s conftest.$ac_objext; then
6163 ac_header_compiler=yes
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 ac_header_compiler=no
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6173 echo "${ECHO_T}$ac_header_compiler" >&6; }
6175 # Is the header present?
6176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6178 cat >conftest.$ac_ext <<_ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 #include <$ac_header>
6186 if { (ac_try="$ac_cpp conftest.$ac_ext"
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6194 grep -v '^ *+' conftest.er1 >conftest.err
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } >/dev/null && {
6199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6200 test ! -s conftest.err
6202 ac_header_preproc=yes
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 ac_header_preproc=no
6210 rm -f conftest.err conftest.$ac_ext
6211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6212 echo "${ECHO_T}$ac_header_preproc" >&6; }
6214 # So? What about this header?
6215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6221 ac_header_preproc=yes
6224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6231 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 eval "$as_ac_Header=\$ac_header_preproc"
6246 ac_res=`eval echo '${'$as_ac_Header'}'`
6247 { echo "$as_me:$LINENO: result: $ac_res" >&5
6248 echo "${ECHO_T}$ac_res" >&6; }
6251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6252 cat >>confdefs.h <<_ACEOF
6253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6260 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
6262 for ac_header in freetype/freetype.h
6264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 ac_res=`eval echo '${'$as_ac_Header'}'`
6272 { echo "$as_me:$LINENO: result: $ac_res" >&5
6273 echo "${ECHO_T}$ac_res" >&6; }
6275 # Is the header compilable?
6276 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6278 cat >conftest.$ac_ext <<_ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6284 $ac_includes_default
6285 #include <$ac_header>
6287 rm -f conftest.$ac_objext
6288 if { (ac_try="$ac_compile"
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_compile") 2>conftest.er1
6296 grep -v '^ *+' conftest.er1 >conftest.err
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } && {
6301 test -z "$ac_c_werror_flag" ||
6302 test ! -s conftest.err
6303 } && test -s conftest.$ac_objext; then
6304 ac_header_compiler=yes
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6309 ac_header_compiler=no
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6314 echo "${ECHO_T}$ac_header_compiler" >&6; }
6316 # Is the header present?
6317 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 #include <$ac_header>
6327 if { (ac_try="$ac_cpp conftest.$ac_ext"
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6335 grep -v '^ *+' conftest.er1 >conftest.err
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } >/dev/null && {
6340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6341 test ! -s conftest.err
6343 ac_header_preproc=yes
6345 echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.$ac_ext >&5
6348 ac_header_preproc=no
6351 rm -f conftest.err conftest.$ac_ext
6352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6353 echo "${ECHO_T}$ac_header_preproc" >&6; }
6355 # So? What about this header?
6356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6362 ac_header_preproc=yes
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 eval "$as_ac_Header=\$ac_header_preproc"
6387 ac_res=`eval echo '${'$as_ac_Header'}'`
6388 { echo "$as_me:$LINENO: result: $ac_res" >&5
6389 echo "${ECHO_T}$ac_res" >&6; }
6392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6393 cat >>confdefs.h <<_ACEOF
6394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6396 HAVE_FREETYPE_FREETYPE_H=1
6403 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
6404 "x${FREETYPE_CONFIG}" '!=' "x";then
6405 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
6408 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
6413 if test "x${HAVE_FREETYPE}" = "x1"; then
6414 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
6415 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
6417 LIBS="$LIBS -lfreetype"
6420 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
6421 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
6424 { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
6425 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
6427 cat > conftest.c << EOF
6428 $HAVE_FT2BUILD_H_DEFINE
6430 #ifdef HAVE_FT2BUILD_H
6431 #include <ft2build.h>
6432 #include FT_FREETYPE_H
6435 #include FT_SFNT_NAMES_H
6436 #include FT_TRUETYPE_IDS_H
6437 #include FT_OUTLINE_H
6439 #include <freetype/freetype.h>
6440 #include <freetype/ftglyph.h>
6441 #include <freetype/ftsizes.h>
6442 #include <freetype/ftsnames.h>
6443 #include <freetype/ttnameid.h>
6444 #include <freetype/ftoutln.h>
6449 FT_Library ftlibrary;
6461 FT_Init_FreeType(&ftlibrary);
6462 FT_New_Face(ftlibrary, "filename", 0, &face);
6463 i = face->num_glyphs - 1;
6464 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
6465 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
6466 FT_Get_Postscript_Name(face);
6467 FT_Get_Char_Index(face, 33);
6468 FT_Get_First_Char(face, &i);
6469 FT_Get_Next_Char(face, 33, &i);
6470 if(FT_HAS_GLYPH_NAMES(face)) {
6471 FT_Get_Glyph_Name(face, 33, name, 127);
6473 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
6474 FT_Get_Glyph(face->glyph, &glyph);
6475 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
6476 FT_Done_Glyph(glyph);
6478 FT_Done_FreeType(ftlibrary);
6483 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6484 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6485 { echo "$as_me:$LINENO: result: yes" >&5
6486 echo "${ECHO_T}yes" >&6; }
6487 cat >>confdefs.h <<_ACEOF
6488 #define HAVE_FREETYPE 1
6491 cat >>confdefs.h <<_ACEOF
6492 #define HAVE_FREETYPE_FREETYPE_H 1
6495 cat >>confdefs.h <<_ACEOF
6496 #define USE_FREETYPE 1
6500 echo "configure: failed program was:" >&5
6503 { echo "$as_me:$LINENO: result: no" >&5
6504 echo "${ECHO_T}no" >&6; }
6509 # if the above didn't work out, reset all changes to the compiler variables.
6510 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
6511 CPPFLAGS=$OLDCPPFLAGS
6516 #RFX_CHECK_FONTCONFIG
6518 # ------------------------------------------------------------------
6522 if test "x${DISABLE_LAME}" = "xtrue"; then
6523 echo "*" Disabling lame support...
6525 # old lame code at lib/lame
6526 if test -f lib/lame/Makefile.in; then
6527 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)"
6528 lame_makefile="lib/lame/Makefile"
6529 CPPFLAGS="$CPPFLAGS -Ilame"
6530 cat >>confdefs.h <<_ACEOF
6535 if test -d /usr/include/lame; then
6536 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
6538 if test -d /usr/local/include/lame; then
6539 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
6543 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
6544 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
6545 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 ac_check_lib_save_LIBS=$LIBS
6549 LIBS="-lmp3lame $LIBS"
6550 cat >conftest.$ac_ext <<_ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6557 /* Override any GCC internal prototype to avoid an error.
6558 Use char because int might match the return type of a GCC
6559 builtin and then its argument prototype would still apply. */
6567 return lame_init ();
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (ac_try="$ac_link"
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_link") 2>conftest.er1
6581 grep -v '^ *+' conftest.er1 >conftest.err
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } && {
6586 test -z "$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 } && test -s conftest$ac_exeext &&
6589 $as_test_x conftest$ac_exeext; then
6590 ac_cv_lib_mp3lame_lame_init=yes
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6595 ac_cv_lib_mp3lame_lame_init=no
6598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6599 conftest$ac_exeext conftest.$ac_ext
6600 LIBS=$ac_check_lib_save_LIBS
6602 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
6603 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
6604 if test $ac_cv_lib_mp3lame_lame_init = yes; then
6605 cat >>confdefs.h <<_ACEOF
6606 #define HAVE_LIBMP3LAME 1
6609 LIBS="-lmp3lame $LIBS"
6616 for ac_header in lame.h
6618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 ac_res=`eval echo '${'$as_ac_Header'}'`
6626 { echo "$as_me:$LINENO: result: $ac_res" >&5
6627 echo "${ECHO_T}$ac_res" >&6; }
6629 # Is the header compilable?
6630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6632 cat >conftest.$ac_ext <<_ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6638 $ac_includes_default
6639 #include <$ac_header>
6641 rm -f conftest.$ac_objext
6642 if { (ac_try="$ac_compile"
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_compile") 2>conftest.er1
6650 grep -v '^ *+' conftest.er1 >conftest.err
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && {
6655 test -z "$ac_c_werror_flag" ||
6656 test ! -s conftest.err
6657 } && test -s conftest.$ac_objext; then
6658 ac_header_compiler=yes
6660 echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6663 ac_header_compiler=no
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6668 echo "${ECHO_T}$ac_header_compiler" >&6; }
6670 # Is the header present?
6671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6673 cat >conftest.$ac_ext <<_ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 #include <$ac_header>
6681 if { (ac_try="$ac_cpp conftest.$ac_ext"
6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6689 grep -v '^ *+' conftest.er1 >conftest.err
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } >/dev/null && {
6694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6695 test ! -s conftest.err
6697 ac_header_preproc=yes
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6702 ac_header_preproc=no
6705 rm -f conftest.err conftest.$ac_ext
6706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6707 echo "${ECHO_T}$ac_header_preproc" >&6; }
6709 # So? What about this header?
6710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6716 ac_header_preproc=yes
6719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 eval "$as_ac_Header=\$ac_header_preproc"
6741 ac_res=`eval echo '${'$as_ac_Header'}'`
6742 { echo "$as_me:$LINENO: result: $ac_res" >&5
6743 echo "${ECHO_T}$ac_res" >&6; }
6746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6747 cat >>confdefs.h <<_ACEOF
6748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6755 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
6756 cat >>confdefs.h <<_ACEOF
6765 # ------------------------------------------------------------------
6769 for ac_prog in avifile-config
6771 # Extract the first word of "$ac_prog", so it can be a program name with args.
6772 set dummy $ac_prog; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 if test -n "$AVIFILE_CONFIG"; then
6779 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
6789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
6799 if test -n "$AVIFILE_CONFIG"; then
6800 { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
6801 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
6803 { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6808 test -n "$AVIFILE_CONFIG" && break
6812 if test "x$AVIFILE_CONFIG" '!=' "x";then
6813 OLDCPPFLAGS="$CPPFLAGS"
6814 # temporarily add avifile paths to CPPFLAGS...
6815 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
6818 for ac_header in avifile/version.h version.h
6820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 ac_res=`eval echo '${'$as_ac_Header'}'`
6828 { echo "$as_me:$LINENO: result: $ac_res" >&5
6829 echo "${ECHO_T}$ac_res" >&6; }
6831 # Is the header compilable?
6832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6834 cat >conftest.$ac_ext <<_ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6840 $ac_includes_default
6841 #include <$ac_header>
6843 rm -f conftest.$ac_objext
6844 if { (ac_try="$ac_compile"
6846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847 *) ac_try_echo=$ac_try;;
6849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6850 (eval "$ac_compile") 2>conftest.er1
6852 grep -v '^ *+' conftest.er1 >conftest.err
6854 cat conftest.err >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && {
6857 test -z "$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 } && test -s conftest.$ac_objext; then
6860 ac_header_compiler=yes
6862 echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6865 ac_header_compiler=no
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6870 echo "${ECHO_T}$ac_header_compiler" >&6; }
6872 # Is the header present?
6873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6875 cat >conftest.$ac_ext <<_ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 #include <$ac_header>
6883 if { (ac_try="$ac_cpp conftest.$ac_ext"
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6891 grep -v '^ *+' conftest.er1 >conftest.err
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } >/dev/null && {
6896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6897 test ! -s conftest.err
6899 ac_header_preproc=yes
6901 echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6904 ac_header_preproc=no
6907 rm -f conftest.err conftest.$ac_ext
6908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6909 echo "${ECHO_T}$ac_header_preproc" >&6; }
6911 # So? What about this header?
6912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6918 ac_header_preproc=yes
6921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 eval "$as_ac_Header=\$ac_header_preproc"
6943 ac_res=`eval echo '${'$as_ac_Header'}'`
6944 { echo "$as_me:$LINENO: result: $ac_res" >&5
6945 echo "${ECHO_T}$ac_res" >&6; }
6948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6949 cat >>confdefs.h <<_ACEOF
6950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6958 CPPFLAGS="$OLDCPPFLAGS"
6961 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
6962 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
6964 if test "x${ac_cv_header_version_h}" '=' "xyes";then
6965 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
6967 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
6968 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
6971 cat > conftest.cpp << EOF
6973 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
6974 // so we have to introduce them this way
6975 $HAVE_VERSION_H_DEFINE
6976 $HAVE_AVIFILE_VERSION_H_DEFINE
6978 #ifdef HAVE_VERSION_H
6979 #include <version.h>
6981 #ifdef HAVE_AVIFILE_VERSION_H
6982 #include <avifile/version.h>
6985 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
6986 #include <avifile.h>
6987 #include <aviplay.h>
6988 #include <avm_fourcc.h>
6989 #include <avm_creators.h>
6990 #include <StreamInfo.h>
6993 #include <avifile.h>
6994 #include <aviplay.h>
6995 #include <aviutil.h>
6997 #define Height height
7004 IAviReadFile* player;
7005 IAviReadStream* astream;
7006 IAviReadStream* vstream;
7007 player = CreateIAviReadFile(0);
7008 astream = player->GetStream(0, AviStream::Audio);
7009 vstream = player->GetStream(0, AviStream::Video);
7010 vstream -> StartStreaming();
7011 astream -> StartStreaming();
7014 player->GetFileHeader(&head);
7015 head.dwMicroSecPerFrame;
7020 head.dwMicroSecPerFrame;
7021 astream->GetEndPos(),
7022 astream->GetEndTime());
7023 player->StreamCount();
7025 StreamInfo*audioinfo;
7026 StreamInfo*videoinfo;
7027 audioinfo = astream->GetStreamInfo();
7028 videoinfo = vstream->GetStreamInfo();
7029 videoinfo->GetVideoWidth();
7030 videoinfo->GetVideoHeight();
7031 audioinfo->GetAudioSamplesPerSec();
7032 videoinfo->GetFps();
7034 CImage*img = vstream->GetFrame();
7041 astream->GetAudioFormatInfo(&wave,0);
7043 astream->ReadFrames(0,0,0,a,b);
7045 int main (int argc, char*argv)
7051 if test "x$AVIFILE_CONFIG" '!=' "x";then
7052 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
7053 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
7054 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
7055 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
7056 { echo "$as_me:$LINENO: result: yes" >&5
7057 echo "${ECHO_T}yes" >&6; }
7060 cat >>confdefs.h <<_ACEOF
7061 #define AVIFILE true
7065 echo "configure: failed program was:" >&5
7066 cat conftest.cpp >&5
7067 { echo "$as_me:$LINENO: result: no" >&5
7068 echo "${ECHO_T}no" >&6; }
7071 { echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6; }
7076 if test "x${AVIFILE}" = "xtrue"; then
7077 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
7078 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
7079 cat >>confdefs.h <<_ACEOF
7080 #define HAVE_AVIFILE 1
7085 if test "x${WIN32}" != "x"; then
7086 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
7087 #if test "x${AVIFIL32}" != "x"; then
7088 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
7090 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
7096 # ------------------------------------------------------------------
7098 if test "x${UNCOMPRESS}" = "xgzip"; then
7099 cat >>confdefs.h <<_ACEOF
7106 # ------------------------------------------------------------------
7109 { echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
7110 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6; }
7112 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
7115 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
7116 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
7118 # iterate through version 2.2 to 2.4
7121 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
7123 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
7124 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
7126 elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
7127 #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
7129 PYTHON_LIB="-framework Python"
7130 if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
7131 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
7133 PYTHON_LIB2="$PYTHON_LIB"
7135 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
7137 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
7138 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
7139 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
7141 -a -f "/sw/include/python2.$v/Python.h" \
7142 -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
7144 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
7145 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
7150 if test "x$PY_VERSION" "!=" "x"; then
7151 { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
7152 echo "${ECHO_T}$PY_VERSION" >&6; }
7153 export PYTHON_INCLUDES PYTHON_LIB
7156 { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
7157 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
7159 cat > conftest.c << EOF
7161 #include <Imaging.h>
7166 ret = Py_Main(0, 0);
7167 int x; // check also for gcc 2.95.x incompatibilities
7171 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
7172 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7173 { echo "$as_me:$LINENO: result: yes" >&5
7174 echo "${ECHO_T}yes" >&6; }
7177 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
7178 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7179 { echo "$as_me:$LINENO: result: yes" >&5
7180 echo "${ECHO_T}yes" >&6; }
7181 PYTHON_LIB="${PYTHON_LIB2}"
7184 echo "configure: failed program was:" >&5
7186 { echo "$as_me:$LINENO: result: no" >&5
7187 echo "${ECHO_T}no" >&6; }
7192 { echo "$as_me:$LINENO: result: nope" >&5
7193 echo "${ECHO_T}nope" >&6; }
7197 if test "x$PYTHON_OK" '!=' "xyes";then
7198 echo all install uninstall clean: > lib/python/Makefile
7199 # fail silently- the most users won't have any need for the
7200 # python interface anyway
7202 pythonrfxswf="lib/python/Makefile"
7205 # ------------------------------------------------------------------
7207 { echo "$as_me:$LINENO: checking for missing libraries" >&5
7208 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
7210 if test "x$ZLIBMISSING" = "xtrue";then
7211 MISSINGLIBS="${MISSINGLIBS} zlib"
7215 if test "x$JPEGLIBMISSING" = "xtrue";then
7216 MISSINGLIBS="${MISSINGLIBS} jpeglib"
7218 DISABLEJPEG2SWF=true
7221 if test "x$T1LIBMISSING" = "xtrue";then
7222 MISSINGLIBS="${MISSINGLIBS} t1lib"
7224 if test "x$UNGIFMISSING" = "xtrue";then
7226 MISSINGLIBS="${MISSINGLIBS} ungif"
7230 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
7231 DISABLEPDF2SWF=true;
7232 DISABLEJPEG2SWF=true;
7233 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
7236 if test "x$HAVE_FREETYPE" '!=' "x1"; then
7237 DISABLEPDF2SWF=true;
7238 MISSINGLIBS="${MISSINGLIBS} freetype"
7241 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
7242 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
7244 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
7246 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
7249 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
7250 DISABLEPNG2SWF=true;
7251 MISSINGLIBS="${MISSINGLIBS} zlib.h"
7254 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
7255 # MISSINGLIBS="${MISSINGLIBS} avifile"
7258 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
7259 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
7261 # ------------------------------------------------------------------
7263 if test "x${MISSINGLIBS}" '!=' "x"; then
7264 echo "***************************************************"
7265 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
7268 avi2swf="avi2swf/Makefile"
7269 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
7270 #don't whine, avi2swf is outdated anyway
7271 #echo "* Disabling avi2swf tool..."
7272 echo all install uninstall clean: > avi2swf/Makefile
7276 pdf2swf_makefile="lib/pdf/Makefile"
7277 PDF2SWF='pdf2swf$(E)'
7280 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
7281 echo "* Disabling pdf2swf tool..."
7282 rm -f lib/pdf/Makefile
7283 echo all install uninstall clean: > lib/pdf/Makefile
7291 if test "x${ZLIBMISSING}" = "xtrue"; then
7293 echo "* Warning! Without zlib, you will not be able to read"
7294 echo "* or write compressed Flash MX files!"
7297 JPEG2SWF='jpeg2swf$(E)'
7298 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
7299 echo "* Disabling jpeg2swf tool..."
7305 GIF2SWF='gif2swf$(E)'
7306 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
7307 echo "* Disabling gif2swf tool..."
7313 PNG2SWF='png2swf$(E)'
7314 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
7315 echo "* Disabling png2swf tool..."
7321 if test "x${MISSINGLIBS}" '!=' "x"; then
7322 if test "x${PARTIAL}" '=' "x"; then
7323 echo "* (never mind)"
7325 echo "***************************************************"
7328 # ------------------------------------------------------------------
7330 if test -f "release.in"; then release_in="./release"; fi
7331 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile"
7333 ac_config_files="$ac_config_files ${FILES}"
7335 cat >confcache <<\_ACEOF
7336 # This file is a shell script that caches the results of configure
7337 # tests run on this system so they can be shared between configure
7338 # scripts and configure runs, see configure's option --config-cache.
7339 # It is not useful on other systems. If it contains results you don't
7340 # want to keep, you may remove or edit it.
7342 # config.status only pays attention to the cache file if you give it
7343 # the --recheck option to rerun configure.
7345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7351 # The following way of writing the cache mishandles newlines in values,
7352 # but we know of no workaround that is simple, portable, and efficient.
7353 # So, we kill variables containing newlines.
7354 # Ultrix sh set writes to stderr and can't be redirected directly,
7355 # and sets the high bit in the cache file unless we assign to the vars.
7357 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7358 eval ac_val=\$$ac_var
7362 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7363 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7366 _ | IFS | as_nl) ;; #(
7367 *) $as_unset $ac_var ;;
7373 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7374 *${as_nl}ac_space=\ *)
7375 # `set' does not quote correctly, so add quotes (double-quote
7376 # substitution turns \\\\ into \\, and sed turns \\ into \).
7379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7382 # `set' quotes correctly as required by POSIX, so do not add quotes.
7383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7392 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7394 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7396 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7397 if test -w "$cache_file"; then
7398 test "x$cache_file" != "x/dev/null" &&
7399 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7400 echo "$as_me: updating cache $cache_file" >&6;}
7401 cat confcache >$cache_file
7403 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7404 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7409 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7410 # Let make expand exec_prefix.
7411 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7413 DEFS=-DHAVE_CONFIG_H
7417 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7418 # 1. Remove the extension, and $U if already installed.
7419 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7420 ac_i=`echo "$ac_i" | sed "$ac_script"`
7421 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7422 # will be set to the directory where LIBOBJS objects are built.
7423 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7424 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7428 LTLIBOBJS=$ac_ltlibobjs
7432 : ${CONFIG_STATUS=./config.status}
7433 ac_clean_files_save=$ac_clean_files
7434 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7435 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7436 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7437 cat >$CONFIG_STATUS <<_ACEOF
7439 # Generated by $as_me.
7440 # Run this file to recreate the current configuration.
7441 # Compiler output produced by configure, useful for debugging
7442 # configure, is in config.log if it exists.
7447 SHELL=\${CONFIG_SHELL-$SHELL}
7450 cat >>$CONFIG_STATUS <<\_ACEOF
7451 ## --------------------- ##
7452 ## M4sh Initialization. ##
7453 ## --------------------- ##
7455 # Be more Bourne compatible
7456 DUALCASE=1; export DUALCASE # for MKS sh
7457 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7460 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7461 # is contrary to our usage. Disable this feature.
7462 alias -g '${1+"$@"}'='"$@"'
7463 setopt NO_GLOB_SUBST
7465 case `(set -o) 2>/dev/null` in
7466 *posix*) set -o posix ;;
7475 # Avoid depending upon Character Ranges.
7476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7479 as_cr_digits='0123456789'
7480 as_cr_alnum=$as_cr_Letters$as_cr_digits
7482 # The user is always right.
7483 if test "${PATH_SEPARATOR+set}" != set; then
7484 echo "#! /bin/sh" >conf$$.sh
7485 echo "exit 0" >>conf$$.sh
7487 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7495 # Support unset when possible.
7496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7504 # We need space, tab and new line, in precisely that order. Quoting is
7505 # there to prevent editors from complaining about space-tab.
7506 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7507 # splitting by setting IFS to empty value.)
7512 # Find who we are. Look in the path if we contain no directory separator.
7514 *[\\/]* ) as_myself=$0 ;;
7515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir=.
7520 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7526 # We did not find ourselves, most probably we were run as `sh COMMAND'
7527 # in which case we are not to be found in the path.
7528 if test "x$as_myself" = x; then
7531 if test ! -f "$as_myself"; then
7532 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7533 { (exit 1); exit 1; }
7536 # Work around bugs in pre-3.0 UWIN ksh.
7537 for as_var in ENV MAIL MAILPATH
7538 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7546 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7547 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7548 LC_TELEPHONE LC_TIME
7550 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7551 eval $as_var=C; export $as_var
7553 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7557 # Required to use basename.
7558 if expr a : '\(a\)' >/dev/null 2>&1 &&
7559 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7565 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7566 as_basename=basename
7572 # Name of the executable.
7573 as_me=`$as_basename -- "$0" ||
7574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7575 X"$0" : 'X\(//\)$' \| \
7576 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7578 sed '/^.*\/\([^/][^/]*\)\/*$/{
7599 test "x$as_lineno_1" != "x$as_lineno_2" &&
7600 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7602 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7603 # uniformly replaced by the line number. The first 'sed' inserts a
7604 # line-number line after each line using $LINENO; the second 'sed'
7605 # does the real work. The second script uses 'N' to pair each
7606 # line-number line with the line containing $LINENO, and appends
7607 # trailing '-' during substitution so that $LINENO is not a special
7609 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7610 # scripts with optimization help from Paolo Bonzini. Blame Lee
7611 # E. McMahon (1931-1989) for sed's syntax. :-)
7623 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7627 chmod +x "$as_me.lineno" ||
7628 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7629 { (exit 1); exit 1; }; }
7631 # Don't try to exec as it changes $[0], causing all sort of problems
7632 # (the dirname of $[0] is not the place where we might find the
7633 # original and so on. Autoconf is especially sensitive to this).
7635 # Exit status is that of the last command.
7640 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7646 ECHO_C= ECHO_N= ECHO_T=
7649 case `echo 'x\c'` in
7650 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7657 if expr a : '\(a\)' >/dev/null 2>&1 &&
7658 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7664 rm -f conf$$ conf$$.exe conf$$.file
7665 if test -d conf$$.dir; then
7666 rm -f conf$$.dir/conf$$.file
7672 if ln -s conf$$.file conf$$ 2>/dev/null; then
7674 # ... but there are two gotchas:
7675 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7676 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7677 # In both cases, we have to default to `cp -p'.
7678 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7680 elif ln conf$$.file conf$$ 2>/dev/null; then
7685 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7686 rmdir conf$$.dir 2>/dev/null
7688 if mkdir -p . 2>/dev/null; then
7691 test -d ./-p && rmdir ./-p
7695 if test -x / >/dev/null 2>&1; then
7698 if ls -dL / >/dev/null 2>&1; then
7705 if test -d "$1"; then
7711 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7712 ???[sx]*):;;*)false;;esac;fi
7716 as_executable_p=$as_test_x
7718 # Sed expression to map a string onto a valid CPP name.
7719 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7721 # Sed expression to map a string onto a valid variable name.
7722 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7727 # Save the log message, to keep $[0] and so on meaningful, and to
7728 # report actual input values of CONFIG_FILES etc. instead of their
7729 # values after options handling.
7731 This file was extended by $as_me, which was
7732 generated by GNU Autoconf 2.61. Invocation command line was
7734 CONFIG_FILES = $CONFIG_FILES
7735 CONFIG_HEADERS = $CONFIG_HEADERS
7736 CONFIG_LINKS = $CONFIG_LINKS
7737 CONFIG_COMMANDS = $CONFIG_COMMANDS
7740 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7745 cat >>$CONFIG_STATUS <<_ACEOF
7746 # Files that config.status was made for.
7747 config_files="$ac_config_files"
7748 config_headers="$ac_config_headers"
7752 cat >>$CONFIG_STATUS <<\_ACEOF
7754 \`$as_me' instantiates files from templates according to the
7755 current configuration.
7757 Usage: $0 [OPTIONS] [FILE]...
7759 -h, --help print this help, then exit
7760 -V, --version print version number and configuration settings, then exit
7761 -q, --quiet do not print progress messages
7762 -d, --debug don't remove temporary files
7763 --recheck update $as_me by reconfiguring in the same conditions
7764 --file=FILE[:TEMPLATE]
7765 instantiate the configuration file FILE
7766 --header=FILE[:TEMPLATE]
7767 instantiate the configuration header FILE
7769 Configuration files:
7772 Configuration headers:
7775 Report bugs to <bug-autoconf@gnu.org>."
7778 cat >>$CONFIG_STATUS <<_ACEOF
7781 configured by $0, generated by GNU Autoconf 2.61,
7782 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7784 Copyright (C) 2006 Free Software Foundation, Inc.
7785 This config.status script is free software; the Free Software Foundation
7786 gives unlimited permission to copy, distribute and modify it."
7793 cat >>$CONFIG_STATUS <<\_ACEOF
7794 # If no file are specified by the user, then we need to provide default
7795 # value. By we need to know if files were specified by the user.
7801 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7802 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7813 # Handling of the options.
7814 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7816 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7817 echo "$ac_cs_version"; exit ;;
7818 --debug | --debu | --deb | --de | --d | -d )
7820 --file | --fil | --fi | --f )
7822 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7823 ac_need_defaults=false;;
7824 --header | --heade | --head | --hea )
7826 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7827 ac_need_defaults=false;;
7829 # Conflict between --help and --header
7830 { echo "$as_me: error: ambiguous option: $1
7831 Try \`$0 --help' for more information." >&2
7832 { (exit 1); exit 1; }; };;
7833 --help | --hel | -h )
7834 echo "$ac_cs_usage"; exit ;;
7835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7836 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7840 -*) { echo "$as_me: error: unrecognized option: $1
7841 Try \`$0 --help' for more information." >&2
7842 { (exit 1); exit 1; }; } ;;
7844 *) ac_config_targets="$ac_config_targets $1"
7845 ac_need_defaults=false ;;
7851 ac_configure_extra_args=
7853 if $ac_cs_silent; then
7855 ac_configure_extra_args="$ac_configure_extra_args --silent"
7859 cat >>$CONFIG_STATUS <<_ACEOF
7860 if \$ac_cs_recheck; then
7861 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7864 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7868 cat >>$CONFIG_STATUS <<\_ACEOF
7872 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7873 ## Running $as_me. ##
7879 cat >>$CONFIG_STATUS <<_ACEOF
7882 cat >>$CONFIG_STATUS <<\_ACEOF
7884 # Handling of arguments.
7885 for ac_config_target in $ac_config_targets
7887 case $ac_config_target in
7888 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7889 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
7891 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7892 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7893 { (exit 1); exit 1; }; };;
7898 # If the user did not use the arguments to specify the items to instantiate,
7899 # then the envvar interface is used. Set only those that are not.
7900 # We use the long form for the default assignment because of an extremely
7901 # bizarre bug on SunOS 4.1.3.
7902 if $ac_need_defaults; then
7903 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7904 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7907 # Have a temporary directory for convenience. Make it in the build tree
7908 # simply because there is no reason against having it here, and in addition,
7909 # creating and moving files from /tmp can sometimes cause problems.
7910 # Hook for its removal unless debugging.
7911 # Note that there is a small window in which the directory will not be cleaned:
7912 # after its creation but before its name has been assigned to `$tmp'.
7916 trap 'exit_status=$?
7917 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7919 trap '{ (exit 1); exit 1; }' 1 2 13 15
7921 # Create a (secure) tmp directory for tmp files.
7924 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7925 test -n "$tmp" && test -d "$tmp"
7928 tmp=./conf$$-$RANDOM
7929 (umask 077 && mkdir "$tmp")
7932 echo "$me: cannot create a temporary directory in ." >&2
7933 { (exit 1); exit 1; }
7937 # Set up the sed scripts for CONFIG_FILES section.
7940 # No need to generate the scripts if there are no CONFIG_FILES.
7941 # This happens for instance when ./config.status config.h
7942 if test -n "$CONFIG_FILES"; then
7949 for ac_last_try in false false false false false :; do
7950 cat >conf$$subs.sed <<_ACEOF
7951 SHELL!$SHELL$ac_delim
7952 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7953 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7954 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7955 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7956 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7957 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7958 exec_prefix!$exec_prefix$ac_delim
7959 prefix!$prefix$ac_delim
7960 program_transform_name!$program_transform_name$ac_delim
7961 bindir!$bindir$ac_delim
7962 sbindir!$sbindir$ac_delim
7963 libexecdir!$libexecdir$ac_delim
7964 datarootdir!$datarootdir$ac_delim
7965 datadir!$datadir$ac_delim
7966 sysconfdir!$sysconfdir$ac_delim
7967 sharedstatedir!$sharedstatedir$ac_delim
7968 localstatedir!$localstatedir$ac_delim
7969 includedir!$includedir$ac_delim
7970 oldincludedir!$oldincludedir$ac_delim
7971 docdir!$docdir$ac_delim
7972 infodir!$infodir$ac_delim
7973 htmldir!$htmldir$ac_delim
7974 dvidir!$dvidir$ac_delim
7975 pdfdir!$pdfdir$ac_delim
7976 psdir!$psdir$ac_delim
7977 libdir!$libdir$ac_delim
7978 localedir!$localedir$ac_delim
7979 mandir!$mandir$ac_delim
7981 ECHO_C!$ECHO_C$ac_delim
7982 ECHO_N!$ECHO_N$ac_delim
7983 ECHO_T!$ECHO_T$ac_delim
7985 build_alias!$build_alias$ac_delim
7986 host_alias!$host_alias$ac_delim
7987 target_alias!$target_alias$ac_delim
7988 build!$build$ac_delim
7989 build_cpu!$build_cpu$ac_delim
7990 build_vendor!$build_vendor$ac_delim
7991 build_os!$build_os$ac_delim
7993 host_cpu!$host_cpu$ac_delim
7994 host_vendor!$host_vendor$ac_delim
7995 host_os!$host_os$ac_delim
7996 SHARED!$SHARED$ac_delim
7998 CFLAGS!$CFLAGS$ac_delim
7999 LDFLAGS!$LDFLAGS$ac_delim
8000 CPPFLAGS!$CPPFLAGS$ac_delim
8001 ac_ct_CC!$ac_ct_CC$ac_delim
8002 EXEEXT!$EXEEXT$ac_delim
8003 OBJEXT!$OBJEXT$ac_delim
8005 CXXFLAGS!$CXXFLAGS$ac_delim
8006 ac_ct_CXX!$ac_ct_CXX$ac_delim
8008 RANLIB!$RANLIB$ac_delim
8009 SET_MAKE!$SET_MAKE$ac_delim
8010 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8011 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8012 INSTALL_DATA!$INSTALL_DATA$ac_delim
8014 UNCOMPRESS!$UNCOMPRESS$ac_delim
8015 AREXT!$AREXT$ac_delim
8017 SLEXT!$SLEXT$ac_delim
8018 CXXLIBS!$CXXLIBS$ac_delim
8019 STRIP!$STRIP$ac_delim
8020 target!$target$ac_delim
8021 target_cpu!$target_cpu$ac_delim
8022 target_vendor!$target_vendor$ac_delim
8023 target_os!$target_os$ac_delim
8024 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
8025 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
8027 EGREP!$EGREP$ac_delim
8028 PACKAGE!$PACKAGE$ac_delim
8029 VERSION!$VERSION$ac_delim
8030 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
8031 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
8032 lame_objects!$lame_objects$ac_delim
8033 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
8034 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
8035 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
8036 USE_GZIP!$USE_GZIP$ac_delim
8037 PYTHON_LIB!$PYTHON_LIB$ac_delim
8038 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
8039 PDF2SWF!$PDF2SWF$ac_delim
8040 LIBPDF!$LIBPDF$ac_delim
8041 JPEG2SWF!$JPEG2SWF$ac_delim
8042 GIF2SWF!$GIF2SWF$ac_delim
8043 PNG2SWF!$PNG2SWF$ac_delim
8044 LIBOBJS!$LIBOBJS$ac_delim
8045 LTLIBOBJS!$LTLIBOBJS$ac_delim
8048 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
8050 elif $ac_last_try; then
8051 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8052 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8053 { (exit 1); exit 1; }; }
8055 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8059 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8060 if test -n "$ac_eof"; then
8061 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8062 ac_eof=`expr $ac_eof + 1`
8065 cat >>$CONFIG_STATUS <<_ACEOF
8066 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8070 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8071 s/^/s,@/; s/!/@,|#_!!_#|/
8074 s/'"$ac_delim"'$/,g/; t
8076 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8077 ' >>$CONFIG_STATUS <conf$$subs.sed
8078 rm -f conf$$subs.sed
8079 cat >>$CONFIG_STATUS <<_ACEOF
8086 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8087 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8088 # trailing colons and then remove the whole line if VPATH becomes empty
8089 # (actually we leave an empty line to preserve line numbers).
8090 if test "x$srcdir" = x.; then
8091 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8095 s/^\([^=]*=[ ]*\):*/\1/
8101 cat >>$CONFIG_STATUS <<\_ACEOF
8102 fi # test -n "$CONFIG_FILES"
8105 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
8108 :[FHLC]) ac_mode=$ac_tag; continue;;
8110 case $ac_mode$ac_tag in
8112 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8113 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8114 { (exit 1); exit 1; }; };;
8115 :[FH]-) ac_tag=-:-;;
8116 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8133 -) ac_f="$tmp/stdin";;
8134 *) # Look for the file first in the build tree, then in the source tree
8135 # (if the path is not absolute). The absolute path cannot be DOS-style,
8136 # because $ac_f cannot contain `:'.
8140 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8142 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8143 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8144 { (exit 1); exit 1; }; };;
8146 ac_file_inputs="$ac_file_inputs $ac_f"
8149 # Let's still pretend it is `configure' which instantiates (i.e., don't
8150 # use $as_me), people would be surprised to read:
8151 # /* config.h. Generated by config.status. */
8152 configure_input="Generated from "`IFS=:
8153 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8154 if test x"$ac_file" != x-; then
8155 configure_input="$ac_file. $configure_input"
8156 { echo "$as_me:$LINENO: creating $ac_file" >&5
8157 echo "$as_me: creating $ac_file" >&6;}
8161 *:-:* | *:-) cat >"$tmp/stdin";;
8166 ac_dir=`$as_dirname -- "$ac_file" ||
8167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8168 X"$ac_file" : 'X\(//\)[^/]' \| \
8169 X"$ac_file" : 'X\(//\)$' \| \
8170 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8191 -*) as_dir=./$as_dir;;
8193 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8197 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8198 *) as_qdir=$as_dir;;
8200 as_dirs="'$as_qdir' $as_dirs"
8201 as_dir=`$as_dirname -- "$as_dir" ||
8202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8203 X"$as_dir" : 'X\(//\)[^/]' \| \
8204 X"$as_dir" : 'X\(//\)$' \| \
8205 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8224 test -d "$as_dir" && break
8226 test -z "$as_dirs" || eval "mkdir $as_dirs"
8227 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8228 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8229 { (exit 1); exit 1; }; }; }
8233 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8235 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8236 # A ".." for each directory in $ac_dir_suffix.
8237 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8238 case $ac_top_builddir_sub in
8239 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8240 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8243 ac_abs_top_builddir=$ac_pwd
8244 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8245 # for backward compatibility:
8246 ac_top_builddir=$ac_top_build_prefix
8249 .) # We are building in place.
8251 ac_top_srcdir=$ac_top_builddir_sub
8252 ac_abs_top_srcdir=$ac_pwd ;;
8253 [\\/]* | ?:[\\/]* ) # Absolute name.
8254 ac_srcdir=$srcdir$ac_dir_suffix;
8255 ac_top_srcdir=$srcdir
8256 ac_abs_top_srcdir=$srcdir ;;
8258 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8259 ac_top_srcdir=$ac_top_build_prefix$srcdir
8260 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8262 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8272 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8273 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8277 cat >>$CONFIG_STATUS <<\_ACEOF
8278 # If the template does not know about datarootdir, expand it.
8279 # FIXME: This hack should be removed a few years after 2.60.
8280 ac_datarootdir_hack=; ac_datarootdir_seen=
8282 case `sed -n '/datarootdir/ {
8291 ' $ac_file_inputs` in
8292 *datarootdir*) ac_datarootdir_seen=yes;;
8293 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8294 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8295 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8297 cat >>$CONFIG_STATUS <<_ACEOF
8298 ac_datarootdir_hack='
8299 s&@datadir@&$datadir&g
8300 s&@docdir@&$docdir&g
8301 s&@infodir@&$infodir&g
8302 s&@localedir@&$localedir&g
8303 s&@mandir@&$mandir&g
8304 s&\\\${datarootdir}&$datarootdir&g' ;;
8308 # Neutralize VPATH when `$srcdir' = `.'.
8309 # Shell code in configure.ac might set extrasub.
8310 # FIXME: do we really want to maintain this feature?
8311 cat >>$CONFIG_STATUS <<_ACEOF
8315 cat >>$CONFIG_STATUS <<\_ACEOF
8317 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8318 s&@configure_input@&$configure_input&;t t
8319 s&@top_builddir@&$ac_top_builddir_sub&;t t
8320 s&@srcdir@&$ac_srcdir&;t t
8321 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8322 s&@top_srcdir@&$ac_top_srcdir&;t t
8323 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8324 s&@builddir@&$ac_builddir&;t t
8325 s&@abs_builddir@&$ac_abs_builddir&;t t
8326 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8327 s&@INSTALL@&$ac_INSTALL&;t t
8328 $ac_datarootdir_hack
8329 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
8331 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8332 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8333 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8334 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8335 which seems to be undefined. Please make sure it is defined." >&5
8336 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8337 which seems to be undefined. Please make sure it is defined." >&2;}
8341 -) cat "$tmp/out"; rm -f "$tmp/out";;
8342 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8351 # Transform confdefs.h into a sed script `conftest.defines', that
8352 # substitutes the proper values into config.h.in to produce config.h.
8353 rm -f conftest.defines conftest.tail
8354 # First, append a space to every undef/define line, to ease matching.
8355 echo 's/$/ /' >conftest.defines
8356 # Then, protect against being on the right side of a sed subst, or in
8357 # an unquoted here document, in config.status. If some macros were
8358 # called several times there might be several #defines for the same
8359 # symbol, which is useless. But do not sort them, since the last
8360 # AC_DEFINE must be honored.
8361 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8362 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8363 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8364 # PARAMS is the parameter list in the macro definition--in most cases, it's
8365 # just an empty string.
8366 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8367 ac_dB='\\)[ (].*,\\1define\\2'
8375 s/^[ ]*#[ ]*define[ ][ ]*//
8380 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8381 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8382 ' >>conftest.defines
8384 # Remove the space that was appended to ease matching.
8385 # Then replace #undef with comments. This is necessary, for
8386 # example, in the case of _POSIX_SOURCE, which is predefined and required
8387 # on some systems where configure will not decide to define it.
8388 # (The regexp can be short, since the line contains either #define or #undef.)
8390 s,^[ #]*u.*,/* & */,' >>conftest.defines
8392 # Break up conftest.defines:
8395 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8396 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8397 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8399 ac_in='$ac_file_inputs'
8400 ac_out='"$tmp/out1"'
8401 ac_nxt='"$tmp/out2"'
8405 # Write a here document:
8406 cat >>$CONFIG_STATUS <<_ACEOF
8407 # First, check the format of the line:
8408 cat >"\$tmp/defines.sed" <<\\CEOF
8409 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8410 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8414 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8416 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8417 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8418 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8419 grep . conftest.tail >/dev/null || break
8420 rm -f conftest.defines
8421 mv conftest.tail conftest.defines
8423 rm -f conftest.defines conftest.tail
8425 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8426 cat >>$CONFIG_STATUS <<\_ACEOF
8427 if test x"$ac_file" != x-; then
8428 echo "/* $configure_input */" >"$tmp/config.h"
8429 cat "$ac_result" >>"$tmp/config.h"
8430 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8431 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8432 echo "$as_me: $ac_file is unchanged" >&6;}
8435 mv "$tmp/config.h" $ac_file
8438 echo "/* $configure_input */"
8450 { (exit 0); exit 0; }
8452 chmod +x $CONFIG_STATUS
8453 ac_clean_files=$ac_clean_files_save
8456 # configure is writing to config.log, and then calls config.status.
8457 # config.status does its own redirection, appending to config.log.
8458 # Unfortunately, on DOS this fails, as config.log is still kept open
8459 # by configure, so config.status won't be able to write to it; its
8460 # output is simply discarded. So we exec the FD to /dev/null,
8461 # effectively closing config.log, so it can be properly (re)opened and
8462 # appended to by config.status. When coming back to configure, we
8463 # need to make the FD available again.
8464 if test "$no_create" != yes; then
8466 ac_config_status_args=
8467 test "$silent" = yes &&
8468 ac_config_status_args="$ac_config_status_args --quiet"
8470 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8472 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8473 # would make configure fail if this is the last instruction.
8474 $ac_cs_success || { (exit 1); exit 1; }
8480 # On development trees, create snapshots of config.status
8482 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
8483 if test "x${MINGW}" = "xyes"; then
8484 echo cp config.status config.status.win32
8485 cp config.status config.status.win32
8487 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
8488 echo cp config.status config.status.linux
8489 cp config.status config.status.linux
8491 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
8492 echo cp config.status config.status.debug
8493 cp config.status config.status.debug
8495 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
8496 echo cp config.status config.status.optimize
8497 cp config.status config.status.optimize