Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, /pythia6/pythiaeRHIC/configure.ac is written in an unsupported language. File is not indexed.

0001 # configure.ac
0002 # Thomas Burton
0003 # 15th October 2012
0004 # configure template for pythiaeRHIC
0005 
0006 # Run initialisation.
0007 AC_INIT(PYTHIA 6 for eRHIC, 1.0, tpb@bnl.gov, pythiaeRHIC, https://wiki.bnl.gov/eic/index.php/PYTHIA)
0008 
0009 # Safety check against incorrect --srcdir.
0010 # Check for existence of a file in the source directory.
0011 AC_CONFIG_SRCDIR(erhic/pythia6.f95)
0012 
0013 # Don't require boilerplate files.
0014 AM_INIT_AUTOMAKE(foreign)
0015 
0016 # Check for all the programmes we need.
0017 AC_PROG_CPP
0018 AC_PROG_CXX
0019 AC_PROG_F77(gfortran)
0020 AC_PROG_FC(gfortran)
0021 dnl AC_PROG_LIBTOOL
0022 LT_INIT([disable-static])
0023 
0024 # Determine the linker flags (e.g., -L and -l) for
0025 # Fortran intrinsic and runtime libraries.
0026 AC_F77_LIBRARY_LDFLAGS
0027 AC_FC_LIBRARY_LDFLAGS
0028 
0029 # Set compiler/linker flags.
0030 CXXFLAGS="${CXXFLAGS}"
0031 # Get the ROOT linker flags now via root-config.
0032 LDFLAGS="`root-config --libs` ${LDFLAGS}"
0033 LIBS="${LIBS}"
0034 # Get the ROOT include flags now via root-config.
0035 CPPFLAGS="-I`root-config --incdir` ${CPPFLAGS}"
0036 FFLAGS="${FFLAGS}"
0037 # The Fortran 95 code is the only Fortran entirely under our
0038 # control in this project (most of the F77 is from PYTHIA
0039 # or RADGEN) so we are stricter with the warnings for it than
0040 # for Fortran 77.
0041 # Impose fixed-format for compatibility with F77 include files,
0042 # but ignore line length limits.
0043 FCFLAGS="-ffixed-form -ffixed-line-length-none ${FCFLAGS}"
0044 FLIBS="${FLIBS}"
0045 
0046 # Allow the user to set the cernlib path.
0047 AC_SUBST(CERNLIB)
0048 AC_ARG_WITH(
0049   cern-libdir,
0050   AS_HELP_STRING(
0051     [--with-cern-libdir=DIR],
0052     [location of cernlib libraries (kernlib, packlib etc)]
0053   ),
0054   [CERNLIB="-L$withval -lmathlib -lkernlib -lpacklib_noshift"],
0055   [CERNLIB="-lmathlib -lkernlib -lpacklib_noshift"]
0056 )
0057 
0058 # Allow the user to set the LHAPDF paths (lib and include).
0059 # First the library path.
0060 AC_SUBST(LHAPDF_LIB)
0061 AC_ARG_WITH(
0062   lhapdf-libdir,
0063   AS_HELP_STRING(
0064     [--with-lhapdf-libdir=DIR],
0065     [location of libLHAPDF]
0066   ),
0067   [LHAPDF_LIB="-L$withval -lLHAPDF"],
0068   [LHAPDF_LIB="-lLHAPDF"]
0069 )
0070 # Now the include path.
0071 AC_SUBST(LHAPDF_INC)
0072 AC_ARG_WITH(
0073   lhapdf-incdir,
0074   AS_HELP_STRING(
0075     [--with-lhapdf-incdir=DIR],
0076     [location of LHAPDF header directory]
0077   ),
0078   [LHAPDF_INCDIR="-I$withval -leicsmear"],
0079   [LHAPDF_INCDIR="-leicsmear"]
0080 )
0081 
0082 # Allow the user to set the eic-smear paths (lib and include).
0083 # First the library path.
0084 AC_SUBST(EIC_LIB)
0085 AC_ARG_WITH(
0086    eic-libdir,
0087    AS_HELP_STRING(
0088       [--with-eic-libdir=DIR],
0089       [location of libeicsmear]
0090    ),
0091    [EIC_LIB="-L$withval -leicsmear"],
0092    [EIC_LIB="-leicsmear"]
0093 )
0094 # Now the include path.
0095 AC_SUBST(EIC_INC)
0096 AC_ARG_WITH(
0097    eic-incdir,
0098    AS_HELP_STRING(
0099       [--with-eic-incdir=DIR],
0100       [location of eicsmear header directory]
0101    ),
0102    [EIC_INC="-I$withval"],
0103    [EIC_INC=""]
0104 )
0105 
0106 # Make AC_OUTPUT create Makefile (from Makefile.in).
0107 AC_CONFIG_FILES([Makefile])
0108 
0109 AC_OUTPUT