~ubuntu-branches/ubuntu/vivid/slurm-llnl/vivid

« back to all changes in this revision

Viewing changes to auxdir/x_ac_env.m4

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2009-09-24 23:28:15 UTC
  • mfrom: (1.1.11 upstream) (3.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090924232815-enh65jn32q1ebg07
Tags: 2.0.5-1
* New upstream release 
* Changed dependecy from lib-mysqlclient15 to lib-mysqlclient 
* Added Default-Start for runlevel 2 and 4 and $remote_fs requirement in
  init.d scripts (Closes: #541252)
* Postinst checks for wrong runlevels 2 and 4 links
* Upgraded to standard version 3.8.3
* Add lintian overrides for missing slurm-llnl-configurator.html in doc
  base registration
* modified postrm scripts to ignore pkill return value in order to avoid
  postrm failure when no slurm process is running
* Checking for slurmctld.pid before cancelling running and pending
  jobs during package removal 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
##*****************************************************************************
 
2
#  AUTHOR:
 
3
#    Morris Jette <jette1@llnl.gov>
 
4
#
 
5
#  SYNOPSIS:
 
6
#    X_AC_ENV_LOGIC
 
7
#
 
8
#  DESCRIPTION:
 
9
#    Test for how user's environment should be loaded for sbatch's 
 
10
#    --get-user-env option (as used by Moab)
 
11
##*****************************************************************************
 
12
 
 
13
AC_DEFUN([X_AC_ENV_LOGIC], [
 
14
  AC_MSG_CHECKING([whether sbatch --get-user-env option should load .login])
 
15
  AC_ARG_ENABLE(
 
16
    [load-env-no-login],
 
17
    AS_HELP_STRING(--enable-load-env-no-login,
 
18
                   [enable --get-user-env option to load user environment without .login]),
 
19
    [ case "$enableval" in
 
20
        yes) x_ac_load_env_no_login=yes ;;
 
21
         no) x_ac_load_env_no_login=no ;;
 
22
          *) AC_MSG_RESULT([doh!])
 
23
             AC_MSG_ERROR([bad value "$enableval" for --enable-load-env-no-login]) ;;
 
24
      esac
 
25
    ],
 
26
    [x_ac_load_env_no_login=no]
 
27
  )
 
28
 
 
29
  if test "$x_ac_load_env_no_login" = yes; then
 
30
    AC_MSG_RESULT([yes])
 
31
    AC_DEFINE(LOAD_ENV_NO_LOGIN, 1,
 
32
              [Define to 1 for --get-user-env to load user environment without .login])
 
33
  else
 
34
    AC_MSG_RESULT([no])
 
35
  fi
 
36
])
 
37