AC_INIT(src/)
PACKAGE=swftools
-VERSION=0.2.3
+VERSION=0.3.1
CFLAGS="-Winline -Wparentheses -Wimplicit -Wreturn-type -O2 -fomit-frame-pointer"
CXXFLAGS="-Winline -Wparentheses -Wimplicit -Wreturn-type -O2 -fomit-frame-pointer"
export PACKAGE VERSION CFLAGS CXXFLAGS
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AC_PROG_LN_S
+ AC_PROG_LIBTOOL
AC_CHECK_PROGS(UNCOMPRESS, gzip uncompress compress, )
dnl Checks for system services
echo "Error: The zlib compression library is required."
DISABLEPDF2SWF=true;
MISSINGLIBS="${MISSINGLIBS} zlib"
+ exit;
)
AC_CHECK_LIB(jpeg, jpeg_write_raw_data,,
DISABLEPDF2SWF=true;
dnl AC_PATH_XTRA
AC_HEADER_DIRENT
AC_HEADER_STDC
- AC_CHECK_HEADERS(zlib.h jpeglib.h t1lib.h sys/stat.h sys/types.h dirent.h sys/ndir.h sys/dir.h ndir.h)
+ AC_CHECK_HEADERS(zlib.h jpeglib.h t1lib.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h)
if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
DISABLEPDF2SWF=true;
dnl Checks for library functions.
AC_CHECK_FUNCS(popen mkstemp stat lrand48 rand srand48 srand)
+ SWF_CHECK_AVI2SWF
+
+avi2swf="avi2swf/Makefile"
+if test "x${AVIFILE}" != "xtrue"; then
+ echo "* Couldn't compile the avifile test program."
+ echo "* Disabling avi2swf tool..."
+ echo all: > avi2swf/Makefile
+ echo install: >> avi2swf/Makefile
+ echo clean: >> avi2swf/Makefile
+ avi2swf=
+fi
if test "x${UNCOMPRESS}" = "xgzip"; then
AC_DEFINE_UNQUOTED(USE_GZIP, 1)
export JPEG2SWF
fi
echo "***************************************************"
- FILES="./release Makefile lib/bladeenc/Makefile lib/Makefile src/Makefile swfs/Makefile"
+ FILES="./release ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile swfs/Makefile"
else
- FILES="./release Makefile lib/bladeenc/Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile pdf2swf/fonts/Makefile swfs/Makefile"
+ FILES="./release ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile pdf2swf/fonts/Makefile swfs/Makefile"
fi
AC_SUBST(JPEG2SWF)