# Search for LHAPDF and g77 compiler in standard directories
AC_DEFUN([THEPEG_SEARCH_LHAPDF],
[
AC_MSG_CHECKING([if LHAPDF is present and works])
HAS_LHAPDF="yes"
LHAPDF_LIBDIR=""
AC_ARG_WITH(LHAPDF,[ --without-LHAPDF do not use LHAPDF package (requires g77 compiler)
(included by default --with-LHAPDF=path to specify
where the LHAPDF shared library is located)], [if test -n "$with_LHAPDF" -a "x$with_LHAPDF" != "xyes" -a "x$with_LHAPDF" != "xno"; then LHAPDF_LIBDIR="$with_LHAPDF"; elif test "x$with_LHAPDF" == "xno"; then HAS_LHAPDF="no"; fi])
LHAPDF_LDFLAGS=""
if test -n "$LHAPDF_LIBDIR"; then
if test -e $LHAPDF_LIBDIR/libLHAPDF.so -o -e $LHAPDF_LIBDIR/libLHAPDF.dylib
# Search for stand-alone HepMC in standard directories
AC_DEFUN([THEPEG_SEARCH_HEPMC],
[
AC_MSG_CHECKING([if stand-alone HepMC is present and works])
HAS_HEPMC="yes"
HEPMC_LIBDIR=""
AC_ARG_ENABLE(HEPMC,[ --disable-HEPMC do not use stand-alone HepMC package
(enabled by default --enable-HEPMC=path to specify
where the HEPMC shared library is located)], [if test -n "$enable_HEPMC" -a "$enable_HEPMC" != "yes" -a "$enable_HEPMC" != "no"; then HEPMC_LIBDIR="$enable_HEPMC"; elif test "$enable_HEPMC" == "no"; then HAS_HEPMC="no"; fi])