Added configure checks to disable various major subsystems.

Original commit message from CVS:
Added configure checks to disable various major subsystems.
This commit is contained in:
Wim Taymans 2001-06-25 19:19:17 +00:00
parent 77dd4ca2da
commit d89a407f2f
2 changed files with 84 additions and 4 deletions

View file

@ -243,6 +243,7 @@ CORE_LIBS="$CORE_LIBS $XML_LIBS"
CORE_CFLAGS="$CORE_CFLAGS $XML_CFLAGS"
dnl Next, check for the optional libraries:
dnl =======================================
@ -932,6 +933,8 @@ AC_ARG_ENABLE(examples,
esac],
[BUILD_EXAMPLES=yes]) dnl Default value
dnl Next, check for the optional cwcomponents:
dnl ==========================================
AC_ARG_ENABLE(loadsave,
[ --disable-loadsave disable pipeline XML load/save code],
[case "${enableval}" in
@ -945,6 +948,59 @@ if test x$GST_DISABLE_LOADSAVE = xyes; then
fi
AM_CONDITIONAL(GST_DISABLE_LOADSAVE, test x$GST_DISABLE_LOADSAVE = xyes)
AC_ARG_ENABLE(typefind,
[ --disable-typefind disable the typefind features],
[ case "${enableval}" in
yes) GST_DISABLE_TYPEFIND=no ;;
no) GST_DISABLE_TYPEFIND=yes ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-typefind) ;;
esac],
[GST_DISABLE_TYPEFIND=no]) dnl Default value
if test x$GST_DISABLE_TYPEFIND = xyes; then
AC_DEFINE(GST_DISABLE_TYPEFIND, 1, [Disable typefind code.])
fi
AM_CONDITIONAL(GST_DISABLE_TYPEFIND, test "x$GST_DISABLE_TYPEFIND" = "xyes")
AC_ARG_ENABLE(parse,
[ --disable-parse disable the command line parser features],
[ case "${enableval}" in
yes) GST_DISABLE_PARSE=no ;;
no) GST_DISABLE_PARSE=yes ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-parse) ;;
esac],
[GST_DISABLE_PARSE=no]) dnl Default value
if test x$GST_DISABLE_PARSE = xyes; then
AC_DEFINE(GST_DISABLE_PARSE, 1, [Disable command line parsing code.])
fi
AM_CONDITIONAL(GST_DISABLE_PARSE, test "x$GST_DISABLE_PARSE" = "xyes")
AC_ARG_ENABLE(autoplug,
[ --disable-autoplug disable the autoplugging features],
[ case "${enableval}" in
yes) GST_DISABLE_AUTOPLUG=no ;;
no) GST_DISABLE_AUTOPLUG=yes ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-autoplug) ;;
esac],
[GST_DISABLE_AUTOPLUG=no]) dnl Default value
if test x$GST_DISABLE_AUTOPLUG = xyes; then
AC_DEFINE(GST_DISABLE_AUTOPLUG, 1, [Disable autoplugging code.])
fi
AM_CONDITIONAL(GST_DISABLE_AUTOPLUG, test "x$GST_DISABLE_AUTOPLUG" = "xyes")
AC_ARG_ENABLE(trace,
[ --disable-trace disable the tracing features],
[ case "${enableval}" in
yes) GST_DISABLE_TRACE=no ;;
no) GST_DISABLE_TRACE=yes ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-trace) ;;
esac],
[GST_DISABLE_TRACE=no]) dnl Default value
if test x$GST_DISABLE_TRACE = xyes; then
AC_DEFINE(GST_DISABLE_TRACE, 1, [Disable tracing facilities.])
fi
AM_CONDITIONAL(GST_DISABLE_TRACE, test "x$GST_DISABLE_TRACE" = "xyes")
dnl ################################################

View file

@ -26,12 +26,36 @@ else
GST_LOADSAVE_SRC = gstxml.c
endif
if GST_DISABLE_TYPEFIND
GST_TYPEFIND_SRC =
else
GST_TYPEFIND_SRC = gsttypefind.c
endif
if GST_DISABLE_PARSE
GST_PARSE_SRC =
else
GST_PARSE_SRC = gstparse.c
endif
if GST_DISABLE_AUTOPLUG
GST_AUTOPLUG_SRC =
else
GST_AUTOPLUG_SRC = gstautoplug.c
endif
if GST_DISABLE_TRACE
GST_TRACE_SRC =
else
GST_TRACE_SRC = gsttrace.c
endif
libgst_la_SOURCES = \
cothreads.c \
gst.c \
$(GST_OBJECT_MODEL_SRC) \
gstobject.c \
gstautoplug.c \
$(GST_AUTOPLUG_SRC) \
gstbin.c \
gstbuffer.c \
gstbufferpool.c \
@ -50,11 +74,11 @@ libgst_la_SOURCES = \
gstqueue.c \
gstscheduler.c \
gstthread.c \
gsttrace.c \
$(GST_TRACE_SRC) \
gsttype.c \
gsttypefind.c \
$(GST_TYPEFIND_SRC) \
gstutils.c \
gstparse.c \
$(GST_PARSE_SRC) \
$(GSTARCH_SRCS) \
$(GST_LOADSAVE_SRC)