Changeset 216 for trunk/configure.in


Ignore:
Timestamp:
04/08/10 15:31:29 (14 years ago)
Author:
bas
Message:

New configure options to determine version and where the libs are installed, borrowed from mpiexec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r177 r216  
    1 AC_INIT(src/pbs.py)
     1AC_INIT(src/pbs_2.4.py)
    22AC_SUBST(prefix)
    33AC_SUBST(exec_prefix)
    44AC_SUBST(pyexecdir)
    5 AC_SUBST(pbspath)
    65
    76
    8 AC_ARG_WITH(pbsdir,
    9 
    10   --with-pbsdir=PATH    directory that contains the torque libraries],
     7pbsdir_default=''
     8AC_ARG_WITH([pbsdir],
     9 [  --with-pbsdir=PATH  The torque/pbs install directory],
     10  pbsdir=$withval, pbsdir=$pbsdir_default)
     11AC_SUBST(pbsdir)
    1112
    12   [case "${withval}" in
    13         *) pbspath="${withval}" ;;
    14   esac],
     13# Verify the PBS libs are there, but let Makefile handle including them
     14# on the link line.  First check for modern torque pbs-config program using
     15# $pbsdir and the rest of PATH, then fall back to looking around for the
     16# libraries by hand.
     17AC_PATH_PROG(PBSCONFIG, pbs-config, none, $pbsdir:$pbsdir/bin:$pbsdir/../bin:$PATH)
     18if test "$PBSCONFIG" != "none"; then
     19  pbs_library_dir="`$PBSCONFIG --libs`"
     20  pbs_version="`$PBSCONFIG --version`"
     21else
     22  pbs_library_DIR=""
     23  pbs_version=""
     24fi
     25AC_SUBST(pbs_library_dir)
     26AC_SUBST(pbs_version)
    1527
    16   [pbspath=""]
    17   [pbspath=`pbs-config --libs`]
    18 )dnl
    1928
    2029AM_PATH_PYTHON
Note: See TracChangeset for help on using the changeset viewer.