summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac33
1 files changed, 33 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7539b0890..35a23b331 100644
--- a/configure.ac
+++ b/configure.ac
@@ -144,6 +144,27 @@ AC_ARG_ENABLE(
#
+# packetver-Zero
+#
+AC_ARG_ENABLE(
+ [packetver-zero],
+ AC_HELP_STRING(
+ [--enable-packetver-zero],
+ [Sets or unsets the PACKETVER_ZERO define - see src/common/mmo.h (currently disabled by default)]
+ ),
+ [
+ enable_packetver_zero="$enableval"
+ case $enableval in
+ "no");;
+ "yes");;
+ *) AC_MSG_ERROR([[invalid argument --enable-packetver-zero=$enableval... stopping]]);;
+ esac
+ ],
+ [enable_packetver_zero="no"]
+)
+
+
+#
# Epoll
#
AC_ARG_ENABLE([epoll],
@@ -1225,6 +1246,18 @@ case $enable_packetver_re in
esac
#
+# Packetver-Zero
+#
+case $enable_packetver_zero in
+ "yes")
+ CPPFLAGS="$CPPFLAGS -DENABLE_PACKETVER_ZERO"
+ ;;
+ "no")
+ # default value
+ ;;
+esac
+
+#
# Epoll
#
case $have_linux_epoll in