Skip to content

Commit 6b4b555

Browse files
committed
Fix configure.ac
- Fix 'debug' configure option. Now it is working.
1 parent ef4e856 commit 6b4b555

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

configure.ac

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ dnl Debug option
1010
AC_ARG_ENABLE(debug,
1111
AS_HELP_STRING([--enable-debug],[enable debugging, defult: no]),
1212
[case "${enableval}" in
13-
yes) debug = true ;;
14-
no) debug = false ;;
13+
yes) debug=true ;;
14+
no) debug=false ;;
1515
*) AC_MSG_ERROR([bad value ${enablevalue} for --enable-debug]) ;;
1616
esac], [debug=false])
1717

@@ -23,13 +23,14 @@ AC_CHECK_TOOL(IP, ip)
2323
AC_CHECK_TOOL(GAWK, gawk)
2424

2525
dnl Disable all CFLAGS if it was not declarated
26-
if [test -z $CFLAGS; ] then
27-
if test x"${debug}" == x"true"; then
26+
if [ test -z "$CFLAGS"; ] then
27+
if [ test "x$debug" == "xtrue" ]; then
2828
CFLAGS="-g -O0"
2929
else
3030
CFLAGS="-O2"
3131
fi
3232
fi
33+
3334
AC_PROG_CC
3435

3536
if [ test "x$IPTABLES" == "x"; ] then

0 commit comments

Comments
 (0)