summaryrefslogtreecommitdiff
path: root/configure
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
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')
-rwxr-xr-xconfigure36
1 files changed, 35 insertions, 1 deletions
diff --git a/configure b/configure
index a0113e7f3..3a33cebd3 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac 7f7b8060c.
+# From configure.ac 515eed8ee.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69.
#
@@ -694,6 +694,7 @@ enable_packetver
enable_packetver_re
enable_packetver_zero
enable_packetver_sak
+enable_packetver_ad
enable_epoll
with_key1
with_key2
@@ -1349,6 +1350,8 @@ Optional Features:
src/common/mmo.h (currently disabled by default)
--enable-packetver-sak Sets or unsets the PACKETVER_SAK define - see
src/common/mmo.h (currently disabled by default)
+ --enable-packetver-ad Sets or unsets the PACKETVER_AD define - see
+ src/common/mmo.h (currently disabled by default)
--enable-epoll use epoll(4) on Linux
--enable-debug[=ARG] Compiles extra debug code. (yes by default)
(available options: yes, no, gdb)
@@ -3594,6 +3597,25 @@ else
fi
+#
+# packetver-Ad
+#
+# Check whether --enable-packetver-ad was given.
+if test "${enable_packetver_ad+set}" = set; then :
+ enableval=$enable_packetver_ad;
+ enable_packetver_ad="$enableval"
+ case $enableval in
+ "no");;
+ "yes");;
+ *) as_fn_error $? "invalid argument --enable-packetver-ad=$enableval... stopping" "$LINENO" 5;;
+ esac
+
+else
+ enable_packetver_ad="no"
+
+fi
+
+
#
# Epoll
@@ -8301,6 +8323,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