Commit 314bc16b authored by Simon Morlat's avatar Simon Morlat

add autoconf option to disable decoder

parent 36b2adaa
......@@ -35,7 +35,7 @@ echo "Generating build scripts in msx264..."
set -x
$LIBTOOLIZE --copy --force
$ACLOCAL $ACLOCAL_ARGS
#autoheader
autoheader
$AUTOMAKE --force-missing --add-missing --copy
autoconf
......
......@@ -4,15 +4,26 @@ AC_INIT([msopenh264],[1.1.0])
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([tar-ustar])
AC_CONFIG_HEADERS(config.h)
AC_MSG_CHECKING([warning make an error on compilation])
AC_ARG_ENABLE(strict,
[ --enable-strict Enable error on compilation warning [default=yes]],
[ --enable-strict Enable error on compilation warning [default=yes]],
[wall_werror=$enableval],
[wall_werror=yes]
)
AC_ARG_ENABLE(decoder,
[ --disable-decoder Disable decoder - encoder only configuration [default=no]],
[decoder_enabled=$enableval],
[decoder_enabled=yes]
)
if test "$decoder_enabled" = "yes" ; then
AC_DEFINE(OPENH264_DECODER_ENABLED, 1, [whether decoder is compiled])
fi
dnl Checks for programs.
AC_PROG_CXX
......
......@@ -18,6 +18,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "mediastreamer2/msfilter.h"
#include "mediastreamer2/msvideo.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment