~ubuntu-branches/ubuntu/precise/slurm-llnl/precise

« back to all changes in this revision

Viewing changes to auxdir/slurm.m4

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2011-04-08 11:21:17 UTC
  • mfrom: (3.3.16 sid)
  • Revision ID: james.westby@ubuntu.com-20110408112117-nfnyq9dtm55hqoaw
Tags: 2.2.4-1
* New upstream releases 
* Cleaning spare file and directories, not belonging to the sources
  generated by the building process and not removed by distclean.
  Added debian/clean with spare files and rm -rf inside debian/rules
  for directories.
* Added new packages libslurm-perl, libslurmdb-perl, slurm-llnl-torque
  (Closes: #575822) thanks to Julien Blache

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
##*****************************************************************************
2
 
## $Id: slurm.m4 19153 2009-12-10 22:47:09Z da $
 
2
## $Id: slurm.m4 21220 2010-09-22 17:17:51Z jette $
3
3
##*****************************************************************************
4
4
#  AUTHOR:
5
5
#    Mark A. Grondona <mgrondona@llnl.gov>
24
24
  AC_DEFINE_UNQUOTED(SLURMCTLD_PORT, [$slurmctldport],
25
25
                     [Define the default port number for slurmctld])
26
26
  AC_SUBST(SLURMCTLD_PORT)
27
 
  
 
27
 
28
28
 
29
29
  AC_MSG_CHECKING(for slurmd default port)
30
30
  AC_ARG_WITH(slurmd-port,
38
38
  AC_DEFINE_UNQUOTED(SLURMD_PORT, [$slurmdport],
39
39
                     [Define the default port number for slurmd])
40
40
  AC_SUBST(SLURMD_PORT)
41
 
  
 
41
 
42
42
 
43
43
  AC_MSG_CHECKING(for slurmdbd default port)
44
44
  AC_ARG_WITH(slurmdbd-port,
52
52
  AC_DEFINE_UNQUOTED(SLURMDBD_PORT, [$slurmdbdport],
53
53
                     [Define the default port number for slurmdbd])
54
54
  AC_SUBST(SLURMDBD_PORT)
55
 
])
 
55
 
 
56
  AC_MSG_CHECKING(for slurmctld default port count)
 
57
  AC_ARG_WITH(slurmctld-port-count,
 
58
    AS_HELP_STRING(--with-slurmctld-port-count=N,set slurmctld default port count [[1]]),
 
59
        [ if test `expr match "$withval" '[[0-9]]*$'` -gt 0; then
 
60
             slurmctldportcount="$withval"
 
61
          fi
 
62
        ]
 
63
  )
 
64
  AC_MSG_RESULT(${slurmctldportcount=$4})
 
65
  AC_DEFINE_UNQUOTED(SLURMCTLD_PORT_COUNT, [$slurmctldportcount],
 
66
                     [Define the default port count for slurmctld])
 
67
  AC_SUBST(SLURMCTLD_PORT_COUNT)
 
68
])
 
69
 
 
70
dnl
 
71
dnl Generic option for system dimensions
 
72
dnl
 
73
AC_DEFUN([X_AC_DIMENSIONS], [
 
74
  AC_MSG_CHECKING([System dimensions])
 
75
  AC_ARG_WITH(
 
76
    [dimensions],
 
77
    AS_HELP_STRING(--with-dimensions=N, set system dimension count for generic computer system),
 
78
    [ if test `expr match "$withval" '[[0-9]]*$'` -gt 0; then
 
79
        dimensions="$withval"
 
80
        x_ac_dimensions=yes
 
81
      fi
 
82
    ]
 
83
  )
 
84
  if test "$x_ac_dimensions" = yes; then
 
85
    if test $dimensions -lt 1; then
 
86
      AC_MSG_ERROR([Invalid dimensions value $dimensions])
 
87
    fi
 
88
    AC_DEFINE_UNQUOTED(SYSTEM_DIMENSIONS, [$dimensions], [Define system dimension count])
 
89
  fi
 
90
])
 
91
 
56
92
dnl
57
93
dnl Check for program_invocation_name
58
94
dnl
151
187
SLURM_MICRO="`perl -ne 'print,exit if s/^\s*MICRO:\s*(\S*).*/\1/i' $srcdir/META`"
152
188
RELEASE="`perl -ne 'print,exit if s/^\s*RELEASE:\s*(\S*).*/\1/i' $srcdir/META`"
153
189
 
154
 
SLURM_VERSION="`printf "0x%02x%02x%02x" $SLURM_MAJOR $SLURM_MINOR $SLURM_MICRO`"
155
 
AC_DEFINE_UNQUOTED(SLURM_VERSION, $SLURM_VERSION, [SLURM Version Number])
156
 
AC_SUBST(SLURM_VERSION)
 
190
# NOTE: SLURM_VERSION_NUMBER excludes any non-numeric component 
 
191
# (e.g. "pre1" in the MICRO), but may be suitable for the user determining 
 
192
# how to use the APIs or other differences. 
 
193
SLURM_VERSION_NUMBER="`printf "0x%02x%02x%02x" $SLURM_MAJOR $SLURM_MINOR $SLURM_MICRO`"
 
194
AC_DEFINE_UNQUOTED(SLURM_VERSION_NUMBER, $SLURM_VERSION_NUMBER, [SLURM Version Number])
 
195
AC_SUBST(SLURM_VERSION_NUMBER)
157
196
 
158
197
if test "$SLURM_MAJOR.$SLURM_MINOR.$SLURM_MICRO" != "$VERSION"; then
159
198
    AC_MSG_ERROR([META information is inconsistent: $VERSION != $SLURM_MAJOR.$SLURM_MINOR.$SLURM_MICRO!])