From 5682ba5921dd85caf6d9265e98912d5bd66f1ea1 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 4 Dec 2007 19:14:11 +0000 Subject: [PATCH] Tue Dec 4 18:25:01 UTC 2007 Richard W.M. Jones * configure.in: Fix configure if rpcgen program is missing. --- ChangeLog | 4 ++++ configure.in | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index e687305851..f6227d990b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Dec 4 18:25:01 UTC 2007 Richard W.M. Jones + + * configure.in: Fix configure if rpcgen program is missing. + Tue Dec 4 17:47:01 UTC 2007 Richard W.M. Jones * configure.in: curses is not actually required to build libvirt diff --git a/configure.in b/configure.in index 6297483063..6cd7fe2cb6 100644 --- a/configure.in +++ b/configure.in @@ -58,11 +58,10 @@ 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 2>&1]) -fi +dnl Is this GLIBC's buggy rpcgen? +AM_CONDITIONAL(GLIBC_RPCGEN, + [test "x$ac_cv_path_RPCGEN" != "xno" && + $ac_cv_path_RPCGEN -t /dev/null 2>&1]) dnl Miscellaneous external programs. AC_PATH_PROG(RM, rm, /bin/rm)