]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixes for LFS
authorRuss Combs <rucombs@cisco.com>
Tue, 20 Jan 2015 15:05:49 +0000 (10:05 -0500)
committerRuss Combs <rucombs@cisco.com>
Tue, 20 Jan 2015 15:05:49 +0000 (10:05 -0500)
ChangeLog
cmake/configure_options.cmake
configure.ac

index 41d29136d6feb9501de55862a839c5c0d6f2634f..a40e1da3c95fb197d5dc7e3e992fa60be43c0d5e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 build 133
 
+-- fixes for large file support on 32-bit Linux systems
 -- changed u2 base file name to unified2.log
 -- updated doc based on tips/tricks blog
 -- fixed active rule actions (react, reject, rewrite)
index 64176bfefd93e99cd8ee3c920530f660798136f8..d13167475de94c2e7ad0b3d2c82dd9830bf6016b 100644 (file)
@@ -12,7 +12,6 @@ set_project_compiler_defines_if_true (ENABLE_DEBUG_MSGS "DEBUG_MSGS")
 set_project_compiler_defines_if_true (ENABLE_DEBUG "DEBUG")
 set_project_compiler_defines_if_true (BUILD_HA "ENABLE_HA")
 set_project_compiler_defines_if_true (ENABLE_LARGE_PCAP "_LARGEFILE_SOURCE")
-set_project_compiler_defines_if_true (ENABLE_LARGE_PCAP "_LARGEFILE64_SOURCE")
 set_project_compiler_defines_if_true (ENABLE_LARGE_PCAP "_FILE_OFFSET_BITS=64")
 
 
index 4fbbac28520b6f11d1bd4b9837cd46e730b4fd9c..6a1b1d31e678ec11ac1c7f596b65a38ca101b9d0 100644 (file)
@@ -319,7 +319,7 @@ if test "x$enable_ppm_test" = "xyes"; then
 fi
 
 AC_ARG_ENABLE(perf-profiling,
-    [  --enable-perf-profiling    enable module and rule performance profiling],
+    [  --enable-perf-profiling   enable module and rule performance profiling],
        enable_perf_profiling="$enableval", enable_perf_profiling="no")
 
 if test "x$enable_perf_profiling" = "xyes"; then
@@ -328,7 +328,7 @@ if test "x$enable_perf_profiling" = "xyes"; then
 fi
 
 AC_ARG_ENABLE(shell,
-    [  --enable-shell              enable command line shell support],
+    [  --enable-shell            enable command line shell support],
        enable_shell="$enableval", enable_shell="no")
 
 if test "x$enable_shell" = "xyes"; then
@@ -345,6 +345,14 @@ if test "x$enable_linux_smp_stats" = "xyes"; then
     AC_DEFINE(LINUX_SMP, [1], [enable proc stats])
 fi
 
+AC_ARG_ENABLE(large-pcap,
+    [  --enable-large-pcap       enable support for pcaps larger than 2 GB],
+        enable_large_pcap="$enableval", enable_large_pcap="no")
+
+if test "x$enable_large_pcap" = "xyes"; then
+    CPPFLAGS="${CPPFLAGS} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
+fi
+
 AC_ARG_ENABLE(debug-msgs,
     [  --enable-debug-msgs       enable debug printing options (bugreports and developers only)],
        enable_debug_msgs="$enableval", enable_debug_msgs="no")
@@ -376,7 +384,7 @@ if test "x$enable_gdb" = "xyes"; then
 fi
 
 AC_ARG_ENABLE(gprof-profile,
-    [  --enable-gprof-profile          enable gprof profiling output (developers only)],
+    [  --enable-gprof-profile    enable gprof profiling output (developers only)],
        enable_gprof_profile="$enableval", enable_gprof_profile="no")
 
 # FIXIT-L need to check for g++ not gcc