Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 155974 | Differences between
and this patch

Collapse All | Expand All

(-)salome_adm/unix/config_files/check_openpbs.m4_orig (-3 / +3 lines)
Lines 32-46 Link Here
32
 
32
 
33
   if test "x${OPENPBS}" = "x/usr"
33
   if test "x${OPENPBS}" = "x/usr"
34
   then
34
   then
35
     OPENPBS_LIBDIR=""
35
     OPENPBS_LIBDIR="-L/usr/lib/pbs/lib"
36
   else
36
   else
37
     OPENPBS_LIBDIR="-L${OPENPBS}/lib"
37
     OPENPBS_LIBDIR="-L${OPENPBS}/lib"
38
   fi
38
   fi
39
   OPENPBS_LIBS="-lpbs"
39
   OPENPBS_LIBS="-ltorque"
40
   saved_LDFLAGS=${LDFLAGS}
40
   saved_LDFLAGS=${LDFLAGS}
41
   saved_LIBS=${LIBS}
41
   saved_LIBS=${LIBS}
42
   LDFLAGS="${LDFLAGS} ${OPENPBS_LIBDIR}"
42
   LDFLAGS="${LDFLAGS} ${OPENPBS_LIBDIR}"
43
   AC_CHECK_LIB([pbs], [pbs_connect], [openpbs_lib_found=yes], [openpbs_lib_found=no], [])
43
   AC_CHECK_LIB([torque], [pbs_connect], [openpbs_lib_found=yes], [openpbs_lib_found=no], [])
44
   test x${openpbs_lib_found} = xno && AC_MSG_WARN([OpenPBS library not found])
44
   test x${openpbs_lib_found} = xno && AC_MSG_WARN([OpenPBS library not found])
45
   LIBS="${LIBS} ${OPENPBS_LIBS}"
45
   LIBS="${LIBS} ${OPENPBS_LIBS}"
46
   LDFLAGS=${saved_LDFLAGS}
46
   LDFLAGS=${saved_LDFLAGS}

Return to bug 155974