mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Merge pull request #143 from vapier/disable-sample
add a --disable-samples configure flag
This commit is contained in:
commit
c6becf2b2c
@ -111,6 +111,9 @@ AC_ARG_ENABLE([libevent-install],
|
||||
AC_ARG_ENABLE([libevent-regress],
|
||||
AS_HELP_STRING([--disable-libevent-regress, skip regress in make check]),
|
||||
[], [enable_libevent_regress=yes])
|
||||
AC_ARG_ENABLE([samples],
|
||||
AS_HELP_STRING([--disable-samples, skip building of sample programs]),
|
||||
[], [enable_samples=yes])
|
||||
AC_ARG_ENABLE([function-sections],
|
||||
AS_HELP_STRING([--enable-function-sections, make static library allow smaller binaries with --gc-sections]),
|
||||
[], [enable_function_sections=no])
|
||||
@ -127,6 +130,7 @@ dnl the command line with --enable-shared and --disable-shared.
|
||||
dnl AC_DISABLE_SHARED
|
||||
AC_SUBST(LIBTOOL_DEPS)
|
||||
|
||||
AM_CONDITIONAL([BUILD_SAMPLES], [test "$enable_samples" = "yes"])
|
||||
AM_CONDITIONAL([BUILD_REGRESS], [test "$enable_libevent_regress" = "yes"])
|
||||
|
||||
dnl Checks for libraries.
|
||||
|
@ -30,7 +30,9 @@ noinst_HEADERS += \
|
||||
sample/openssl_hostname_validation.h
|
||||
endif
|
||||
|
||||
if BUILD_SAMPLES
|
||||
noinst_PROGRAMS += $(SAMPLES)
|
||||
endif
|
||||
|
||||
$(SAMPLES) : libevent.la
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user