694f2c2
From 8475839b2d45badf243ddd4175b635fcd1ccc697 Mon Sep 17 00:00:00 2001
694f2c2
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
694f2c2
Date: Tue, 8 Oct 2013 16:22:10 +0200
694f2c2
Subject: [PATCH] Select which way to call sort
694f2c2
MIME-Version: 1.0
694f2c2
Content-Type: text/plain; charset=UTF-8
694f2c2
Content-Transfer-Encoding: 8bit
694f2c2
694f2c2
rwhois_indexer executes sort(1). Recent sort(1) requires newer style.
694f2c2
One can enable it by ./configure --enable-newsort.
694f2c2
694f2c2
Signed-off-by: Petr Písař <ppisar@redhat.com>
694f2c2
---
694f2c2
 configure.ac | 7 +++++++
694f2c2
 1 file changed, 7 insertions(+)
694f2c2
694f2c2
diff --git a/configure.ac b/configure.ac
694f2c2
index 8c2e509..9e89acd 100644
694f2c2
--- a/configure.ac
694f2c2
+++ b/configure.ac
694f2c2
@@ -223,6 +223,13 @@ AC_ARG_ENABLE(syslock, AS_HELP_STRING([--enable-syslock],
694f2c2
 [ AC_DEFINE(USE_SYS_LOCK, 1, Define to use filesystem locking instead of dot-locks.) ])
694f2c2
 
694f2c2
 
694f2c2
+AC_ARG_ENABLE(newsort, AS_HELP_STRING([--enable-newsort], 
694f2c2
+                        [Enable if your sort(1) supports -k option.]),
694f2c2
+[ if test "${enable_newsort}" = 'yes'; then
694f2c2
+    AC_MSG_RESULT(Enabling new style sort.)
694f2c2
+    AC_DEFINE(NEW_STYLE_BIN_SORT, 1, [Define to call sort in new style.])
694f2c2
+  fi])
694f2c2
+
694f2c2
 
694f2c2
 dnl the output
694f2c2
 AC_CONFIG_FILES([Makefile common/Makefile mkdb/Makefile server/Makefile \
694f2c2
-- 
694f2c2
1.8.3.1
694f2c2