From: Avneesh Sachdev Date: Fri, 11 Mar 2016 20:21:24 +0000 (-0800) Subject: build: support for "development build" X-Git-Tag: frr-2.0-rc1~230 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3b8282a8e8bdf97ab78cb11321f07063488640fa;p=matthieu%2Ffrr.git build: support for "development build" * 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 --- diff --git a/configure.ac b/configure.ac index 0fd87431fa..00c71eb9ff 100755 --- a/configure.ac +++ b/configure.ac @@ -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. #