+ 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${NO_MP3}" == "x"; then
+ AC_DEFINE_UNQUOTED(USE_MP3, 1)
+fi
+
+if test "x${USE_FREETYPE}" == "xtrue"; then
+ if test "x{$FREETYPE_CONFIG}" != "x"; then
+ ftinclude=`freetype-config --cflags`
+ ftlibs=`freetype-config --libs`
+ CXXFLAGS="$CXXFLAGS $ftinclude"
+ CFLAGS="$CFLAGS $ftinclude"
+ LIBS="$LIBS $ftlibs"
+ else if test -d /usr/include/freetype2; then
+ CXXFLAGS="$CXXFLAGS -I/usr/include/freetype2"
+ CFLAGS="$CFLAGS -I/usr/include/freetype2"
+ LIBS="$LIBS -lfreetype"
+ else if test -d /usr/local/include/freetype2; then
+ CXXFLAGS="$CXXFLAGS -I/usr/local/include/freetype2"
+ CFLAGS="$CFLAGS -I/usr/local/include/freetype2"
+ LIBS="$LIBS -L /usr/local/lib -lfreetype"
+ fi
+ fi
+ fi
+fi