hepmc - Rev 298
Subversion Repositories:
# ----------------------------------------------------------------------# This is the HepMC configuration input file# Process this file with autoconf to produce a configure script.# ----------------------------------------------------------------------AC_PREREQ(2.59)AC_INIT(HepMC, 2.04.00-beta, https://savannah.cern.ch/projects/hepmc/, HepMC)AC_CANONICAL_TARGETAM_INIT_AUTOMAKE(1.9 foreign)AC_CONFIG_SRCDIR([src/CommonIO.cc])AC_CONFIG_HEADER([HepMC/defs.h])# ----------------------------------------------------------------------# define --enable-visual# ----------------------------------------------------------------------AC_ARG_ENABLE(visual,AC_HELP_STRING([--enable-visual],[on by default when using Visual C++]),[case "${enableval}" inyes) build_visual="yes";;no) build_visual="no";;*) build_visual="no";;esac],[build_visual="no"])# ----------------------------------------------------------------------# find CLHEP and/or GENSER:# these are used ONLY in the examples# ----------------------------------------------------------------------AC_ARG_WITH(CLHEP,AC_HELP_STRING([--with-CLHEP],[--with-CLHEP=$CLHEP_DIR: CLHEP is used in the examples]),[CLHEPdir=${withval}],[CLHEPdir=" "])AC_SUBST(CLHEPdir)AC_ARG_WITH(GENSER,AC_HELP_STRING([--with-GENSER],[--with-GENSER=$GENSER_DIR: GENSER is used in the examples]),[GENSERdir=${withval}],[GENSERdir=" "])AC_SUBST(GENSERdir)# ----------------------------------------------------------------------# Checks for programs.# ----------------------------------------------------------------------AC_PROG_CXXAC_PROG_CCAC_PROG_MAKE_SET# special libtool rules for Windowscase "$target" in*-*-win32*)AC_LIBTOOL_WIN32_DLLesacAC_PROG_LIBTOOL# ----------------------------------------------------------------------# Checks for libraries.# ----------------------------------------------------------------------# ----------------------------------------------------------------------# Checks for header files.# ----------------------------------------------------------------------AC_CHECK_HEADERS([stdint.h])# ----------------------------------------------------------------------# Checks for typedefs, structures, and compiler characteristics.# ----------------------------------------------------------------------AC_HEADER_STDBOOLAC_C_CONSTAC_C_INLINEAC_CHECK_TYPES([ptrdiff_t])# ----------------------------------------------------------------------# Checks for library functions.# ----------------------------------------------------------------------AC_HEADER_STDC# ----------------------------------------------------------------------# OS dependent differences:# ----------------------------------------------------------------------# copycase "$target" in*-*-win32*)COPY_P="copy -p";;*)COPY_P="cp -p"esac# diffDIFF_Q="diff -q -b"AC_SUBST(COPY_P)AC_SUBST(DIFF_Q)# ----------------------------------------------------------------------# compiler dependent differences# notice that the default is presumed to be some flavor of g++# ----------------------------------------------------------------------case "$CXX" incl)AM_CXXFLAGS="-EHsc -nologo -GR -MD"build_visual="yes";;*)AM_CXXFLAGS="-ansi -pedantic -Wall"esacAC_SUBST(AM_CXXFLAGS)AM_CONDITIONAL(BUILD_VISUAL, test x$build_visual = xyes)# ----------------------------------------------------------------------# process Makefile.in and other *.in files# ----------------------------------------------------------------------AC_CONFIG_FILES([MakefileHepMC/Makefiledoc/Makefileexamples/Makefilefio/Makefilesrc/Makefiletest/Makefiletest/testHepMC.cctest/testMass.cctest/testHepMCIteration.cctest/testMultipleCopies.cctest/testDeprecated.ccexamples/GNUmakefile.example])AC_CONFIG_FILES([test/testHepMC.sh], [chmod +x test/testHepMC.sh])AC_CONFIG_FILES([test/testMass.sh], [chmod +x test/testMass.sh])AC_CONFIG_FILES([test/testHepMCIteration.sh], [chmod +x test/testHepMCIteration.sh])AC_CONFIG_FILES([test/testPrintBug.sh], [chmod +x test/testPrintBug.sh])AC_CONFIG_FILES([test/testDeprecated.sh], [chmod +x test/testDeprecated.sh])# ----------------------------------------------------------------------# Finish up:# ----------------------------------------------------------------------AC_OUTPUT
