@@ -135,6 +135,11 @@ AC_ARG_ENABLE(exhaustive_tests,
135135 [ use_exhaustive_tests=$enableval] ,
136136 [ use_exhaustive_tests=yes] )
137137
138+ AC_ARG_ENABLE ( examples ,
139+ AS_HELP_STRING ( [ --enable-examples] ,[ compile the examples [ default=no] ] ) ,
140+ [ use_examples=$enableval] ,
141+ [ use_examples=no] )
142+
138143AC_ARG_ENABLE ( module_ecdh ,
139144 AS_HELP_STRING ( [ --enable-module-ecdh] ,[ enable ECDH shared secret computation] ) ,
140145 [ enable_module_ecdh=$enableval] ,
@@ -393,6 +398,7 @@ AC_SUBST(SECP_CFLAGS)
393398AM_CONDITIONAL([ ENABLE_COVERAGE] , [ test x"$enable_coverage" = x"yes"] )
394399AM_CONDITIONAL([ USE_TESTS] , [ test x"$use_tests" != x"no"] )
395400AM_CONDITIONAL([ USE_EXHAUSTIVE_TESTS] , [ test x"$use_exhaustive_tests" != x"no"] )
401+ AM_CONDITIONAL([ USE_EXAMPLES] , [ test x"$use_examples" != x"no"] )
396402AM_CONDITIONAL([ USE_BENCHMARK] , [ test x"$use_benchmark" = x"yes"] )
397403AM_CONDITIONAL([ ENABLE_MODULE_ECDH] , [ test x"$enable_module_ecdh" = x"yes"] )
398404AM_CONDITIONAL([ ENABLE_MODULE_RECOVERY] , [ test x"$enable_module_recovery" = x"yes"] )
@@ -417,6 +423,7 @@ echo " with external callbacks = $use_external_default_callbacks"
417423echo " with benchmarks = $use_benchmark"
418424echo " with tests = $use_tests"
419425echo " with coverage = $enable_coverage"
426+ echo " with examples = $use_examples"
420427echo " module ecdh = $enable_module_ecdh"
421428echo " module recovery = $enable_module_recovery"
422429echo " module extrakeys = $enable_module_extrakeys"
0 commit comments