/config/ac_dshgroup.m4
https://code.google.com/ · m4 · 42 lines · 21 code · 3 blank · 18 comment · 0 complexity · f3db1d0db3e4021d4371de3d0132ed8a MD5 · raw file
- ##*****************************************************************************
- ## $Id: ac_dshgroup.m4 771 2004-02-11 00:12:20Z grondo $
- ##*****************************************************************************
- # AUTHOR:
- # Mark Grondona <mgrondona@llnl.gov>
- #
- # SYNOPSIS:
- # AC_DSHGROUP
- #
- # DESCRIPTION:
- # Checks for whether to include the standard dshgroup module.
- #
- # WARNINGS:
- # This macro must be placed after AC_PROG_CC or equivalent.
- ##*****************************************************************************
- AC_DEFUN([AC_DSHGROUP],
- [
- #
- # Check for whether to include the dshgroup module
- #
- AC_MSG_CHECKING([for whether to build dshgroup module])
- ac_dshgroup_path="/etc/dsh/group";
- AC_ARG_WITH([dshgroups],
- AC_HELP_STRING([--with-dshgroups(=PATH)],
- [Build dshgroup module for dsh group file support (with optional PATH)]),
- [ case "$withval" in
- no) ac_with_dshgroup=no ;;
- yes) ac_with_dshgroup=yes ;;
- *) ac_with_dshgroup=yes; ac_dshgroup_path="$withval" ;;
- esac
- ]
- )
- AC_MSG_RESULT([${ac_with_dshgroup=no}])
- if test "$ac_with_dshgroup" = "yes"; then
- AC_ADD_STATIC_MODULE("dshgroup")
- AC_DEFINE_UNQUOTED(DSHGROUP_PATH, "$ac_dshgroup_path",
- [Path to dshgroup files])
- fi
- ])