mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-23 09:26:27 -06:00
Don't nest AC_MSG_CHECKING calls, it produces confuing output.
This commit is contained in:
parent
cc41107269
commit
7f746724fe
@ -1317,7 +1317,6 @@ then
|
||||
warnFLAGS="${warnFLAGS} -Wdeclaration-after-statement"
|
||||
fi
|
||||
elif test "`echo ${GCC_VERSION} | cut -d. -f1`" -ge 4; then
|
||||
AC_MSG_CHECKING(OK To use fortify source?)
|
||||
# This is gcc >= 4.x.x
|
||||
warnFLAGS="${warnFLAGS} -Wdeclaration-after-statement -Wno-pointer-sign"
|
||||
# rpmbuild on FC4 forces this flag. Only add it when optimizing
|
||||
@ -1327,9 +1326,7 @@ then
|
||||
#include <stdio.h>
|
||||
]],
|
||||
[[ printf( "%s\n", "Hello World!");]])],
|
||||
[warnFLAGS="${warnFLAGS} -D_FORTIFY_SOURCE=2"
|
||||
AC_MSG_RESULT(OK)],
|
||||
[AC_MSG_RESULT(No)])
|
||||
[warnFLAGS="${warnFLAGS} -D_FORTIFY_SOURCE=2"])
|
||||
CFLAGS="$cflags_save"
|
||||
fi
|
||||
CFLAGS="${warnFLAGS} ${CFLAGS}"
|
||||
|
Loading…
Reference in New Issue
Block a user