viewing paste ra_configure_prere_option | Diff

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
Index: configure.in
===================================================================
--- configure.in        (revision 17374)
+++ configure.in        (working copy)
@@ -37,6 +37,25 @@
        [enable_manager="builtin"]
 )
 
+AC_ARG_ENABLE(
+       [prere],
+       AC_HELP_STRING(
+               [--enable-prere@<:@=ARG@:>@],
+               [
+                       Compiles serv in prere mode. (disabled by default)
+                       (available options: yes, no)
+               ]
+       ),
+       [
+               enable_prere="$enableval"
+               case $enableval in
+                       "no");;
+                       "yes");;
+                       *) AC_MSG_ERROR([[invalid argument --enable-prere=$enableval... stopping]]);;
+               esac
+       ],
+       [enable_prere="no"]
+)
 
 #
 # packetver
@@ -638,6 +657,12 @@
        CFLAGS="$CFLAGS -DPACKETVER=$enable_packetver"
 fi
 
+#
+# Renewal
+#
+if test -n "$enable_prere" ; then
+       CFLAGS="$CFLAGS -URENEWAL -URENEWAL_CAST -URENEWAL_DROP -URENEWAL_EXP -URENEWAL_LVDMG -URENEWAL_EDP -URENEWAL_ASPD"
+fi
 
 #
 # Debug
Index: configure
===================================================================
--- configure   (revision 17374)
+++ configure   (working copy)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 17342 .
+# From configure.in Revision: 17367 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.69.
 #
@@ -687,6 +687,7 @@
 ac_user_opts='
 enable_option_checking
 enable_manager
+enable_prere
 enable_packetver
 enable_debug
 enable_warn
@@ -1320,6 +1321,8 @@
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   --enable-manager=ARG    memory managers: no, builtin, memwatch, dmalloc,
                           gcollect, bcheck (defaults to builtin)
+  --enable-prere[=ARG]    Compiles serv in prere mode. (disabled by default)
+                          (available options: yes, no)
   --enable-packetver=ARG  Sets the PACKETVER define of the map-server. (see
                           src/map/clif.h)
   --enable-debug[=ARG]    Compiles extra debug code. (disabled by default)
@@ -3435,7 +3438,22 @@
 fi
 
 
+# Check whether --enable-prere was given.
+if test "${enable_prere+set}" = set; then :
+  enableval=$enable_prere;
+               enable_prere="$enableval"
+               case $enableval in
+                       "no");;
+                       "yes");;
+                       *) as_fn_error $? "invalid argument --enable-prere=$enableval... stopping" "$LINENO" 5;;
+               esac
 
+else
+  enable_prere="no"
+
+fi
+
+
 #
 # packetver
 #
@@ -5176,6 +5194,12 @@
        CFLAGS="$CFLAGS -DPACKETVER=$enable_packetver"
 fi
 
+#
+# Renewal
+#
+if test -n "$enable_prere" ; then
+       CFLAGS="$CFLAGS -URENEWAL -URENEWAL_CAST -URENEWAL_DROP -URENEWAL_EXP -URENEWAL_LVDMG -URENEWAL_EDP -URENEWAL_ASPD"
+fi
 
 #
 # Debug
 
Viewed 802 times, submitted by lighta.