~ubuntu-branches/ubuntu/precise/netatalk/precise

« back to all changes in this revision

Viewing changes to macros/config-checks.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Rittau
  • Date: 2004-01-19 12:43:49 UTC
  • Revision ID: james.westby@ubuntu.com-20040119124349-es563jbp0hk0ae51
Tags: upstream-1.6.4
ImportĀ upstreamĀ versionĀ 1.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl $Id: config-checks.m4,v 1.3 2002/04/29 06:23:58 morgana Exp $
 
2
dnl Autoconf macro to set the configuration directories.
 
3
 
 
4
AC_DEFUN([NETATALK_CONFIG_DIRS], [
 
5
        PKGCONFDIR="${sysconfdir}/netatalk"
 
6
 
 
7
        AC_ARG_WITH(pkgconfdir,
 
8
                [  --with-pkgconfdir=DIR   package specific configuration in DIR
 
9
                          [SYSCONF/netatalk]],
 
10
                [
 
11
                        if test "x$withval" != "x"; then
 
12
                                PKGCONFDIR="$withval"
 
13
                        fi
 
14
                ]
 
15
        )
 
16
 
 
17
        NLSDIR="${PKGCONFDIR}/nls"
 
18
 
 
19
        AC_ARG_WITH(nls-dir,
 
20
                [  --with-nls-dir=PATH     path to NLS files [PKGCONF/nls]],
 
21
                [
 
22
                        if test "x$withval" != "x"; then
 
23
                                NLSDIR="$withval"
 
24
                        fi
 
25
                ]
 
26
        )
 
27
 
 
28
        SERVERTEXT="${PKGCONFDIR}/msg"
 
29
 
 
30
        AC_ARG_WITH(message-dir,
 
31
                [  --with-message-dir=PATH path to server message files [PKGCONF/msg]],
 
32
                [
 
33
                        if test "x$withval" != "x"; then
 
34
                                SERVERTEXT="$withval"
 
35
                                cat >> confdefs.h <<EOF
 
36
#define SERVERTEXT "$withval"
 
37
EOF
 
38
                        fi
 
39
                ]
 
40
        )
 
41
 
 
42
        AC_SUBST(PKGCONFDIR)
 
43
        AC_SUBST(NLSDIR)
 
44
        AC_SUBST(SERVERTEXT)
 
45
])