+ AC_CHECK_FUNCS(popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time)
+ 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${DISABLE_LAME}" = "xtrue"; then
+ echo "*" Disabling lame support...
+ lame_objects=
+else
+ AC_DEFINE_UNQUOTED(HAVE_LAME, 1)
+ lame_objects='$(lame_objects_2)'
+fi
+AC_SUBST(lame_objects)
+
+if test "x${UNCOMPRESS}" = "xgzip"; then
+ AC_DEFINE_UNQUOTED(USE_GZIP, 1)
+fi
+AC_SUBST(USE_GZIP)
+
+JPEG2SWF='jpeg2swf$(E)'
+export JPEG2SWF
+PNG2SWF='png2swf$(E)'
+export PNG2SWF
+
+if test "x" = "x"; then
+ pythonrfxswf="lib/python/Makefile"
+else
+ echo all install uninstall clean: > lib/python/Makefile
+fi
+
+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 lib/action/Makefile src/Makefile swfs/Makefile ${pythonrfxswf}"
+else
+ FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile ${pythonrfxswf}"
+fi
+AC_SUBST(JPEG2SWF)
+AC_SUBST(PNG2SWF)
+
+dnl AC_OUTPUT(${FILES}) old autoconf
+AC_CONFIG_FILES([${FILES}])
+AC_OUTPUT