source: trunk/configure.in @ 329

Last change on this file since 329 was 316, checked in by bas, 10 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
3AC_PREREQ([2.69])
4AC_INIT([pbs-python], [4.4.1])
5AC_CONFIG_SRCDIR([src/C++/pbs_wrap.cxx])
6
7AC_SUBST(prefix)
8AC_SUBST(exec_prefix)
9AC_SUBST(pyexecdir)
10
11
12pbsdir_default=''
13AC_ARG_WITH([pbsdir],
14 [  --with-pbsdir=PATH  The torque/pbs install directory],
15  pbsdir=$withval, pbsdir=$pbsdir_default)
16AC_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.
22AC_PATH_PROG(PBSCONFIG, pbs-config, none, $pbsdir:$pbsdir/bin:$pbsdir/../bin:$PATH)
23if 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)
28else
29  AC_MSG_ERROR([Failed to find program pbs-config])
30fi
31AC_SUBST(pbs_library_compile_line)
32AC_SUBST(pbs_library_dir)
33AC_SUBST(pbs_version)
34
35
36AM_PATH_PYTHON
37
38AC_OUTPUT(
39        Makefile
40        setup.py
41        )
Note: See TracBrowser for help on using the repository browser.