summaryrefslogtreecommitdiff
path: root/h
diff options
context:
space:
mode:
authorGravatar Kenneth G Raeburn <raeburn@mit.edu>1991-03-21 07:16:56 +0000
committerGravatar Kenneth G Raeburn <raeburn@mit.edu>1991-03-21 07:16:56 +0000
commit493c9a6f67187d32e5d39006bbce6e66e69d1088 (patch)
treee8ccb56f482831a73637eafe8ca83d0020539d49 /h
parent11e855ae60ad49cd60c786ba409f53b53b318774 (diff)
Create zephyr_paths.h header file when needed. Both `all' and
`depend' require it.
Diffstat (limited to 'h')
-rw-r--r--h/zephyr/Imakefile27
1 files changed, 24 insertions, 3 deletions
diff --git a/h/zephyr/Imakefile b/h/zephyr/Imakefile
index a51c416..b38ccff 100644
--- a/h/zephyr/Imakefile
+++ b/h/zephyr/Imakefile
@@ -1,14 +1,35 @@
-/**/# Copyright 1988 Massachusetts Institute of Technology.
+/**/# Copyright 1988,1991 Massachusetts Institute of Technology.
/**/#
/**/# For copying and distribution information, see the file
/**/# "mit-copyright.h".
/**/#
/**/# $Source$
/**/# $Author$
-/**/# $Header$
+/**/# $Zephyr: Imakefile,v 1.3 89/05/30 17:26:29 jtkohl Exp $
/**/#
SRCDIR= ${SRCTOP}/include/zephyr
HDRS= acl.h mit-copyright.h zephyr.h zephyr_conf.h zephyr_internal.h zsyslog.h
CODE= ${HDRS} Imakefile
-all::
+all:: zephyr_paths.h
+
+depend:: zephyr_paths.h
+
+#ifdef KERBEROS
+HaveKerberos=yes
+#endif
+
+#ifdef HESIOD
+HaveHesiod=yes
+#endif
+
+#define export_as(var,name) name=$(var) ; export name
+#define export_var(var) export_as(var,var)
+
+zephyr_paths.h: $(BUILDTOP)/config/config.Imakefile
+ @ export_var(ETCATHDIR) ; \
+ export_as (ACLDIR,LIBDIR) ; \
+ export_var(CLIENTDIR) ; \
+ export_var(HaveKerberos) ; \
+ export_var(HaveHesiod) ; \
+ $(SRCTOP)/tools/makepaths > zephyr_paths.h