File: configure.ac

package info (click to toggle)
herwig%2B%2B 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 27,128 kB
  • ctags: 24,739
  • sloc: cpp: 188,949; fortran: 23,193; sh: 11,365; python: 5,069; ansic: 3,539; makefile: 1,865; perl: 2
file content (184 lines) | stat: -rw-r--r-- 4,855 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
dnl Process this file with autoconf to produce a configure script.

AC_PREREQ([2.59])
AC_INIT([Herwig++],[2.6.0],[herwig@projects.hepforge.org],[Herwig++])
AC_CONFIG_SRCDIR([Utilities/HerwigStrategy.cc])
AC_CONFIG_AUX_DIR([Config])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([Config/config.h])
dnl AC_PRESERVE_HELP_ORDER
AC_CANONICAL_HOST

case "${host}" in
  *-darwin[[0156]].*) 
    AC_MSG_ERROR([Herwig++ requires OS X 10.3 or later])
    ;;
  *-darwin7.*) 
    if test "x$MACOSX_DEPLOYMENT_TARGET" != "x10.3"; then 
      AC_MSG_ERROR(
      [Please add 'MACOSX_DEPLOYMENT_TARGET=10.3' to the configure line.]) 
    fi 
    ;;
esac

dnl === disable debug symbols by default =====
if test "x$CXXFLAGS" = "x"; then
   CXXFLAGS=-O3
fi
if test "x$CFLAGS" = "x"; then
   CFLAGS=-O3
fi
dnl Looptools manual requires optimization off
if test "x$FCFLAGS" = "x"; then
   FCFLAGS=-O0
fi
dnl ==========================================

AC_LANG([C++])

AM_INIT_AUTOMAKE([1.9 gnu dist-bzip2 -Wall])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])

dnl Checks for programs.
AC_PROG_CXX([g++])
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_LN_S

dnl modified search order
AC_PROG_FC([gfortran g95 g77]) 
dnl xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 xlf f77 frt pgf77 cf77 fort77 fl32 af77])
AC_LANG_PUSH([Fortran])
AC_MSG_CHECKING([if the Fortran compiler ($FC) works])
AC_COMPILE_IFELSE(
   	AC_LANG_PROGRAM([],[      print *[,]"Hello"]),
	[AC_MSG_RESULT([yes])],
	[AC_MSG_RESULT([no])
	 AC_MSG_ERROR([A Fortran compiler is required to build Herwig++.])
	]
)
AC_LANG_POP([Fortran])


LT_PREREQ([2.2])
LT_INIT([disable-static dlopen pic-only])

dnl ####################################
dnl ####################################

dnl for Doc/fixinterfaces.pl
AC_PATH_PROG(PERL, perl)

HERWIG_CHECK_GSL

HERWIG_CHECK_THEPEG

HERWIG_CHECK_BOOST

HERWIG_COMPILERFLAGS

HERWIG_LOOPTOOLS

HERWIG_PDF_PATH

FASTJET_CHECK_FASTJET

HERWIG_VERSIONSTRING

HERWIG_CHECK_ABS_BUG

HERWIG_ENABLE_MODELS

SHARED_FLAG=-shared
AM_CONDITIONAL(NEED_APPLE_FIXES,
		[test "xx${host/darwin/foundit}xx" != "xx${host}xx"])
if test "xx${host/darwin/foundit}xx" != "xx${host}xx"; then
   APPLE_DSO_FLAGS=-Wl,-undefined,dynamic_lookup
   SHARED_FLAG=-bundle
fi
AC_SUBST([APPLE_DSO_FLAGS])
AC_SUBST([SHARED_FLAG])

AC_CONFIG_FILES([UnderlyingEvent/Makefile
		Models/Makefile
		Models/StandardModel/Makefile
		Models/RSModel/Makefile
		Models/General/Makefile
		Models/Susy/Makefile
		Models/Susy/NMSSM/Makefile
		Models/UED/Makefile
		Models/Transplanckian/Makefile
		Models/Leptoquarks/Makefile
		Models/Zprime/Makefile
		Models/TTbAsymm/Makefile
		Models/ADD/Makefile
		Models/Sextet/Makefile
		Decay/Makefile
		Decay/FormFactors/Makefile
		Decay/Tau/Makefile
		Decay/Baryon/Makefile
		Decay/VectorMeson/Makefile
		Decay/Perturbative/Makefile
                Decay/ScalarMeson/Makefile
                Decay/TensorMeson/Makefile
                Decay/WeakCurrents/Makefile
		Decay/Partonic/Makefile
		Decay/General/Makefile	
		Decay/Radiation/Makefile
                Doc/refman.conf
                Doc/refman.h
		PDT/Makefile
		PDF/Makefile
                MatrixElement/Makefile
                MatrixElement/General/Makefile
                MatrixElement/Lepton/Makefile
                MatrixElement/Hadron/Makefile
                MatrixElement/DIS/Makefile
                MatrixElement/Powheg/Makefile
                MatrixElement/Gamma/Makefile
                MatrixElement/Matchbox/Makefile
                MatrixElement/Matchbox/Base/Makefile
                MatrixElement/Matchbox/Utility/Makefile
                MatrixElement/Matchbox/Phasespace/Makefile
                MatrixElement/Matchbox/Dipoles/Makefile
                MatrixElement/Matchbox/InsertionOperators/Makefile
                MatrixElement/Matchbox/Powheg/Makefile
                MatrixElement/Matchbox/Builtin/Makefile
                MatrixElement/Matchbox/Builtin/Processes/Makefile
		Exsample2/Makefile
		Shower/SplittingFunctions/Makefile
		Shower/Default/Makefile
		Shower/Base/Makefile
                Shower/Makefile
		DipoleShower/Makefile
		DipoleShower/Base/Makefile
		DipoleShower/Kernels/Makefile
		DipoleShower/Kinematics/Makefile
		DipoleShower/Utility/Makefile
		DipoleShower/AlphaS/Makefile
                Utilities/Makefile
                Hadronization/Makefile
		lib/Makefile
		include/Makefile
		src/Makefile
		src/defaults/Makefile
		src/herwig-config
		Doc/Makefile
		Doc/HerwigDefaults.in
		Looptools/Makefile
		Analysis/Makefile
		src/Makefile-UserModules
		src/defaults/Analysis.in
		Contrib/Makefile
		Contrib/make_makefiles.sh
		Tests/Makefile
		Makefile])

AC_CONFIG_FILES([Doc/fixinterfaces.pl],[chmod +x Doc/fixinterfaces.pl])

HERWIG_OVERVIEW

AC_CONFIG_COMMANDS([summary],[cat config.herwig])

AC_OUTPUT