faad_cppflags="-I$enable_faad_headers"
CPPFLAGS="$CPPFLAGS $faad_cppflags"
fi
-AC_ARG_ENABLE(faad_libs, [AC_HELP_STRING(--enable-fadd-libs=dir,
+AC_ARG_ENABLE(faad_libs, [AC_HELP_STRING(--enable-faad-libs=dir,
[look for libfaad also in dir])])
if test -n "$enable_faad_libs"; then
faad_libs="-L$enable_faad_libs"
fi
########################################################################### mad
have_mad="yes"
+AC_ARG_ENABLE(mad_headers, [AC_HELP_STRING(--enable-mad-headers=dir,
+ [look for mad.h also in dir])])
+if test -n "$enable_mad_headers"; then
+ mad_cppflags="-I$enable_mad_headers"
+ CPPFLAGS="$CPPFLAGS $mad_cppflags"
+fi
+AC_ARG_ENABLE(mad_libs, [AC_HELP_STRING(--enable-mad-libs=dir,
+ [look for libmad also in dir])])
+if test -n "$enable_mad_libs"; then
+ mad_libs="-L$enable_mad_libs"
+ LDFLAGS="$LDFLAGS $mad_libs"
+fi
AC_CHECK_HEADERS([mad.h], [], [
have_mad="no"
])
AC_DEFINE(HAVE_MAD, 1, define to 1 if you want to build the mp3dec filter)
filter_errlist_objs="$filter_errlist_objs mp3dec"
audiod_errlist_objs="$audiod_errlist_objs mp3dec"
- filter_ldflags="$filter_ldflags -lmad"
- audiod_ldflags="$audiod_ldflags -lmad"
+ filter_ldflags="$filter_ldflags $mad_libs -lmad"
+ audiod_ldflags="$audiod_ldflags $mad_libs -lmad"
+ AC_SUBST(mad_cppflags)
+ AC_SUBST(mad_libs)
else
AC_MSG_WARN([no mp3dec support in para_audiod/para_filter])
fi
AC_OUTPUT
AC_MSG_NOTICE([creating Makefile.deps])
-gcc -MM -MG $mysql_cppflags $faad_cppflags *.c > Makefile.deps
+gcc -MM -MG $mysql_cppflags $faad_cppflags $mad_cppflags *.c > Makefile.deps
AC_MSG_NOTICE([
paraslash configuration:
~~~~~~~~~~~~~~~~~~~~~~~~