summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac32
1 files changed, 32 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 35a23b331..fc6ad3a79 100644
--- a/configure.ac
+++ b/configure.ac
@@ -163,6 +163,26 @@ AC_ARG_ENABLE(
[enable_packetver_zero="no"]
)
+#
+# packetver-Sak
+#
+AC_ARG_ENABLE(
+ [packetver-sak],
+ AC_HELP_STRING(
+ [--enable-packetver-sak],
+ [Sets or unsets the PACKETVER_SAK define - see src/common/mmo.h (currently disabled by default)]
+ ),
+ [
+ enable_packetver_sak="$enableval"
+ case $enableval in
+ "no");;
+ "yes");;
+ *) AC_MSG_ERROR([[invalid argument --enable-packetver-sak=$enableval... stopping]]);;
+ esac
+ ],
+ [enable_packetver_sak="no"]
+)
+
#
# Epoll
@@ -1258,6 +1278,18 @@ case $enable_packetver_zero in
esac
#
+# Packetver-Sak
+#
+case $enable_packetver_sak in
+ "yes")
+ CPPFLAGS="$CPPFLAGS -DENABLE_PACKETVER_SAK"
+ ;;
+ "no")
+ # default value
+ ;;
+esac
+
+#
# Epoll
#
case $have_linux_epoll in