diff options
Diffstat (limited to 'm4/stp_option.m4')
-rw-r--r-- | m4/stp_option.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/stp_option.m4 b/m4/stp_option.m4 index 32a4466..0ff5646 100644 --- a/m4/stp_option.m4 +++ b/m4/stp_option.m4 @@ -141,8 +141,9 @@ AC_DEFUN([STP_ADD_COMPILER_ARG],[ CFLAGS="${m4_ifval([$3], [$3], [CFLAGS])} $1" AC_TRY_COMPILE(,, [ AC_MSG_RESULT(yes); - stp_newCFLAGS="${m4_ifval([$3], [$3], [CFLAGS])} $1"], - [ AC_MSG_RESULT(no);]) + stp_newCFLAGS="$CFLAGS"], + [ AC_MSG_RESULT(no); + stp_newCFLAGS="$stp_acOLDCFLAGS"]) CFLAGS="$stp_acOLDCFLAGS" m4_ifval([$3], [$3], [CFLAGS])="${stp_newCFLAGS}" ]) |