forked from mirrors/tftp-hpa-google
Display configuration information when using the -V option...
This commit is contained in:
parent
5ec55f35e9
commit
7edb3d5b92
5 changed files with 45 additions and 14 deletions
23
config.h
23
config.h
|
@ -187,8 +187,29 @@ typedef unsigned long u_long;
|
|||
#define EOPTNEG 8
|
||||
#endif
|
||||
|
||||
/* tftp-hpa version */
|
||||
/* tftp-hpa version and configuration strings */
|
||||
|
||||
#include "version.h"
|
||||
|
||||
#ifdef WITH_READLINE
|
||||
#define WITH_READLINE_STR ", with readline"
|
||||
#else
|
||||
#define WITH_READLINE_STR ", without readline"
|
||||
#endif
|
||||
|
||||
#ifdef WITH_REGEX
|
||||
#define WITH_REGEX_STR ", with remap"
|
||||
#else
|
||||
#define WITH_REGEX_STR ", without remap"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBWRAP
|
||||
#define HAVE_LIBWRAP_STR ", with tcpwrappers"
|
||||
#else
|
||||
#define HAVE_LIBWRAP_STR ", without tcpwrappers"
|
||||
#endif
|
||||
|
||||
#define TFTP_CONFIG_STR VERSION WITH_READLINE_STR
|
||||
#define TFTPD_CONFIG_STR VERSION WITH_REGEX_STR HAVE_LIBWRAP_STR
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue