mirror of
git://git.sv.gnu.org/autoconf
synced 2025-02-17 14:01:27 +08:00
(AC_LANG_RESTORE): Only emit shell code to change the current language
if it actually changed.
This commit is contained in:
parent
dd5287637b
commit
02de1b387f
@ -387,7 +387,7 @@ define(AC_LANG_SAVE, [pushdef([AC_LANG_STACK], AC_LANG)])dnl
|
||||
dnl
|
||||
dnl Restore the current language from the stack.
|
||||
define(AC_LANG_RESTORE,
|
||||
[ifelse(AC_LANG_STACK,C,[AC_LANG_C],[AC_LANG_CPLUSPLUS])[]popdef([AC_LANG_STACK])])dnl
|
||||
[ifelse(AC_LANG_STACK,C,[ifelse(AC_LANG,C,,[AC_LANG_C])],[ifelse(AC_LANG,CPLUSPLUS,,[AC_LANG_CPLUSPLUS])])[]popdef([AC_LANG_STACK])])dnl
|
||||
dnl
|
||||
dnl
|
||||
dnl Checks for kinds of features
|
||||
|
@ -387,7 +387,7 @@ define(AC_LANG_SAVE, [pushdef([AC_LANG_STACK], AC_LANG)])dnl
|
||||
dnl
|
||||
dnl Restore the current language from the stack.
|
||||
define(AC_LANG_RESTORE,
|
||||
[ifelse(AC_LANG_STACK,C,[AC_LANG_C],[AC_LANG_CPLUSPLUS])[]popdef([AC_LANG_STACK])])dnl
|
||||
[ifelse(AC_LANG_STACK,C,[ifelse(AC_LANG,C,,[AC_LANG_C])],[ifelse(AC_LANG,CPLUSPLUS,,[AC_LANG_CPLUSPLUS])])[]popdef([AC_LANG_STACK])])dnl
|
||||
dnl
|
||||
dnl
|
||||
dnl Checks for kinds of features
|
||||
|
Loading…
Reference in New Issue
Block a user