hepmc - Blame information for rev 335
Subversion Repositories:
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 285 | garren | 1 | # ---------------------------------------------------------------------- |
| 2 | # This is the HepMC configuration input file | ||
| 3 | # Process this file with autoconf to produce a configure script. | ||
| 4 | # ---------------------------------------------------------------------- | ||
| 5 | |||
| 6 | AC_PREREQ(2.59) | ||
| 317 | garren | 7 | AC_INIT([HepMC],[2.04.00.beta],[https://savannah.cern.ch/projects/hepmc/],[HepMC]) |
| 285 | garren | 8 | AC_CANONICAL_TARGET |
| 9 | AM_INIT_AUTOMAKE(1.9 foreign) | ||
| 10 | AC_CONFIG_SRCDIR([src/CommonIO.cc]) | ||
| 11 | AC_CONFIG_HEADER([HepMC/defs.h]) | ||
| 12 | |||
| 13 | # ---------------------------------------------------------------------- | ||
| 14 | # define --enable-visual | ||
| 15 | # ---------------------------------------------------------------------- | ||
| 16 | AC_ARG_ENABLE(visual, | ||
| 17 | AC_HELP_STRING([--enable-visual],[on by default when using Visual C++]), | ||
| 18 | [case "${enableval}" in | ||
| 19 | yes) build_visual="yes";; | ||
| 20 | no) build_visual="no";; | ||
| 21 | *) build_visual="no";; | ||
| 22 | esac], | ||
| 23 | [build_visual="no"]) | ||
| 24 | |||
| 25 | # ---------------------------------------------------------------------- | ||
| 335 | garren | 26 | # define the default momentum and length (position) units |
| 27 | # these MUST be declared | ||
| 28 | # ---------------------------------------------------------------------- | ||
| 29 | |||
| 30 | AC_ARG_WITH(momentum_units, | ||
| 31 | AC_HELP_STRING([--with-momentum_units], | ||
| 32 | [--with-momentum_units=MEV or GEV, no other values allowed]), | ||
| 33 | [HEPMC_DEFAULT_MOM_UNIT=${withval}], | ||
| 34 | [HEPMC_DEFAULT_MOM_UNIT="Declare momentum units with configure --with-momenutm_units"]) | ||
| 35 | AC_SUBST(HEPMC_DEFAULT_MOM_UNIT) | ||
| 36 | |||
| 37 | AC_ARG_WITH(length_units, | ||
| 38 | AC_HELP_STRING([--with-length_units], | ||
| 39 | [--with-length_units=MM or CM, no other values allowed]), | ||
| 40 | [HEPMC_DEFAULT_LEN_UNIT=${withval}], | ||
| 41 | [HEPMC_DEFAULT_LEN_UNIT="Declare momentum units with configure --with-length_units"]) | ||
| 42 | AC_SUBST(HEPMC_DEFAULT_LEN_UNIT) | ||
| 43 | |||
| 44 | # ---------------------------------------------------------------------- | ||
| 285 | garren | 45 | # find CLHEP and/or GENSER: |
| 46 | # these are used ONLY in the examples | ||
| 47 | # ---------------------------------------------------------------------- | ||
| 48 | |||
| 49 | AC_ARG_WITH(CLHEP, | ||
| 50 | AC_HELP_STRING([--with-CLHEP],[--with-CLHEP=$CLHEP_DIR: CLHEP is used in the examples]), | ||
| 51 | [CLHEPdir=${withval}],[CLHEPdir=" "]) | ||
| 52 | AC_SUBST(CLHEPdir) | ||
| 53 | |||
| 54 | AC_ARG_WITH(GENSER, | ||
| 55 | AC_HELP_STRING([--with-GENSER],[--with-GENSER=$GENSER_DIR: GENSER is used in the examples]), | ||
| 56 | [GENSERdir=${withval}],[GENSERdir=" "]) | ||
| 57 | AC_SUBST(GENSERdir) | ||
| 58 | |||
| 59 | # ---------------------------------------------------------------------- | ||
| 60 | # Checks for programs. | ||
| 61 | # ---------------------------------------------------------------------- | ||
| 62 | AC_PROG_CXX | ||
| 63 | AC_PROG_CC | ||
| 64 | AC_PROG_MAKE_SET | ||
| 65 | |||
| 318 | garren | 66 | # special libtool rules for Windows - work with gcc and cygwin |
| 67 | AC_LIBTOOL_WIN32_DLL | ||
| 285 | garren | 68 | AC_PROG_LIBTOOL |
| 69 | |||
| 70 | # ---------------------------------------------------------------------- | ||
| 71 | # Checks for libraries. | ||
| 72 | # ---------------------------------------------------------------------- | ||
| 73 | |||
| 74 | # ---------------------------------------------------------------------- | ||
| 75 | # Checks for header files. | ||
| 76 | # ---------------------------------------------------------------------- | ||
| 77 | AC_CHECK_HEADERS([stdint.h]) | ||
| 78 | |||
| 79 | # ---------------------------------------------------------------------- | ||
| 80 | # Checks for typedefs, structures, and compiler characteristics. | ||
| 81 | # ---------------------------------------------------------------------- | ||
| 82 | AC_HEADER_STDBOOL | ||
| 83 | AC_C_CONST | ||
| 84 | AC_C_INLINE | ||
| 85 | AC_CHECK_TYPES([ptrdiff_t]) | ||
| 86 | |||
| 87 | # ---------------------------------------------------------------------- | ||
| 88 | # Checks for library functions. | ||
| 89 | # ---------------------------------------------------------------------- | ||
| 90 | AC_HEADER_STDC | ||
| 91 | |||
| 92 | # ---------------------------------------------------------------------- | ||
| 93 | # OS dependent differences: | ||
| 94 | # ---------------------------------------------------------------------- | ||
| 95 | |||
| 96 | # copy | ||
| 97 | case "$target" in | ||
| 98 | *-*-win32*) | ||
| 99 | COPY_P="copy -p" | ||
| 100 | ;; | ||
| 101 | *) | ||
| 102 | COPY_P="cp -p" | ||
| 103 | esac | ||
| 104 | |||
| 105 | # diff | ||
| 106 | DIFF_Q="diff -q -b" | ||
| 107 | |||
| 108 | AC_SUBST(COPY_P) | ||
| 109 | AC_SUBST(DIFF_Q) | ||
| 110 | |||
| 111 | # ---------------------------------------------------------------------- | ||
| 112 | # compiler dependent differences | ||
| 113 | # notice that the default is presumed to be some flavor of g++ | ||
| 114 | # ---------------------------------------------------------------------- | ||
| 115 | case "$CXX" in | ||
| 116 | cl) | ||
| 117 | AM_CXXFLAGS="-EHsc -nologo -GR -MD" | ||
| 320 | garren | 118 | AM_MAKEFLAGS="-f VCMakefile" |
| 119 | AC_SUBST(AM_MAKEFLAGS) | ||
| 120 | CXXFLAGS=" " | ||
| 121 | AC_SUBST(CXXFLAGS) | ||
| 285 | garren | 122 | build_visual="yes" |
| 123 | ;; | ||
| 124 | *) | ||
| 125 | AM_CXXFLAGS="-ansi -pedantic -Wall" | ||
| 126 | esac | ||
| 127 | |||
| 128 | AC_SUBST(AM_CXXFLAGS) | ||
| 129 | |||
| 130 | AM_CONDITIONAL(BUILD_VISUAL, test x$build_visual = xyes) | ||
| 131 | |||
| 132 | # ---------------------------------------------------------------------- | ||
| 133 | # process Makefile.in and other *.in files | ||
| 134 | # ---------------------------------------------------------------------- | ||
| 135 | AC_CONFIG_FILES([Makefile | ||
| 320 | garren | 136 | VCMakefile |
| 285 | garren | 137 | HepMC/Makefile |
| 320 | garren | 138 | HepMC/VCMakefile |
| 285 | garren | 139 | doc/Makefile |
| 320 | garren | 140 | doc/VCMakefile |
| 285 | garren | 141 | examples/Makefile |
| 320 | garren | 142 | examples/VCMakefile |
| 285 | garren | 143 | fio/Makefile |
| 320 | garren | 144 | fio/VCMakefile |
| 285 | garren | 145 | src/Makefile |
| 320 | garren | 146 | src/VCMakefile |
| 335 | garren | 147 | src/Units.cc |
| 285 | garren | 148 | test/Makefile |
| 320 | garren | 149 | test/VCMakefile |
| 285 | garren | 150 | test/testHepMC.cc |
| 151 | test/testMass.cc | ||
| 152 | test/testHepMCIteration.cc | ||
| 153 | test/testMultipleCopies.cc | ||
| 154 | test/testDeprecated.cc | ||
| 155 | examples/GNUmakefile.example]) | ||
| 156 | |||
| 157 | AC_CONFIG_FILES([test/testHepMC.sh], [chmod +x test/testHepMC.sh]) | ||
| 158 | AC_CONFIG_FILES([test/testMass.sh], [chmod +x test/testMass.sh]) | ||
| 159 | AC_CONFIG_FILES([test/testHepMCIteration.sh], [chmod +x test/testHepMCIteration.sh]) | ||
| 160 | AC_CONFIG_FILES([test/testPrintBug.sh], [chmod +x test/testPrintBug.sh]) | ||
| 161 | AC_CONFIG_FILES([test/testDeprecated.sh], [chmod +x test/testDeprecated.sh]) | ||
| 162 | |||
| 163 | # ---------------------------------------------------------------------- | ||
| 164 | # Finish up: | ||
| 165 | # ---------------------------------------------------------------------- | ||
| 166 | AC_OUTPUT |
