+# ------------------------------------------------------------------
+
+RFX_CHECK_PYTHON
+
+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
+
+# ------------------------------------------------------------------
+
+AC_MSG_CHECKING([for missing libraries])
+
+if test "x$ZLIBMISSING" = "xtrue";then
+ MISSINGLIBS="${MISSINGLIBS} zlib"
+ DISABLEPNG2SWF=true;
+fi
+if test "x$JPEGLIBMISSING" = "xtrue";then
+ MISSINGLIBS="${MISSINGLIBS} jpeglib"
+ DISABLEPDF2SWF=true;
+ DISABLEJPEG2SWF=true;
+fi
+if test "x$T1LIBMISSING" = "xtrue";then
+ MISSINGLIBS="${MISSINGLIBS} t1lib"
+fi
+
+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
+ DISABLEPDF2SWF=true;
+ MISSINGLIBS="${MISSINGLIBS} freetype"
+fi
+if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
+ MISSINGLIBS="${MISSINGLIBS} t1lib.h"
+fi
+if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
+ DISABLEPNG2SWF=true;
+ MISSINGLIBS="${MISSINGLIBS} zlib.h"
+fi
+if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
+ MISSINGLIBS="${MISSINGLIBS} avifile"
+fi
+
+AC_MSG_RESULT(${MISSINGLIBS})
+
+# ------------------------------------------------------------------
+
+if test "x${MISSINGLIBS}" '!=' "x"; then
+ echo "***************************************************"
+ echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
+fi
+
+avi2swf="avi2swf/Makefile"
+if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
+ echo "* Disabling avi2swf tool..."
+ echo all install uninstall clean: > avi2swf/Makefile
+ avi2swf=
+fi
+
+pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
+if test "x${DISABLEPDF2SWF}" = "xtrue"; then
+ echo "* Disabling pdf2swf tool..."
+ rm -f pdf2swf/Makefile
+ echo all install uninstall clean: > pdf2swf/Makefile
+ pdf2swf_makefile=""
+fi
+
+if test "x${ZLIBMISSING}" = "xtrue"; then
+ echo
+ echo "* Warning! Without zlib, you will not be able to read"
+ echo "* or write compressed Flash MX files!"
+fi
+