File: acinclude.m4

package info (click to toggle)
gnats 4.1.0-0
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,524 kB
  • ctags: 3,466
  • sloc: ansic: 24,189; sh: 9,905; tcl: 8,156; lisp: 2,254; perl: 1,740; yacc: 1,632; makefile: 1,196; lex: 449; sql: 280; sed: 22
file content (27 lines) | stat: -rw-r--r-- 824 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
define([AC_ECHON],dnl
[echo checking for echo -n
if test "`echo -n foo`" = foo ; then
  ECHON=bsd
  test -n "$verbose" && echo '	using echo -n'
elif test "`echo 'foo\c'`" = foo ; then
  ECHON=sysv
  test -n "$verbose" && echo '	using echo ...\\c'
else
  ECHON=none
  test -n "$verbose" && echo '	using plain echo'
fi])dnl
dnl
define([AC_PASSWD],dnl
[echo checking how to access passwd database
PASSWD="cat /etc/passwd"
if test -f /bin/domainname && test -n "`/bin/domainname`"; then
  if test -f /usr/bin/niscat && 
     /usr/bin/niscat passwd.org_dir > /dev/null 2>&1; then
    PASSWD="/usr/bin/niscat passwd.org_dir"
  elif test -f /usr/bin/ypcat && /usr/bin/ypcat passwd > /dev/null 2>&1; then
    PASSWD="/usr/bin/ypcat passwd"
  fi
fi
test -n "$verbose" && echo "	setting PASSWD to ${PASSWD}"
AC_SUBST(PASSWD)dnl
])dnl