+ AC_CHECK_FUNCS(popen mkstemp stat lrand48 rand srand48 srand)
+ RFX_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 install uninstall clean: > avi2swf/Makefile
+ avi2swf=
+fi
+
+if test "x${UNCOMPRESS}" = "xgzip"; then
+ AC_DEFINE_UNQUOTED(USE_GZIP, 1)
+fi
+AC_SUBST(USE_GZIP)
+
+JPEG2SWF='jpeg2swf' #$(EXEEXT)
+export JPEG2SWF
+PNG2SWF='png2swf' #$(EXEEXT)
+export PNG2SWF
+if test "x${DISABLEPDF2SWF}" = "xtrue"; then
+ echo "***************************************************"
+ echo "The following headers/libraries are missing: " ${MISSINGLIBS}
+ if test "x${DISABLEPDF2SWF}" = "xtrue"; then
+ echo "Disabling pdf2swf tool..."
+ rm -f pdf2swf/Makefile
+ echo all install uninstall clean: > pdf2swf/Makefile
+ fi
+ if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
+ echo "Disabling jpeg2swf tool..."
+ JPEG2SWF=
+ export JPEG2SWF
+ fi
+ if test "x${DISABLEPNG2SWF}" = "xtrue"; then
+ echo "Disabling png2swf tool..."
+ PNG2SWF=
+ export PNG2SWF
+ 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
+ echo "***************************************************"
+ FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile swfs/Makefile"
+else
+ FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile"
+fi
+AC_SUBST(JPEG2SWF)
+AC_SUBST(PNG2SWF)
+
+AC_OUTPUT(${FILES})