PageRenderTime 18ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/config/ac_rcmd_rank_list.m4

https://code.google.com/
m4 | 43 lines | 24 code | 4 blank | 15 comment | 0 complexity | efea920421062e130c55cde3545168c1 MD5 | raw file
 1##*****************************************************************************
 2## $Id$
 3##*****************************************************************************
 4#  AUTHOR:
 5#    Mark Grondona <mgrondona@llnl.gov>
 6#
 7#  SYNOPSIS:
 8#    AC_RCMD_RANK_LIST
 9#
10#  DESCRIPTION:
11#    Create user 
12#
13#  WARNINGS:
14#    This macro must be placed after AC_PROG_CC or equivalent.
15##*****************************************************************************
16
17
18AC_DEFUN([AC_RCMD_RANK_LIST], [
19		AC_ARG_WITH([rcmd-rank-list],
20			AS_HELP_STRING([--with-rcmd-rank-list],
21				[Specify priority ordered list of rcmd modules. Default is mrsh,rsh,ssh,krb4,qsh,mqsh,exec,xcpu]),
22			[ for t in `echo $withval | tr "," " "`; do
23			       if echo mrsh,rsh,ssh,krb4,qsh,mqsh,exec,xcpu | grep -q $t; then
24				     if test -z "$ac_cv_rcmd_rank_list" ; then
25					    ac_cv_rcmd_rank_list=\"$t\"
26				      else
27				        ac_cv_rcmd_rank_list="$ac_cv_rcmd_rank_list, \"$t\""
28				      fi
29				   else
30				     AC_MSG_ERROR([Invalid rcmd type $t!])
31				   fi
32			   done 
33			], [])
34
35		AC_MSG_CHECKING([rcmd rank list])
36		if test -z "$ac_cv_rcmd_rank_list"; then
37		   ac_cv_rcmd_rank_list='"mrsh", "rsh", "ssh", "krb4", "qsh", "mqsh", "exec", "xcpu"'
38        fi
39        AC_MSG_RESULT([$ac_cv_rcmd_rank_list])
40
41	    AC_DEFINE_UNQUOTED(RCMD_RANK_LIST, $ac_cv_rcmd_rank_list,
42				[Define to quoted, comma-separated, priority-ordered list of rcmd types])
43])