-
Notifications
You must be signed in to change notification settings - Fork 1.1k
build: Replace use of deprecated autoconf macro AC_PROG_CC_C89 #1069
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
build: Replace use of deprecated autoconf macro AC_PROG_CC_C89 #1069
Conversation
|
Last time I overhauled the autoconf stuff, I assumed that removing I think we would need to have a closer look and check if 2.70 only deprecated edit: Or is the only thing |
|
Hm so this is from the commit that made removed the macro: autotools-mirror/autoconf@27eb3ae#diff-0c067bec9d061f1ebfce4c4d145fece50221a1d23e9adb62a4b6b2b11c8de1fcL7340-L7342 (The commit is from 2012 but AFAIU still this was only included in 2.70 as there was no release for a few years. (The tag listing on the commit weird there. "v2.69e v2.69d v2.69c v2.69b" are beta versions and I think "v2.62a" is just a mistake...) So now I understand: We currently call this to force C89 mode. It will add Having said this, I'm not entirely sure what we should do:
|
To be clear, I checked the 2.60 (!) documentation and the behavior of AC_PROG_CC automatically calling AC_PROG_CC_C89 was already there. I don't know about adding
|
|
I checked the There's no It's already being added manually: |
Indeed, you're right. The commit I mentioned was just making it obsolete...
You're right again. Ok, I'm convinced. |
| AM_PROG_CC_C_O | ||
| AC_PROG_CC_C89 | ||
| AC_PROG_CC | ||
| if test x"$ac_cv_prog_cc_c89" = x"no"; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Fun that ac_cv_prog_cc_c89 is still present in configure, so it's correct to keep that check)
According to [autoconf 2.70](https://www.gnu.org/software/autoconf/manual/autoconf-2.70/html_node/Obsolete-Macros.html) documentation, the `AC_PROG_CC_C89' is replaced by `AC_PROG_CC`, which defines the same variable `ac_cv_prog_cc_c89`. Avoids the following message: ``` configure.ac:23: warning: The macro `AC_PROG_CC_C89' is obsolete. ``` Also, remove deprecated `AM_PROG_CC_C_O`.
31fbb79 to
e0db3f8
Compare
|
utACK e0db3f8 |
jonasnick
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK e0db3f8
According to autoconf 2.70 documentation, the
AC_PROG_CC_C89is replaced byAC_PROG_CC, which defines the same variableac_cv_prog_cc_c89under the same conditions.Avoids the following message:
I'm not sure when the behavior was introduced, but it goes back to at least 2.60.