1 define([AC_FIND_PROGRAM],dnl
2 [if test x$3 = x; then _PATH=$PATH; else _PATH=$3; fi
3 if test -z "[$]$1"; then
4 # Extract the first word of `$2', so it can be a program name with args.
5 set dummy $2; word=[$]2
6 echo checking for $word
7 IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:"
9 test -z "$dir" && dir=.
10 if test -f $dir/$word; then
17 test -n "[$]$1" && test -n "$verbose" && echo " setting $1 to [$]$1"
22 [echo checking for echo -n
23 if test "`echo -n foo`" = foo ; then
25 test -n "$verbose" && echo ' using echo -n'
26 elif test "`echo 'foo\c'`" = foo ; then
28 test -n "$verbose" && echo ' using echo ...\\c'
31 test -n "$verbose" && echo ' using plain echo'
34 define([AC_LISPDIR],dnl
35 [AC_MSG_CHECKING(checking for Emacs Lisp files)
36 if test -n "$with_lispdir"; then
37 LISPDIR=${with_lispdir}
39 for f in ${prefix-/usr/local}/lib/emacs/site-lisp \
40 ${prefix-/usr/local}/lib/emacs/lisp; do
42 if test -n "$prefix"; then
43 LISPDIR=`echo $f | sed "s,^$prefix,"'$(prefix),'`
51 if test -z "$LISPDIR"; then
52 dnl # Change this default when Emacs 19 has been around for a while
53 LISPDIR='$(prefix)/lib/emacs/lisp'
55 AC_MSG_RESULT(${LISPDIR})
59 define([AC_PASSWD],dnl
60 [echo checking how to access passwd database
61 PASSWD="cat /etc/passwd"
62 if test -f /bin/domainname && test -n "`/bin/domainname`"; then
63 if test -f /usr/bin/niscat &&
64 /usr/bin/niscat passwd.org_dir > /dev/null 2>&1; then
65 PASSWD="/usr/bin/niscat passwd.org_dir"
66 elif test -f /usr/bin/ypcat && /usr/bin/ypcat passwd > /dev/null 2>&1; then
67 PASSWD="/usr/bin/ypcat passwd"
70 test -n "$verbose" && echo " setting PASSWD to ${PASSWD}"