X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=configure.in;h=2e742202c0cb64a6199074c9907f9b850fff7a61;hb=96b5b5dcc9e45af1782b0b9509691238a4f12cc3;hp=e2c2839cbde1fe5bd69ae452fb7683ee0e2ada4c;hpb=19753c7be6d4abf315056b349c585d76c8f33103;p=swftools.git diff --git a/configure.in b/configure.in index e2c2839..2e74220 100644 --- a/configure.in +++ b/configure.in @@ -16,7 +16,8 @@ AC_ARG_ENABLE(lame, [ --disable-lame don't compile any L.A.M.E. mp3 encoding code in], DISABLE_LAME=true) PACKAGE=swftools -VERSION=0.6.0 +VERSION=2004-09-18-1422 + # ------------------------------------------------------------------ @@ -167,8 +168,8 @@ dnl Checks for typedefs, structures, and compiler characteristics. AC_TYPE_OFF_T AC_TYPE_SIZE_T AC_STRUCT_TM - AC_CHECK_TYPE(boolean,int) - AC_CHECK_TYPE(bool,char) + AC_CHECK_TYPE(boolean,int) #needed for jpeglib + dnl AC_CHECK_TYPE(bool,char) dnl AC_CHECK_TYPE(uchar,unsigned char) dnl AC_CHECK_TYPE(schar,signed char) dnl AC_CHECK_TYPE(word,unsigned short int) @@ -182,6 +183,8 @@ dnl Checks for library functions. RFX_CHECK_FREETYPE +RFX_CHECK_FONTCONFIG + # ------------------------------------------------------------------ lame_objects= @@ -215,7 +218,23 @@ AC_SUBST(lame_objects) # ------------------------------------------------------------------ RFX_CHECK_AVI2SWF +if test "x${AVIFILE}" = "xtrue"; then + VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS" + VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS" + AC_DEFINE_UNQUOTED(HAVE_AVIFILE, 1) +fi + +if test "x${WIN32}" != "x"; then + #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true) + #if test "x${AVIFIL32}" != "x"; then + # VIDEO_LIBS="$VIDEO_LIBS -lavifil32" + #fi + VIDEO_LIBS="$VIDEO_LIBS -lavifil32" + AVIFIL32=true +fi +AC_SUBST(VIDEO_LIBS) +AC_SUBST(VIDEO_CFLAGS) # ------------------------------------------------------------------ if test "x${UNCOMPRESS}" = "xgzip"; then @@ -231,6 +250,8 @@ if test "x$PYTHON_OK" '!=' "xyes";then echo all install uninstall clean: > lib/python/Makefile # fail silently- the most users won't have any need for the # python interface anyway +else + pythonrfxswf="lib/python/Makefile" fi # ------------------------------------------------------------------ @@ -246,29 +267,28 @@ if test "x$JPEGLIBMISSING" = "xtrue";then DISABLEPDF2SWF=true; DISABLEJPEG2SWF=true; fi -#if test "x$T1LIBMISSING" = "xtrue";then -# MISSINGLIBS="${MISSINGLIBS} t1lib" -# DISABLEPDF2SWF=true; -#fi +if test "x$T1LIBMISSING" = "xtrue";then + MISSINGLIBS="${MISSINGLIBS} t1lib" +fi -if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then +if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then DISABLEPDF2SWF=true; DISABLEJPEG2SWF=true; MISSINGLIBS="${MISSINGLIBS} jpeglib.h" fi -if test "x$HAVE_FREETYPE" != "x1"; then +if test "x$HAVE_FREETYPE" '!=' "x1"; then DISABLEPDF2SWF=true; MISSINGLIBS="${MISSINGLIBS} freetype" fi -if test "x${ac_cv_header_t1lib_h}" != "xyes"; then +if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then DISABLEPDF2SWF=true; MISSINGLIBS="${MISSINGLIBS} t1lib.h" fi -if test "x${ac_cv_header_zlib_h}" != "xyes"; then +if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then DISABLEPNG2SWF=true; MISSINGLIBS="${MISSINGLIBS} zlib.h" fi -if test "x${AVIFILE}" != "xtrue"; then +if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then MISSINGLIBS="${MISSINGLIBS} avifile" fi @@ -282,7 +302,7 @@ if test "x${MISSINGLIBS}" '!=' "x"; then fi avi2swf="avi2swf/Makefile" -if test "x${AVIFILE}" != "xtrue"; then +if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then echo "* Disabling avi2swf tool..." echo all install uninstall clean: > avi2swf/Makefile avi2swf= @@ -324,7 +344,8 @@ fi # ------------------------------------------------------------------ -FILES="./release Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}" +if test -f "release.in"; then release_in="./release"; fi +FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}" dnl AC_OUTPUT(${FILES}) old autoconf AC_CONFIG_FILES([${FILES}])