提交 1ef8005d 编写于 作者: R Richard W.M. Jones

Mon Nov 26 11:44:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

	* configure.in, qemud/Makefile.am: Check for buggy glibc rpcgen
	  and only run Perl fix-up script for that.
上级 d43607b2
Mon Nov 26 11:44:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
* configure.in, qemud/Makefile.am: Check for buggy glibc rpcgen
and only run Perl fix-up script for that.
Mon Nov 26 11:42:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
* configure.in: Check if -lrpc is needed to get XDR functions.
......
......@@ -69,6 +69,15 @@ AC_CHECK_HEADERS([paths.h sys/syslimits.h])
dnl Need -lrpc? (Cygwin needs this)
AC_SEARCH_LIBS(xdrmem_create,rpc)
dnl Do we have rpcgen?
AC_PATH_PROG(RPCGEN, rpcgen, no)
AM_CONDITIONAL(RPCGEN, [test "x$ac_cv_path_RPCGEN" != "xno"])
if test "x$ac_cv_path_RPCGEN" != "xno"; then
dnl Is this GLIBC's buggy rpcgen?
AM_CONDITIONAL(GLIBC_RPCGEN,
[$ac_cv_path_RPCGEN -t </dev/null >/dev/null 2>&1])
fi
dnl Specific dir for HTML output ?
AC_ARG_WITH(html-dir, AC_HELP_STRING([--with-html-dir=path],
[path to base html directory, default $datadir/doc/html]),
......
......@@ -68,15 +68,19 @@ uninstall-local: uninstall-init
rmdir $(DESTDIR)$(localstatedir)/lib/libvirt || :
if RPCGEN
.x.c:
rm -f $@
rpcgen -c -o $@ $<
if GLIBC_RPCGEN
mv $@ $@.bak
perl -w rpcgen_fix.pl < $@.bak > $@
endif
.x.h:
rm -f $@
rpcgen -h -o $@ $<
endif
remote_protocol.c: remote_protocol.h
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册