Closed TApplencourt closed 7 months ago
Maybe use this instead:
— Macro: AC_LANG_PUSH (language)
Remember the current language (as set by AC_LANG) on a stack, and then select the language. Use this macro and AC_LANG_POP in macros that need to temporarily switch to a particular language.
— Macro: AC_LANG_POP ([language])
Select the language that is saved on the top of the stack, as set by AC_LANG_PUSH, and remove it from the stack. If given, language specifies the language we just quit. It is a good idea to specify it when it's known (which should be the case...), since Autoconf detects inconsistencies. AC_LANG_PUSH([Fortran 77]) # Perform some tests on Fortran 77. # ... AC_LANG_POP([Fortran 77])
https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/Language-Choice.html
@nscottnichols Sorry, I chicken out the horrible merge of the previous PR and just started from fresh... So loosed your contribution. Do you mind pushing whatever in this branch? So you can be part of this PR :)
@kerilk not sure if my autotool is super clean (hate this AC_LANG(C++) but require to find the MPI_CXX) but it seem to work.