diff options
author | Mike Gilbert <floppym@gentoo.org> | 2020-01-17 10:06:25 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2020-01-17 10:06:25 -0500 |
commit | eef835dbae60bc1f162d73369fda88700cf21d6f (patch) | |
tree | 68d27946b7edfb4f4b0cd5508cad93601e049986 | |
parent | c05401d753fec8ac692299819f32565ffafe2a3d (diff) | |
download | rpcbind-eef835dbae60bc1f162d73369fda88700cf21d6f.tar.gz |
rpcbind: configure: fix detection of rpcsvc/mount.hrpcbind-1_2_6-rc2
If libtirpc is providing rpc/rpc.h, including rpcsvc/mount.h may fail if
-I/path/to/tirpc is not passed to the compiler.
Bug: https://bugs.gentoo.org/665222
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2dd9471..7bfe4f1 100644 --- a/configure.ac +++ b/configure.ac @@ -63,7 +63,10 @@ AS_IF([test x$enable_libwrap = xyes], [ AC_SEARCH_LIBS([pthread_create], [pthread]) +SAVE_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CPPFLAGS $TIRPC_CFLAGS" AC_CHECK_HEADERS([nss.h rpcsvc/mount.h]) +CPPFLAGS="$SAVE_CPPFLAGS" # make sbindir available for substitution in config file # 2 "evals" needed to expand variable names |