diff options
| author | Neil Brown <neilb@suse.de> | 2007-03-20 11:15:29 +1100 |
|---|---|---|
| committer | Neil Brown <neilb@suse.de> | 2007-03-20 11:15:29 +1100 |
| commit | 453ac684258684e0e8413f4d9ef9822e753d9dbb (patch) | |
| tree | 1ea32446cb7bdf042bbe888d06c0486fb86d99a3 /utils/statd | |
| parent | 390e67de5d9fe919d1894359536f0c5527fa2331 (diff) | |
| download | nfs-utils-453ac684258684e0e8413f4d9ef9822e753d9dbb.tar.gz nfs-utils-453ac684258684e0e8413f4d9ef9822e753d9dbb.tar.xz nfs-utils-453ac684258684e0e8413f4d9ef9822e753d9dbb.zip | |
Add --with-rpcgen= for configure so that the system rpcgen can be used.
Ultimately it makes sense to remove remove rpcgen from the nfs-utils
release as it is already in the glibc release. With this patch
you can use the system rpcgen to make sure it works.
It is not default yet, but it might be in a future release.
Diffstat (limited to 'utils/statd')
| -rw-r--r-- | utils/statd/Makefile.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/statd/Makefile.am b/utils/statd/Makefile.am index efe9356..2f71e29 100644 --- a/utils/statd/Makefile.am +++ b/utils/statd/Makefile.am @@ -2,8 +2,6 @@ man8_MANS = statd.man sm-notify.man -RPCGEN = $(top_builddir)/tools/rpcgen/rpcgen - GENFILES_CLNT = sm_inter_clnt.c GENFILES_SVC = sm_inter_svc.c GENFILES_XDR = sm_inter_xdr.c @@ -29,8 +27,13 @@ sm_notify_LDADD = $(LIBNSL) EXTRA_DIST = sim_sm_inter.x sm_inter.x $(man8_MANS) COPYRIGHT simulate.c +if CONFIG_RPCGEN +RPCGEN = $(top_builddir)/tools/rpcgen/rpcgen $(RPCGEN): make -C ../../tools/rpcgen all +else +RPCGEN = @RPCGEN_PATH@ +endif $(GENFILES_CLNT): %_clnt.c: %.x $(RPCGEN) test -f $@ && rm -rf $@ || true |
