summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-08-22 01:34:48 +0300
committerAndrei Karas <akaras@inbox.ru>2018-08-25 00:37:55 +0300
commit88081dd414142d1dc2e1029b943fb4a87789dc32 (patch)
tree8b4bb0e0dd8070ec102f01b3ca71737ec3783439 /configure.ac
parent05af69b6dcdc5fddac4da8ebfdd2ff9036e41c90 (diff)
downloadhercules-88081dd414142d1dc2e1029b943fb4a87789dc32.tar.gz
hercules-88081dd414142d1dc2e1029b943fb4a87789dc32.tar.bz2
hercules-88081dd414142d1dc2e1029b943fb4a87789dc32.tar.xz
hercules-88081dd414142d1dc2e1029b943fb4a87789dc32.zip
Add support for build for AD clients.
Add configure flag --enable-packetver-ad Add defines for AD into mmo.h Add messages list for AD clients.
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 fc6ad3a79..1bb30b09f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -183,6 +183,26 @@ AC_ARG_ENABLE(
[enable_packetver_sak="no"]
)
+#
+# packetver-Ad
+#
+AC_ARG_ENABLE(
+ [packetver-ad],
+ AC_HELP_STRING(
+ [--enable-packetver-ad],
+ [Sets or unsets the PACKETVER_AD define - see src/common/mmo.h (currently disabled by default)]
+ ),
+ [
+ enable_packetver_ad="$enableval"
+ case $enableval in
+ "no");;
+ "yes");;
+ *) AC_MSG_ERROR([[invalid argument --enable-packetver-ad=$enableval... stopping]]);;
+ esac
+ ],
+ [enable_packetver_ad="no"]
+)
+
#
# Epoll
@@ -1290,6 +1310,18 @@ case $enable_packetver_sak in
esac
#
+# Packetver-ad
+#
+case $enable_packetver_ad in
+ "yes")
+ CPPFLAGS="$CPPFLAGS -DENABLE_PACKETVER_AD"
+ ;;
+ "no")
+ # default value
+ ;;
+esac
+
+#
# Epoll
#
case $have_linux_epoll in