2
1

nfs-utils-conditionals.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. From 869d37a16d1e409cedd95b03cea29a6db65f9276 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu>
  3. Date: Thu, 17 May 2012 16:26:44 -0700
  4. Subject: [nfs-utils PATCH] build: avoid AM_CONDITIONAL in conditional
  5. execution.
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. Automake does not support conditional AM_CONDITIONAL calls; what that
  10. means is that you always have to execute AM_CONDITIONAL one way or the
  11. other. Both the libsqlite3.m4 file and the nfsdcld conditionals are
  12. executed only when NFSv4 is enabled, which breaks building with
  13. --disable-nfsv4.
  14. Remove the SQLite3 conditional altogether as it's never used, and move
  15. the nfsdcld conditional outside of the conditional code.
  16. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
  17. ---
  18. aclocal/libsqlite3.m4 | 1 -
  19. configure.ac | 3 +--
  20. 2 files changed, 1 insertions(+), 3 deletions(-)
  21. diff --git a/aclocal/libsqlite3.m4 b/aclocal/libsqlite3.m4
  22. index 73d1e46..8c38993 100644
  23. --- a/aclocal/libsqlite3.m4
  24. +++ b/aclocal/libsqlite3.m4
  25. @@ -29,5 +29,4 @@ AC_DEFUN([AC_SQLITE3_VERS], [
  26. LIBS="$saved_LIBS"])
  27. AC_MSG_RESULT($libsqlite3_cv_is_recent)
  28. - AM_CONDITIONAL(CONFIG_SQLITE3, [test "$libsqlite3_cv_is_recent" = "yes"])
  29. ])dnl
  30. diff --git a/configure.ac b/configure.ac
  31. index 9ba53e2..b408f1b 100644
  32. --- a/configure.ac
  33. +++ b/configure.ac
  34. @@ -278,8 +278,6 @@ if test "$enable_nfsv4" = yes; then
  35. fi
  36. fi
  37. - AM_CONDITIONAL(CONFIG_NFSDCLD, [test "$enable_nfsdcld" = "yes" ])
  38. -
  39. dnl librpcsecgss already has a dependency on libgssapi,
  40. dnl but we need to make sure we get the right version
  41. if test "$enable_gss" = yes; then
  42. @@ -293,6 +291,7 @@ if test "$enable_nfsv41" = yes; then
  43. fi
  44. dnl enable nfsidmap when its support by libnfsidmap
  45. +AM_CONDITIONAL(CONFIG_NFSDCLD, [test "$enable_nfsdcld" = "yes" ])
  46. AM_CONDITIONAL(CONFIG_NFSIDMAP, [test "$ac_cv_header_keyutils_h$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = "yesyes"])
  47. --
  48. 1.7.8.6