/config/ac_dshgroup.m4
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 17AC_DEFUN([AC_DSHGROUP], 18[ 19 # 20 # Check for whether to include the dshgroup module 21 # 22 AC_MSG_CHECKING([for whether to build dshgroup module]) 23 ac_dshgroup_path="/etc/dsh/group"; 24 25 AC_ARG_WITH([dshgroups], 26 AC_HELP_STRING([--with-dshgroups(=PATH)], 27 [Build dshgroup module for dsh group file support (with optional PATH)]), 28 [ case "$withval" in 29 no) ac_with_dshgroup=no ;; 30 yes) ac_with_dshgroup=yes ;; 31 *) ac_with_dshgroup=yes; ac_dshgroup_path="$withval" ;; 32 esac 33 ] 34 ) 35 AC_MSG_RESULT([${ac_with_dshgroup=no}]) 36 37 if test "$ac_with_dshgroup" = "yes"; then 38 AC_ADD_STATIC_MODULE("dshgroup") 39 AC_DEFINE_UNQUOTED(DSHGROUP_PATH, "$ac_dshgroup_path", 40 [Path to dshgroup files]) 41 fi 42])