diff --git a/README b/README index ebaffba..37ba5b7 100644 --- a/README +++ b/README @@ -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) diff --git a/configure.in b/configure.in index 65ce3c5..75394aa 100644 --- a/configure.in +++ b/configure.in @@ -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