mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
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.
This commit is contained in:
parent
d43607b2f9
commit
1ef8005d65
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user