hepmc - Blame information for rev 287
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) | ||
| 287 | 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 | # ---------------------------------------------------------------------- | ||
| 26 | # find CLHEP and/or GENSER: | ||
| 27 | # these are used ONLY in the examples | ||
| 28 | # ---------------------------------------------------------------------- | ||
| 29 | |||
| 30 | AC_ARG_WITH(CLHEP, | ||
| 31 | AC_HELP_STRING([--with-CLHEP],[--with-CLHEP=$CLHEP_DIR: CLHEP is used in the examples]), | ||
| 32 | [CLHEPdir=${withval}],[CLHEPdir=" "]) | ||
| 33 | AC_SUBST(CLHEPdir) | ||
| 34 | |||
| 35 | AC_ARG_WITH(GENSER, | ||
| 36 | AC_HELP_STRING([--with-GENSER],[--with-GENSER=$GENSER_DIR: GENSER is used in the examples]), | ||
| 37 | [GENSERdir=${withval}],[GENSERdir=" "]) | ||
| 38 | AC_SUBST(GENSERdir) | ||
| 39 | |||
| 40 | # ---------------------------------------------------------------------- | ||
| 41 | # Checks for programs. | ||
| 42 | # ---------------------------------------------------------------------- | ||
| 43 | AC_PROG_CXX | ||
| 44 | AC_PROG_CC | ||
| 45 | AC_PROG_MAKE_SET | ||
| 46 | |||
| 47 | # special libtool rules for Windows | ||
| 48 | case "$target" in | ||
| 49 | *-*-win32*) | ||
| 50 | AC_LIBTOOL_WIN32_DLL | ||
| 51 | esac | ||
| 52 | AC_PROG_LIBTOOL | ||
| 53 | |||
| 54 | # ---------------------------------------------------------------------- | ||
| 55 | # Checks for libraries. | ||
| 56 | # ---------------------------------------------------------------------- | ||
| 57 | |||
| 58 | # ---------------------------------------------------------------------- | ||
| 59 | # Checks for header files. | ||
| 60 | # ---------------------------------------------------------------------- | ||
| 61 | AC_CHECK_HEADERS([stdint.h]) | ||
| 62 | |||
| 63 | # ---------------------------------------------------------------------- | ||
| 64 | # Checks for typedefs, structures, and compiler characteristics. | ||
| 65 | # ---------------------------------------------------------------------- | ||
| 66 | AC_HEADER_STDBOOL | ||
| 67 | AC_C_CONST | ||
| 68 | AC_C_INLINE | ||
| 69 | AC_CHECK_TYPES([ptrdiff_t]) | ||
| 70 | |||
| 71 | # ---------------------------------------------------------------------- | ||
| 72 | # Checks for library functions. | ||
| 73 | # ---------------------------------------------------------------------- | ||
| 74 | AC_HEADER_STDC | ||
| 75 | |||
| 76 | # ---------------------------------------------------------------------- | ||
| 77 | # OS dependent differences: | ||
| 78 | # ---------------------------------------------------------------------- | ||
| 79 | |||
| 80 | # copy | ||
| 81 | case "$target" in | ||
| 82 | *-*-win32*) | ||
| 83 | COPY_P="copy -p" | ||
| 84 | ;; | ||
| 85 | *) | ||
| 86 | COPY_P="cp -p" | ||
| 87 | esac | ||
| 88 | |||
| 89 | # diff | ||
| 90 | DIFF_Q="diff -q -b" | ||
| 91 | |||
| 92 | AC_SUBST(COPY_P) | ||
| 93 | AC_SUBST(DIFF_Q) | ||
| 94 | |||
| 95 | # ---------------------------------------------------------------------- | ||
| 96 | # compiler dependent differences | ||
| 97 | # notice that the default is presumed to be some flavor of g++ | ||
| 98 | # ---------------------------------------------------------------------- | ||
| 99 | case "$CXX" in | ||
| 100 | cl) | ||
| 101 | AM_CXXFLAGS="-EHsc -nologo -GR -MD" | ||
| 102 | build_visual="yes" | ||
| 103 | ;; | ||
| 104 | *) | ||
| 105 | AM_CXXFLAGS="-ansi -pedantic -Wall" | ||
| 106 | esac | ||
| 107 | |||
| 108 | AC_SUBST(AM_CXXFLAGS) | ||
| 109 | |||
| 110 | AM_CONDITIONAL(BUILD_VISUAL, test x$build_visual = xyes) | ||
| 111 | |||
| 112 | # ---------------------------------------------------------------------- | ||
| 113 | # process Makefile.in and other *.in files | ||
| 114 | # ---------------------------------------------------------------------- | ||
| 115 | AC_CONFIG_FILES([Makefile | ||
| 116 | HepMC/Makefile | ||
| 117 | doc/Makefile | ||
| 118 | examples/Makefile | ||
| 119 | fio/Makefile | ||
| 120 | src/Makefile | ||
| 121 | test/Makefile | ||
| 122 | test/testHepMC.cc | ||
| 123 | test/testMass.cc | ||
| 124 | test/testHepMCIteration.cc | ||
| 125 | test/testMultipleCopies.cc | ||
| 126 | test/testDeprecated.cc | ||
| 127 | examples/GNUmakefile.example]) | ||
| 128 | |||
| 129 | AC_CONFIG_FILES([test/testHepMC.sh], [chmod +x test/testHepMC.sh]) | ||
| 130 | AC_CONFIG_FILES([test/testMass.sh], [chmod +x test/testMass.sh]) | ||
| 131 | AC_CONFIG_FILES([test/testHepMCIteration.sh], [chmod +x test/testHepMCIteration.sh]) | ||
| 132 | AC_CONFIG_FILES([test/testPrintBug.sh], [chmod +x test/testPrintBug.sh]) | ||
| 133 | AC_CONFIG_FILES([test/testDeprecated.sh], [chmod +x test/testDeprecated.sh]) | ||
| 134 | |||
| 135 | # ---------------------------------------------------------------------- | ||
| 136 | # Finish up: | ||
| 137 | # ---------------------------------------------------------------------- | ||
| 138 | AC_OUTPUT |
