1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-09-15 04:08:07 -04:00

Make the example configuration files directory configurable.

git-svn-id: https://svn.xiph.org/trunk/ezstream@12594 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
moritz 2007-03-01 00:10:12 +00:00
parent ad46ff44c6
commit 9e0c427433
2 changed files with 11 additions and 2 deletions

2
README
View File

@ -43,6 +43,8 @@ The ezstream software uses the GNU auto-tools to configure, build and install
on a variety of systems. Aside from the standard autoconf options of the
configure script, a couple of additional options are available:
--enable-examplesdir=DIR example configuration files installation directory
(default: DATADIR/examples/ezstream)
--with-xml-config=PATH use xml-config in PATH to find libxml
--with-ogg=PREFIX Prefix where libogg is installed (optional)
--with-vorbis=PREFIX Prefix where libvorbis is installed (optional)

View File

@ -12,8 +12,15 @@ AC_USE_SYSTEM_EXTENSIONS
dnl SETUP
dnl XXX This should be made configurable.
EXAMPLES_DIR="\$(datadir)/examples/${PACKAGE}"
EXAMPLES_DIR="\$(datadir)/examples/${PACKAGE_TARNAME}"
AC_ARG_ENABLE(examplesdir,
AS_HELP_STRING([--enable-examplesdir=DIR],
[example configuration files installation directory (default: DATADIR/examples/ezstream)]),
[case "$enableval" in
yes) ;;
no) AC_MSG_ERROR([Must have an example configuration files install dir.]) ;;
*) EXAMPLES_DIR="$enableval" ;;
esac], [])
AC_SUBST(EXAMPLES_DIR)
AC_CANONICAL_HOST