diff options
author | Bruce A. Mah <bmah@es.net> | 2018-06-29 16:25:06 -0700 |
---|---|---|
committer | Bruce A. Mah <bmah@es.net> | 2018-06-29 16:25:06 -0700 |
commit | d4dfec7874af6edd3661795250febd9a1c5c2019 (patch) | |
tree | 9bfbb1b1c0a7608a9c22ee0ec235e27c1b550c5e | |
parent | e6689a8cbbf4ae504b302f410be5108b14987512 (diff) | |
download | iperf3-d4dfec7874af6edd3661795250febd9a1c5c2019.tar.gz |
Regen.
-rwxr-xr-x | configure | 25 | ||||
-rw-r--r-- | src/Makefile.in | 46 |
2 files changed, 54 insertions, 17 deletions
@@ -639,6 +639,8 @@ OPENSSL_LDFLAGS OPENSSL_LIBS OPENSSL_INCLUDES PKG_CONFIG +ENABLE_PROFILING_FALSE +ENABLE_PROFILING_TRUE CPP LT_SYS_LIBRARY_PATH OTOOL64 @@ -769,6 +771,7 @@ with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock +enable_profiling with_openssl ' ac_precious_vars='build_alias @@ -1413,6 +1416,7 @@ Optional Features: --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) + --disable-profiling Disable iperf profiling binary Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -12131,6 +12135,23 @@ if test "x$GCC" = "xyes"; then CFLAGS="$CFLAGS -Wall" fi +# Check if profiling must be disabled +# Check whether --enable-profiling was given. +if test "${enable_profiling+set}" = set; then : + enableval=$enable_profiling; : +else + enable_profiling=yes +fi + + if test x$enable_profiling = xyes; then + ENABLE_PROFILING_TRUE= + ENABLE_PROFILING_FALSE='#' +else + ENABLE_PROFILING_TRUE='#' + ENABLE_PROFILING_FALSE= +fi + + # Checks for header files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } @@ -13229,6 +13250,10 @@ if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then + as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 diff --git a/src/Makefile.in b/src/Makefile.in index 3face72..363c5de 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -91,8 +91,11 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = iperf3$(EXEEXT) -noinst_PROGRAMS = t_timer$(EXEEXT) t_units$(EXEEXT) t_uuid$(EXEEXT) \ - iperf3_profile$(EXEEXT) +@ENABLE_PROFILING_FALSE@noinst_PROGRAMS = t_timer$(EXEEXT) \ +@ENABLE_PROFILING_FALSE@ t_units$(EXEEXT) t_uuid$(EXEEXT) +@ENABLE_PROFILING_TRUE@noinst_PROGRAMS = t_timer$(EXEEXT) \ +@ENABLE_PROFILING_TRUE@ t_units$(EXEEXT) t_uuid$(EXEEXT) \ +@ENABLE_PROFILING_TRUE@ iperf3_profile$(EXEEXT) TESTS = t_timer$(EXEEXT) t_units$(EXEEXT) t_uuid$(EXEEXT) subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 @@ -154,6 +157,13 @@ iperf3_DEPENDENCIES = libiperf.la iperf3_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(iperf3_CFLAGS) $(CFLAGS) \ $(iperf3_LDFLAGS) $(LDFLAGS) -o $@ +am__iperf3_profile_SOURCES_DIST = main.c cjson.c cjson.h flowlabel.h \ + iperf.h iperf_api.c iperf_api.h iperf_error.c iperf_auth.h \ + iperf_auth.c iperf_client_api.c iperf_locale.c iperf_locale.h \ + iperf_server_api.c iperf_tcp.c iperf_tcp.h iperf_udp.c \ + iperf_udp.h iperf_sctp.c iperf_sctp.h iperf_util.c \ + iperf_util.h dscp.c net.c net.h portable_endian.h queue.h \ + tcp_info.c timer.c timer.h units.c units.h version.h am__objects_1 = iperf3_profile-cjson.$(OBJEXT) \ iperf3_profile-iperf_api.$(OBJEXT) \ iperf3_profile-iperf_error.$(OBJEXT) \ @@ -168,10 +178,11 @@ am__objects_1 = iperf3_profile-cjson.$(OBJEXT) \ iperf3_profile-dscp.$(OBJEXT) iperf3_profile-net.$(OBJEXT) \ iperf3_profile-tcp_info.$(OBJEXT) \ iperf3_profile-timer.$(OBJEXT) iperf3_profile-units.$(OBJEXT) -am_iperf3_profile_OBJECTS = iperf3_profile-main.$(OBJEXT) \ - $(am__objects_1) +@ENABLE_PROFILING_TRUE@am_iperf3_profile_OBJECTS = \ +@ENABLE_PROFILING_TRUE@ iperf3_profile-main.$(OBJEXT) \ +@ENABLE_PROFILING_TRUE@ $(am__objects_1) iperf3_profile_OBJECTS = $(am_iperf3_profile_OBJECTS) -iperf3_profile_DEPENDENCIES = libiperf.la +@ENABLE_PROFILING_TRUE@iperf3_profile_DEPENDENCIES = libiperf.la iperf3_profile_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(iperf3_profile_CFLAGS) $(CFLAGS) $(iperf3_profile_LDFLAGS) \ @@ -258,7 +269,7 @@ SOURCES = $(libiperf_la_SOURCES) $(iperf3_SOURCES) \ $(iperf3_profile_SOURCES) $(t_timer_SOURCES) \ $(t_units_SOURCES) $(t_uuid_SOURCES) DIST_SOURCES = $(libiperf_la_SOURCES) $(iperf3_SOURCES) \ - $(iperf3_profile_SOURCES) $(t_timer_SOURCES) \ + $(am__iperf3_profile_SOURCES_DIST) $(t_timer_SOURCES) \ $(t_units_SOURCES) $(t_uuid_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ @@ -594,7 +605,7 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ lib_LTLIBRARIES = libiperf.la # Build and install an iperf library -include_HEADERS = iperf_api.h # Defines the headers that get installed with the program +include_HEADERS = iperf_api.h # Defines the headers that get installed with the program # Specify the source files and flags for the iperf library libiperf_la_SOURCES = \ @@ -607,7 +618,7 @@ libiperf_la_SOURCES = \ iperf_error.c \ iperf_auth.h \ iperf_auth.c \ - iperf_client_api.c \ + iperf_client_api.c \ iperf_locale.c \ iperf_locale.h \ iperf_server_api.c \ @@ -615,14 +626,14 @@ libiperf_la_SOURCES = \ iperf_tcp.h \ iperf_udp.c \ iperf_udp.h \ - iperf_sctp.c \ - iperf_sctp.h \ + iperf_sctp.c \ + iperf_sctp.h \ iperf_util.c \ iperf_util.h \ - dscp.c \ + dscp.c \ net.c \ net.h \ - portable_endian.h \ + portable_endian.h \ queue.h \ tcp_info.c \ timer.c \ @@ -638,14 +649,15 @@ iperf3_CFLAGS = -g iperf3_LDADD = libiperf.la iperf3_LDFLAGS = -g +# If the iperf-profiled-binary is enabled (and this condition is true by default) # Specify the sources and various flags for the profiled iperf binary. This # binary recompiles all the source files to make sure they are all profiled. -iperf3_profile_SOURCES = main.c \ - $(libiperf_la_SOURCES) +@ENABLE_PROFILING_TRUE@iperf3_profile_SOURCES = main.c \ +@ENABLE_PROFILING_TRUE@ $(libiperf_la_SOURCES) -iperf3_profile_CFLAGS = -pg -g -iperf3_profile_LDADD = libiperf.la -iperf3_profile_LDFLAGS = -pg -g +@ENABLE_PROFILING_TRUE@iperf3_profile_CFLAGS = -pg -g +@ENABLE_PROFILING_TRUE@iperf3_profile_LDADD = libiperf.la +@ENABLE_PROFILING_TRUE@iperf3_profile_LDFLAGS = -pg -g # Specify the sources and various flags for the test cases t_timer_SOURCES = t_timer.c |