Skip to content

Commit c2b9f4a

Browse files
committed
Make digest_authentication example conditional (issue #232)
Build the digest_authentication example only when HAVE_DAUTH is defined, consistent with the conditional digest auth support added in the library.
1 parent e5a0aec commit c2b9f4a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/Makefile.am

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
LDADD = $(top_builddir)/src/libhttpserver.la
2020
AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/httpserver/
2121
METASOURCES = AUTO
22-
noinst_PROGRAMS = hello_world service minimal_hello_world custom_error allowing_disallowing_methods handlers hello_with_get_arg setting_headers custom_access_log basic_authentication digest_authentication minimal_https minimal_file_response minimal_deferred url_registration minimal_ip_ban benchmark_select benchmark_threads benchmark_nodelay deferred_with_accumulator file_upload file_upload_with_callback
22+
noinst_PROGRAMS = hello_world service minimal_hello_world custom_error allowing_disallowing_methods handlers hello_with_get_arg setting_headers custom_access_log basic_authentication minimal_https minimal_file_response minimal_deferred url_registration minimal_ip_ban benchmark_select benchmark_threads benchmark_nodelay deferred_with_accumulator file_upload file_upload_with_callback
2323

2424
hello_world_SOURCES = hello_world.cpp
2525
service_SOURCES = service.cpp
@@ -31,7 +31,6 @@ hello_with_get_arg_SOURCES = hello_with_get_arg.cpp
3131
setting_headers_SOURCES = setting_headers.cpp
3232
custom_access_log_SOURCES = custom_access_log.cpp
3333
basic_authentication_SOURCES = basic_authentication.cpp
34-
digest_authentication_SOURCES = digest_authentication.cpp
3534
minimal_https_SOURCES = minimal_https.cpp
3635
minimal_file_response_SOURCES = minimal_file_response.cpp
3736
minimal_deferred_SOURCES = minimal_deferred.cpp
@@ -49,3 +48,8 @@ LDADD += -lgnutls
4948
noinst_PROGRAMS += minimal_https_psk
5049
minimal_https_psk_SOURCES = minimal_https_psk.cpp
5150
endif
51+
52+
if HAVE_DAUTH
53+
noinst_PROGRAMS += digest_authentication
54+
digest_authentication_SOURCES = digest_authentication.cpp
55+
endif

0 commit comments

Comments
 (0)