X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=macros%2Fconfig-checks.m4;h=eb4cf882efe7fe8ceaec72e974149fbaa3e835c3;hb=1f995330836cf20b5db3e5b6076735a2a0f4e81e;hp=d65cefbdb4517990119c3df898f9b43f29d8ee6f;hpb=709f1cb2a038c89a1883fe79f15d8b991d3da56b;p=netatalk.git diff --git a/macros/config-checks.m4 b/macros/config-checks.m4 index d65cefbd..eb4cf882 100644 --- a/macros/config-checks.m4 +++ b/macros/config-checks.m4 @@ -1,4 +1,4 @@ -dnl $Id: config-checks.m4,v 1.2 2002-04-06 12:38:12 srittau Exp $ +dnl $Id: config-checks.m4,v 1.6 2005-04-28 20:50:05 bfernhomberg Exp $ dnl Autoconf macro to set the configuration directories. AC_DEFUN([NETATALK_CONFIG_DIRS], [ @@ -6,7 +6,7 @@ AC_DEFUN([NETATALK_CONFIG_DIRS], [ AC_ARG_WITH(pkgconfdir, [ --with-pkgconfdir=DIR package specific configuration in DIR - [SYSCONF/netatalk]], + [[SYSCONF/netatalk]]], [ if test "x$withval" != "x"; then PKGCONFDIR="$withval" @@ -14,17 +14,20 @@ AC_DEFUN([NETATALK_CONFIG_DIRS], [ ] ) - NLSDIR="${PKGCONFDIR}/nls" - AC_ARG_WITH(nls-dir, - [ --with-nls-dir=PATH path to NLS files [PKGCONF/nls]], + SERVERTEXT="${PKGCONFDIR}/msg" + + AC_ARG_WITH(message-dir, + [ --with-message-dir=PATH path to server message files [[PKGCONF/msg]]], [ - if test "x$withval" != "x"; then - NLSDIR="$withval" + if test x"$withval" = x"no"; then + AC_MSG_WARN([*** message-dir is mandatory and cannot be disabled, using default ***]) + elif test "x$withval" != "x" && test x"$withval" != x"yes"; then + SERVERTEXT="$withval" fi ] ) AC_SUBST(PKGCONFDIR) - AC_SUBST(NLSDIR) + AC_SUBST(SERVERTEXT) ])