From: Iain Sandoe <idsandoe@googlemail.com>
To: Thomas Schwinge <thomas@codesourcery.com>
Cc: Martin Liska <mliska@suse.cz>, GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: Make 'autoreconf' work for 'gcc', 'libobjc' (was: [PATCH] regenerate configure files and config.h.in files)
Date: Tue, 20 Sep 2022 14:42:53 +0100 [thread overview]
Message-ID: <17AB8478-2679-4ED2-936C-2E2414CBF15C@googlemail.com> (raw)
In-Reply-To: <87mtau88v9.fsf@euler.schwinge.homeip.net>
Hi!
> On 20 Sep 2022, at 14:37, Thomas Schwinge <thomas@codesourcery.com> wrote:
> On 2022-08-25T11:42:01+0200, Martin Liška <mliska@suse.cz> wrote:
>> I wrote a scipt that runs autoconf in all folders that have configure.ac
>> file and same for autoheader (where AC_CONFIG_HEADERS is present) and
>> this is the output.
>>
>> The script can be seen here:
>> https://github.com/marxin/script-misc/blob/master/gcc-autoconf-all.py
>
> That's similar to what I maintain at
> <https://gcc.gnu.org/wiki/Regenerating_GCC_Configuration#Regenerating_All_GNU_Autotools_Files>.
> However, I now found that both our two's approaches are incomplete. ;-)
> Yours is missing calling 'aclocal', mine 'aclocal' and 'autoheader' (for
> GCC subpackages not using Automake).
>
> What we really should be doing, in my opinion, is making 'autoreconf'
> work for all GCC subpackages, and that's exactly what the attached patch
> "Make 'autoreconf' work for 'gcc', 'libobjc'" does. OK to push?
+1 from me …
.. I have been maintaining something similar locally.
Iain
>
>> I'm going to add the script to my daily Builbot tester.
>
> Then, make it simply call 'autoreconf' for all 'config_folders'.
>
> (Also, I'm not running into the issue you've stated in the script that
> "apparently automake is somehow unstable -> skip it for gotools".)
>
>
>> Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
>>
>> Ready to be installed?
>
> That said, I do confirm the changes of your recent
> commit r13-2200-gb1a3d2b778168341c617aaee6541c66239a198d2
> "regenerate configure files and config.h.in files", and per the attached
> patch "'autoreconf' all of GCC", I'll then be changing a few additional
> pieces.
>
>
> Grüße
> Thomas
>
>
>> fixincludes/ChangeLog:
>>
>> * config.h.in: Regenerate.
>> * configure: Regenerate.
>>
>> libada/ChangeLog:
>>
>> * configure: Regenerate.
>>
>> libiberty/ChangeLog:
>>
>> * configure: Regenerate.
>>
>> libobjc/ChangeLog:
>>
>> * configure: Regenerate.
>>
>> liboffloadmic/ChangeLog:
>>
>> * configure: Regenerate.
>> * plugin/configure: Regenerate.
>>
>> libquadmath/ChangeLog:
>>
>> * configure: Regenerate.
>>
>> libssp/ChangeLog:
>>
>> * configure: Regenerate.
>>
>> libvtv/ChangeLog:
>>
>> * configure: Regenerate.
>>
>> zlib/ChangeLog:
>>
>> * configure: Regenerate.
>> ---
>> fixincludes/config.h.in | 204 ---------------------------------
>> fixincludes/configure | 2 +-
>> libada/configure | 3 +
>> libiberty/configure | 3 +
>> libobjc/configure | 6 +-
>> liboffloadmic/configure | 46 +++-----
>> liboffloadmic/plugin/configure | 46 +++-----
>> libquadmath/configure | 6 +-
>> libssp/configure | 6 +-
>> libvtv/configure | 18 +--
>> zlib/configure | 6 +-
>> 11 files changed, 61 insertions(+), 285 deletions(-)
>>
>> diff --git a/fixincludes/config.h.in b/fixincludes/config.h.in
>> index 3f6cf1e574e..69a67f5f116 100644
>> --- a/fixincludes/config.h.in
>> +++ b/fixincludes/config.h.in
>> @@ -1,397 +1,211 @@
>> /* config.h.in. Generated from configure.ac by autoheader. */
>>
>> /* Defined to the executable file extension on the host system */
>> -#ifndef USED_FOR_TARGET
>> #undef EXE_EXT
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `clearerr_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_CLEARERR_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `abort', and to 0 if you don't.
>> */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_ABORT
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `asprintf', and to 0 if you
>> don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_ASPRINTF
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `basename(char *)', and to 0 if
>> you don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_BASENAME
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `clearerr_unlocked', and to 0 if
>> you don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_CLEARERR_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `errno', and to 0 if you don't.
>> */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_ERRNO
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you
>> don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_FEOF_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `ferror_unlocked', and to 0 if
>> you don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_FERROR_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `fflush_unlocked', and to 0 if
>> you don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_FFLUSH_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `fgetc_unlocked', and to 0 if
>> you don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_FGETC_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if
>> you don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_FGETS_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `fileno_unlocked', and to 0 if
>> you don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_FILENO_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `fprintf_unlocked', and to 0 if
>> you don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_FPRINTF_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `fputc_unlocked', and to 0 if
>> you don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_FPUTC_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `fputs_unlocked', and to 0 if
>> you don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_FPUTS_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `fread_unlocked', and to 0 if
>> you don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_FREAD_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `fwrite_unlocked', and to 0 if
>> you don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_FWRITE_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `getchar_unlocked', and to 0 if
>> you don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_GETCHAR_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
>> don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_GETC_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if
>> you don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_PUTCHAR_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `putc_unlocked', and to 0 if you
>> don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_PUTC_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the declaration of `vasprintf', and to 0 if you
>> don't. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_DECL_VASPRINTF
>> -#endif
>> -
>>
>> /* Define to 1 if you have the <fcntl.h> header file. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_FCNTL_H
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `feof_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_FEOF_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `ferror_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_FERROR_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `fflush_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_FFLUSH_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `fgetc_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_FGETC_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `fgets_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_FGETS_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `fileno_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_FILENO_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `fprintf_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_FPRINTF_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `fputc_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_FPUTC_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `fputs_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_FPUTS_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `fread_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_FREAD_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `fwrite_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_FWRITE_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `getchar_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_GETCHAR_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `getc_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_GETC_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the <inttypes.h> header file. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_INTTYPES_H
>> -#endif
>> -
>>
>> /* Define to 1 if you have the <memory.h> header file. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_MEMORY_H
>> -#endif
>> -
>>
>> /* Define if mmap with MAP_ANON(YMOUS) works. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_MMAP_ANON
>> -#endif
>> -
>>
>> /* Define if mmap of /dev/zero works. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_MMAP_DEV_ZERO
>> -#endif
>> -
>>
>> /* Define if read-only mmap of a plain file works. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_MMAP_FILE
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `putchar_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_PUTCHAR_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the `putc_unlocked' function. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_PUTC_UNLOCKED
>> -#endif
>> -
>>
>> /* Define to 1 if you have the <stddef.h> header file. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_STDDEF_H
>> -#endif
>> -
>>
>> /* Define to 1 if you have the <stdint.h> header file. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_STDINT_H
>> -#endif
>> -
>>
>> /* Define to 1 if you have the <stdlib.h> header file. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_STDLIB_H
>> -#endif
>> -
>>
>> /* Define to 1 if you have the <strings.h> header file. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_STRINGS_H
>> -#endif
>> -
>>
>> /* Define to 1 if you have the <string.h> header file. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_STRING_H
>> -#endif
>> -
>>
>> /* Define to 1 if you have the <sys/file.h> header file. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_SYS_FILE_H
>> -#endif
>> -
>>
>> /* Define to 1 if you have the <sys/stat.h> header file. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_SYS_STAT_H
>> -#endif
>> -
>>
>> /* Define to 1 if you have the <sys/types.h> header file. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_SYS_TYPES_H
>> -#endif
>> -
>>
>> /* Define to 1 if you have the <unistd.h> header file. */
>> -#ifndef USED_FOR_TARGET
>> #undef HAVE_UNISTD_H
>> -#endif
>> -
>>
>> /* Define to the address where bug reports for this package should be sent. */
>> -#ifndef USED_FOR_TARGET
>> #undef PACKAGE_BUGREPORT
>> -#endif
>> -
>>
>> /* Define to the full name of this package. */
>> -#ifndef USED_FOR_TARGET
>> #undef PACKAGE_NAME
>> -#endif
>> -
>>
>> /* Define to the full name and version of this package. */
>> -#ifndef USED_FOR_TARGET
>> #undef PACKAGE_STRING
>> -#endif
>> -
>>
>> /* Define to the one symbol short name of this package. */
>> -#ifndef USED_FOR_TARGET
>> #undef PACKAGE_TARNAME
>> -#endif
>> -
>>
>> /* Define to the home page for this package. */
>> -#ifndef USED_FOR_TARGET
>> #undef PACKAGE_URL
>> -#endif
>> -
>>
>> /* Define to the version of this package. */
>> -#ifndef USED_FOR_TARGET
>> #undef PACKAGE_VERSION
>> -#endif
>> -
>>
>> /* Defined to the best working sed program on the host system */
>> -#ifndef USED_FOR_TARGET
>> #undef SED_PROGRAM
>> -#endif
>> -
>>
>> /* Define if testing and fixing are done by separate process */
>> -#ifndef USED_FOR_TARGET
>> #undef SEPARATE_FIX_PROC
>> -#endif
>> -
>>
>> /* Define to 1 if you have the ANSI C header files. */
>> -#ifndef USED_FOR_TARGET
>> #undef STDC_HEADERS
>> -#endif
>> -
>>
>> /* Enable extensions on AIX 3, Interix. */
>> #ifndef _ALL_SOURCE
>> @@ -416,38 +230,20 @@
>>
>>
>> /* Define to 1 if on MINIX. */
>> -#ifndef USED_FOR_TARGET
>> #undef _MINIX
>> -#endif
>> -
>>
>> /* Define to 2 if the system does not provide POSIX.1 features except with
>> this defined. */
>> -#ifndef USED_FOR_TARGET
>> #undef _POSIX_1_SOURCE
>> -#endif
>> -
>>
>> /* Define to 1 if you need to in order for `stat' and other things to work. */
>> -#ifndef USED_FOR_TARGET
>> #undef _POSIX_SOURCE
>> -#endif
>> -
>>
>> /* Define to xatexit if the host system does not support atexit */
>> -#ifndef USED_FOR_TARGET
>> #undef atexit
>> -#endif
>> -
>>
>> /* Define to empty if `const' does not conform to ANSI C. */
>> -#ifndef USED_FOR_TARGET
>> #undef const
>> -#endif
>> -
>>
>> /* Define to xexit if the host system does not support atexit */
>> -#ifndef USED_FOR_TARGET
>> #undef exit
>> -#endif
>> -
>> diff --git a/fixincludes/configure b/fixincludes/configure
>> index 6e2d67b655b..b3bca666a4d 100755
>> --- a/fixincludes/configure
>> +++ b/fixincludes/configure
>> @@ -2644,7 +2644,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
>>
>> # _LT_DARWIN_LINKER_FEATURES
>> # --------------------------
>> -# Checks for linker and compiler features on darwin
>> +# Checks for linker and compiler features on Darwin / macOS / iOS
>>
>>
>> # _LT_SYS_MODULE_PATH_AIX
>> diff --git a/libada/configure b/libada/configure
>> index 162d9731f26..9c8b133d817 100755
>> --- a/libada/configure
>> +++ b/libada/configure
>> @@ -3212,6 +3212,9 @@ case "${host}" in
>> # sets the default TLS model and affects inlining.
>> PICFLAG=-fPIC
>> ;;
>> + loongarch*-*-*)
>> + PICFLAG=-fpic
>> + ;;
>> mips-sgi-irix6*)
>> # PIC is the default.
>> ;;
>> diff --git a/libiberty/configure b/libiberty/configure
>> index 1d42a5e3a11..65fc5002002 100755
>> --- a/libiberty/configure
>> +++ b/libiberty/configure
>> @@ -5209,6 +5209,9 @@ case "${host}" in
>> # sets the default TLS model and affects inlining.
>> PICFLAG=-fPIC
>> ;;
>> + loongarch*-*-*)
>> + PICFLAG=-fpic
>> + ;;
>> mips-sgi-irix6*)
>> # PIC is the default.
>> ;;
>> diff --git a/libobjc/configure b/libobjc/configure
>> index 5d1b424a66d..2dcc9cd32f6 100755
>> --- a/libobjc/configure
>> +++ b/libobjc/configure
>> @@ -3466,7 +3466,7 @@ case "$host" in
>> case "$enable_cet" in
>> auto)
>> # Check if target supports multi-byte NOPs
>> - # and if assembler supports CET insn.
>> + # and if compiler and assembler support CET insn.
>> cet_save_CFLAGS="$CFLAGS"
>> CFLAGS="$CFLAGS -fcf-protection"
>> cat confdefs.h - <<_ACEOF >conftest.$ac_ext
>> @@ -10771,7 +10771,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 10784 "configure"
>> +#line 10774 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -10877,7 +10877,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 10890 "configure"
>> +#line 10880 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/liboffloadmic/configure b/liboffloadmic/configure
>> index dfa8287fd75..f8da8fabb6f 100755
>> --- a/liboffloadmic/configure
>> +++ b/liboffloadmic/configure
>> @@ -7900,23 +7900,25 @@ _LT_EOF
>> fi
>> { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
>> $as_echo "$lt_cv_ld_force_load" >&6; }
>> - case $host_os in
>> - rhapsody* | darwin1.[012])
>> + # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
>> + # build without first building modern cctools / linker.
>> + case $host_cpu-$host_os in
>> + *-rhapsody* | *-darwin1.[012])
>> _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
>> - darwin1.*)
>> + *-darwin1.*)
>> _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
>> - darwin*) # darwin 5.x on
>> - # if running on 10.5 or later, the deployment target defaults
>> - # to the OS version, if on x86, and 10.4, the deployment
>> - # target defaults to 10.4. Don't you love it?
>> - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
>> - 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
>> - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
>> + *-darwin*)
>> + # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
>> + # deployment target is forced to an earlier version.
>> + case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
>> + UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
>> + ;;
>> 10.[012][,.]*)
>> - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
>> - 10.*)
>> - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
>> - esac
>> + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
>> + ;;
>> + *)
>> + ;;
>> + esac
>> ;;
>> esac
>> if test "$lt_cv_apple_cc_single_mod" = "yes"; then
>> @@ -11420,7 +11422,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 11433 "configure"
>> +#line 11425 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -11526,7 +11528,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 11539 "configure"
>> +#line 11531 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -14265,16 +14267,6 @@ freebsd* | dragonfly*)
>> esac
>> ;;
>>
>> -gnu*)
>> - version_type=linux
>> - need_lib_prefix=no
>> - need_version=no
>> - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
>> - soname_spec='${libname}${release}${shared_ext}$major'
>> - shlibpath_var=LD_LIBRARY_PATH
>> - hardcode_into_libs=yes
>> - ;;
>> -
>> haiku*)
>> version_type=linux
>> need_lib_prefix=no
>> @@ -14396,7 +14388,7 @@ linux*oldld* | linux*aout* | linux*coff*)
>> # project, but have not yet been accepted: they are GCC-local changes
>> # for the time being. (See
>> # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
>> -linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
>> +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
>> version_type=linux
>> need_lib_prefix=no
>> need_version=no
>> diff --git a/liboffloadmic/plugin/configure b/liboffloadmic/plugin/configure
>> index 0b21d7d4eed..ce0a5511fc3 100755
>> --- a/liboffloadmic/plugin/configure
>> +++ b/liboffloadmic/plugin/configure
>> @@ -7280,23 +7280,25 @@ _LT_EOF
>> fi
>> { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
>> $as_echo "$lt_cv_ld_force_load" >&6; }
>> - case $host_os in
>> - rhapsody* | darwin1.[012])
>> + # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
>> + # build without first building modern cctools / linker.
>> + case $host_cpu-$host_os in
>> + *-rhapsody* | *-darwin1.[012])
>> _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
>> - darwin1.*)
>> + *-darwin1.*)
>> _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
>> - darwin*) # darwin 5.x on
>> - # if running on 10.5 or later, the deployment target defaults
>> - # to the OS version, if on x86, and 10.4, the deployment
>> - # target defaults to 10.4. Don't you love it?
>> - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
>> - 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
>> - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
>> + *-darwin*)
>> + # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
>> + # deployment target is forced to an earlier version.
>> + case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
>> + UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
>> + ;;
>> 10.[012][,.]*)
>> - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
>> - 10.*)
>> - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
>> - esac
>> + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
>> + ;;
>> + *)
>> + ;;
>> + esac
>> ;;
>> esac
>> if test "$lt_cv_apple_cc_single_mod" = "yes"; then
>> @@ -11067,7 +11069,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 11080 "configure"
>> +#line 11072 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -11173,7 +11175,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 11186 "configure"
>> +#line 11178 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -13912,16 +13914,6 @@ freebsd* | dragonfly*)
>> esac
>> ;;
>>
>> -gnu*)
>> - version_type=linux
>> - need_lib_prefix=no
>> - need_version=no
>> - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
>> - soname_spec='${libname}${release}${shared_ext}$major'
>> - shlibpath_var=LD_LIBRARY_PATH
>> - hardcode_into_libs=yes
>> - ;;
>> -
>> haiku*)
>> version_type=linux
>> need_lib_prefix=no
>> @@ -14043,7 +14035,7 @@ linux*oldld* | linux*aout* | linux*coff*)
>> # project, but have not yet been accepted: they are GCC-local changes
>> # for the time being. (See
>> # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
>> -linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
>> +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
>> version_type=linux
>> need_lib_prefix=no
>> need_version=no
>> diff --git a/libquadmath/configure b/libquadmath/configure
>> index b3ee64f9c7d..603f2f13140 100755
>> --- a/libquadmath/configure
>> +++ b/libquadmath/configure
>> @@ -10806,7 +10806,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 10819 "configure"
>> +#line 10809 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -10912,7 +10912,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 10925 "configure"
>> +#line 10915 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -13031,7 +13031,7 @@ case "$host" in
>> case "$enable_cet" in
>> auto)
>> # Check if target supports multi-byte NOPs
>> - # and if assembler supports CET insn.
>> + # and if compiler and assembler support CET insn.
>> cet_save_CFLAGS="$CFLAGS"
>> CFLAGS="$CFLAGS -fcf-protection"
>> cat confdefs.h - <<_ACEOF >conftest.$ac_ext
>> diff --git a/libssp/configure b/libssp/configure
>> index 10ba209bde8..b27ae22a976 100755
>> --- a/libssp/configure
>> +++ b/libssp/configure
>> @@ -4338,7 +4338,7 @@ case "$host" in
>> case "$enable_cet" in
>> auto)
>> # Check if target supports multi-byte NOPs
>> - # and if assembler supports CET insn.
>> + # and if compiler and assembler support CET insn.
>> cet_save_CFLAGS="$CFLAGS"
>> CFLAGS="$CFLAGS -fcf-protection"
>> cat confdefs.h - <<_ACEOF >conftest.$ac_ext
>> @@ -10992,7 +10992,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 11005 "configure"
>> +#line 10995 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -11098,7 +11098,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 11111 "configure"
>> +#line 11101 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/libvtv/configure b/libvtv/configure
>> index d64b4af5c6b..897b069b613 100755
>> --- a/libvtv/configure
>> +++ b/libvtv/configure
>> @@ -12254,7 +12254,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12267 "configure"
>> +#line 12257 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -12360,7 +12360,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12373 "configure"
>> +#line 12363 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -15099,16 +15099,6 @@ freebsd* | dragonfly*)
>> esac
>> ;;
>>
>> -gnu*)
>> - version_type=linux
>> - need_lib_prefix=no
>> - need_version=no
>> - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
>> - soname_spec='${libname}${release}${shared_ext}$major'
>> - shlibpath_var=LD_LIBRARY_PATH
>> - hardcode_into_libs=yes
>> - ;;
>> -
>> haiku*)
>> version_type=linux
>> need_lib_prefix=no
>> @@ -15230,7 +15220,7 @@ linux*oldld* | linux*aout* | linux*coff*)
>> # project, but have not yet been accepted: they are GCC-local changes
>> # for the time being. (See
>> # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
>> -linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
>> +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
>> version_type=linux
>> need_lib_prefix=no
>> need_version=no
>> @@ -15672,7 +15662,7 @@ case "$host" in
>> case "$enable_cet" in
>> auto)
>> # Check if target supports multi-byte NOPs
>> - # and if assembler supports CET insn.
>> + # and if compiler and assembler support CET insn.
>> cet_save_CFLAGS="$CFLAGS"
>> CFLAGS="$CFLAGS -fcf-protection"
>> cat confdefs.h - <<_ACEOF >conftest.$ac_ext
>> diff --git a/zlib/configure b/zlib/configure
>> index f489f31bc70..05c41b7e12d 100755
>> --- a/zlib/configure
>> +++ b/zlib/configure
>> @@ -4169,7 +4169,7 @@ case "$host" in
>> case "$enable_cet" in
>> auto)
>> # Check if target supports multi-byte NOPs
>> - # and if assembler supports CET insn.
>> + # and if compiler and assembler support CET insn.
>> cet_save_CFLAGS="$CFLAGS"
>> CFLAGS="$CFLAGS -fcf-protection"
>> cat confdefs.h - <<_ACEOF >conftest.$ac_ext
>> @@ -10735,7 +10735,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 10748 "configure"
>> +#line 10738 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -10841,7 +10841,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 10854 "configure"
>> +#line 10844 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> --
>> 2.37.2
>
>
> -----------------
> Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
> From 3177752b38f9c2c5b93fb73cff9c8fe8efabdea8 Mon Sep 17 00:00:00 2001
> From: Thomas Schwinge <thomas@codesourcery.com>
> Date: Tue, 20 Sep 2022 14:27:05 +0200
> Subject: [PATCH 1/2] Make 'autoreconf' work for 'gcc', 'libobjc'
>
> With that, we may then run plain 'autoreconf' for all of GCC's subpackages,
> instead of for some of those (that don't use Automake) manually having to run
> the applicable combination of 'aclocal', 'autoconf', 'autoheader'.
>
> See also 'AC_CONFIG_MACRO_DIRS'/'AC_CONFIG_MACRO_DIR' usage elsewhere.
>
> gcc/
> * configure.ac (AC_CONFIG_MACRO_DIRS): Instantiate.
> * configure: Regenerate.
> libobjc/
> * configure.ac (AC_CONFIG_MACRO_DIRS): Instantiate.
> * configure: Regenerate.
> ---
> gcc/configure | 5 +++--
> gcc/configure.ac | 1 +
> libobjc/configure | 5 +++--
> libobjc/configure.ac | 1 +
> 4 files changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/gcc/configure b/gcc/configure
> index 817d765568e..731424d62dc 100755
> --- a/gcc/configure
> +++ b/gcc/configure
> @@ -3333,6 +3333,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
>
>
>
> +
> ac_config_headers="$ac_config_headers auto-host.h:config.in"
>
>
> @@ -19689,7 +19690,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 19692 "configure"
> +#line 19693 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -19795,7 +19796,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 19798 "configure"
> +#line 19799 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/gcc/configure.ac b/gcc/configure.ac
> index 59f205a1781..f61fe5a13a5 100644
> --- a/gcc/configure.ac
> +++ b/gcc/configure.ac
> @@ -25,6 +25,7 @@
>
> AC_INIT
> AC_CONFIG_SRCDIR(tree.cc)
> +AC_CONFIG_MACRO_DIRS([../config] [..])
> AC_CONFIG_HEADER(auto-host.h:config.in)
>
> gcc_version=`cat $srcdir/BASE-VER`
> diff --git a/libobjc/configure b/libobjc/configure
> index 2dcc9cd32f6..b888584feb8 100755
> --- a/libobjc/configure
> +++ b/libobjc/configure
> @@ -2218,6 +2218,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
>
>
>
> +
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -10771,7 +10772,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 10774 "configure"
> +#line 10775 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -10877,7 +10878,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 10880 "configure"
> +#line 10881 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libobjc/configure.ac b/libobjc/configure.ac
> index f8f577cfbef..6f58a45d4cb 100644
> --- a/libobjc/configure.ac
> +++ b/libobjc/configure.ac
> @@ -20,6 +20,7 @@
>
> AC_INIT(package-unused, version-unused,, libobjc)
> AC_CONFIG_SRCDIR([objc/objc.h])
> +AC_CONFIG_MACRO_DIRS([../config] [..])
> GCC_TOPLEV_SUBDIRS
>
> # We need the following definitions because AC_PROG_LIBTOOL relies on them
> --
> 2.35.1
>
> From 18a20fe5c2b513547cb29a60ea39bfd87295a8b2 Mon Sep 17 00:00:00 2001
> From: Thomas Schwinge <thomas@codesourcery.com>
> Date: Tue, 20 Sep 2022 15:15:36 +0200
> Subject: [PATCH 2/2] 'autoreconf' all of GCC
>
> ... changing a few additional pieces after recent
> commit b1a3d2b778168341c617aaee6541c66239a198d2
> "regenerate configure files and config.h.in files".
>
> gotools/
> * Makefile.in: Regenerate.
> liboffloadmic/
> * plugin/Makefile.in: Regenerate.
> * plugin/aclocal.m4: Likewise.
> ---
> gotools/Makefile.in | 2 +-
> liboffloadmic/plugin/Makefile.in | 2 +-
> liboffloadmic/plugin/aclocal.m4 | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/gotools/Makefile.in b/gotools/Makefile.in
> index 2783b91ef4b..9739a79526b 100644
> --- a/gotools/Makefile.in
> +++ b/gotools/Makefile.in
> @@ -704,8 +704,8 @@ distclean-generic:
> maintainer-clean-generic:
> @echo "This command is intended for maintainers to use"
> @echo "it deletes files that may require special tools to rebuild."
> -@NATIVE_FALSE@install-exec-local:
> @NATIVE_FALSE@uninstall-local:
> +@NATIVE_FALSE@install-exec-local:
> clean: clean-am
>
> clean-am: clean-binPROGRAMS clean-generic clean-noinstPROGRAMS \
> diff --git a/liboffloadmic/plugin/Makefile.in b/liboffloadmic/plugin/Makefile.in
> index 8d5ad0025c2..c53f2d32b3b 100644
> --- a/liboffloadmic/plugin/Makefile.in
> +++ b/liboffloadmic/plugin/Makefile.in
> @@ -123,10 +123,10 @@ subdir = .
> ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
> am__aclocal_m4_deps = $(top_srcdir)/../../config/acx.m4 \
> $(top_srcdir)/../../config/depstand.m4 \
> - $(top_srcdir)/../../config/toolexeclibdir.m4 \
> $(top_srcdir)/../../config/lead-dot.m4 \
> $(top_srcdir)/../../config/multi.m4 \
> $(top_srcdir)/../../config/override.m4 \
> + $(top_srcdir)/../../config/toolexeclibdir.m4 \
> $(top_srcdir)/../../libtool.m4 \
> $(top_srcdir)/../../ltoptions.m4 \
> $(top_srcdir)/../../ltsugar.m4 \
> diff --git a/liboffloadmic/plugin/aclocal.m4 b/liboffloadmic/plugin/aclocal.m4
> index 9fa1d1216c1..1bb91402f66 100644
> --- a/liboffloadmic/plugin/aclocal.m4
> +++ b/liboffloadmic/plugin/aclocal.m4
> @@ -1169,10 +1169,10 @@ AC_SUBST([am__untar])
>
> m4_include([../../config/acx.m4])
> m4_include([../../config/depstand.m4])
> -m4_include([../../config/toolexeclibdir.m4])
> m4_include([../../config/lead-dot.m4])
> m4_include([../../config/multi.m4])
> m4_include([../../config/override.m4])
> +m4_include([../../config/toolexeclibdir.m4])
> m4_include([../../libtool.m4])
> m4_include([../../ltoptions.m4])
> m4_include([../../ltsugar.m4])
> --
> 2.35.1
>
next prev parent reply other threads:[~2022-09-20 13:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-25 9:42 [PATCH] regenerate configure files and config.h.in files Martin Liška
2022-08-25 12:21 ` Richard Sandiford
2022-08-25 12:26 ` Martin Liška
2022-08-31 15:58 ` Jeff Law
2022-09-20 13:37 ` Make 'autoreconf' work for 'gcc', 'libobjc' (was: [PATCH] regenerate configure files and config.h.in files) Thomas Schwinge
2022-09-20 13:42 ` Iain Sandoe [this message]
2022-09-20 15:23 ` Martin Liška
2022-10-20 9:56 ` Thomas Schwinge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17AB8478-2679-4ED2-936C-2E2414CBF15C@googlemail.com \
--to=idsandoe@googlemail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=mliska@suse.cz \
--cc=thomas@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).