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