~ubuntu-branches/ubuntu/quantal/gnats/quantal

« back to all changes in this revision

Viewing changes to send-pr/aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Chad Walstrom
  • Date: 2004-02-04 17:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20040204173613-ez57a9cfcyz5v5aj
Tags: upstream-4.0
ImportĀ upstreamĀ versionĀ 4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl aclocal.m4 generated automatically by aclocal 1.4-p4
 
2
 
 
3
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
 
4
dnl This file is free software; the Free Software Foundation
 
5
dnl gives unlimited permission to copy and/or distribute it,
 
6
dnl with or without modifications, as long as this notice is preserved.
 
7
 
 
8
dnl This program is distributed in the hope that it will be useful,
 
9
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
 
10
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 
11
dnl PARTICULAR PURPOSE.
 
12
 
 
13
define([AC_ECHON],dnl
 
14
[echo checking for echo -n
 
15
if test "`echo -n foo`" = foo ; then
 
16
  ECHON=bsd
 
17
  test -n "$verbose" && echo '  using echo -n'
 
18
elif test "`echo 'foo\c'`" = foo ; then
 
19
  ECHON=sysv
 
20
  test -n "$verbose" && echo '  using echo ...\\c'
 
21
else
 
22
  ECHON=none
 
23
  test -n "$verbose" && echo '  using plain echo'
 
24
fi])dnl
 
25
dnl
 
26
define([AC_PASSWD],dnl
 
27
[echo checking how to access passwd database
 
28
PASSWD="cat /etc/passwd"
 
29
if test -f /bin/domainname && test -n "`/bin/domainname`"; then
 
30
  if test -f /usr/bin/niscat && 
 
31
     /usr/bin/niscat passwd.org_dir > /dev/null 2>&1; then
 
32
    PASSWD="/usr/bin/niscat passwd.org_dir"
 
33
  elif test -f /usr/bin/ypcat && /usr/bin/ypcat passwd > /dev/null 2>&1; then
 
34
    PASSWD="/usr/bin/ypcat passwd"
 
35
  fi
 
36
fi
 
37
test -n "$verbose" && echo "    setting PASSWD to ${PASSWD}"
 
38
AC_SUBST(PASSWD)dnl
 
39
])dnl
 
40
 
 
41
 
 
42
# serial 1
 
43
 
 
44
AC_DEFUN(AM_PATH_LISPDIR,
 
45
 [# If set to t, that means we are running in a shell under Emacs.
 
46
  # If you have an Emacs named "t", then use the full path.
 
47
  test "$EMACS" = t && EMACS=
 
48
  AC_PATH_PROGS(EMACS, emacs xemacs, no)
 
49
  if test $EMACS != "no"; then
 
50
    AC_MSG_CHECKING([where .elc files should go])
 
51
    dnl Set default value
 
52
    lispdir="\$(datadir)/emacs/site-lisp"
 
53
    emacs_flavor=`echo "$EMACS" | sed -e 's,^.*/,,'`
 
54
    if test "x$prefix" = "xNONE"; then
 
55
      if test -d $ac_default_prefix/share/$emacs_flavor/site-lisp; then
 
56
        lispdir="\$(prefix)/share/$emacs_flavor/site-lisp"
 
57
      else
 
58
        if test -d $ac_default_prefix/lib/$emacs_flavor/site-lisp; then
 
59
          lispdir="\$(prefix)/lib/$emacs_flavor/site-lisp"
 
60
        fi
 
61
      fi
 
62
    else
 
63
      if test -d $prefix/share/$emacs_flavor/site-lisp; then
 
64
        lispdir="\$(prefix)/share/$emacs_flavor/site-lisp"
 
65
      else
 
66
        if test -d $prefix/lib/$emacs_flavor/site-lisp; then
 
67
          lispdir="\$(prefix)/lib/$emacs_flavor/site-lisp"
 
68
        fi
 
69
      fi
 
70
    fi
 
71
    AC_MSG_RESULT($lispdir)
 
72
  fi
 
73
  AC_SUBST(lispdir)])
 
74