mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 23:42:34 +00:00
configure option --enable-msglevel did not work with numbers
This commit is contained in:
parent
e7488fb0b5
commit
4ca048da49
2 changed files with 8 additions and 6 deletions
2
CHANGES
2
CHANGES
|
@ -6,6 +6,8 @@ corrections:
|
|||
Thanks to Craig Leres, Clayton Shotwell, and Chris Packham for
|
||||
providing patches.
|
||||
|
||||
configure option --enable-msglevel did not work with numbers
|
||||
|
||||
git:
|
||||
Added missing Config/Makefile.DragonFly-2-8-2,
|
||||
Config/config.DragonFly-2-8-2.h
|
||||
|
|
12
configure.in
12
configure.in
|
@ -706,12 +706,12 @@ AC_ARG_ENABLE(retry, [ --disable-retry disable retry support],
|
|||
AC_MSG_CHECKING(included message level)
|
||||
AC_ARG_ENABLE(msglevel, [ --enable-msglevel=N set max verbosity to debug,info,notice,warn,error,fatal],
|
||||
[case "$enableval" in
|
||||
debug) AC_DEFINE(WITH_MSGLEVEL,0) AC_MSG_RESULT(debug);;
|
||||
info) AC_DEFINE(WITH_MSGLEVEL,1) AC_MSG_RESULT(info);;
|
||||
notice) AC_DEFINE(WITH_MSGLEVEL,2) AC_MSG_RESULT(notice);;
|
||||
warn) AC_DEFINE(WITH_MSGLEVEL,3) AC_MSG_RESULT(warn);;
|
||||
error) AC_DEFINE(WITH_MSGLEVEL,4) AC_MSG_RESULT(error);;
|
||||
fatal) AC_DEFINE(WITH_MSGLEVEL,5) AC_MSG_RESULT(fatal);;
|
||||
0|debug) AC_DEFINE(WITH_MSGLEVEL,0) AC_MSG_RESULT(debug);;
|
||||
1|info) AC_DEFINE(WITH_MSGLEVEL,1) AC_MSG_RESULT(info);;
|
||||
2|notice) AC_DEFINE(WITH_MSGLEVEL,2) AC_MSG_RESULT(notice);;
|
||||
3|warn) AC_DEFINE(WITH_MSGLEVEL,3) AC_MSG_RESULT(warn);;
|
||||
4|error) AC_DEFINE(WITH_MSGLEVEL,4) AC_MSG_RESULT(error);;
|
||||
5|fatal) AC_DEFINE(WITH_MSGLEVEL,5) AC_MSG_RESULT(fatal);;
|
||||
*) AC_DEFINE(WITH_MSGLEVEL,0) AC_MSG_RESULT(debug);;
|
||||
esac],
|
||||
[AC_DEFINE(WITH_MSGLEVEL,0) AC_MSG_RESULT(debug)])
|
||||
|
|
Loading…
Reference in a new issue