fixed bug in configure
authorVictor Kirhenshtein <victor@netxms.org>
Thu, 19 Oct 2017 14:21:06 +0000 (17:21 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Thu, 19 Oct 2017 14:21:06 +0000 (17:21 +0300)
configure.ac

index f2873f5..206601d 100644 (file)
@@ -240,7 +240,6 @@ AC_ARG_WITH(private-extensions,
 [
        if test "x$withval" != "xno" ; then
                WITH_PRIVATE_EXTENSIONS="yes"
-               CXXFLAGS="$CXXFLAGS -DCUSTOM_INIT_CODE"
                if test "x$withval" != "x" && test "x$withval" != "xyes" ; then
                        CUSTOM_INCLUDE="$withval"
                fi
@@ -1113,6 +1112,15 @@ AC_C_BIGENDIAN
 
 
 #--------------------------------------------------------------------
+# Private extensions
+#--------------------------------------------------------------------
+
+if test "x$WITH_PRIVATE_EXTENSIONS" = "xyes"; then
+       CXXFLAGS="$CXXFLAGS -DCUSTOM_INIT_CODE"
+fi
+
+
+#--------------------------------------------------------------------
 # Platform-dependent settings
 #--------------------------------------------------------------------