Add --disable-demos flag to autotools build configure script
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
if CONDITIONAL_BUILD_DEMOS
|
||||||
SUBDIRS=src Extras Demos
|
SUBDIRS=src Extras Demos
|
||||||
|
else
|
||||||
|
SUBDIRS=src Extras
|
||||||
|
endif
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = bullet.pc
|
pkgconfig_DATA = bullet.pc
|
||||||
|
|||||||
13
configure.ac
13
configure.ac
@@ -140,6 +140,19 @@ AS_IF([test "$disable_multithreaded" = yes], [build_multithreaded=no], [build_mu
|
|||||||
AC_MSG_RESULT([$build_multithreaded])
|
AC_MSG_RESULT([$build_multithreaded])
|
||||||
AM_CONDITIONAL([CONDITIONAL_BUILD_MULTITHREADED], [test "$build_multithreaded" = yes])
|
AM_CONDITIONAL([CONDITIONAL_BUILD_MULTITHREADED], [test "$build_multithreaded" = yes])
|
||||||
|
|
||||||
|
AC_ARG_ENABLE([demos],
|
||||||
|
[AS_HELP_STRING([--disable-demos],
|
||||||
|
[disable Bullet demos])],
|
||||||
|
[],
|
||||||
|
[enable_demos=yes])
|
||||||
|
AM_CONDITIONAL([CONDITIONAL_BUILD_DEMOS], [false])
|
||||||
|
if test "x$enable_demos" != xno; then
|
||||||
|
AC_MSG_NOTICE([Building Bullet demos])
|
||||||
|
AM_CONDITIONAL([CONDITIONAL_BUILD_DEMOS],[true])
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_ENABLE([debug],
|
AC_ARG_ENABLE([debug],
|
||||||
[AC_HELP_STRING([--enable-debug],
|
[AC_HELP_STRING([--enable-debug],
|
||||||
[build with debugging information (default NO)])],
|
[build with debugging information (default NO)])],
|
||||||
|
|||||||
Reference in New Issue
Block a user