Last change
on this file since 329 was
316,
checked in by bas, 9 years ago
|
Dennis Stam:
- fixed docdir error, closes #39
- added a new option to examples/new_rack_pbsmon.py
-p/--property
- improved the autoconf setup
|
File size:
1.1 KB
|
Line | |
---|
1 | #AC_INIT(src/PBSQuery.py) |
---|
2 | |
---|
3 | AC_PREREQ([2.69]) |
---|
4 | AC_INIT([pbs-python], [4.4.1]) |
---|
5 | AC_CONFIG_SRCDIR([src/C++/pbs_wrap.cxx]) |
---|
6 | |
---|
7 | AC_SUBST(prefix) |
---|
8 | AC_SUBST(exec_prefix) |
---|
9 | AC_SUBST(pyexecdir) |
---|
10 | |
---|
11 | |
---|
12 | pbsdir_default='' |
---|
13 | AC_ARG_WITH([pbsdir], |
---|
14 | [ --with-pbsdir=PATH The torque/pbs install directory], |
---|
15 | pbsdir=$withval, pbsdir=$pbsdir_default) |
---|
16 | AC_SUBST(pbsdir) |
---|
17 | |
---|
18 | # Verify the PBS libs are there, but let Makefile handle including them |
---|
19 | # on the link line. First check for modern torque pbs-config program using |
---|
20 | # $pbsdir and the rest of PATH, then fall back to looking around for the |
---|
21 | # libraries by hand. |
---|
22 | AC_PATH_PROG(PBSCONFIG, pbs-config, none, $pbsdir:$pbsdir/bin:$pbsdir/../bin:$PATH) |
---|
23 | if test "$PBSCONFIG" != "none"; then |
---|
24 | pbs_library_compile_line="`$PBSCONFIG --libs`" |
---|
25 | pbs_library_dir="`$PBSCONFIG --libdir`" |
---|
26 | pbs_version="`$PBSCONFIG --version`" |
---|
27 | AC_MSG_RESULT(Found torque version: $pbs_version) |
---|
28 | else |
---|
29 | AC_MSG_ERROR([Failed to find program pbs-config]) |
---|
30 | fi |
---|
31 | AC_SUBST(pbs_library_compile_line) |
---|
32 | AC_SUBST(pbs_library_dir) |
---|
33 | AC_SUBST(pbs_version) |
---|
34 | |
---|
35 | |
---|
36 | AM_PATH_PYTHON |
---|
37 | |
---|
38 | AC_OUTPUT( |
---|
39 | Makefile |
---|
40 | setup.py |
---|
41 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.