aboutsummaryrefslogtreecommitdiffstats
path: root/aclocal.m4
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>1998-03-29 10:26:20 +0000
committerH. Peter Anvin <hpa@zytor.com>1998-03-29 10:26:20 +0000
commite1dbb9fe60aa8bf48b07ce2896838f76cc98e226 (patch)
tree87f278ba5cb3d2738aa2061a17a01a18474dfe7e /aclocal.m4
parent43d9d88fd0160c7beecba8b78227cc7247e8d6e9 (diff)
downloadautofs3-e1dbb9fe60aa8bf48b07ce2896838f76cc98e226.tar.gz
autofs3-e1dbb9fe60aa8bf48b07ce2896838f76cc98e226.tar.xz
autofs3-e1dbb9fe60aa8bf48b07ce2896838f76cc98e226.zip
Make autofs self-configuring (using autoconf)
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
new file mode 100644
index 0000000..0a2a0fc
--- /dev/null
+++ b/aclocal.m4
@@ -0,0 +1,17 @@
+dnl $Id$
+
+dnl --------------------------------------------------------------------------
+dnl AF_PATH_INCLUDE:
+dnl
+dnl Like AC_PATH_PROGS, but add to the .h file as well
+dnl --------------------------------------------------------------------------
+AC_DEFUN(AF_PATH_INCLUDE,
+[AC_PATH_PROGS($1,$2)
+if test -n "$$1"; then
+ AC_DEFINE(HAVE_$1)
+ AC_DEFINE_UNQUOTED(PATH_$1, "$$1")
+ HAVE_$1=1
+else
+ HAVE_$1=0
+fi
+AC_SUBST(HAVE_$1)])