7 |
AC_INIT(event/PamelaRun.h) |
AC_INIT(event/PamelaRun.h) |
8 |
|
|
9 |
dnl Adds several standard checks. It takes the program name and version number as arguments. |
dnl Adds several standard checks. It takes the program name and version number as arguments. |
10 |
AM_INIT_AUTOMAKE([yoda],[0.1.0]) |
AM_INIT_AUTOMAKE([yoda],[4.2.4]) |
11 |
|
|
12 |
dnl Indicates that you will be using a config.h file |
dnl Indicates that you will be using a config.h file |
13 |
dnl config.h will be generated by AUTOCONF using a confing.h.in file |
dnl config.h will be generated by AUTOCONF using a confing.h.in file |
52 |
|
|
53 |
dnl This will allow you to build code in sub-directories into temporary libraries, |
dnl This will allow you to build code in sub-directories into temporary libraries, |
54 |
dnl which MAKE will then link in with the rest of the code |
dnl which MAKE will then link in with the rest of the code |
55 |
AC_PROG_RANLIB |
dnl AC_PROG_RANLIB |
56 |
|
|
57 |
|
|
58 |
AC_PROG_MAKE_SET |
AC_PROG_MAKE_SET |
65 |
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) |
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) |
66 |
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) |
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) |
67 |
|
|
68 |
|
|
69 |
dnl Process the different options |
dnl Process the different options |
70 |
AC_ARG_WITH(root, |
AC_ARG_WITH(root, |
71 |
[--with-root=path Use the specified ROOT directory], |
[--with-root=path Use the specified ROOT directory], |
73 |
|
|
74 |
ROOT_LIBRARY="${ROOTSYS}/lib" |
ROOT_LIBRARY="${ROOTSYS}/lib" |
75 |
|
|
76 |
ROOT_LDFLAGS="${ROOT_LIBRARY}/libHist.so ${ROOT_LIBRARY}/libMatrix.so ${ROOT_LIBRARY}/libTree.so ${ROOT_LIBRARY}/libCore.so ${ROOT_LIBRARY}/libCint.so -ldl" |
ROOT_LDFLAGS=" \ |
77 |
|
${ROOT_LIBRARY}/libCint.so ${ROOT_LIBRARY}/libCore.so \ |
78 |
|
${ROOT_LIBRARY}/libTree.so \ |
79 |
|
-ldl" |
80 |
|
|
81 |
|
|
82 |
ROOT_INCLUDES="-I${ROOTSYS}/include" |
ROOT_INCLUDES="-I${ROOTSYS}/include" |
83 |
AC_SUBST(ROOT_INCLUDES) |
AC_SUBST(ROOT_INCLUDES) |
85 |
ROOTCINT=${ROOTSYS}/bin/rootcint |
ROOTCINT=${ROOTSYS}/bin/rootcint |
86 |
AC_SUBST(ROOTCINT) |
AC_SUBST(ROOTCINT) |
87 |
|
|
88 |
AC_ARG_WITH(log4cppp, |
AC_MSG_CHECKING(for gprof) |
89 |
[--with-log4cpp=path Use the specified directroy for log4cpp], |
AC_ARG_ENABLE(gprof, |
90 |
LOG4CPP=$with_log4cpp,) |
[--enable-gprof enable memory profiling with gprof], |
91 |
|
gprof=$enableval,gprof=no) |
92 |
|
if test "$gprof" != no |
93 |
|
then |
94 |
|
CXXFLAGS="-pg $CXXFLAGS" |
95 |
|
AC_MSG_RESULT(enabled) |
96 |
|
else |
97 |
|
AC_MSG_RESULT(no) |
98 |
|
fi |
99 |
|
|
100 |
|
AC_ARG_WITH(log4cxx, |
101 |
|
[--with-log4cxx=path Use the specified directroy for log4cxx], |
102 |
|
LOG4CXX=$with_log4cxx,) |
103 |
|
LOG4CXX_INCLUDES="-I${LOG4CXX}/include" |
104 |
|
AC_SUBST(LOG4CXX_INCLUDES) |
105 |
|
#------------------------------------------------------------ |
106 |
|
AC_ARG_WITH(log4cxx, |
107 |
|
[--with-log4cxx=path Use the specified directroy for log4cxx], |
108 |
|
LOG4CXX=$with_log4cxx,) |
109 |
|
|
110 |
|
LOG4CXX_LIBRARY="${LOG4CXX}/lib" |
111 |
|
LOG4CXX_INCLUDES="-I${LOG4CXX}/include" |
112 |
|
LOG4CXX_LDFLAGS=" ${LOG4CXX_LIBRARY}/liblog4cxx.so " |
113 |
|
|
114 |
|
AC_SUBST(LOG4CXX_INCLUDES) |
115 |
|
AC_SUBST(LOG4CXX_LDFLAGS) |
116 |
|
AC_SUBST(LOG4CXX_LIBRARY) |
117 |
|
#------------------------------------------------------------ |
118 |
|
|
119 |
|
|
120 |
|
|
121 |
dnl Checks for header files. |
dnl Checks for header files. |
122 |
AC_HEADER_STDC |
AC_HEADER_STDC |
125 |
dnl Indicates the name of the Makefile which will be generated |
dnl Indicates the name of the Makefile which will be generated |
126 |
dnl and the various subDirs where it will be generated one |
dnl and the various subDirs where it will be generated one |
127 |
dnl Add your own Makefiles to create here. |
dnl Add your own Makefiles to create here. |
128 |
AC_OUTPUT(Makefile Doxyfile \ |
AC_OUTPUT(Makefile Doxyfile \ |
129 |
event/Makefile \ |
event/Makefile \ |
130 |
|
|
131 |
dnl ------------------makes for Packets and SubPackets---------------- |
dnl ------------------makes for Packets and SubPackets---------------- |
132 |
event/mcmd/Makefile \ |
event/mcmd/Makefile \ |
133 |
event/tmtc/Makefile \ |
event/tmtc/Makefile \ |
134 |
event/log/Makefile \ |
event/log/Makefile \ |
135 |
event/arrDump/Makefile \ |
event/arrDump/Makefile \ |
136 |
event/tabDump/Makefile \ |
event/tabDump/Makefile \ |
137 |
event/varDump/Makefile \ |
event/varDump/Makefile \ |
138 |
event/physics/Makefile \ |
event/tsbt/Makefile \ |
139 |
event/physics/tracker/Makefile \ |
event/tsbb/Makefile \ |
140 |
event/physics/anticounter/Makefile \ |
event/endrun/Makefile \ |
141 |
event/physics/calorimeter/Makefile \ |
event/physics/Makefile \ |
142 |
|
event/physics/tracker/Makefile \ |
143 |
|
event/physics/anticounter/Makefile \ |
144 |
|
event/physics/calorimeter/Makefile \ |
145 |
|
event/physics/neutronDetector/Makefile \ |
146 |
|
event/physics/trigger/Makefile \ |
147 |
|
event/physics/tof/Makefile \ |
148 |
|
event/physics/S4/Makefile \ |
149 |
dnl ------------------makes for Packets and SubPackets---------------- |
dnl ------------------makes for Packets and SubPackets---------------- |
150 |
|
|
151 |
|
|
152 |
dnl ------------------makes for Techmodel Data---------------- |
dnl ------------------makes for Techmodel Data---------------- |
153 |
techmodel/Makefile \ |
techmodel/Makefile \ |
154 |
techmodel/forroutines/tracker/Makefile \ |
techmodel/forroutines/tracker/Makefile \ |
155 |
techmodel/forroutines/tracker/readraw/Makefile \ |
techmodel/forroutines/tracker/readraw/Makefile \ |
156 |
techmodel/forroutines/anticounter/Makefile \ |
techmodel/forroutines/anticounter/Makefile \ |
157 |
techmodel/forroutines/calorimeter/Makefile \ |
techmodel/forroutines/calorimeter/Makefile \ |
158 |
techmodel/forroutines/Makefile \ |
techmodel/forroutines/tof/Makefile \ |
159 |
techmodel/physics/Makefile \ |
techmodel/forroutines/trigger/Makefile \ |
160 |
|
techmodel/forroutines/Makefile \ |
161 |
|
techmodel/physics/Makefile \ |
162 |
dnl ------------------makes for Techmodel Data---------------- |
dnl ------------------makes for Techmodel Data---------------- |
163 |
) |
) |
164 |
|
|