-
Notifications
You must be signed in to change notification settings - Fork 914
Update bunch of obsolete autoconf macros #8392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update bunch of obsolete autoconf macros #8392
Conversation
EC2 failure bot:aws:retest |
@cniethammer Nice job! I appreciate you identifying the required changes as that will help a great deal in updating PMIx and PRRTE. |
@cniethammer I'm following your guide and trying to update PMIx, yet I'm getting a lot of warnings when running autogen.pl with autoconf 2.70:
Since we copy almost all of our m4 from OMPI, I checked and those macros are still in OMPI master. Are you seeing the same warnings? Note that autogen.pl completed successfully even with all those warnings. |
Take a gander at openpmix/openpmix#2029 where I have started to deal with all those warnings. I believe we'll need to do the same on OMPI. |
@rhc54 yes I see also a lot of left stuff as I did not fix all warnings: (a) some of these are not straight forward, e.g., the C99 detection part, and (b) fixes are dependent on the autoconf version. So far I only used alternatives compatible with 2.60, which I found to be the required min version in ompi's configure.ac. |
Yeah, I think that 2.60 is too low - this 2.70 release is going to force us to raise that minimum version. Not sure how high we have to go to find fully compatible solutions. I'm using the ones available in 2.69 for now as that has been released for many years now and seems pretty available, and I believe its changes go back a little further (something like 2.67?). We should raise this issue at the next telecon. |
34db19c
to
8860e57
Compare
@cniethammer, could you please rebase this, and try again? Great to get this in, and then talk about how much effort the autoconf 2.7 is going to be, and if we need it for v5.0. |
It looks like autoconf v2.7 just came out in Dec 2020 based on these dates: Since it's so new I'm of the opinion that this is not needed for v5.0, unless someone really needs the latest and greatest. FWIW RHEL 8 is still on autoconf 2.69, and I can't see them updating until at earliest RHEL 9 (but that is just a guess). Are there any distros picking up 2.7 at this time? |
Checking some distros: Ubuntu 16.04/18.04/20.4/20.10: 2.69 |
@cniethammer Did you have any luck finding a replacement for Anyone know if we really need this? |
We do still need |
@jsquyres suggested on Slack |
I think |
Haven't tried it - will do so and report back. |
I've confirmed that |
8860e57
to
d52673e
Compare
@rhc54 I included the fix replacing AC_PROG_NM with LT_PATH_NM as suggested |
I didn't look deep enough to find It looks like we |
@jsquyres There are no other AC_PROG_NM in OMPI as far as I saw - all I found was in 3rd-party / openmpix and prrte configure. |
https://github.com/open-mpi/ompi/blob/master/config/ompi_fortran_find_ext_symbol_convention.m4#L26 |
Just as an FYI: in searching for solutions to some of these obsolete warnings, I have found tons of projects that are doing the update to support v2.70. I think this is something we are really just going to have to complete. |
That's covered by my last commit in this PR from this morning - d52673e |
I admittedly didn't look at your patches from this morning; I was just replying to your text. 😄 It looks like the treematch merge made a conflict with this PR. |
Updated macros as follows (all replacements available in autoconf 2.60): AC_HELP_STRING --> AS_HELP_STRING AC_ERROR --> AC_MSG_ERROR AC_VERBOSE --> AC_MSG_NOTICE AC_FD_CC --> AS_MESSAGE_LOG_FD AC_CONFIG_HEADER --> AC_CONFIG_HEADERS Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
Updated libtool related macros as follows: AM_ENABLE_SHARED --> AC_ENABLE_SHARED AM_DISABLE_STATIC --> AC_DISABLE_STATIC Note: libtool renamed AM_* macros to AC_* in 1999 Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
…ssing Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
With autoconf 2.70 AC_PROG_CC now enables C2011 by default and will handle C99 and C89. Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
AC_PROG_NM --> LT_PATH_NM Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
d52673e
to
a988a8f
Compare
I think we all agree; I'll take the liberty of merging this in. |
Updated macros as follows (all replacements available in autoconf 2.60):
AC_HELP_STRING --> AS_HELP_STRING
AC_ERROR --> AC_MSG_ERROR
AC_VERBOSE --> AC_MSG_NOTICE
AC_FD_CC --> AS_MESSAGE_LOG_FD
AC_CONFIG_HEADER --> AC_CONFIG_HEADERS
Signed-off-by: Christoph Niethammer niethammer@hlrs.de