From: Bruno Haible Date: Tue, 16 Jul 2024 15:56:21 +0000 (+0000) Subject: Port AC_PROG_OBJC to RHEL 9 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=8d969839ab416cf6fc0a29d89f9410f0fa996186;p=thirdparty%2Fautoconf.git Port AC_PROG_OBJC to RHEL 9 * lib/autoconf/c.m4 (AC_PROG_OBJC): Search for gobjc before gcc. * NEWS: Mention the change. --- diff --git a/NEWS b/NEWS index 615f493f..75d2eef4 100644 --- a/NEWS +++ b/NEWS @@ -32,6 +32,9 @@ GNU Autoconf NEWS - User visible changes. *** AC_FUNC_STRNLEN now detects Android 5.0's broken strnlen. +*** AC_PROG_OBJC now finds the GNU Objective-C compiler, as packaged in + EPEL 9, by default, without the user having to set the OBJC variable. + * Noteworthy changes in release 2.72 (2023-12-22) [release] ** Backward incompatibilities diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index 456a6ba7..1727961e 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -854,10 +854,13 @@ AC_DEFUN([AC_LANG_COMPILER(Objective C)], # search for (if not specified, a default list is used). This just gives # the user an opportunity to specify an alternative search list for the # Objective C compiler. -# objcc StepStone Objective-C compiler (also "standard" name for OBJC) -# objc David Stes' POC. If you installed this, you likely want it. -# cc Native C compiler (for instance, Apple). -# CC You never know. +# gobjc GNU Objective-C compiler packaged in EPEL (for systems where gcc +# does not support Objective-C) +# gcc GNU Objective-C compiler on most systems +# objcc StepStone Objective-C compiler (also "standard" name for OBJC) +# objc David Stes' POC. If you installed this, you likely want it. +# cc Native C compiler (for instance, Apple). +# CC You never know. AN_MAKEVAR([OBJC], [AC_PROG_OBJC]) AN_PROGRAM([objcc], [AC_PROG_OBJC]) AN_PROGRAM([objc], [AC_PROG_OBJC]) @@ -870,7 +873,7 @@ _AC_ARG_VAR_LIBS()dnl _AC_ARG_VAR_CPPFLAGS()dnl _AC_ARG_VAR_PRECIOUS([OBJC])dnl AC_CHECK_TOOLS(OBJC, - [m4_default([$1], [gcc objcc objc cc CC clang])], + [m4_default([$1], [gobjc gcc objcc objc cc CC clang])], gcc) # Provide some information about the compiler. _AS_ECHO_LOG([checking for _AC_LANG compiler version])