From d6b72f7ab1d33a43e1b6d5cd3410ac53e3bf74a9 Mon Sep 17 00:00:00 2001 From: gdt Date: Wed, 3 Dec 2003 17:24:27 +0000 Subject: Add support for --enable-exampledir to specify where to place example files, defaulting to sysconfdir (matching previous behavior). This is needed to support (cleanly) NetBSD pkgsrc, which requires that example config files go in $(prefix)/share/examples/pkgname, rather than in $(prefix)/etc/pkgname. --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 18db4939..ef24dc00 100755 --- a/configure.ac +++ b/configure.ac @@ -12,6 +12,15 @@ AC_CONFIG_SRCDIR(lib/zebra.h) AM_INIT_AUTOMAKE() AM_CONFIG_HEADER(config.h) +dnl default is to match previous behavior +exampledir='${sysconfdir}' +AC_ARG_ENABLE([exampledir], + AC_HELP_STRING([--enable-exampledir], + [specify alternate directory for examples]), + exampledir="$enableval",) +dnl XXX hook into argument processing +AC_SUBST(exampledir) + dnl ----------------------------------- dnl Get hostname and other information. dnl ----------------------------------- @@ -1056,6 +1065,7 @@ compiler flags : ${CFLAGS} linker flags : ${LDFLAGS} ${LIBS} state file directory : ${quagga_statedir} config file directory : `eval echo \`echo ${sysconfdir}\`` +example directory : `eval echo \`echo ${exampledir}\`` user to run as : ${enable_user} group to run as : ${enable_group} group for vty sockets : ${enable_vty_group} -- cgit v1.2.1