]> git.pld-linux.org Git - packages/rpcbind.git/blob - rpcbind-debug.patch
- Allow the warms start code to be enabled at compile time
[packages/rpcbind.git] / rpcbind-debug.patch
1 diff --git a/configure.in b/configure.in
2 index 0298c80..9a64b45 100644
3 --- a/configure.in
4 +++ b/configure.in
5 @@ -10,6 +10,13 @@ AC_CONFIG_SRCDIR([src/rpcbind.c])
6   AC_HEADER_DIRENT
7   AC_PREFIX_DEFAULT(/usr)
8                      
9 +AC_ARG_ENABLE(debug,[  --enable-debug      Turns on rpcbind debugging], 
10 +       [case "${enableval}" in
11 +               yes) debug=true ;;
12 +               no)  debug=no ;;
13 +               *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
14 +       esac],[debug=false])
15 +AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
16  
17  AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h \
18                    netinet/in.h stdlib.h string.h \
19 diff --git a/src/Makefile.am b/src/Makefile.am
20 index 8684a4b..52d3857 100644
21 --- a/src/Makefile.am
22 +++ b/src/Makefile.am
23 @@ -18,8 +18,10 @@ rpcbind_LDFLAGS = -lpthread -ltirpc
24  rpcbind_LDADD = $(LIB_TIRPC)
25  AM_CPPFLAGS = -I/usr/include/tirpc -DCHECK_LOCAL -DPORTMAP \
26                         -DFACILITY=LOG_MAIL -DSEVERITY=LOG_INFO
27 -##                     -DRPCBIND_DEBUG -DSVC_RUN_DEBUG -DDEBUG_RMTCALL \
28 -##                     -DND_DEBUG -DBIND_DEBUG
29 +if DEBUG
30 +INCLUDES +=    -DRPCBIND_DEBUG -DSVC_RUN_DEBUG -DDEBUG_RMTCALL
31 +INCLUDES +=    -DND_DEBUG -DBIND_DEBUG
32 +endif
33  
34  $(rpcbind_OBJECTS) :    security.o util.o check_bound.o pmap_svc.o \
35                          rpcb_svc.o rpcb_svc_com.o rpcb_svc_4.o \
This page took 0.055386 seconds and 3 git commands to generate.