]> git.puffer.fish Git - matthieu/frr.git/commitdiff
build: support for "development build"
authorAvneesh Sachdev <avneesh@sproute.com>
Fri, 11 Mar 2016 20:21:24 +0000 (12:21 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Sep 2016 16:12:17 +0000 (12:12 -0400)
* configure.ac

    Add the --enable-dev-build flag. It controls the DEV_BUILD
    define for autoconf and automake, which can be used to
    conditionally build in code that is only intended for development..

Signed-off-by: Avneesh Sachdev <avneesh@sproute.com>
configure.ac

index 0fd87431fa96c34e9530fadbbf611d5f56aa5257..00c71eb9ff3d6a852213493e8148fcf2f53b94d1 100755 (executable)
@@ -329,6 +329,9 @@ if test $ac_cv_lib_json_c_json_object_get = no; then
   fi
 fi
 
+AC_ARG_ENABLE([dev_build],
+    AS_HELP_STRING([--enable-dev-build], [build for development]))
+
 if test x"${enable_gcc_rdynamic}" != x"no" ; then
   if test x"${enable_gcc_rdynamic}" = x"yes" -o x"$COMPILER" = x"GCC"; then
     LDFLAGS="${LDFLAGS} -rdynamic"
@@ -397,6 +400,11 @@ if test "${enable_fpm}" = "yes"; then
    AC_DEFINE(HAVE_FPM,,Forwarding Plane Manager support)
 fi
 
+if test "x${enable_dev_build}" = "xyes"; then
+   AC_DEFINE(DEV_BUILD,,Build for development)
+fi
+AM_CONDITIONAL([DEV_BUILD], [test "x$enable_dev_build" = "xyes"])
+
 #
 # Logic for protobuf support.
 #