/config/ac_dshgroup.m4

https://code.google.com/ · m4 · 42 lines · 21 code · 3 blank · 18 comment · 0 complexity · f3db1d0db3e4021d4371de3d0132ed8a MD5 · raw file

  1. ##*****************************************************************************
  2. ## $Id: ac_dshgroup.m4 771 2004-02-11 00:12:20Z grondo $
  3. ##*****************************************************************************
  4. # AUTHOR:
  5. # Mark Grondona <mgrondona@llnl.gov>
  6. #
  7. # SYNOPSIS:
  8. # AC_DSHGROUP
  9. #
  10. # DESCRIPTION:
  11. # Checks for whether to include the standard dshgroup module.
  12. #
  13. # WARNINGS:
  14. # This macro must be placed after AC_PROG_CC or equivalent.
  15. ##*****************************************************************************
  16. AC_DEFUN([AC_DSHGROUP],
  17. [
  18. #
  19. # Check for whether to include the dshgroup module
  20. #
  21. AC_MSG_CHECKING([for whether to build dshgroup module])
  22. ac_dshgroup_path="/etc/dsh/group";
  23. AC_ARG_WITH([dshgroups],
  24. AC_HELP_STRING([--with-dshgroups(=PATH)],
  25. [Build dshgroup module for dsh group file support (with optional PATH)]),
  26. [ case "$withval" in
  27. no) ac_with_dshgroup=no ;;
  28. yes) ac_with_dshgroup=yes ;;
  29. *) ac_with_dshgroup=yes; ac_dshgroup_path="$withval" ;;
  30. esac
  31. ]
  32. )
  33. AC_MSG_RESULT([${ac_with_dshgroup=no}])
  34. if test "$ac_with_dshgroup" = "yes"; then
  35. AC_ADD_STATIC_MODULE("dshgroup")
  36. AC_DEFINE_UNQUOTED(DSHGROUP_PATH, "$ac_dshgroup_path",
  37. [Path to dshgroup files])
  38. fi
  39. ])