Changeset 4a605a9
- Timestamp:
- 11/02/05 11:53:44 (17 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 5261dbd
- Parents:
- 8bfa671
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile.am
ra3505a8 r4a605a9 1 SUBDIRS=lib docs libpacketdump tools 1 if LIBPACKETDUMP 2 LIBPACKETDUMP_DIR = libpacketdump 3 endif 4 if LIBTRACE_TOOLS 5 TOOLS_DIR = tools 6 endif 7 SUBDIRS = lib docs $(LIBPACKETDUMP_DIR) $(TOOLS_DIR) 2 8 3 9 AUTOMAKE_OPTIONS = 1.5 -
configure.in
r8bfa671 r4a605a9 145 145 fi 146 146 ) 147 148 # configure time option for building libpacketdump 149 # libpacketdump needs a C++ compiler to build, so we should do some tests 150 # at this point to see if one is installed 151 libtrace_libpacketdump=true 152 AC_ARG_ENABLE(libpacketdump, 153 AC_HELP_STRING([--disable-libpacketdump], 154 [disable building of libpacketdump (enabled by default). libpacketdump needs a c++ compiler to build] ), 155 [ 156 if test "$enableval" = no -o "$enableval" = false 157 then 158 libtrace_libpacketdump=false 159 else 160 libtrace_libpacketdump=true 161 fi 162 ], 163 [ 164 libtrace_libpacketdump=true 165 ]) 166 167 if test "$libtrace_libpacketdump" = true; then 168 AC_LANG_PUSH(C++) 169 AC_MSG_CHECKING([if we can compile C++ ]) 170 AC_COMPILE_IFELSE([AC_LANG_PROGRAM( 171 [[ 172 #include <iostream> 173 ]])], 174 [AC_DEFINE(HAVE_CXX,1,[define to test for presence of a working C++ compiler]) libtrace_cxx=true], 175 [AC_DEFINE(HAVE_CXX,0,[define to test for presence of a working C++ compiler]) libtrace_cxx=false]) 176 177 AC_MSG_RESULT($libtrace_cxx) 178 AC_LANG_POP(C++) 179 180 if test "$libtrace_cxx" = false; then 181 AC_MSG_ERROR([libpacketdump requested, but no C++ compiler found. Build with --disable-libpacketdump if you wish to continue anyway ]) 182 fi 183 fi 184 185 # configure time option for building the libtrace tools 186 # one of the tools requires libpacketdump, so won't build if libpacketdump 187 # hasn't also been built 188 libtrace_tools=true 189 AC_ARG_ENABLE(tools, 190 AC_HELP_STRING([--disable-tools], 191 [disable building of the tools contained in the tools/ directory]), 192 [ 193 if test "$enableval" = no -o "$enableval" = false 194 then 195 libtrace_tools=false 196 else 197 libtrace_tools=true 198 fi 199 200 ], 201 [ 202 libtrace_tools=true 203 ]) 147 204 148 205 # configure time options for use of DAG cards … … 223 280 fi 224 281 225 AM_CONDITIONAL(HAVE_DAG, test x$libtrace_dag = xtrue)226 AM_CONDITIONAL(DAG2_4, test x$libtrace_dag2_4 = xtrue)227 228 229 # Check for miscellaneous programs230 AC_CHECK_PROG([libtrace_doxygen], [doxygen], [true], [false])231 232 AM_CONDITIONAL(HAS_DOXYGEN, [test x"$libtrace_doxygen" = xtrue])233 282 234 283 … … 277 326 fi 278 327 328 AM_CONDITIONAL([HAVE_DAG], [test "$libtrace_dag" = true]) 329 AM_CONDITIONAL([DAG2_4], [test "$libtrace_dag2_4" = true]) 330 AM_CONDITIONAL([HAVE_CXX], [test "$libtrace_cxx" = true]) 331 AM_CONDITIONAL([LIBPACKETDUMP], [test "$libtrace_libpacketdump" = true]) 332 AM_CONDITIONAL([LIBTRACE_TOOLS], [test "$libtrace_tools" = true]) 333 334 # Check for miscellaneous programs 335 AC_CHECK_PROG([libtrace_doxygen], [doxygen], [true], [false]) 336 337 AM_CONDITIONAL(HAS_DOXYGEN, [test x"$libtrace_doxygen" = xtrue]) 279 338 280 339 … … 284 343 AC_SUBST([LTLIBOBJS]) 285 344 AC_SUBST([MANPAGES]) 286 AC_SUBST([LIBTRACE_VERSION])287 AC_SUBST(LIBTRACE_LT_VERSION)288 345 289 346 dnl and finally, output our Makefiles … … 304 361 reportopt "Compiled with DAG support (DAG 2.4)" $libtrace_dag2_4 305 362 reportopt "Building man pages/documentation" $libtrace_doxygen 306 363 reportopt "Building libpacketdump" $libtrace_libpacketdump 364 reportopt "Building tools/ directory" $libtrace_tools 365 -
libpacketdump/Makefile.am
ra3505a8 r4a605a9 1 1 lib_LTLIBRARIES = libpacketdump.la 2 2 include_HEADERS = libpacketdump.h 3 4 #LINK_LAYERS=$(addsuffix .so,$(basename $(wildcard link_*.cc)))5 #ETH_LAYERS=$(addsuffix .so,$(basename $(wildcard eth_*.cc)))6 #IP_LAYERS=$(addsuffix .so,$(basename $(wildcard ip_*.cc)))7 #TCP_LAYERS=$(addsuffix .so,$(basename $(wildcard tcp_*.cc)))8 3 9 4 LINK_LAYERS=$(wildcard link_*.cc) … … 37 32 install-exec-local: 38 33 for plugin in $(PLUGINS); do install -D -m 755 $$plugin $(PLUGINDIR)/$$plugin; done 34 35 uninstall-exec-local: 36 for plugin in $(PLUGINS); do rm -f $(PLUGINDIR)/$$plugin; done -
tools/Makefile.am
ra3505a8 r4a605a9 1 SUBDIRS=traceanon tracedump tracemerge tracertstats tracesplit 1 if LIBPACKETDUMP 2 TRACEDUMP_DIR=tracedump 3 endif 4 5 if LIBTRACE_TOOLS 6 SUBDIRS=traceanon tracemerge tracertstats tracesplit $(TRACEDUMP_DIR) 7 else 8 SUBDIRS= 9 endif 2 10 3 11 all-hook:
Note: See TracChangeset
for help on using the changeset viewer.