Commit ed8659c9 authored by Stan Seibert's avatar Stan Seibert

Now all of the tools can be selectively compiled.

svn path=/trunk/vorbis-tools/; revision=3491
parent 060124f6
......@@ -77,6 +77,17 @@ DEBUG="$DEBUG $cflags_save"
PROFILE="$PROFILE $cflags_save"
LDFLAGS="$LDFLAGS $ldflags_save"
dnl --------------------------------------------------
dnl Allow tools to be selectively built
dnl --------------------------------------------------
AC_ARG_ENABLE(ogg123, [ --disable-ogg123 Skip building ogg123], build_ogg123="$enableval", build_ogg123="yes")
AC_ARG_ENABLE(oggdec, [ --disable-oggdec Skip building oggdec], build_oggdec="$enableval", build_oggdec="yes")
AC_ARG_ENABLE(oggenc, [ --disable-oggenc Skip building oggenc], build_oggenc="$enableval", build_oggenc="yes")
AC_ARG_ENABLE(ogginfo,[ --disable-ogginfo Skip building ogginfo], build_ogginfo="$enableval", build_ogginfo="yes")
AC_ARG_ENABLE(vcut, [ --disable-vcut Skip building vcut], build_vcut="$enableval", build_vcut="yes")
AC_ARG_ENABLE(vorbiscomment, [ --disable-vorbiscomment Skip building vorbiscomment], build_vorbiscomment="$enableval", build_vorbiscomment="yes")
dnl --------------------------------------------------
dnl Check for generally needed libraries
dnl --------------------------------------------------
......@@ -98,8 +109,6 @@ dnl --------------------------------------------------
dnl Check for ogg123 critical libraries
dnl --------------------------------------------------
AC_ARG_ENABLE(ogg123,[ --disable-ogg123 Skip building ogg123 (a playback utility)], build_ogg123="$enableval", build_ogg123="yes")
if test "x$build_ogg123" = xyes; then
AC_MSG_RESULT([checking for ogg123 requirements])
AM_PATH_AO(,build_ogg123=no; AC_MSG_WARN(libao missing))
......@@ -111,8 +120,6 @@ if test "x$build_ogg123" = xyes; then
AC_MSG_WARN([Prerequisites for ogg123 not met, ogg123 will not be built])
fi
fi
AM_CONDITIONAL(BUILD_OGG123, test "x$build_ogg123" = xyes)
dnl --------------------------------------------------
dnl Check for library functions
......@@ -134,10 +141,18 @@ else
fi
AC_SUBST(MANDIR)
dnl --------------------------------------------------
dnl Do substitutions
dnl --------------------------------------------------
AM_CONDITIONAL(BUILD_OGG123, test "x$build_ogg123" = xyes)
AM_CONDITIONAL(BUILD_OGGDEC, test "x$build_oggdec" = xyes)
AM_CONDITIONAL(BUILD_OGGENC, test "x$build_oggenc" = xyes)
AM_CONDITIONAL(BUILD_OGGINFO, test "x$build_ogginfo" = xyes)
AM_CONDITIONAL(BUILD_VCUT, test "x$build_vcut" = xyes)
AM_CONDITIONAL(BUILD_VORBISCOMMENT, test "x$build_vorbiscomment" = xyes)
AC_SUBST(DEBUG)
AC_SUBST(PROFILE)
AC_SUBST(SOCKET_LIBS)
......
......@@ -35,8 +35,6 @@ ogg123_SOURCES = audio.c buffer.c callbacks.c \
man_MANS = $(mans)
doc_DATA = $(docs)
else
endif
EXTRA_DIST = $(mans) $(docs)
......
......@@ -2,6 +2,8 @@
AUTOMAKE_OPTIONS = foreign
if BUILD_OGGDEC
datadir = @datadir@
localedir = $(datadir)/locale
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
......@@ -15,6 +17,8 @@ oggdec_DEPENDENCIES = @SHARE_LIBS@
oggdec_SOURCES = oggdec.c
endif
debug:
$(MAKE) all CFLAGS="@DEBUG@"
......
......@@ -4,6 +4,8 @@ AUTOMAKE_OPTIONS = foreign
SUBDIRS = man
if BUILD_OGGENC
datadir = @datadir@
localedir = $(datadir)/locale
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
......@@ -20,6 +22,8 @@ oggenc_DEPENDENCIES = @SHARE_LIBS@
oggenc_SOURCES = oggenc.c audio.c encode.c platform.c \
audio.h encode.h platform.h resample.c resample.h
endif
debug:
$(MAKE) all CFLAGS="@DEBUG@"
......
......@@ -2,7 +2,13 @@
AUTOMAKE_OPTIONS = foreign
mans = oggenc.1
if BUILD_OGGENC
mandir = @MANDIR@
man_MANS = oggenc.1
man_MANS = $(mans)
endif
EXTRA_DIST = $(man_MANS)
EXTRA_DIST = $(mans)
......@@ -2,13 +2,17 @@
AUTOMAKE_OPTIONS = foreign
mans = ogginfo.1
if BUILD_OGGINFO
datadir = @datadir@
localedir = $(datadir)/locale
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
bin_PROGRAMS = ogginfo
mandir = @MANDIR@
man_MANS = ogginfo.1
man_MANS = $(mans)
INCLUDES = @SHARE_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@ @I18N_CFLAGS@
......@@ -17,7 +21,9 @@ ogginfo_DEPENDENCIES = @SHARE_LIBS@
ogginfo_SOURCES = ogginfo2.c
EXTRA_DIST = $(man_MANS)
endif
EXTRA_DIST = $(mans)
debug:
$(MAKE) all CFLAGS="@DEBUG@"
......
......@@ -2,13 +2,17 @@
AUTOMAKE_OPTIONS = foreign
mans = vcut.1
if BUILD_VCUT
datadir = @datadir@
localedir = $(datadir)/locale
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
bin_PROGRAMS = vcut
mandir = @MANDIR@
man_MANS = vcut.1
man_MANS = $(mans)
INCLUDES = @OGG_CFLAGS@ @VORBIS_CFLAGS@ @SHARE_CFLAGS@ @I18N_CFLAGS@
......@@ -16,7 +20,9 @@ vcut_LDADD = @VORBIS_LIBS@ @OGG_LIBS@ @I18N_LIBS@
vcut_SOURCES = vcut.c vcut.h
EXTRA_DIST = $(man_MANS)
endif
EXTRA_DIST = $(mans)
debug:
$(MAKE) all CFLAGS="@DEBUG@"
......
......@@ -2,13 +2,17 @@
AUTOMAKE_OPTIONS = foreign
mans = vorbiscomment.1
if BUILD_VORBISCOMMENT
datadir = @datadir@
localedir = $(datadir)/locale
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
bin_PROGRAMS = vorbiscomment
mandir = @MANDIR@
man_MANS = vorbiscomment.1
man_MANS = $(mans)
INCLUDES = @SHARE_CFLAGS@ @I18N_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@
......@@ -17,7 +21,9 @@ vorbiscomment_DEPENDENCIES = @SHARE_LIBS@
vorbiscomment_SOURCES = vcedit.c vcedit.h vcomment.c
EXTRA_DIST = $(man_MANS)
endif
EXTRA_DIST = $(mans)
debug:
$(MAKE) all CFLAGS="@DEBUG@"
......
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